directory_list_sub.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:4k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ page import="com.vnex.intranet.directory.proxy.*" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession" %>
- <%@ page import="javax.servlet.http.HttpSession" %>
- <%@ page import="java.util.ArrayList" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="dPermissionProxy" class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean" scope="application"/>
- <jsp:useBean id="dProxy" class="com.vnex.intranet.directory.proxy.DirectoryProxyBean" 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" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <%
- int id,empId;
- id = Integer.parseInt(request.getParameter("id"));
- empId = BusinessName.getEmpId();
- if ( !dPermissionProxy.haveDirectoryReadRight(id,empId) )
- response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=read");
- int i=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%>'/>
- </font></td>
- </tr>
- </table>
- <br>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <directory:DirectoryList superDirectoryId='<%=id%>' empId='<%=empId%>'>
- <vnex:items>
- <% if ((i%4) == 0){%>
- <tr>
- <td width="20"> </td>
- <%}%>
- <td width="145">
- <input type=hidden name=nouse value=<directory:DirectoryAttribute attribute="isLeaf"/>>
- <img value="isLeaf" src="<directory:DirectoryAttribute attribute="imagePath" />">
- <%
- String isLeaf = (String)pageContext.getAttribute("isLeaf");
- if (isLeaf.equals("0")){
- %>
- <a href="/mainctrl/directory/sub_directory_list?id=<directory:DirectoryAttribute attribute="id"/>"><directory:DirectoryAttribute attribute="name"/></a>
- <% }else{
- %>
- <a href="/mainctrl/directory/file_list?id=<directory:DirectoryAttribute attribute="id"/>"><directory:DirectoryAttribute attribute="name"/></a>
- <% }%>
- </td>
- <% if ((i%4) == 3){%>
- </tr>
- <%} i++;%>
- </vnex:items>
- </directory:DirectoryList>
- </table>
- <% if (i==0){
- if ("1".equals(request.getParameter("isLeaf"))) %>
- 没有任何文档!<br>
- <% else %>
- 没有子目录!<br>
- <%}%>
- <br>
- </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>
- </BODY>
- </HTML>