Directory_Home.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.commoninfo.directory.value.*"%>
- <%@ page import="com.vnex.intranet.commoninfo.directory.proxy.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <jsp:useBean id="directoryProxy" class="com.vnex.intranet.commoninfo.directory.proxy.DirectoryProxyBean" scope="application" />
- <!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">
- <script language="javascript" src="/vnex/validate.js" ></script>
- <script language=JavaScript>
- function createDirectory()
- {
- myform.action= "/mainctrl/commoninfo/directory/createDirectory";
- myform.submit();
- }
- function removeDirectorys()
- {
- if(document.myform.directoryIds==null)
- {
- alert("没有要删除的办事指南。");
- return false;
- }
- if( !isChecked(document.myform.directoryIds) )
- {
- alert("请选择要删除的办事指南。");
- return false;
- }
- if(!confirm("是否确定删除?"))
- {
- return false;
- }
- myform.action= "/mainctrl/commoninfo/directory/removeDirectorySuccess";
- myform.submit();
- }
- function modifyDirectory()
- {
- if( !isCheckedOne(document.myform.directoryIds) )
- {
- alert("请选择一个要修改的办事指南。");
- return false;
- }
- myform.action= "/mainctrl/commoninfo/directory/modifyDirectory";
- myform.submit();
- }
- function CheckAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'chkall')
- e.checked = form.chkall.checked;
- }
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <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"><br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="2" height="15"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>>办事指南</font></td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>
- <tr bgcolor="#fafafa">
- <td colspan="4" height="30">
- <input type="button" name="Button322" value="新增" class="text" onClick="createDirectory()">
- <input type="button" name="Button322" value="删除" class="text" onClick="return removeDirectorys()">
- </td>
- </tr>
- <tr align=middle>
- <td width="7%"><font class="strong">选择</font></td>
- <td width="31%"><font class="strong">名称</font></td>
- <td width="31%"><font class="strong">发布部门</font></td>
- <td width="31%"><font class="strong">发布时间</font></td>
- </tr>
- <%
- Collection coll = directoryProxy.getDirectoryList();
- DirectoryValueBean rvb = null;
- int start = 1;
- if ( request.getParameter("start") !=null )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
- int size = coll.size();
- String action = "/mainctrl/commoninfo/directory/getDirectoryList?";
- String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
- int i = 0;
- if(coll != null && coll.size() != 0)
- {
- Iterator it = coll.iterator();
- int flag = 0;
- String bgcolor = null;
- while( it.hasNext() && i < size && i < ( start+rowPerPage-1) )
- {
- i++;
- rvb = (DirectoryValueBean)it.next();
- if ( i < start ) continue;
- if( flag%2==0 )
- {
- bgcolor = "#e0e0e0";
- }
- else
- {
- bgcolor = "#fafafa";
- }
- %>
- <tr align=middle bgcolor="<%= bgcolor%>">
- <td width="7%">
- <input type="checkbox" name="directoryIds" value="<%= rvb.getDirectoryId()%>">
- </td>
- <td width="31%"><a href="/mainctrl/commoninfo/directory/detailDirectory?directoryId=<%= rvb.getDirectoryId()%>&start=<%= start%>"><%= FieldUtil.filterScriptTag(rvb.getDirectoryName())%></a></td>
- <td width="31%"><%= rvb.getDirectoryDepartment()%></td>
- <td width="31%"><% if(rvb.getPublishDate()!=null) out.println(rvb.getPublishDate().toString().substring(0,16)); else out.println(rvb.getPublishDate());%></td>
- </tr>
- <%
- flag++;
- }
- }
- %>
- <%
- if(size!=0)
- {
- %>
- <tr bgcolor="#fafafa">
- <td align="middle">
- <input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)">
- </td>
- <td colspan="3"> 全选</td>
- </tr>
- <%
- }
- %>
- <tr align=middle>
- <td bgcolor="#e0e0e0" colspan="4">
- <div align="left"> <%= nav %></div>
- </td>
- </tr>
- </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>