directory_list_sub.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" scope="application"/>
  5. <jsp:useBean id="BusinessName"  class="com.vnex.intranet.pub.BusinessSession"  scope="session"/>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  7. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  8. <% 
  9.    int id = Integer.parseInt(request.getParameter("id"));   
  10.    int isLeaf = 0;
  11.    int isFolderList = 0;
  12.    try{
  13.        isLeaf = Integer.parseInt(request.getParameter("isLeaf"));
  14.        isFolderList = Integer.parseInt(request.getParameter("isLeaf"));
  15.    }catch(Exception e){ isLeaf=0; }
  16.    String pageTo = "/mainctrl/directory/management/directory_list_sub?id=" + id + "&isLeaf=" + isLeaf;   
  17.    int empId = BusinessName.getEmpId();
  18.    if ( !dPermissionProxy.haveDirectoryReadRight(id,empId) )
  19.     response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=write");
  20.    
  21. %>
  22. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  23. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
  25. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  26. <DIV align=center>
  27. <form name="form1" method="post" action="">
  28.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  29.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" /> 
  30.     <TR> 
  31.         <TD colSpan=3 align="center" class="iframestyle" valign="top">
  32.           <br>
  33.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  34.             <tr valign="top" bgcolor="#fafafa"> 
  35.               <td height="27" > 
  36.                  <table width="600" border="0" cellpadding="2" cellspacing="0">
  37.                     <tr>                       
  38.                     <td bgcolor="#666666"><font class=strongw> <directory:DirectoryNaviBar directoryId='<%=id%>' isAdmin='true'/> </font></td>
  39.                     </tr>
  40.                   </table>
  41.                                    
  42.                 <table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
  43.                   <tr> 
  44.                     <td colspan="2" height="30" bgcolor="#fafafa">&nbsp;
  45.                       <% if(isLeaf == 1){ %> 
  46.                       <input type="button" name="Submit2" class=text style="width:70px" value="上载新文件" onClick="location='/mainctrl/directory/management/file_create?id=<%=id%>'" >
  47.                       <% }else{ %>
  48.                       <input type="button" name="Submit2" class=text style="width:60px" value="新增目录" onClick="location='/mainctrl/directory/management/directory_create?id=<%=id%>'" >
  49.                       <% } %>
  50.                     </td>
  51.                   </tr>
  52. <directory:DirectoryList superDirectoryId='<%=id%>' >
  53.                   <tr> 
  54.                     <td width="46%" align="center"><font class=strong><% if(isLeaf == 1) {%> 文件列表 <% }else{ %> 下级目录列表 <% } %> </font></td>
  55.                     <td width="51%" align="center"><font class=strong>操作</font></td>
  56.                   </tr>
  57. <vnex:items paging="true">
  58.                   <tr bgcolor="<vnex:itemsColor/>"> 
  59.                     <td width="46%" align="left">&nbsp;&nbsp;
  60. <%
  61. if(isLeaf == 1){
  62. %>
  63.                     <img value="isLeaf" src="/vnex/MacOs/write.gif">
  64. <%
  65. }
  66. else
  67. {
  68. %>
  69.                     <img value="isLeaf" src="<directory:DirectoryAttribute attribute="imagePath" />">
  70.                     <%
  71. }
  72. %>
  73.                     <% if(isLeaf == 1){ %>
  74.                     <directory:DirectoryAttribute attribute="name"/>
  75.                     <% }else{ %>
  76.                     <a href="/mainctrl/directory/management/directory_list_sub?id=<directory:DirectoryAttribute attribute="id"/>&isLeaf=<directory:DirectoryAttribute attribute="isLeaf"/>"><directory:DirectoryAttribute attribute="name"/></a>
  77.                     <% } %>
  78.                     </td>
  79.                     <td width="51%" align="center"> 
  80.                       <% if(isLeaf == 1){ %>
  81.                       <input type="button" name="Submit332" class=text value="修改" onClick="location='/mainctrl/directory/management/file_modify?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=1'">                                                                 
  82.                       <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'">
  83.                       <% }else{ %>
  84.                       <input type="button" name="Submit332" class=text value="修改" onClick="location='/mainctrl/directory/management/directory_modify?id=<directory:DirectoryAttribute attribute="id"/>&superId=<%= id%>&isLeaf=0'">
  85.                       <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'">
  86.                       <% } %>
  87.                     </td>
  88.                   </tr>
  89. </vnex:items>
  90.                   <tr bgcolor="#fafafa">
  91.                      <td colspan="2">&nbsp;<vnex:pagingTag pageName="<%=pageTo%>" />
  92.                      </td>
  93.                   </tr>
  94. </directory:DirectoryList>
  95.                 </table>
  96.                </td>
  97.             </tr>
  98.           </table>
  99.           <br>
  100.           <br>
  101.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  102.        </TD>
  103.      </TR>
  104.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  105.     </TBODY> 
  106.   </TABLE>
  107.     <BR>
  108.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  109. </form>
  110. </DIV>
  111. </BODY>
  112. </HTML>