detailview.jsp
5.71 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.Map" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.*" %>
<%@ page import="weaver.general.StaticObj" %>
<%
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
String clienttype = Util.null2String((String)request.getParameter("clienttype"));
String sessionkey = Util.null2String((String)request.getParameter("sessionkey"));
if("".equals(sessionkey)){
return;
}
String workflowId = Util.null2String(request.getParameter("workflowId"));
//2015/12/07 获取次账号信息 start
//int userId = Util.getIntValue(request.getParameter("userid"), 0);
String f_weaver_belongto_userid = Util.null2String(request.getParameter("f_weaver_belongto_userid"));//需要增加的代码
String f_weaver_belongto_usertype = Util.null2String(request.getParameter("f_weaver_belongto_usertype"));//需要增加的代码
User user = HrmUserVarify.getUser(request, response, f_weaver_belongto_userid, f_weaver_belongto_usertype) ;//需要增加的代码
if(user == null) return ;
//2015/12/07 获取次账号信息 end
String content = "";
Map mapWfContents = (Map)StaticObj.getInstance().getObject("SESSION_VIEW_CONTENT_NEWS_OR_WKFLW");
if(mapWfContents != null && mapWfContents.size() != 0){
String disContent = (String)request.getParameter("content");
//String wfContentKey = sessionkey + "_"+ workflowId + "_"+ userId + "_" + disContent;
String wfContentKey = sessionkey + "_"+ workflowId + "_"+ user.getUID() + "_" + disContent;
content = (String)mapWfContents.get(wfContentKey);
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link rel="stylesheet" href="/mobile/plugin/css/mobile_wev8.css" type="text/css">
<style type="text/css">
/* 顶部退回导航栏Start */
.headNavigation {
width:100%;
height:43px;border-bottom:1px solid #838A9A;margin:0;
background:#AAAFBC;
background: -moz-linear-gradient(0, #F4F5F7, #AAAFBC);
background:-webkit-gradient(linear, 0 0, 0 100%, from(#F4F5F7), to(#AAAFBC));
font-size:12px;
color:#1D3A66;
}
.back {
float:left;
margin-left:5px;
background:url(/images/back_wev8.png) 0 0 no-repeat;
cursor: hand;
}
.logout {
float:right;
margin-right:5px;
background:url(/images/logout_wev8.png) 0 0 no-repeat;
}
.oprtbt {
width:52px;
height:31px;
overflow:hidden;
text-align:center;
line-height:30px;
margin-top:6px;
}
/* 顶部退回导航栏 END*/
.content {
background:url(/images/news/viewBg_wev8.png) repeat;margin:0;
width:100%;
}
.maincontent {
margin-left:8px;margin-right:8px;padding-top:12px;
}
.articleBody {
width:100%;
border-left:1px solid #C5CACE;
border-right:1px solid #C5CACE;
border-bottom:1px solid #C5CACE;
background:#fff;
-moz-border-bottom-left-radius: 5px;
-moz-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 5px;
border-bottom-left-radius:5px;
border-bottom-left-radius:5px;
width:100%;
}
.articleBody .viewBlock {
margin-left:8px;margin-right:8px;padding-top:10px;padding-bottom:10px;font-size:12px;
}
/* 栏目块Head START */
.blockHead {
width:100%;
height:24px;
line-height:24px;
font-size:12px;
font-weight:bold;
color:#fff;
border-top:1px solid #0084CB;
border-left:1px solid #0084CB;
border-right:1px solid #0084CB;
-moz-border-top-left-radius: 5px;
-moz-border-top-right-radius: 5px;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
border-top-left-radius:5px;
border-top-left-radius:5px;
background:#0084CB;
background: -moz-linear-gradient(0, #31B1F6, #0084CB);
background:-webkit-gradient(linear, 0 0, 0 100%, from(#31B1F6), to(#0084CB));
}
.m-l-14 {
margin-left:14px;
}
/* 栏目块Head END */
/* 列表项后置导航 */
.itemnavpoint {
float:right;height:100%;width:26px;text-align:center;
}
/* 列表项后置导航图 */
.itemnavpoint img {
width:10px;
heigth:14px;
margin-top:16px;
}
.subtitle {
height:17px;line-height:17px;font-size:12px;
}
.title {
height:33px;line-height:33px;font-weight:bold;
}
.linespace {
height:12px;overflow:hidden;
}
</style>
<SCRIPT type="text/javascript">
var contentWidth = -1;
$(document).ready(function () {
var scrollWidth = $(".viewBlock")[0].scrollWidth;
//$(document.body).width(scrollWidth + 100);
contentWidth = scrollWidth;
if (window.innerWidth >= contentWidth) {
$(document.body).width("100%");
} else {
$(document.body).width(contentWidth + 100);
}
});
window.onresize = function () {
if (window.innerWidth >= contentWidth) {
$(document.body).width("100%");
} else {
$(document.body).width(contentWidth + 100);
}
};
function doLeftButton() {
goBack();
return 1;
}
function goBack() {
history.go(-1);
}
</SCRIPT>
</head>
<body>
<div>
<div id="view_header" style="<%if (clienttype.equals("Webclient")) {%>display:block;<%} else {%>display:none;<%}%>">
<table style="width:100%;height:40px;font-size:13px;">
<tr>
<td width="10%" align="left" valign="middle" style="padding-left:5px;">
<a href="javascript:goBack();">
<div style="width:56px;height:26px;background:url('/images/bg-top-btn_wev8.png') no-repeat;text-align:center;line-height:26px;color:#000;">
返回
</div>
</a>
</td>
</tr>
</table>
</div>
<div class="content">
<div class="maincontent">
<!-- 内容正文 -->
<div class="blockHead">
<span class="m-l-14">原文</span>
</div>
<div class="articleBody">
<div class="viewBlock">
<%=content %>
</div>
</div>
<!-- 间隔-->
<div class="linespace"></div>
</div>
</div>
</div>
</body></html>