<script language="javascript">
function onSearch(idd){
	$.messager.progress();
	$("#searchFormUser"+idd).form('submit',{
		url:'__APP__?g=<?php echo GROUP_NAME; ?>&m=<?php echo MODULE_NAME; ?>&a=search&act=1',
		success:function(data){
			//alert($("#keys").val());
			$.messager.progress('close');
			$("#Users").datagrid('reload');
			var sa = '{$TC.config.SEARCH_ACTION}';
			if(sa==1){
				$("#searchUser").dialog('close',true);
			}
		}
	});
}

$(document).ready(function(){
	$("#keywordUser{$uniqid}").combobox({
		filter: function(q,r){
			$("#keyUser{$uniqid}").val(q);
			var opts = $(this).combobox('options');
			var v = r[opts.textField];
			var vp = ','+String(getPinYin(v));
			var qp = ','+q.toUpperCase();
			if(vp.indexOf(qp)>=0 || v.indexOf(q) == 0){
				return r[opts.textField];
			}
		},
		onSelect:function(c){
			$("#keyUser{$uniqid}").val(c['id']);
		}
	});
});
</script>
<div class="con-tb">
<form id="searchFormUser{$uniqid}" method="post">
 <table class="infobox" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="41"><input name="field" type="hidden" value="<?php echo $field ?>" /><select class="easyui-combobox" name="mod" data-options="editable:false">  
        <option value="eq">等于</option>  
        <option  value="like">包含</option>
        <option  value="gt">大于</option>
        <option  value="lt">小于</option>
        <option  value="egt">大于等于</option>
        <option  value="elt">小于等于</option> 
        <option  value="neq">不等于</option>  
        <option  value="notlike">不包含</option>
    </select>&nbsp;<input name="keyword" id="keywordUser{$uniqid}" class="easyui-combobox relo" size="38" data-options="url:'__URL__/search/field/<?php echo $field ?>/json/1',editable:true,method:'get',valueField:'id',textField:'text'" /><input name="keyuser" id="keyUser{$uniqid}" type="hidden" value="" />&nbsp;<a href="#" onclick="javascript:onSearch('{$uniqid}')" id="su" class="easyui-linkbutton">查询</a></td>
  </tr>
 </table>
</form>
</div>