list.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
- <%@ page import="java.util.*"%>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
- <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.vehicle.driver.value.DriverQryBean" />
- <%
- String name = request.getParameter("driverName");
- if( name == null )
- {
- name = "";
- }
- condition.setDriverName( name );
- String queryCondition = "姓名中包含有" + name + "的司机";
- if( name.equals("") )
- {
- queryCondition = "";
- }
- String start = "";
- if( request.getParameter("start") != null )
- {
- start = "&start=" + request.getParameter("start");
- }
- %>
- <!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="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language=JavaScript>
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- function searchDriver(form)
- {
- form.action="/mainctrl/driver/listDriver";
- form.submit();
- }
- function addDriver(form)
- {
- form.action="/mainctrl/driver/addDriver";
- form.submit();
- }
- function deleteDrivers(form)
- {
- if(confirm("是否要删除所选司机?"))
- {
- form.action="/mainctrl/driver/deleteDrivers";
- form.submit();
- }
- }
- </script>
- <DIV align=center>
- <form name="myform" 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"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#fafafa">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="6" height="15" 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>
- <td colspan="4" height="30"><font class="strong"> 姓名:</font>
- <input type="text" name="driverName" class="file">
- <input type="button" name="Submit" value="查询" class="file" onClick="searchDriver(this.form)">
- </td>
- </tr>
- </table>
- <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
- <tr bgcolor="#fafafa">
- <td colspan="6" height="30">
- <input type="button" name="Button2" value="新增" onClick="addDriver(this.form)" class="file">
- <input type="button" name="Button2" value="删除" onClick="deleteDrivers(this.form)" class="file">
- </td>
- </tr>
- <tr align=middle>
- <td width="7%"><font class="strong">选择</font></td>
- <td width="16%"><font class="strong">姓名</font></td>
- <td width="21%"><font class="strong">驾驶证号 </font></td>
- <td width="14%"><font class="strong">准驾车型</font></td>
- <td width="17%"><font class="strong">备案地点</font></td>
- <td width="25%"><font class="strong">领证时间 </font></td>
- </tr>
- <vnex_driver:driverList condition="<%= condition %>">
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />">
- <td width="7%" align="center" height="19">
- <p align="center"><font size="2" face="宋体"></font>
- <input type="checkbox" name="driverId" value="<vnex_driver:driverAttribute attribute="id"/>">
- </td>
- <td width="16%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><a href="/mainctrl/driver/detailDriver?empId=<vnex_driver:driverAttribute attribute="id"/><%= start %>"><vnex_driver:driverAttribute attribute="name"/></a>
- </font> </td>
- <td width="21%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_driver:driverAttribute attribute="licence_no"/></a>
- </font> </td>
- <td width="14%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_driver:driverAttribute attribute="type_permitted"/></a>
- </font> </td>
- <td width="17%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_driver:driverAttribute attribute="address_issued"/></a>
- </font> </td>
- <td width="25%" align="left" height="19"><font size="2" face="宋体">
- <p align="center"><vnex_driver:driverAttribute attribute="time_issued"/></a>
- </font> </td>
- </tr>
- </vnex:items>
- <tr>
- <td align="center" width="7%" bgcolor="#fafafa">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="5" bgcolor="#fafafa">
- 全选
- </td>
- </tr>
- <tr>
- <td colspan="6" align="left" bgcolor="#e0e0e0">
- <vnex:pagingTag pageName="/mainctrl/driver/listDriver?a" />
- </td>
- </tr>
- </vnex_driver:driverList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>