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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
  2. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  3. <%@ page import="com.vnex.intranet.directory.proxy.*" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession" %>
  5. <%@ page import="javax.servlet.http.HttpSession" %>
  6. <%@ page import="java.util.ArrayList" %>
  7. <%@ page import="com.vnex.intranet.util.FieldUtil" %>
  8. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  9. <jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" scope="application"/>
  10. <jsp:useBean id="dProxy" class="com.vnex.intranet.directory.proxy.DirectoryProxyBean" scope="application" />
  11. <jsp:useBean id="BusinessName"  class="com.vnex.intranet.pub.BusinessSession"  scope="session"/>
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  13. <HTML>
  14. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  15. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  16. <%
  17.   int id,empId;    
  18.   id = Integer.parseInt(request.getParameter("id"));  
  19.   empId = BusinessName.getEmpId();
  20.   
  21.   if ( !dPermissionProxy.haveDirectoryReadRight(id,empId) )
  22.       response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=read");
  23.     
  24.   int i=0;
  25.   
  26. %>
  27. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
  28. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  29. <DIV align=center>
  30. <form name="form1" method="post" action="">
  31.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  32.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" /> 
  33.     <TR>
  34.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <!--菜单开始 -->
  35.           <br>
  36.            <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  37.             <tr valign="top" bgcolor="#fafafa">
  38.               <td height="27" >
  39.                  <table width="600" border="0" cellpadding="2" cellspacing="0">
  40.                     <tr>
  41.                     <td bgcolor="#666666"><font class=strongw>
  42. <directory:DirectoryNaviBar directoryId='<%=id%>'/>
  43. </font></td>
  44.                     </tr>
  45.                   </table>
  46.                 <br>
  47.                 <table width="600" border="0" cellpadding="2" cellspacing="0">
  48. <directory:DirectoryList superDirectoryId='<%=id%>'  empId='<%=empId%>'>
  49. <vnex:items>
  50. <% if ((i%4) == 0){%>
  51.                 <tr>
  52. <td width="20">&nbsp;</td>
  53. <%}%>
  54. <td width="145">
  55. <input type=hidden name=nouse value=<directory:DirectoryAttribute attribute="isLeaf"/>>
  56. <img value="isLeaf" src="<directory:DirectoryAttribute attribute="imagePath" />">
  57. <%
  58. String isLeaf = (String)pageContext.getAttribute("isLeaf");
  59. if (isLeaf.equals("0")){
  60. %>
  61. <a href="/mainctrl/directory/sub_directory_list?id=<directory:DirectoryAttribute attribute="id"/>"><directory:DirectoryAttribute attribute="name"/></a>
  62. <% }else{
  63. %>
  64. <a href="/mainctrl/directory/file_list?id=<directory:DirectoryAttribute attribute="id"/>"><directory:DirectoryAttribute attribute="name"/></a>
  65. <% }%>
  66. </td>
  67. <% if ((i%4) == 3){%>
  68.                 </tr>
  69. <%} i++;%>
  70. </vnex:items>
  71. </directory:DirectoryList>
  72.                 </table>
  73. <% if (i==0){
  74.       if ("1".equals(request.getParameter("isLeaf"))) %>
  75.     没有任何文档!<br>
  76.                 <%    else %>
  77.                         没有子目录!<br>
  78.             <%}%>
  79.             <br>
  80.                 </td>
  81.             </tr>
  82.           </table>
  83.           <br>
  84.           
  85.          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  86.        </TD>
  87.      </TR>
  88.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  89.     </TBODY> 
  90.   </TABLE>
  91.     <BR>
  92.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  93. </form>
  94. </DIV>
  95. </BODY>
  96. </HTML>
  97. </BODY>
  98. </HTML>