look.html
5.18 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
<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<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">
<link rel="stylesheet" type="text/css" href="__ROOTPUB__css/reg.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>
<style>
table tr td{padding:0 5px; line-height:31px !important;}
.table{border-collapse: collapse; width:100%; }
.upimg{display: inline-block;}
.upimg img{ max-height:25px;}
</style>
<script type="text/javascript" src="__PUB__js/layer2/layer.js"></script>
<script>
/*layer.config({
extend: 'extend/layer.ext.js',
shift: 0, //默认动画风格
// skin: 'layui-layer-molv' //默认皮肤
});
layer.ready(function(){
layer.photos({
photos: '.upimg'
});
});*/
$(function(){
$(".upimg").each(function(){
$(this).click(function(){
layer.open({
title:' ',
type: 1,
shadeClose: true,
area: ['70%','90%'], //宽高
content: '<img src="'+$(this).children('img').attr('src')+'" style="display:block; margin:0 auto; max-width:100%;" />',
});
});
});
$(".pdf").each(function(){
$(this).click(function(){
layer.open({
title:'',
type: 2,
shadeClose: true,
area: ['90%','90%'], //宽高
content: 'http://<{$Think.server.SERVER_NAME}><{:U("Public/pdf",'','')}>/pp/'+Math.random()+'/pdfval/'+$(this).attr('pdfval'),
});
});
});
});
</script>
</head>
<body style="margin: 0px 0px;min-height:500px; background:url(__ROOTPUB__img/ybbf.png) center no-repeat;background-size:contain;background-position:200px 150px;">
<div style="margin:0 auto; width:98%;">
<form name="form" action="" method="post">
<table class="table table-condensed table-bordered table-hover">
<tbody><tr>
<td colspan="4" style="padding-left:10px;">
<div style="float:left">
<b><{$page_title}></b>
</div>
<div style="float:right">
[<a href="javascript:history.go(-1);"><u>返回列表</u></a>]
</div>
</td>
</tr>
<tr>
<?php
$ii = 1;
foreach($field as $k => $v){
if($v=='status'){ continue;}
if($regfields[$v]['istags'] == 1 || $regfields[$v]['type'] == 'c_heckbox'){ //标签 多选框去掉两边多余的,
$data[$v] = trim($data[$v],',');
}
if($regfields[$v]['required']==1){ //必填
$req= '<span class="pp_req">*</span> ';
}
if($regfields[$v]['fline'] == 2){ //占用整行
echo $ii == 1?'':'</tr><tr>';
echo '<td style="text-align:right; font-weight:bold;" width="10%">'.$req;
echo $regfields[$v]['description'].':</td><td colspan="3">';
echo checkApply2($regfields[$v]['type'],$regfields[$v]['name'],array('val'=>$regfields[$v]['d_value'],'row'=>$regfields[$v]['rownum'],'col'=>$regfields[$v]['colnum'],'ctitle'=>$regfields[$v]['ctitle']),$regfields[$v]['isdate'],$data[$v],$regfields[$v]['upfile']);
echo '</td></tr><tr>';
$ii = 1;
}else{
echo '<td style="text-align:right; font-weight:bold;" width="10%">'.$req;
echo $regfields[$v]['description'].':</td><td width="40%">';
echo checkApply2($regfields[$v]['type'],$regfields[$v]['name'],array('val'=>$regfields[$v]['d_value'],'row'=>$regfields[$v]['rownum'],'col'=>$regfields[$v]['colnum'],'ctitle'=>$regfields[$v]['ctitle']),$regfields[$v]['isdate'],$data[$v],$regfields[$v]['upfile']);
echo '</td>';
if($ii == 2 && $k != (count($field)-1)){
echo '</tr><tr>';
$ii = 1;
}else{
$ii++;
}
}
unset($req);
}
?>
</tr>
<tr>
<td style="text-align:right; font-weight:bold;">审核状态:</td><td colspan="3" >
<if condition="$data['status'] eq 2">审核通过<elseif condition="$data['status'] eq 1" /><span style="color:red">审核不通过</span><else /><span style="color:red">未审核</span></if>
</td>
</tr>
</tbody></table>
<input type="hidden" name="p" value="<{$p|default=1}>" />
</form>
</div>
</body>
<include file="Common:js2" />
</html>