NoRight.jsp
2.4 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/page/maint/common/initNoCache.jsp" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
<jsp:useBean id="cmutil" class="weaver.workrelate.util.CommonTransUtil" scope="page"/>
<%
String taskId = Util.null2String(request.getParameter("taskId"));
int right = cmutil.getRight(taskId,user);
if(right>0){
response.sendRedirect("DetailView.jsp?taskId="+taskId);
return;
}
rs.executeSql("select principalid,creater from TM_TaskInfo where id="+taskId+" and (deleted=0 or deleted is null)");
//if(rs.getCounts()==0) return;
String principalid = "";
String creater = "";
boolean ifExits = false;
if(rs.next()){
principalid = Util.null2String(rs.getString("principalid"));
creater = Util.null2String(rs.getString("creater"));
ifExits = true;
}
%>
<style type="text/css">
#rightinfo a,#rightinfo a:active,#rightinfo a:visited{text-decoration: none;color: #000000;}
#rightinfo a:hover{text-decoration: underline;color: #0080FF;}
</STYLE>
<div id="rightinfo" style="width: 100%;height: 100%;position: relative;overflow: hidden;">
<div style="width: 100%;height: 30px;background: #F2F2F2;position: relative;
background:-webkit-gradient(linear, 0 0, 0 bottom, from(#F2F2F2), to(#F6F6F6)) !important;
background:-moz-linear-gradient(#F2F2F2, #D7D7D7) !important;
-pie-background:linear-gradient(#F2F2F2, #D7D7D7) !important;">
<div style="position: absolute;top: 3px;left:0px;height: 23px;width: 100%;">
<div style="margin-left: 10px;font-weight: bold;width: 100px;background: url('../images/warn.png') left center no-repeat;text-align: center;">
<%=SystemEnv.getHtmlLabelName(558,user.getLanguage()) %></div>
</div>
</div>
<div id="maininfo" style="width:100%;height: auto;position:absolute;top:30px;left:0px;bottom:0px;
line-height: 40px;font-size: 14px;" class="scroll1" align="center">
<%if(ifExits){ %>
<%=SystemEnv.getHtmlLabelName(382539,user.getLanguage()) %><br>
<%=SystemEnv.getHtmlLabelName(382540,user.getLanguage()) %>:<%=cmutil.getPerson(creater) %>
<%if(!principalid.equals("") && !principalid.equals(creater)){ %>
<%=SystemEnv.getHtmlLabelName(382544,user.getLanguage()) %>:<%=cmutil.getPerson(principalid) %>
<%} %><%=SystemEnv.getHtmlLabelName(382545,user.getLanguage()) %>!
<%}else{ %>
<%=SystemEnv.getHtmlLabelName(382546,user.getLanguage()) %>!
<%} %>
</div>
</div>