send_coupon.html
5.58 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<include file="public/layout"/>
<style>
.te_le .dataTables_paginate{float: left;}
.bot{float: right;padding: 15px 0}
</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">
<h3>会员列表</h3>
<h5>(共<span id="count"></span>条记录)</h5>
</div>
<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
<form class="navbar-form form-inline" id="search-form2" method="post" onsubmit="return false">
<div class="sDiv">
<div class="sDiv2" style="margin-right: 10px;">
<input size="30" name="mobile" value="" placeholder="手机号码" class="qsbox" type="text">
</div>
<div class="sDiv2" style="margin-right: 10px;">
<input size="30" name="email" value="" placeholder="email" class="qsbox" type="text">
</div>
<div class="sDiv2">
<input size="30" name="nickname" value="{$nickname}" placeholder="搜索词" class="qsbox" type="text">
<input class="btn" value="搜索" type="submit" onclick="ajax_get_table('search-form2',1)">
</div>
</div>
</form>
</div>
<div class="hDiv">
<div class="hDivBox">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="sign" axis="col0" width="24px">
<div><input type="checkbox" onclick="$('input[name*=\'user_id\']').prop('checked', this.checked);"></div>
</th>
<th abbr="article_time" axis="col6" class="" align="left" width="15%">
<div style="text-align: left;" class="">会员ID</div>
</th>
<th abbr="ac_id" axis="col4" class="" align="left" width="15%">
<div style="text-align: center; " class="">会员等级</div>
</th>
<th abbr="article_show" axis="col5" class="" align="center" width="15%">
<div style="text-align: center; " class="">会员昵称</div>
</th>
<th abbr="article_show" axis="col5" class="" align="center" width="15%">
<div style="text-align: center;" class="">手机</div>
</th>
<th abbr="article_show" axis="col5" class="" align="center" width="22.5%">
<div style="text-align: center;" class="">邮箱</div>
</th>
<th axis="col1" class="" align="center" width="15%">
<div style="text-align: center;">操作</div>
</th>
<th style="width:100%" axis="col7">
<div></div>
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="tDiv">
<form action="{:U('Coupon/send_coupon')}" id="send-form" method="post">
<input type="hidden" name="cid" value="{$cid}">
<div class="tDiv2">
<select name="level_id" id="level_id">
<option value="0">所有会员</option>
<foreach name="level" item="vo">
<option value="{$vo['level_id']}"
<if condition="$vo[level_id] eq $level_id">selected</if>
> {$vo['level_name']}</option>
</foreach>
</select>
<div class="fbutton">
<div class="add" title="确定发送" onclick="checksub()" >
<span><i class="fa fa-send"></i>确定发送</span>
</div>
</div>
</div>
</form>
<div style="clear:both"></div>
</div>
<form method="post" action="" id="form-user">
<input type="hidden" name="cid" value="{$cid}">
<div id="ajax_return">
</div>
</form>
</div>
</div>
<script>
$(document).ready(function(){
ajax_get_table('search-form2',1);
});
// ajax 抓取页面
function ajax_get_table(tab,page){
cur_page = page; //当前页面 保存为全局变量
$.ajax({
type : "POST",
url:"/index.php/Admin/Coupon/ajax_get_user/p/"+page,//+tab,
data : $('#'+tab).serialize(),// 你的formid
success: function(data){
$("#ajax_return").html('');
$("#ajax_return").append(data);
}
});
}
function doconfirm(){
if($("input[type='checkbox']:checked").length == 0)
{
layer.alert('请选择会员', {icon: 2}); //alert('请选择商品');
return false;
}else{
$('#form-user').submit();
}
}
function checksub() {
layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '10px', time:100000}) ;
$('#send-form').submit();
}
</script>
</body>
</html>