Commit 4ff7fd4f by html5-李恒逸

回车搜索

parent f05e9569
......@@ -60,7 +60,7 @@
<option value="1" <?php echo $con_arr[1] == 1 ? 'selected="selected"' : '';?>>已删除</option>
</select>
关键字:
<input type="text" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[2]) && $con_arr[2] !="NULL" ? urldecode($con_arr[2]) : "";?>" id="keywords">
<input type="text" class="form-control input-inline input-small" onkeypress="EnterPress()" value="<?php echo !empty($con_arr[2]) && $con_arr[2] !="NULL" ? urldecode($con_arr[2]) : "";?>" id="keywords">
<button type="submit" class="btn blue" id="search">搜索</button>
<button type="reset" class="btn blue" id="reset">清空</button>
<input type="hidden" value="<?php echo isset($condition) ? $condition :''?>" id='s_keywords'>
......@@ -137,7 +137,11 @@
optInit['prev_text'] = "上一页";
$(".pagination").pagination(_total, optInit);
});
function EnterPress(){
if(event.keyCode == 13){
$('#search').trigger('click');
}
}
function pageselectCallback(page_index, jq){
<?php if(isset($ad)&& $ad=="ad"){
echo "_condition = 'ad';";
......
......@@ -51,7 +51,7 @@
分销商标识:
<input type="text" class="form-control input-inline input-small" value="<?php echo isset($con_arr['uniqid_id']) ? $con_arr['uniqid_id'] : "";?>" id="uniqid_id" name="uniqid_id">
<button type="submit" class="btn blue" id="search">搜索</button>
<a class="btn blue" href="<?php echo site_url('admin/manageradmin/index');?>">清空</a>
<a class="btn blue" href="<?php echo site_url('admin/distributionadmin/distributor');?>">清空</a>
</form>
</div>
<table class="table table-striped table-hover table-bordered">
......
......@@ -51,11 +51,11 @@
?>
</select>
楼盘名称:
<input type="text" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[1]) && $con_arr[1] !="NULL" ? urldecode($con_arr[1]) : "";?>" id="building_title">
<input type="text" onkeypress="EnterPress()" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[1]) && $con_arr[1] !="NULL" ? urldecode($con_arr[1]) : "";?>" id="building_title">
姓名:
<input type="text" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[2]) && $con_arr[2] !="NULL" ? urldecode($con_arr[2]) : "";?>" id="customer_user">
<input type="text" onkeypress="EnterPress()" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[2]) && $con_arr[2] !="NULL" ? urldecode($con_arr[2]) : "";?>" id="customer_user">
联系电话:
<input type="text" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[3]) && $con_arr[3] !="NULL" ? $con_arr[3] : "";?>" id="customer_mobile">
<input type="text" onkeypress="EnterPress()" class="form-control input-inline input-small" value="<?php echo !empty($con_arr[3]) && $con_arr[3] !="NULL" ? $con_arr[3] : "";?>" id="customer_mobile">
<div style='margin-top:5px;'></div>
类型:
<select class="form-control input-inline" name="recommend_status" id="recommend_status">
......@@ -149,7 +149,11 @@
+ "_" + $("#customer_mobile").val() + "_" + $("#recommend_status").val() + "_" + $('#user_source').val();
});
});
function EnterPress(){
if(event.keyCode == 13){
$('#search').trigger('click');
}
}
var _total = <?php echo isset($count) && $count >0 ? $count : 0;?>,
_condition = '<?php echo isset($condition)? $condition : "";?>',
_page_no = 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment