Address_home.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <!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 removeCompanys()
- {
- if( document.myform.companyIds==null )
- {
- alert("没有要删除的公司。");
- return false;
- }
- if( !isChecked(document.myform.companyIds) )
- {
- alert("请选择要删除的公司。");
- return false;
- }
- if(!confirm("是否确定删除?"))
- {
- return false;
- }
- myform.action= "/mainctrl/commoninfo/addresslist/removeAddressListSuccess";
- 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 class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr>
- <td colspan="3" bgcolor="#666666">
- <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>
- <tr bgcolor="#fafafa">
- <td colspan="3" height="30">
- <input type="button" name="Button322" value="新增" class="text" onClick="location='/mainctrl/commoninfo/addresslist/createAddressList'">
- <input type="button" name="Button3223" value="删除" class="text" onClick="return removeCompanys()">
- </td>
- </tr>
- <tr align=middle>
- <td width="7%"><font class="strong">选择</font></td>
- <td width="83%"><font class="strong">公司名称</font></td>
- <td width="10%"><font class="strong">操作</font></td>
- </tr>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.commoninfo.addresslist.value.*"%>
- <%@ page import="com.vnex.intranet.commoninfo.addresslist.proxy.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <jsp:useBean id="addressListProxy" class="com.vnex.intranet.commoninfo.addresslist.proxy.AddressListProxyBean" scope="application" />
- <%
- Collection coll = addressListProxy.getAddressList();
- AddressListValueBean avb = null;
- int start = 1;
- if ( request.getParameter("start") !=null )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- //int rowPerPage = com.vnex.intranet.statictable.ConfigParaLoader.getParameterByInt("rowNum");
- int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");
- int size = coll.size();
- String action = "/mainctrl/commoninfo/addresslist/getAddressList?";
- 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++;
- avb = (AddressListValueBean)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="companyIds" value="<%= avb.getCompanyId()%>">
- </td>
- <td width="83%"><a href="/mainctrl/commoninfo/addresslist/detailAddressList?companyId=<%= avb.getCompanyId()%>&sstart=<%= start%>"><%= avb.getCompanyName()%></a></td>
- <td width="10%"><a href="/mainctrl/commoninfo/addresslist/modifyAddressList?companyIds=<%= avb.getCompanyId()%>&start=<%= start%>">修改</a></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="2">
- 全选
- </td>
- </tr>
- <%
- }
- %>
- <tr>
- <td bgcolor="#e0e0e0" colspan="3">
- <%= nav %>
- </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>