📄 file_modify.jsp
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.directory.proxy.DirectoryProxyBean" %>
<%@ page import="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" %>
<%@ page import="com.vnex.intranet.directory.value.DirectoryValueBean" %>
<%@ page import="com.vnex.intranet.directory.value.FileValueBean" %>
<%@ taglib uri="/vnex_hr.tld" prefix="emp" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
<jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean"/>
<jsp:useBean id="dProxy" class="com.vnex.intranet.directory.proxy.DirectoryProxyBean"/>
<jsp:useBean id="BusinessName" class="com.vnex.intranet.pub.BusinessSession" scope="session"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<%
int i = 0;
int userId = BusinessName.getEmpId();
int id = Integer.parseInt(request.getParameter("id"));
if (!dPermissionProxy.isCreator(id,userId))
{
response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=modify");
return;
}
FileValueBean tmpBean = (FileValueBean) dProxy.getDirectoryInfo(id);
int[] readers = dPermissionProxy.getReadRight(id);
int[] writers = dPermissionProxy.getWriteRight(id);
%>
<script language="JavaScript1.2" src="/vnex/util/popSelect.js"></script>
<script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
<script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<script language="JavaScript">
function dosubmit()
{
if(isEmpty(form1.directoryName.value) || isEmptyStr(form1.directoryName.value) )
{
alert("文件名称不能为空!");
form1.fileName.focus();
return;
}
if (isInvalidateLen(form1.directoryName.value,30))
{
alert("文件名称长度不能大于30!");
form1.fileName.focus();
return;
}
selectAll(document.forms[0].selectedIDList);
selectAll(document.forms[0].selectedIDListWrite);
form1.action="/mainctrl/directory/management/file_modify_process";
form1.submit();
}
function doupload()
{
if(isEmpty(form1.uploadFile.value) || isEmptyStr(form1.uploadFile.value) )
{
alert("重新上传时不能为空!");
form1.uploadFile.focus();
return;
}
form1.action="/mainctrl/directory/management/file_upload_modify_process?id=<%= id%>&superId=<%= request.getParameter("superId")%>";
form1.encoding="multipart/form-data";
form1.submit();
}
function doview()
{
window.open("/mainctrl/directory/file_content?id=<%=request.getParameter("id")%>");
}
</script>
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff
topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<DIV align=center>
<form name="form1" method="post">
<input type=hidden name="id" value="<%= id%>">
<input type=hidden name="superId" value="<%= request.getParameter("superId")%>">
<input type=hidden name="storageType" value="<%= tmpBean.getStorageType()%>">
<input type=hidden name="isLeaf" value=1>
<TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
<TBODY>
<jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
<TR>
<TD colSpan=3 align="center" class="iframestyle" valign="top">
<br>
<table width="600" border="1" cellspacing="1" bordercolor="#666666">
<tr valign="top" bgcolor="#fafafa">
<td bgcolor="#fafafa">
<table width="600" border="0" cellpadding="2" cellspacing="0">
<tr>
<td bgcolor="#666666"><font class=strongw>
<directory:DirectoryNaviBar1 isAdmin="true"/>文件属性修改</font></td>
</tr>
</table>
<table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 文件名称:</font></td>
<td width="474">
<input type="text" name="directoryName" size="24" class=text value="<%= tmpBean.getDirectoryName() %>" maxlength="30">
* (注:带*为必填内容)
</td>
</tr>
<tr bgcolor="#fafafa">
<td width="115" bgcolor="#fafafa"><font class=strong> 上传文件:</font></td>
<td width="474">
<input type="file" name="uploadFile" class=file>
<input type="button" name="Submit41" class=file value="重新上传" onClick="doupload()">
<input type="button" name="Submit42" class=file value="查看文件内容" onClick="doview()" >
<!-- <input type="file" name="file2" class=text size="24" disabled > -->
<!-- <%= tmpBean.getLocation() %> -->
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 限制读权限:</font></td>
<td width="474">
<input type="radio" onclick="form1.selectedIDList.disabled=false;" name="readControl" value="1" <%= (tmpBean.getControlRead() == 1)? "checked" : "" %>>
是
<input type="radio" onclick="form1.selectedIDList.disabled=true;" name="readControl" value="0" <%= (tmpBean.getControlRead() == 0)? "checked" : "" %>>
否</td>
</tr>
<tr bgcolor="#fafafa">
<td width="115"><font class=strong> 分配读权限:</font></td>
<td width="474">
<input type="hidden" name="updated" value="false">
<input type="hidden" name="tempHidden" value="">
<select name="selectedIDList" size="6" multiple style="width:260" <%= (tmpBean.getControlRead() == 0)? "disabled" : "" %>>
<% if ( readers != null ) { %>
<emp:EmployeeList empIds='<%= readers%>'> <vnex:items>
<option value="<emp:EmployeeAttribute attribute="id"/>;null">
<emp:EmployeeAttribute attribute="employee_name"/>
</option>
</vnex:items> </emp:EmployeeList>
<% } %>
</select>
<input type="button" style="width:80px" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList(selectedIDList)">
<input type="button" name="Submit6" value="删除" class="file" onClick="javascript:remove1(selectedIDList)">
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="115"><font class=strong> 限制写权限:</font></td>
<td width="474">
<input type="radio" name="writeControl" onclick="form1.selectedIDListWrite.disabled=false;" value="1" <%= (tmpBean.getControlWrite() == 1)? "checked" : "" %>>
是
<input type="radio" name="writeControl" onclick="form1.selectedIDListWrite.disabled=true;" value="0" <%= (tmpBean.getControlWrite() == 0)? "checked" : "" %>>
否</td>
</tr>
<tr bgcolor="#fafafa">
<td width="115"><font class=strong> 分配写权限:</font></td>
<td width="474">
<input type="hidden" name="updated2" value="false">
<input type="hidden" name="tempHidden2" value="">
<select name="selectedIDListWrite" size="6" multiple style="width:260" <%= (tmpBean.getControlWrite() == 0)? "disabled" : "" %>>
<% if ( writers != null ) { %>
<emp:EmployeeList empIds='<%= writers%>'> <vnex:items>
<option value="<emp:EmployeeAttribute attribute="id"/>;null">
<emp:EmployeeAttribute attribute="employee_name"/>  
</option>
</vnex:items> </emp:EmployeeList>
<% } %>
</select>
<input type="button" style="width:70px" name="Submit2" value="按部门选择" class="file" onClick="javascript:addList2(selectedIDListWrite)">
<input type="button" name="Submit5" value="删除" class="file" onClick="javascript:remove1(selectedIDListWrite)">
</td>
</tr>
<tr align="center" bgcolor="#e0e0e0">
<td colspan="2" height="30">
<input type="button" name="SubmitCommit" class=text value="保存" onClick="dosubmit()">
<input type="submit" name="Reset" value="重置" class=text >
<input type="button" name="SubmitReturn" class=text onClick="location='/mainctrl/directory/management/directory_list_sub?id=<%= request.getParameter("superId")%>&isLeaf=1'" value="放弃">
</td>
</tr>
</table>
</td></tr></table>
<br>
<jsp:include page="/vnex/page/TTOA_HELP.jsp" />
</TD>
</TR>
<jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
</TBODY>
</TABLE>
<BR>
<jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
</form>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -