index.php
11.8 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
<?php $this->_extends('layout/admin_layout');?>
<?php $this->_block('main');?>
<ul class="nav nav-tabs" type="<?php echo $this->view->type;?>">
<li <?php echo $this->view->type == 0 ? 'class="active"' :''; ?> >
<a href="/admin/onlinereg/index">参展商登记</a>
</li>
<li <?php echo $this->view->type == 1 ? 'class="active"' :''; ?>>
<a href="/admin/onlinereg/index/type/1">赞助商登记</a>
</li>
<li <?php echo $this->view->type == 2 ? 'class="active"' :''; ?>>
<a href="/admin/onlinereg/index/type/2">媒体登记</a>
</li>
</ul>
<?php if($this->view->type == 0)://参展商登记?>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" style="float:left;" onclick="location.href='/admin/onlinereg/download/type/0';">查看参展商手册</button>
<button class="btn batch_export" style="margin-left:100px">批量导出</button>
</caption>
<thead>
<td width="5%"> <input type="checkbox" id="all_check" /> 选择</td>
<td width="5%">ID</td>
<td width="5%">品牌名称</td>
<td width="5%">类型</td>
<td width="5%">联系人</td>
<td width="5%">电话</td>
<td width="5%">创建时间</td>
<td width="10%">操作</td>
</thead>
<?php foreach($this->view->list as $seller):?>
<tr>
<td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td>
<td><?php echo $seller['id']?></td>
<td><?php echo $seller['name']?></td>
<td><?php echo $this->view->sellerTypes[$this->view->type];?></td>
<td><?php echo $seller['contact']?></td>
<td><?php echo $seller['telphone']?></td>
<td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td>
<td>
<button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button>
<button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" admin="" style="display:none;">
<table class="table table-bordered">
<tbody>
<tr>
<td>品牌名称<span class="text-error"> * </span></td>
<td><input type="text" name="name"/></td>
</tr>
<tr>
<td>是否品牌入驻有货<span class="text-error"> * </span></td>
<td>
<select id="is_enter_yohobuy" name="is_enter_yohobuy">
<option value="0">否</option>
<option value="1">是</option>
</select>
</td>
</tr>
<tr>
<td>品牌注册<span class="text-error"> * </span></td>
<td>
<select id="brand_reg_type" name="brand_reg_type">
<option value="0">未注册</option>
<option value="1">已注册</option>
<option value="2">已申请</option>
</select>
</td>
</tr>
<tr>
<td>公司名称</td>
<td><input type="text" name="company" /></td>
</tr>
<tr>
<td>联系人<span class="text-error"> * </span></td>
<td><input type="text" name="contact" /></td>
</tr>
<tr>
<td>电话<span class="text-error"> * </span></td>
<td><input type="text" name="telphone" /></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>公司与品牌关系<span class="text-error"> * </span></td>
<td>
<select id="relation" name="relation">
<option value="0">品牌商</option>
<option value="1">代理商</option>
<option value="2">经销商</option>
<option value="3">其他</option>
</select>
</td>
</tr>
<tr>
<td>商品所在地<span class="text-error"> * </span></td>
<td><input type="text" name="place" /></td>
</tr>
<tr>
<td>是否具有3C凭证<span class="text-error"> * </span></td>
<td>
<select id="is_3c" name="is_3c">
<option value="0">否</option>
<option value="1">是</option>
</select>
</td>
</tr>
<tr>
<td>品牌官网</td>
<td><input type="text" name="website" /></td>
</tr>
<tr>
<td>品牌资料</td>
<td>
<div id="download_list"></div>
</td>
</tr>
</tbody>
</table>
</div>
<?php elseif($this->view->type == 1)://赞助商登记?>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn batch_export" style="float:left;">批量导出</button>
</caption>
<thead>
<td width="5%"> <input type="checkbox" id="all_check" /> 选择</td>
<td width="5%">ID</td>
<td width="5%">品牌名称</td>
<td width="5%">产品类型</td>
<td width="5%">类型</td>
<td width="5%">联系人</td>
<td width="5%">电话</td>
<td width="5%">时间</td>
<td width="10%">操作</td>
</thead>
<?php foreach($this->view->list as $seller):?>
<tr>
<td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td>
<td><?php echo $seller['id']?></td>
<td><?php echo $seller['name']?></td>
<td width="15%"><?php echo $seller['product_type']?></td>
<td><?php echo $this->view->sellerTypes[$this->view->type];?></td>
<td><?php echo $seller['contact']?></td>
<td><?php echo $seller['telphone']?></td>
<td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td>
<td>
<button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button>
<button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" admin="" style="display:none;">
<table class="table table-bordered">
<tbody>
<tr>
<td>品牌名称<span class="text-error"> * </span></td>
<td><input type="text" name="name"/></td>
</tr>
<tr>
<td>是否品牌入驻有货<span class="text-error"> * </span></td>
<td>
<select id="is_enter_yohobuy" name="is_enter_yohobuy">
<option value="0">否</option>
<option value="1">是</option>
</select>
</td>
</tr>
<tr>
<td>产品类型</td>
<td><input type="text" name="product_type" /></td>
</tr>
<tr>
<td>所属国家</td>
<td><input type="text" name="country" /></td>
</tr>
<tr>
<td>公司名称</td>
<td><input type="text" name="company" /></td>
</tr>
<tr>
<td>公司地址</td>
<td><input type="text" name="place" /></td>
</tr>
<tr>
<td>联系人<span class="text-error"> * </span></td>
<td><input type="text" name="contact" /></td>
</tr>
<tr>
<td>电话<span class="text-error"> * </span></td>
<td><input type="text" name="telphone" /></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>品牌官网</td>
<td><input type="text" name="website" /></td>
</tr>
<tr>
<td>品牌资料</td>
<td>
<div id="download_list"></div>
</td>
</tr>
</tbody>
</table>
</div>
<?php elseif($this->view->type == 2)://媒体登记?>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" style="float:left;" onclick="location.href='/admin/onlinereg/download/type/1';">查看新闻稿</button>
<button class="btn batch_export" style="margin-left:100px">批量导出</button>
</caption>
<thead>
<td width="5%"><input type="checkbox" id="all_check" /> 选择</td>
<td width="5%">ID</td>
<td width="5%">姓名</td>
<td width="5%">类型</td>
<td width="6%">手机号</td>
<td width="6%">媒体名</td>
<td width="7%">创建时间</td>
<td width="12%">操作</td>
</thead>
<?php foreach($this->view->list as $seller):?>
<tr>
<td><input type="checkbox" seller_id="<?php echo $seller['id']?>"></td>
<td><?php echo $seller['id']?></td>
<td><?php echo $seller['name']?></td>
<td><?php echo $this->view->sellerTypes[$this->view->type];?></td>
<td><?php echo $seller['mobile']?></td>
<td><?php echo $seller['company']?></td>
<td><?php echo date('Y-m-d H:i:s', $seller['create_time']);?></td>
<td>
<button class="btn look" seller_id="<?php echo $seller['id']?>">查看</button>
<button class="btn btn-danger export" onclick="location.href='/admin/onlinereg/export?id=<?php echo $seller['id']?>';">导出</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" admin="" style="display:none;">
<table class="table table-bordered">
<tbody>
<tr>
<td>姓名<span class="text-error"> * </span></td>
<td><input type="text" name="name"/></td>
</tr>
<tr>
<td>职位</td>
<td><input type="text" name="profession" /></td>
</tr>
<tr>
<td>性别</td>
<td>
<select id="sex" name="sex">
<option value="1">男</option>
<option value="0">女</option>
</select>
</td>
</tr>
<tr>
<td>媒体名/公司名</td>
<td><input type="text" name="company" /></td>
</tr>
<tr>
<td>介绍</td>
<td><input type="text" name="introduction" /></td>
</tr>
<tr>
<td>官网地址</td>
<td><input type="text" name="website" /></td>
</tr>
<tr>
<td>所在城市</td>
<td><input type="text" name="city" /></td>
</tr>
<tr>
<td>邮箱</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>手机<span class="text-error"> * </span></td>
<td><input type="text" name="mobile" /></td>
</tr>
<tr>
<td>座机</td>
<td><input type="text" name="telphone" /></td>
</tr>
<tr>
<td>固定地址</td>
<td><input type="text" name="place" /></td>
</tr>
<tr>
<td>邮编</td>
<td><input type="text" name="zipcode" /></td>
</tr>
</tbody>
</table>
</div>
<?php endif;?>
<?php $this->_component('Common_Pagination',array(
'pagination' => $this->view->pagination,'show_count' =>true,
));?>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<?php $this->_js('feedback.js', array(
SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript">
seajs.use('admin/onlinereg',function(onlinereg){
onlinereg.index();
});
</script>
<?php $this->_endblock();?>