⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vehiclebasicinfolist.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.VehicleBasicInfoRecordSet" %>
<%@ page import="java.util.*" %>
<%@ page import="cn.com.aheadsoft.util.UserInfo" %>
<%@ page import="cn.com.aheadsoft.manage.UserPurviewManage" %>

<%
 List userdata=(List)session.getAttribute("userdata") ;
 VehicleBasicInfoRecordSet recordset=(VehicleBasicInfoRecordSet)userdata.get(0);
        
 	UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
	UserPurviewManage priority = new UserPurviewManage();
	int rightinsert = priority.getUserPopInt(userinfo, "8", "1", "i");
	int rightupdate = priority.getUserPopInt(userinfo, "8", "1", "u");
        int rightdelete = priority.getUserPopInt(userinfo, "8", "1", "d");
	    
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
  <tr class="trA">
    <td>&nbsp;您的位置:行政管理 >> 车辆管理 >> <font class="fontcolor">车辆基本信息</font></td>
  </tr>
  <tr height="8">
    <td align="center" >	  
        <table border="0" width="98%" align="center" class="collapse">
        <%if(rightinsert>0){%>
        <div align="right">
		<input name="button" type="button" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" value="添 加" onClick="javascript:window.document.location.href='/krm/servlet/vehiclebasicinfoservlet?status=q&qfor=i'">
		</div>
          <%}%>        
   <tr>             
        <td class="tdA"  colspan="9" align="center"><div align="left">
            车辆信息列表</div></td>
  </tr>
          <tr > 
          <td class="tdB"  width="7%" align="center">车牌</td>
          <td class="tdB"  width="6%" align="center">车型</td>
          <td class="tdB"  width="8%" align="center">颜色</td>
          <td class="tdB"  width="9%" align="center">购买时间</td>
          <td class="tdB"  width="12%" align="center">购买金额(元)</td>
          <td class="tdB"  width="11%" align="center">路码表数(公里)</td>
          <td class="tdB"  width="20%" align="center">每百公里耗油量(公斤)</td>
          <td class="tdB"  width="9%" align="center">备注</td>
          <td class="tdB"  width="18%" align="center">操作</td>
</tr>

	   <%
	   int num=1;
	   while(recordset.next()){ %>
       	<form method="post" name="myform<%=recordset.getVBI_VehicleID()%>" action="/krm/servlet/vehiclebasicinfoservlet">
       	<script>
     function send<%=recordset.getVBI_VehicleID() %>(optype)
     {
     if(optype=='d')
     {
     if(!confirm("您是否确认删除数据"))
     {
     }else{
     document.myform<%=recordset.getVBI_VehicleID()%>.status.value=optype;
     document.myform<%=recordset.getVBI_VehicleID()%>.submit();
     }
     }else{
     document.myform<%=recordset.getVBI_VehicleID()%>.status.value=optype;
     document.myform<%=recordset.getVBI_VehicleID()%>.submit();
     }
     }
     
     function MM_openBrWindow(theURL,winName,features) { 
       window.open(theURL,winName,features);
}
     </script>
		<tr	<%
		if(num%2==0){
		%> class="bgcolor"<%}%>>         
            <td class="common"  width="7%" align="center">
			<%
				if(recordset.getVBI_PicName().equals("")) {
					out.print(recordset.getVBI_VehicleNo());
				}else {
			%>
			<a href="#" onClick="MM_openBrWindow('list.jsp?filename=<%=recordset.getVBI_PicName()%>','detail','width=800,resizable=0,scrollbars=no,top=100,left=100')"><%=recordset.getVBI_VehicleNo()%></a>
			<%
				}
			%>
			</td>
            <td class="common"  width="6%" align="center"><%=recordset.getVBI_VehicleType()%></td>
            <td class="common"  width="8%" align="center"><%=recordset.getVBI_VehicleColor()%></td>
            <td class="common"  width="9%" align="center"><%=recordset.getVBI_BuyTime()%></td>
            <td class="common"  width="12%" align="center"><%=recordset.getVBI_BuyMoney()%></td>
            <td class="common"  width="11%" align="center"><%=recordset.getVBI_RegRoadNum()%></td>
            <td class="common"  width="20%" align="center"><%=recordset.getVBI_AverageOilnum()%></td>
            <td class="common"  width="9%" align="center"><%=recordset.getVBI_Comment()%></td>
            <td class="common" width="18%" align="center"> <%if(rightupdate>0){%>               
              <a href="javascript:send<%=recordset.getVBI_VehicleID()%>('q')" >修改</a>
              <%}%> <%if(rightdelete>0){%>               
              <a href="javascript:send<%=recordset.getVBI_VehicleID()%>('d')" >删除</a>
              <%}%> </td>
     <input type="hidden" name="status" value="q">
	 <input type="hidden" name="qfor" value="u">
     <input type="hidden" name="queryby" value="o">
     <input type="hidden"  name="VehicleID" value="<%=recordset.getVBI_VehicleID()%>">           
        </tr>
        </form>
     <%
	 num++;
	 }%>
	 <tr><td colspan="9" class="tdC">&nbsp;</td></tr>
        </table>
   </td>
</tr>	
</table>
 
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -