index.html
4.24 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
<!DOCTYPE html>
<!-- saved from url=(0050)http://localhost/cms/index.php/admin/Article/index -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列表|后台管理系统</title>
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/bootstrap-responsive.min.css">
<link rel="stylesheet" type="text/css" href="__PUB__style/pp.css">
<script type="text/javascript" src="__PUB__js/bootstrap.min.js"></script>
<script type="text/javascript" src="__PUB__js/jquery.min.js"></script>
<script type="text/javascript" src="__PUB__js/common.js"></script>
<script>
$(document).ready(function(){
$("#SelectAll").click(function(){
$("input[name='check[]']").checkCbx();
});
$("#colid1").change(function(){
var val=$(this).children('option:selected').val();
window.location.href="<{:U('index',array(),'')}><{:C('URL_PATHINFO_DEPR')}>tid<{:C('URL_PATHINFO_DEPR')}>"+val;
});
$(".YanZheng").click(function(event){
var a=$("input:checked").length;
if(a==0){
alert('您还没有请选择操作内容!');
event.preventDefault();
}
});
$(".icon_isok").click(function(){
var vara=$(this).find('i').attr('var');
$.get("<{:U('Shenhe')}>",{'id':vara},function(data){
if(data){
location.reload();
}else{
alert('修改失败!');
location.reload();
}
});
});
});
$.fn.checkCbx = function(){
return this.each(function(){
this.checked = !this.checked;
});
}
</script>
<style>
#colid1 {
font-family: "宋体";
}
</style>
</head>
<body style="margin: 0px 0px;min-height:500px; background:url(__ROOTPUB__img/ybbf.png) center no-repeat;background-size:contain;background-position:200px 100px;">
<div style="margin:0 auto; width:98%;">
<table class="table table-condensed table-bordered table-hover">
<tbody><tr>
<td colspan="10" style="padding-left:10px;">
<div style="float:left">
<b><{$page_title}></b>
</div>
<div style="float:right; font-weight:bold;"><?php if(in_array('article-add',$authlist)):?><a href="<{:U('add')}>"><u>发布通知公告</u></a><?php endif;?> </div>
</td>
</tr>
<tr align="center">
<td width="6%" style="text-align:center;">序号</td>
<td style="text-align:center;">标题</td>
<td width="8%" style="text-align:center;">发布时间</td>
<td width="8%" style="text-align:center;">点击数</td>
<td width="8%" style="text-align:center;">是否置顶</td>
<?php if(in_array('article-look',$authlist) || in_array('article-edit',$authlist) || in_array('article-delete',$authlist)):?>
<td width="20%" style="text-align:center;">操作</td>
<?php endif;?>
</tr>
<volist name="list" id="vo" key="k" empty="$empty">
<tr style="text-align:center;">
<td nowrap="" style="text-align:center;"><{$k}></td>
<td style="text-align:left;"><{$vo.title}></td>
<td style="text-align:center;"><{$vo.addtime|date='Y-m-d',###}></td>
<td style="text-align:center;"><{$vo.clicknum}></td>
<td style="text-align:center;">
<neq name="vo['dotop']" value='0'><span style="color:red">是</span><else />否</neq>
</td>
<?php if(in_array('article-look',$authlist) || in_array('article-edit',$authlist) || in_array('article-delete',$authlist)):?>
<td style="text-align:center;">
<?php if(in_array('article-look',$authlist)):?>
<a href="<{:U('look',array('id'=>$vo['id'],'p'=>I('p',1,'intval')))}>" class="btn btn-mini"><i class="icon-look"></i> 查看</a>
<?php endif;?>
<?php if(in_array('article-edit',$authlist)):?>
<a href="<{:U('edit',array('id'=>$vo['id'],'p'=>I('p',1,'intval')))}>" class="btn btn-mini"><i class="icon-edit"></i> 修改</a>
<?php endif;?>
<?php if(in_array('article-delete',$authlist)):?>
<a href="javascript:void(0);" onclick="del2('<{:U('delete',array('id'=>$vo['id'],'p'=>I('p',1,'intval')))}>','确定要删除信息吗?删除后无法恢复');" class="btn btn-mini"><i class="icon-trash"></i> 删除</a>
<?php endif;?>
</td>
<?php endif;?>
</tr>
</volist>
<notempty name="page">
<tr>
<td colspan="10">
<ul class="page">
<{$page}>
</ul>
</td>
</tr>
</notempty>
</tbody></table>
</div>
<include file="Common:js" />
</body></html>