PersonalMoveOut.jsp
3.93 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.docs.category.security.*" %>
<%@ page import="weaver.docs.category.*" %>
<jsp:useBean id="MainCategoryComInfo" class="weaver.docs.category.MainCategoryComInfo" scope="page" />
<jsp:useBean id="SubCategoryComInfo" class="weaver.docs.category.SubCategoryComInfo" scope="page" />
<jsp:useBean id="SecCategoryComInfo" class="weaver.docs.category.SecCategoryComInfo" scope="page" />
<jsp:useBean id="DocUserSelfUtil" class="weaver.docs.docs.DocUserSelfUtil" scope="page" />
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META NAME="AUTHOR" CONTENT="InetSDK">
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<%
AclManager am = new AclManager();
boolean canMove = false ;
int docId= Util.getIntValue(request.getParameter("docId"),0);
int userCategory = Util.getIntValue(request.getParameter("userCategory"),0);
int secId = Util.getIntValue(request.getParameter("txtMoveTo"),0);
int subid = Util.getIntValue(SecCategoryComInfo.getSubCategoryid(""+secId),-1);
int mainid = Util.getIntValue(SubCategoryComInfo.getMainCategoryid(""+subid),-1);
if(am.hasPermission(secId, AclManager.CATEGORYTYPE_SEC, user, AclManager.OPERATION_CREATEDOC)) {
if (secId != -1){
canMove = true;
}
}
%>
</head>
<BODY>
<%
String imagefilename = "/images/hdMaintenance_wev8.gif";
String titlename = SystemEnv.getHtmlLabelName(18493,user.getLanguage())+":"+SystemEnv.getHtmlLabelName(78,user.getLanguage());
String needfav ="";
String needhelp ="";
%>
<%@ include file="/systeminfo/TopTitle_wev8.jsp" %>
<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
<%
if (canMove) {
RCMenu += "{"+SystemEnv.getHtmlLabelName(615,user.getLanguage())+",javascript:onDoSubmit(this),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
}
RCMenu += "{"+SystemEnv.getHtmlLabelName(1290,user.getLanguage())+",javascript:window.history.go(-1),_top} " ;
RCMenuHeight += RCMenuHeightStep ;
%>
<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
<DIV class=HdrProps>
</DIV>
<form method="POST" action="PersonalDocOperation.jsp" name="frmMoveOut">
<input type=hidden name="docId" value="<%=docId%>">
<input type=hidden name="operation" value="fileMoveOut">
<input type=hidden name="userCategory" value="<%=userCategory%>">
<TABLE class=viewForm>
<TBODY>
<TR class=line1><TD colspan="2"></TD></TR>
<tr>
<td width="40%"><%=DocUserSelfUtil.getDocNameAtonce(""+docId)+" "+SystemEnv.getHtmlLabelName(78,user.getLanguage())%>:</td>
<td width="60%" class="field">
<BUTTON type="button" class=Browser onClick="onShowCatalog()" name=selectCategory></BUTTON><span id=spanMoveTo name=spanMoveTo>
<% if (secId!=-1) out.println(CategoryUtil.getCategoryPath(secId)); %></span>
<%if (!canMove) out.println(" <font color=#FF0066>"+SystemEnv.getHtmlLabelName(18498,user.getLanguage())+"</font>");%>
<input type="hidden" id="txtMoveTo" name="txtMoveTo" value="<%=secId%>">
</td>
<TR class=line><TD colspan="2"></TD></TR>
</tbody>
</table>
</form>
</body>
</html>
<script language="javaScript">
function onShowCatalog() {
var result = showModalDialog("/systeminfo/BrowserMain.jsp?url=/docs/category/MultiCategorySingleBrowser.jsp");
if (result != null) {
if (result[0] > 0) {
document.all("txtMoveTo").value= result[1] ;
document.frmMoveOut.action='PersonalMoveOut.jsp'
document.frmMoveOut.submit()
} else {
document.all("txtMoveTo").value= "" ;
document.frmMoveOut.action='PersonalMoveOut.jsp'
document.frmMoveOut.submit()
}
}
}
function onDoSubmit(obj) {
obj.disabled = true ;
frmMoveOut.submit() ;
}
</script>