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

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_vehicle_driver.tld" prefix="vnex_driver" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  5. <%@ page import="java.util.*"%>
  6. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  7. <jsp:useBean id="driverProxy" scope="application" class="com.vnex.intranet.vehicle.driver.proxy.DriverProxyBean" />
  8. <jsp:useBean id="condition" scope="page" class="com.vnex.intranet.vehicle.driver.value.DriverQryBean" />
  9. <%      
  10.     String name = request.getParameter("driverName");       
  11.     if( name == null )
  12.     {
  13.         name = "";        
  14.     }
  15.     condition.setDriverName( name );        
  16.     
  17.     String queryCondition = "姓名中包含有" + name + "的司机";
  18.     if( name.equals("") )    
  19.     {
  20.         queryCondition = "";
  21.     }
  22.     
  23.     String start = "";
  24.     if( request.getParameter("start") != null )
  25.     {
  26.         start = "&start=" + request.getParameter("start");
  27.     }   
  28. %>
  29. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  30. <HTML>
  31. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  32. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  33. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  34. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  35. <script language=JavaScript>
  36. function SelectAll(form)
  37. {
  38.   for (var i=0;i<form.elements.length;i++)
  39.   {
  40.     var e = form.elements[i];
  41.     if (e.name != 'C1')
  42.        e.checked = form.C1.checked;
  43.   }
  44. }
  45. function searchDriver(form)
  46. {
  47.    form.action="/mainctrl/driver/listDriver";
  48.    form.submit();
  49. }
  50. function addDriver(form)
  51. {
  52.    form.action="/mainctrl/driver/addDriver";
  53.    form.submit();
  54. }
  55. function deleteDrivers(form)
  56. {
  57.     if(confirm("是否要删除所选司机?"))
  58.     {
  59.         form.action="/mainctrl/driver/deleteDrivers";
  60.         form.submit();
  61.     }
  62. }
  63. </script>
  64. <DIV align=center>
  65. <form name="myform" method="post" action="">
  66.    
  67.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>     
  68.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  69.     <TR> 
  70.         <TD colSpan=3 align="center"> <br> <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  71.             <tr bgcolor="#fafafa"> 
  72.               <td> 
  73.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  74.                   <tr bgcolor="#666666"> 
  75.                     <td colspan="6" height="15" bgcolor="#666666"><font class="strongw">&nbsp;&nbsp;<a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;司机管理                    
  76.                     </font></td>
  77.                   </tr>
  78.                   <tr> 
  79.                     <td colspan="4" height="30"><font class="strong">&nbsp;&nbsp;姓名:</font>&nbsp; 
  80.                       <input type="text" name="driverName" class="file">&nbsp;
  81.                       <input type="button" name="Submit" value="查询" class="file" onClick="searchDriver(this.form)">
  82.                     </td>
  83.                   </tr>
  84.                 </table>
  85.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  86.                   <tr bgcolor="#fafafa"> 
  87.                     <td colspan="6" height="30">&nbsp;
  88.                       <input type="button" name="Button2" value="新增" onClick="addDriver(this.form)" class="file">&nbsp;&nbsp; 
  89.                       <input type="button" name="Button2" value="删除" onClick="deleteDrivers(this.form)" class="file">                       
  90.                     </td>
  91.                   </tr>                  
  92.                   <tr align=middle> 
  93.                     <td width="7%"><font  class="strong">选择</font></td>
  94.                     <td width="16%"><font  class="strong">姓名</font></td>
  95.                     <td width="21%"><font  class="strong">驾驶证号 </font></td>
  96.                     <td width="14%"><font  class="strong">准驾车型</font></td>
  97.                     <td width="17%"><font  class="strong">备案地点</font></td>
  98.                     <td width="25%"><font  class="strong">领证时间 </font></td>
  99.                   </tr>
  100.                   <vnex_driver:driverList condition="<%= condition %>">                     
  101.                   <vnex:items paging="true">                               
  102.                   <tr bgcolor="<vnex:itemsColor />"> 
  103.                     <td width="7%" align="center" height="19"> 
  104.                         <p align="center"><font size="2" face="宋体"></font> 
  105.                           <input type="checkbox" name="driverId" value="<vnex_driver:driverAttribute attribute="id"/>">
  106.                     </td>
  107.                     <td width="16%" align="left" height="19"><font size="2" face="宋体"> 
  108.                       <p align="center"><a href="/mainctrl/driver/detailDriver?empId=<vnex_driver:driverAttribute attribute="id"/><%= start %>"><vnex_driver:driverAttribute attribute="name"/></a> 
  109.                       </font> </td>
  110.                     <td width="21%" align="left" height="19"><font size="2" face="宋体"> 
  111.                       <p align="center"><vnex_driver:driverAttribute attribute="licence_no"/></a> 
  112.                       </font> </td>
  113.                     <td width="14%" align="left" height="19"><font size="2" face="宋体"> 
  114.                       <p align="center"><vnex_driver:driverAttribute attribute="type_permitted"/></a> 
  115.                       </font> </td>
  116.                     <td width="17%" align="left" height="19"><font size="2" face="宋体"> 
  117.                       <p align="center"><vnex_driver:driverAttribute attribute="address_issued"/></a> 
  118.                       </font> </td>
  119.                     <td width="25%" align="left" height="19"><font size="2" face="宋体"> 
  120.                       <p align="center"><vnex_driver:driverAttribute attribute="time_issued"/></a> 
  121.                       </font> </td>
  122.                   </tr>                        
  123.                   </vnex:items> 
  124.                   <tr>
  125.                       <td align="center" width="7%" bgcolor="#fafafa">
  126.                          <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
  127.                       </td>
  128.                       <td colspan="5" bgcolor="#fafafa">   
  129.                          &nbsp;&nbsp;全选
  130.                      </td>
  131.                   </tr>
  132.                   <tr>
  133.                       <td colspan="6" align="left" bgcolor="#e0e0e0">
  134.                          &nbsp;<vnex:pagingTag pageName="/mainctrl/driver/listDriver?a" />
  135.                       </td>
  136.                   </tr>                            
  137.                   </vnex_driver:driverList>                      
  138.                 </table>
  139.               </td>
  140.             </tr>
  141.           </table>         
  142.          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  143.         </TD>
  144.     </TR>
  145.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  146.     </TABLE>
  147.   <BR>
  148.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  149. </form></DIV>
  150. </BODY></HTML>