dataValidation.jsp
22.9 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="com.alibaba.fastjson.*"%>
<%@page import="sun.misc.BASE64Decoder"%>
<%@page import="weaver.hrm.User"%>
<%@page import="weaver.hrm.HrmUserVarify"%>
<%@page import="weaver.general.* "%>
<%@page import="java.util.* "%>
<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@ page import="com.engine.workflow.service.RequestSecondAuthService" %>
<%@ page import="com.engine.common.util.ServiceUtil" %>
<%@ page import="com.engine.workflow.service.impl.RequestSecondAuthServiceImpl" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Weaver E-Mobile Dev Group" />
<meta name="description" content="Weaver E-mobile" />
<meta name="keywords" content="weaver,e-mobile" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script type='text/javascript' src='/mobile/plugin/1/js/jquery-1.6.2.min_wev8.js'></script>
<style>
body{font-size:14px;font-family: Arial Normal;line-height: 130%}
*{text-decoration: none;margin: 0;padding: 0;list-style: none;}
#hear{width: 100%;height: 40px;line-height: 40px;border-bottom: 1px solid #cccccc;font-size: 15px;}
#hear a{font-weight: normal;color: black;}
#hear li{text-align: center;float: left;height: 40px;}
#hear li:nth-of-type(1){width: 70px;float: left;margin-left:20px;}
#hear li:nth-of-type(2){width: 70px;float: left;margin-left:20px;}
#hear li.action{border-bottom: 2px solid rgba(26, 167, 245, 1);height: 39px;color:rgba(26, 167, 245, 1);}
.certInfoDiv{width: 100%;padding-left: 10px;padding-right: 10px;border-bottom:1px solid #F2F2F2;height: 60px;line-height: 45px;vertical-align: mi}
.maindiv{margin-left: 13px;margin-right: 8px;}
.contentDiv{padding-left: 10px;padding-right: 10px;}
#remarkDiv{padding-left: 10px;padding-right: 10px;}
.headerdiv{padding-left: 10px;height: 30px;background-color: #F3F7FE;line-height: 30px;vertical-align: middle;}
.flag{float: right;width: 18px;width: 18px;padding-top: 6px;padding-right: 4px;}
.tr_header{background-color: #F8FCFF;height: 30px;font-weight: bold;border-bottom:2px solid #E0EDF3;}
.tr_body{border-bottom:1px solid #F2F2F2;height: 50px;}
.authInfo_title{font-size: 15px;height: 20px;vertical-align: middle;}
.authInfo_value{font-size: 12px;color:#545454;height: 20px;vertical-align: middle;}
</style>
</head>
<%
//mouldID=workflow&formid=-301&isbill=1&showdetail=0&tableid=-1&issqlparam=1&splitflag=,
String requestid = Util.null2String(request.getParameter("requestid"));
String workflowid = Util.null2String(request.getParameter("workflowid"));
String formid = Util.null2String(request.getParameter("formid"));
String isbill = Util.null2String(request.getParameter("isbill"));
String nodeid = Util.null2String(request.getParameter("nodeid"));
String logid = Util.null2String(request.getParameter("logid"));
User user = HrmUserVarify.getUser (request , response) ;
String _supportCA = Util.null2String(request.getParameter("_supportCA"));
Map<String,Object> params = new HashMap<String,Object>();
RequestSecondAuthService requestSecondAuthService = ServiceUtil.getService(RequestSecondAuthServiceImpl.class, user);
params.put("requestid",requestid);
params.put("workflowid",workflowid);
params.put("formid",formid);
params.put("isbill",isbill);
params.put("nodeid",nodeid);
params.put("logid",logid);
Map<String,Object> result = requestSecondAuthService.getTamperDatas(params);
String json = JSONObject.toJSONString(result);
//String json = "{\"certInfo\": [{ \"label\": \"签署方信息\", \"value\": \"lxd1@18917830178\" }, { \"label\": \"签名所用算法\", \"value\": \"SHA256withRSA\" }, { \"label\": \"证书颁发机构\", \"value\": \"SHECA Rapid (UniTrust)\" }, { \"label\": \"签署时间\", \"value\": \"2018-11-06 14:38:00\" }, { \"label\": \"签名证书编号\", \"value\": \"98701053188571192004081903748804080912\" }, { \"label\": \"证书有效期\", \"value\": \"2018-11-06 14:37:58 至 2018-11-06 14:47:58\" }] , \"success\": \"1\", \"tamperInfo\": { \"hasRemark\": true, \"hasDetail\": true, \"hasMain\": true, \"remarkChangeLog\": { \"showName1\": \"PHA+dGVzdDwvcD4=\", \"showName2\": \"\" }, \"detailTableList\": [{ \"tableId\": \"dt1\", \"tableName\": \"明细1\" }, { \"tableId\": \"dt2\", \"tableName\": \"明细2\" }, { \"tableId\": \"dt3\", \"tableName\": \"明细3\" }], \"detailChangeLog\": { \"dt1\": { \"data\": [{ \"92147\": { \"fieldName\": \"gznr\", \"fieldLabel\": \"工作内容\", \"showName1\": \"5bel5L2c5YaF5a65Qjxicj7lt6XkvZzlhoXlrrlCPGJyPuW3peS9nOWGheWuuUI8YnI+5bel5L2c\\r\\n5YaF5a65Qjxicj7lt6XkvZzlhoXlrrlC\", \"isBase64\": true, \"fieldId\": \"92147\", \"showName2\": \"5bel5L2c5YaF5a65Mg==\" }, \"92148\": { \"fieldName\": \"wcsj\", \"fieldLabel\": \"完成时间\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"92148\", \"showName2\": \"2018-11-07\" }, \"92149\": { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92149\", \"showName2\": \"5aSH5rOoMg==\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": 1 }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"修改\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }, { \"92147\": { \"fieldName\": \"gznr\", \"fieldLabel\": \"工作内容\", \"showName1\": \"5bel5L2c5YaF5a65MQ==\", \"isBase64\": true, \"fieldId\": \"92147\", \"showName2\": \"\" }, \"92148\": { \"fieldName\": \"wcsj\", \"fieldLabel\": \"完成时间\", \"showName1\": \"2018-11-06\", \"isBase64\": false, \"fieldId\": \"92148\", \"showName2\": \"\" }, \"92149\": { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"showName1\": \"5aSH5rOoMQ==\", \"isBase64\": true, \"fieldId\": \"92149\", \"showName2\": \"\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": \"\" }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"删除\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }], \"columns\": [{ \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"fieldId\": \"C1\" }, { \"fieldName\": \"gznr\", \"fieldLabel\": \"工作内容\", \"fieldId\": \"92147\" }, { \"fieldName\": \"wcsj\", \"fieldLabel\": \"完成时间\", \"fieldId\": \"92148\" }, { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"fieldId\": \"92149\" }, { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"fieldId\": \"C2\" }] }, \"dt3\": { \"data\": [{ \"92348\": { \"fieldName\": \"zz\", \"fieldLabel\": \"作者\", \"showName1\": \"5byg5LiJNQ==\", \"isBase64\": true, \"fieldId\": \"92348\", \"showName2\": \"\" }, \"92349\": { \"fieldName\": \"isbn\", \"fieldLabel\": \"ISBN\", \"showName1\": \"RQ==\", \"isBase64\": true, \"fieldId\": \"92349\", \"showName2\": \"\" }, \"92347\": { \"fieldName\": \"ckzl\", \"fieldLabel\": \"参考资料\", \"showName1\": \"5Y+C6ICD6LWE5paZNQ==\", \"isBase64\": true, \"fieldId\": \"92347\", \"showName2\": \"\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": 5 }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"新增\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }], \"columns\": [{ \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"fieldId\": \"C1\" }, { \"fieldName\": \"ckzl\", \"fieldLabel\": \"参考资料\", \"fieldId\": \"92347\" }, { \"fieldName\": \"zz\", \"fieldLabel\": \"作者\", \"fieldId\": \"92348\" }, { \"fieldName\": \"isbn\", \"fieldLabel\": \"ISBN\", \"fieldId\": \"92349\" }, { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"fieldId\": \"C2\" }] }, \"dt2\": { \"data\": [{ \"92344\": { \"fieldName\": \"wcbl\", \"fieldLabel\": \"完成比例\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92344\", \"showName2\": \"MTA=\" }, \"92345\": { \"fieldName\": \"wcqkgs\", \"fieldLabel\": \"完成情况概述\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92345\", \"showName2\": \"5qaC6L+wMQ==\" }, \"92343\": { \"fieldName\": \"gzx\", \"fieldLabel\": \"工作项\", \"showName1\": \"5bel5L2c6aG5YQ==\", \"isBase64\": true, \"fieldId\": \"92343\", \"showName2\": \"5bel5L2c6aG5MQ==\" }, \"92346\": { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92346\", \"showName2\": \"5piO57uGMuWkh+azqDE=\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": 1 }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"修改\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }, { \"92344\": { \"fieldName\": \"wcbl\", \"fieldLabel\": \"完成比例\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92344\", \"showName2\": \"MzA=\" }, \"92345\": { \"fieldName\": \"wcqkgs\", \"fieldLabel\": \"完成情况概述\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92345\", \"showName2\": \"5qaC6L+wMw==\" }, \"92343\": { \"fieldName\": \"gzx\", \"fieldLabel\": \"工作项\", \"showName1\": \"5bel5L2c6aG5Yw==\", \"isBase64\": true, \"fieldId\": \"92343\", \"showName2\": \"5bel5L2c6aG5Mw==\" }, \"92346\": { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92346\", \"showName2\": \"5piO57uGMuWkh+azqDM=\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": 3 }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"修改\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }, { \"92344\": { \"fieldName\": \"wcbl\", \"fieldLabel\": \"完成比例\", \"showName1\": \"NTA=\", \"isBase64\": true, \"fieldId\": \"92344\", \"showName2\": \"NDA=\" }, \"92345\": { \"fieldName\": \"wcqkgs\", \"fieldLabel\": \"完成情况概述\", \"showName1\": \"5qaC6L+wZA==\", \"isBase64\": true, \"fieldId\": \"92345\", \"showName2\": \"5qaC6L+wNA==\" }, \"92343\": { \"fieldName\": \"gzx\", \"fieldLabel\": \"工作项\", \"showName1\": \"5bel5L2c6aG5ZA==\", \"isBase64\": true, \"fieldId\": \"92343\", \"showName2\": \"5bel5L2c6aG5NA==\" }, \"92346\": { \"fieldName\": \"bz\", \"fieldLabel\": \"备注\", \"showName1\": \"\", \"isBase64\": true, \"fieldId\": \"92346\", \"showName2\": \"5piO57uGMuWkh+azqDQ=\" }, \"C1\": { \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"showName1\": \"\", \"isBase64\": false, \"fieldId\": \"C1\", \"showName2\": 4 }, \"C2\": { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"showName1\": \"修改\", \"isBase64\": false, \"fieldId\": \"C2\", \"showName2\": \"\" } }], \"columns\": [{ \"fieldName\": \"sortNo\", \"fieldLabel\": \"序号\", \"fieldId\": \"C1\" }, { \"fieldName\": \"gzx\", \"fieldLabel\": \"工作项\", \"fieldId\": \"92343\" }, { \"fieldName\": \"wcbl\", \"fieldLabel\": \"完成比例\", \"fieldId\": \"92344\" }, { \"fieldName\": \"wcqkgs\", \"fieldLabel\": \"完成情况概述\", \"fieldId\": \"92345\" }, { \"fieldName\": \"changeType\", \"fieldLabel\": \"变更方式\", \"fieldId\": \"C2\" }] } }, \"mainChangeLog\": [{ \"fieldName\": \"lyr\", \"fieldLabel\": \"留言人\", \"showName1\": \"lxd2\", \"isBase64\": false, \"fieldId\": \"92143\", \"showName2\": \"lxd1\" }, { \"fieldName\": \"lynr\", \"fieldLabel\": \"留言内容\", \"showName1\": \"5pel5YmN77yM6LS15bee55yB5py65p6E5pS56Z2p6K+m57uG5pa55qGI5YWs5biD77yM5aSn5pWw\\r\\n5o2u5Y+R5bGV566h55CG5bGA5Y2H5qC85Li655yB5pS/5bqc55u05bGe5py65p6E44CCPGJyPumV\\r\\nv+Wuieihl+efpeS6i+WPkeeOsO+8jOi/keacn+WFqOWbveWkmuWcsOe6t+e6t+e7hOW7uuaWsOac\\r\\nuuaehOW5tuS4lOWvhumbhuaMgueJjO+8jOWFtuS4reW5v+S4nOOAgeWxseS4nOOAgemHjeW6huOA\\r\\ngeemj+W7uuetieWcsOeahOKAnOWkp+aVsOaNruWxgOKAneato+W8j+aIkOeri+Wkh+WPl+WFs+az\\r\\nqOOAgg==\", \"isBase64\": true, \"fieldId\": \"92146\", \"showName2\": \"55WZ6KiA5YaF5a65\" }] }, \"message\": \"获取数据成功\" }";
//System.out.println("returnJSON==>" + json);
JSONObject jsonobj = (JSONObject)JSONObject.parse(json);
if(jsonobj == null)
return;
JSONObject tamperInfo = jsonobj.getJSONObject("tamperInfo");
JSONArray certInfo = jsonobj.getJSONArray("certInfo");//证书信息
boolean showAuthInfo = true;//是否显示证书信息
boolean needInitCaAuthInfo = false;//是否需要初始化ca证书信息
if(certInfo == null || certInfo.size() == 0){
if("true".equals(_supportCA)){
needInitCaAuthInfo = true;
}else{
showAuthInfo = false;
}
}
%>
<body>
<div>
<ul id="hear">
<%if(showAuthInfo) {%>
<li _value="1">证书信息</li>
<li class="action" _value="2">篡改信息</li>
<%}else{ %>
<li class="action" _value="2">篡改信息</li>
<%} %>
</ul>
</div>
<div id="div_1" style="display: none;">
<%
for(int i = 0;i<certInfo.size();i++){
JSONObject certInfo_item = certInfo.getJSONObject(i);
String label = certInfo_item.getString("label");
String value = certInfo_item.getString("value");
%>
<div class="certInfoDiv">
<div class="authInfo_title"><%=label %></div>
<div class="authInfo_value"><%=value %></div>
</div>
<%}%>
</div>
<div id="div_2">
<%
String hasMain = tamperInfo.getString("hasMain");
String hasDetail = tamperInfo.getString("hasDetail");
if("true".equals(hasMain) || "true".equals(hasDetail)){
%>
<div class="headerdiv" onclick="showDiv('field')">
字段
<img id="fieldImg" src="/mobile/plugin/1/images/flag_up.png" class="flag" alt="" />
</div>
<div id="fieldDiv">
<%
//主表变更信息
JSONArray mainChangeLog = tamperInfo.getJSONArray("mainChangeLog");
int mainFieldSize = mainChangeLog.size();
if(mainFieldSize > 0){
%>
<div class="contentDiv">
<%for(int i = 1;i<=mainFieldSize;i++){
JSONObject mailData = (JSONObject)mainChangeLog.get(i-1);
String fieldLabel = mailData.getString("fieldLabel");
String showName2 = mailData.getString("showName2");//老值
String showName1 = mailData.getString("showName1");//新值
String isBase64 = mailData.getString("isBase64");
if("true".equals(isBase64)){
BASE64Decoder base64Decoder = new BASE64Decoder();
showName2 = new String(base64Decoder.decodeBuffer(showName2),"UTF-8");
showName1 = new String(base64Decoder.decodeBuffer(showName1),"UTF-8");
}
String changeDetail = "%s、[%s]:%s 被改为“<span style='color:red;'>%s</span>”";
changeDetail = String.format(changeDetail, i+"", fieldLabel,showName2,showName1);
out.print(changeDetail);
if(i < mainFieldSize)
out.print("<br>");
} %>
<br/>
</div>
<%} %>
<%
//明细表变更记录
JSONArray detailTableList = tamperInfo.getJSONArray("detailTableList");
int detailTableSize = detailTableList.size();
JSONObject detailChangeLog = tamperInfo.getJSONObject("detailChangeLog");
if(detailChangeLog != null){
for(int i = 0;i<detailTableSize;i++){//明细表循环
JSONObject detail = (JSONObject)detailTableList.get(i);
String tableId = detail.getString("tableId");
String tableName = detail.getString("tableName");
JSONObject detailData = detailChangeLog.getJSONObject(tableId);
if(detailData != null){
out.print("<br>");
out.print("<div class='contentDiv'>" + tableName + "</div>");//明细n
JSONArray detailColumns = detailData.getJSONArray("columns");
JSONArray detailDatas = detailData.getJSONArray("data");
if(detailDatas.size() > 0){
out.print("<div style='width:100%;overflow-x: auto;'>");
String tableWidth= "100%";
if(detailColumns.size() > 4){
tableWidth = detailColumns.size() * 100 + "px";
}
out.print("<table style='border-collapse:collapse;width:"+tableWidth+"'>");
//表头
out.print("<tr class='tr_header'>");
for(int j = 0;j<detailColumns.size();j++){
String columnLabel = detailColumns.getJSONObject(j).getString("fieldLabel");
if("序号".equals(columnLabel)){
out.print("<td align='center' style='width:60px;'>");
}else{
out.print("<td style='width:100px;'>");
}
out.print(detailColumns.getJSONObject(j).getString("fieldLabel"));
out.print("</td>");
}
out.print("</tr>");
//表数据
for(int j = 0;j<detailDatas.size();j++){ //行循环
JSONObject rowData = detailDatas.getJSONObject(j);
String c2_showName1 = rowData.getJSONObject("C2").getString("showName1");
out.print("<tr class='tr_body'>");
for(int k = 0;k<detailColumns.size();k++){ //列循环
String fieldId = detailColumns.getJSONObject(k).getString("fieldId");
JSONObject columnData = rowData.getJSONObject(fieldId);
if(columnData != null){
String showName1 = columnData.getString("showName1");
String showName2 = columnData.getString("showName2");
String isBase64 = columnData.getString("isBase64");//是否base64编码
if("true".equals(isBase64)){
BASE64Decoder base64Decoder = new BASE64Decoder();
showName2 = new String(base64Decoder.decodeBuffer(showName2),"UTF-8");
showName1 = new String(base64Decoder.decodeBuffer(showName1),"UTF-8");
}
if("C1".equals(fieldId))
out.print("<td align='center'>");
else
out.print("<td style='word-wrap:break-word;word-break:break-all;'>");
String brStr = "<br>";
String color = "red";
if(!c2_showName1.equals("修改") || "C2".equals(fieldId))
brStr = "";
out.print(showName2 + brStr + "<span style='color:"+color+";'>" + showName1 + "</span>");
out.print("</td>");
}
}
out.print("</tr>");
}
out.print("</table></div>");
}
}
}
}
%>
</div>
<br/>
<%} %>
<%
String hasRemark = tamperInfo.getString("hasRemark");
if("true".equals(hasRemark)){
%>
<div class="headerdiv" onclick="showDiv('remark')">
签字意见
<img id="remarkImg" src="/mobile/plugin/1/images/flag_up.png" class="flag" alt="" />
</div>
<div id="remarkDiv">
<%
JSONObject remarkChangeLog = tamperInfo.getJSONObject("remarkChangeLog");
String showName1 = remarkChangeLog.getString("showName1");//新的意见
String showName2 = remarkChangeLog.getString("showName2");//历史意见
BASE64Decoder base64Decoder = new BASE64Decoder();
showName2 = new String(base64Decoder.decodeBuffer(showName2),"UTF-8");
showName1 = new String(base64Decoder.decodeBuffer(showName1),"UTF-8");
out.print("由<br>"+showName2+"<br>改成<br>"+showName1);
%>
</div>
<%} %>
</div>
</body>
<script type="text/javascript">
jQuery(function() {
jQuery("#hear li").click(function() {
jQuery(this).addClass("action").siblings().removeClass("action");
var _value = jQuery(this).attr("_value");
jQuery("div[id^='div_']").hide();
jQuery("#div_"+_value).show();
jQuery(".tr_body").bind("mousemove", function() {
jQuery(this).css("background-color","#EBF9FF");
})
jQuery(".tr_body").bind("mouseout", function() {
jQuery(this).css("background-color","");
})
});
<%if(needInitCaAuthInfo){%>
location = 'emobile:CAMethod:{"func":"getCACertInfo","params":{"callback":"setCAAuthInfo"}}';//设置ca证书信息
<%}%>
});
function setCAAuthInfo(certinfo){
if(!!certinfo){
if(typeof certinfo == "string"){
certinfo = JSON.parse(certinfo);
}
var innerHmtl = "";
innerHmtl += getDivInfo("所有者",certinfo.owner);
innerHmtl += getDivInfo("颁发时间",certinfo.startTime);
innerHmtl += getDivInfo("失效时间",certinfo.endTime);
innerHmtl += getDivInfo("加密算法",certinfo.signAlg);
jQuery('#div_1').html(innerHmtl);
}
}
function getDivInfo(title,value){
var result = "<div class='certInfoDiv'><div class='authInfo_title'>"+title+"</div><div class='authInfo_value'>"+value+"</div></div>";
return result;
}
function showDiv(flag){
var imgSrc = jQuery('#'+flag+"Img").attr("src");
if(imgSrc.indexOf("flag_up") > -1){
jQuery('#'+flag+"Div").hide();
jQuery('#'+flag+"Img").attr("src","/mobile/plugin/1/images/flag_down.png");
}else{
jQuery('#'+flag+"Div").show();
jQuery('#'+flag+"Img").attr("src","/mobile/plugin/1/images/flag_up.png");
}
}
</script>
</html>