index.html
4.98 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
<!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">
<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: 10px 0px;">
<div style="margin:0 auto; width:98%;">
<table class="table table-condensed table-bordered table-hover">
<tbody><tr>
<td colspan="<{$colnum}>" style="padding-left:10px;">
<div style="overflow:hidden">
<div style="float:left">
<b>资料管理</b>
</div>
<div style="float:right; font-weight:bold;"><!-- <a href=""><u>新增资料填报</u></a> -->
</div>
</div>
<div class="search">
<!-- <form action="<{:U(ACTION_NAME)}>" method="post">
<input type="text" name="title" value="<{$search.title}>" placeholder="请输入报告名称" class="w_160" />
<select name="status" class="w_160">
<option value="">请选择审核状态</option>
<option value="0" <eq name="search.status" value="0">selected</eq>>未审核</option>
<option value="1" <eq name="search.status" value="1">selected</eq>>审核不通过</option>
</select>
<input type="submit" value="搜 索" class="btn" /> <input type="button" value="清除搜索" onclick='window.location.href="<{:U($Think.ACTION_NAME)}>"' class="btn"/> <input type="button" value="导出EXCEL" onclick='window.location.href="<{:U('checkField')}>"' class="btn"/>
</form> -->
</div>
</td>
</tr>
<form action="<{:U('form')}>" method="post">
<tr align="center">
<td width="30" style="text-align:center;">序号</td>
<volist name="field" id="v">
<td <notempty name="regfields[$v]['width1']">width="<{$regfields[$v]['width1']}>"</notempty> style="text-align:center;"><{$regfields[$v]['description']}></td>
</volist>
<td width="80" style="text-align:center;">录入时间</td>
<td width="50" style="text-align:center;">审核状态</td>
<td style="text-align:center; width:15%;">操作</td>
</tr>
<volist name="list" id="vo" empty="$empty" key="ii">
<tr style="text-align:center;">
<td nowrap="" style="text-align:center;"><{$ii}></td>
<volist name="field" id="v">
<td style="text-align:center;">
<if condition="($regfields[$v]['upfile'] eq 1) AND ($vo[$v])">
<img src="<{$vo[$v]}>" style=" max-width:80px; ">
<elseif condition="($regfields[$v]['upfile'] eq 2) AND ($vo[$v])" />
<a href="<{$vo[$v]}>" target="_blank">下载文件</a>
<elseif condition="($regfields[$v]['istags'] eq '1') or ($regfields[$v]['type'] eq 'c_heckbox')" />
<{$vo[$v]|trim=','}>
<else/>
<{$vo[$v]}>
</if>
</td>
</volist>
<td style="text-align:center;"><{$vo.addtime|date='Y-m-d H:i:s',###}></td>
<td style="text-align:center;" class="review">
<?php
if($vo['isshow']==1):
?>
审核通过
<?php
elseif($vo['status']==1):
?>
<span style="color:red">审核不通过</span>
<?php
elseif((int)$dengji == (int)$vo['isshow']):
?>
<span style="color:red">未审核</span>
<?php
else:
?>
<span style="color:red">审核中</span>
<?php endif;?>
</td>
<td style="text-align:center;">
<a href="<{:U('look',array('id'=>$vo['id']))}>" class="btn btn-mini"><i class="icon-look"></i> 预览</a>
<a href="javascript:void(0);" onclick="del2('<{:U('delete',array('id'=>$vo['id']))}>','确定要删除信息吗?删除后无法恢复');" class="btn btn-mini"><i class="icon-trash"></i> 删除</a>
</td>
</tr>
</volist>
</form>
<notempty name="page">
<tr>
<td colspan="<{$colnum}>">
<ul class="page">
<{$page}>
</ul>
</td>
</tr>
</notempty>
</tbody>
</table>
</div>
</body></html>