directory_list_sub.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" scope="application"/>
- <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 id = Integer.parseInt(request.getParameter("id"));
- int isLeaf = 0;
- int isFolderList = 0;
- try{
- isLeaf = Integer.parseInt(request.getParameter("isLeaf"));
- isFolderList = Integer.parseInt(request.getParameter("isLeaf"));
- }catch(Exception e){ isLeaf=0; }
- String pageTo = "/mainctrl/directory/management/directory_list_sub?id=" + id + "&isLeaf=" + isLeaf;
- int empId = BusinessName.getEmpId();
- if ( !dPermissionProxy.haveDirectoryReadRight(id,empId) )
- response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=write");
- %>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff
- topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <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 height="27" >
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td bgcolor="#666666"><font class=strongw> <directory:DirectoryNaviBar directoryId='<%=id%>' isAdmin='true'/> </font></td>
- </tr>
- </table>
- <table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
- <tr>
- <td colspan="2" height="30" bgcolor="#fafafa">
- <% if(isLeaf == 1){ %>
- <input type="button" name="Submit2" class=text style="width:70px" value="上载新文件" onClick="location='/mainctrl/directory/management/file_create?id=<%=id%>'" >
- <% }else{ %>
- <input type="button" name="Submit2" class=text style="width:60px" value="新增目录" onClick="location='/mainctrl/directory/management/directory_create?id=<%=id%>'" >
- <% } %>
- </td>
- </tr>
- <directory:DirectoryList superDirectoryId='<%=id%>' >
- <tr>
- <td width="46%" align="center"><font class=strong><% if(isLeaf == 1) {%> 文件列表 <% }else{ %> 下级目录列表 <% } %> </font></td>
- <td width="51%" align="center"><font class=strong>操作</font></td>
- </tr>
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor/>">
- <td width="46%" align="left">
- <%
- if(isLeaf == 1){
- %>
- <img value="isLeaf" src="/vnex/MacOs/write.gif">
- <%
- }
- else
- {
- %>
- <img value="isLeaf" src="<directory:DirectoryAttribute attribute="imagePath" />">
- <%
- }
- %>
- <% if(isLeaf == 1){ %>
- <directory:DirectoryAttribute attribute="name"/>
- <% }else{ %>
- <a href="/mainctrl/directory/management/directory_list_sub?id=<directory:DirectoryAttribute attribute="id"/>&isLeaf=<directory:DirectoryAttribute attribute="isLeaf"/>"><directory:DirectoryAttribute attribute="name"/></a>
- <% } %>
- </td>
- <td width="51%" align="center">
- <% if(isLeaf == 1){ %>
- <input type="button" name="Submit332" class=text value="修改" onClick="location='/mainctrl/directory/management/file_modify?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=1'">
- <input type="button" name="Submit333" class=text value="删除" onClick="if(confirm('确定要删除吗?')) location='/mainctrl/directory/management/file_delete_process?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=1'">
- <% }else{ %>
- <input type="button" name="Submit332" class=text value="修改" onClick="location='/mainctrl/directory/management/directory_modify?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=0'">
- <input type="button" name="Submit334" class=text value="删除" onClick="if(confirm('确定要删除吗?')) location='/mainctrl/directory/management/directory_delete_process?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=0'">
- <% } %>
- </td>
- </tr>
- </vnex:items>
- <tr bgcolor="#fafafa">
- <td colspan="2"> <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </directory:DirectoryList>
- </table>
- </td>
- </tr>
- </table>
- <br>
- <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>