index.php
1.19 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
<?php $this->_extends('layout/admin_layout');?>
<?php $this->_block('main');?>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
</caption>
<thead>
<td>编号</td>
<td>功能</td>
<td>状态</td>
<td>操作</td>
</thead>
<?php foreach($this->view->modules as $module):
if($module['id'] == 3) continue;
?>
<tr>
<td><?php echo $module['id'];?>
</td>
<td><?php echo $module['module_name'];?></td>
<td><?php
$status = array('关闭','开启','待开启');
echo $status[$module['status']]; ?></td>
<td>
<button class="btn open_status" module_id="<?php echo $module['id'];?>">开启</button>
<button class="btn wait_open_status" module_id="<?php echo $module['id'];?>">待开启</button>
<button class="btn close_status" module_id="<?php echo $module['id'];?>">关闭</button>
</td>
</tr>
<?php endforeach;?>
</table>
<?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/news',function(news){
news.mobile();
});
</script>
<?php $this->_endblock();?>