booth.php
1.77 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
<?php $this->_extends('layout/admin_layout');?>
<?php $this->_block('main');?>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" style="float:left;" id="add_booth" href="javascript:void(0)">添加booth坐标</button>
</caption>
<thead>
<td>编号</td>
<td>booth编号</td>
<td>坐标( x | y )</td>
<td>时间</td>
<td>操作</td>
</thead>
<?php foreach($this->view->boothList as $booth):?>
<tr>
<td><?php echo $booth['id'];?></td>
<td><?php echo $booth['booth_id'];?></td>
<td><?php echo $booth['position'];?></td>
<td><?php echo date('Y-m-d h:i:s', $booth['create_time']);?></td>
<td>
<button class="btn edit_booth">编辑</button>
<button booth_id="<?php echo $booth['booth_id'];?>" class="btn btn-danger del_booth">删除</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" style="display:block">
<table class="table table-bordered">
<tbody>
<tr>
<td>booth编号<span class="text-error"> * </span></td>
<td><input type="text" id="booth_id" name="booth_id"/>
<input type="hidden" id="id" name="id"/>
</td>
<td>坐标 ( x | y )
<span class="text-error"> * </span>
<input type="text" id="position" name="position"/>
</td>
</tr>
</tbody>
</table>
</div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<?php $this->_js('feedback.js', array(
SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script>
<script type="text/javascript">
seajs.use('admin/brand');
</script>
<?php $this->_endblock();?>