smitemlist.html
2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<include file="public/layout"/>
<style>
select{
height: 27px;
}
.bot {
float: right;
padding: 15px 0;
width: 10%
}
.vdisib {
display: inline-block;
*display: inline;
*zoom: 1;
vertical-align: middle;
}
.flexigrid .bDiv tr {
display: block;
}
.flexigrid .bDiv td.dny {
display: none;
}
</style>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div class="page" style="padding: 0px 1% 0 1%;">
<!-- 操作说明 -->
<div class="flexigrid">
<div class="mDiv">
<div class="ftitle vdisib">
<h5 id="good_count" class="vdisib">0</h5>
</div>
<div title="刷新数据" class="pReload vdisib"><i class="fa fa-refresh"></i></div>
<form class="navbar-form form-inline" id="search-form2" onSubmit="return false">
<div class="sDiv">
<span style="font-size: 12px"> 每<input type="text" size="4" maxlength="4" name="pagenum" id="pagenum" class="qsbox" value="{$pagenum}">条/页</span>
<div class="sDiv2">
<input size="30" name="keyword" id="keyword" class="qsbox" placeholder="关键字" type="text">
<input class="btn" style="height: 27px" value="搜索" type="submit"
onclick="ajax_get_table('search-form2',1)">
</div>
</div>
</form>
</div>
<div class="bDiv" style="height: auto;">
<div id="ajax_return" cellpadding="0" cellspacing="0" border="0"></div>
</div>
<!--分页位置-->
<!--<div class="bot"><a onclick="select_goods();" class="ncap-btn-big ncap-btn-green" id="btnsumbit">确认提交</a></div>-->
</div>
<div id="goods_table" style="display: none"></div>
</div>
<script>
$(document).ready(function () {
$('.fa-refresh').click(function () {
location.href = location.href;
});
ajax_get_table('search-form2', 1);
});
function ajax_get_table(form, page) {
cur_page = page; //当前页面 保存为全局变量
var ts1= layer.msg('加载中...', {
icon: 16,
shade: [0.5, '#f5f5f5'],
scrollbar: false,
offset: '200px',
time: 100000
});
$.ajax({
type: "POST",
url: "/index.php?m=Admin&c=Userqy&a=ajax_smitem&p=" + page, //+tab,
data: $('#' + form).serialize(), // 你的formid
success: function (data) {
layer.close(ts1);
$("#ajax_return").html('');
$("#ajax_return").append(data);
},
error:function () {
layer.close(ts1);
}
});
}
$("#btnhistory").click(function () {
window.history.go(-1);
})
</script>
</body>
</html>