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

📄 register_car.asp

📁 *** ***** 系统进入 *** ***** 系统主文件为index.htm 系统超级用户 用户名:lhh 密码:lhh *** ***** 系统功能说明 *** ****
💻 ASP
字号:
<!--#INCLUDE FILE="data.asp" -->
<!--#INCLUDE FILE="mouse.js" -->
<%
Set rs= Server.CreateObject("ADODB.Recordset") 
strSql="select * from bumen"
rs.open strSql,Conn,1,1 
%>
<%
Set rs2= Server.CreateObject("ADODB.Recordset") 
strSql="select * from user where shenhe="&true&""
rs2.open strSql,Conn,1,1 
%>
<html><head><title>飞翔网络办公系统----车辆登记</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="javaScript">
    function  validate()
    {
        if  (document.myform.car_code.value=="")
        {
            alert("车辆号码不能为空");
            document.myform.car_code.focus();
            return false ;
        }
        if  (document.myform.car_type.value=="")
        {
            alert("车辆类型不能为空");
            document.myform.car_type.focus();
            return false ;
        }
		if  (document.myform.car_buytime.value=="")
        {
            alert("购买日期不能为空");
            document.myform.car_buytime.focus();
            return false ;
        }
		if  (document.myform.car_buyprice.value=="")
        {
            alert("购买价格不能为空");
            document.myform.car_buyprice.focus();
            return false ;
        }
		if  (document.myform.car_money.value=="")
        {
            alert("运营费用不能为空");
            document.myform.car_money.focus();
            return false ;
        }
               return  true;
    }
</script>

<link rel="stylesheet" href="oa.css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form method="post" action="car_zhuce.asp" name="myform" onsubmit="return  validate()"> 
<table width="100%" border="0" cellspacing="1" cellpadding="2"> <tr > <td class="heading"> 
<div align="center"> <center> <table width="81%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" bordercolorlight="#000000"> 
<tr> <td width="2%" align="right"></td><td align="left" height="25"> <p align="center"><font color="#FFFFFF"><b>登记车辆(带*号项必填)</b></font></p></td><td width="3%"></td></tr> </table></center></div></td></tr> 
</table><div align="center"> <table WIDTH="80%" BORDER="1" CELLSPACING="0" CELLPADDING="0" BORDERCOLORDARK="#FFFFFF" BORDERCOLOR="#FFFFFF" BORDERCOLORLIGHT="#000000"> 
<tr> <td WIDTH="17%" VALIGN="top"> <p ALIGN="right">车辆号码:</p></td><td WIDTH="83%"> 
<input NAME="car_code" TYPE="text" CLASS="form" id="car_code" SIZE="24">
          * (<font color="#FF0000">如:桂A****</font>) </td>
      </tr> <tr> <td WIDTH="17%" VALIGN="top" HEIGHT="6"> 
<p ALIGN="right">车辆类型:</p></td><td WIDTH="83%" HEIGHT="6"> <input NAME="car_type" TYPE="text" CLASS="form" id="car_type" SIZE="24">
          * (<font color="#FF0000">如:面包车,轿车...</font>) </td>
      </tr> 
<tr> <td WIDTH="17%"  VALIGN="top" HEIGHT="16"> <p ALIGN="right">购买日期:</p></td><td WIDTH="83%" HEIGHT="16"> 
<input NAME="car_buytime" TYPE="text" CLASS="form" id="car_buytime" SIZE="24">
          * </td>
      </tr> <tr> 
<td WIDTH="17%"  VALIGN="top" HEIGHT="16"> <p ALIGN="right">购买价格:</p></td><td WIDTH="83%" HEIGHT="16"> 
<input NAME="car_buyprice" TYPE="text" CLASS="form" id="car_buyprice" SIZE="24">
          * </td>
      </tr> <tr> <td WIDTH="17%"  VALIGN="top" HEIGHT="16"> 
<p ALIGN="right">简单说明:</p></td><td WIDTH="83%" HEIGHT="16"> <input NAME="car_detail" TYPE="text" CLASS="form" id="car_detail" SIZE="50"> 
</td></tr> <tr> <td WIDTH="17%"  VALIGN="top"> <p ALIGN="right">所属部门: </td><td WIDTH="83%"> 
<select NAME="car_company" id="car_company">
            <option value="公用车" selected> 公用车</option> 
<%if rs.eof and rs.bof then
response.write "<font color='red'>还没有任何部门</font>"
else
do while not (rs.eof or rs.bof)
%> <option VALUE="<%=rs("type")%>"><%=rs("type")%></option> 
<%rs.movenext 
  loop 
   end if%> </select>
          *(<font color="#FF0000">如果没有所属部门,请选择公用车</font>) </td>
      </tr> 
	  <tr> 
        <td WIDTH="17%" height="25"  VALIGN="top"> 
          <p ALIGN="right">车辆司机: </td>
        <td WIDTH="83%"> 
          <select NAME="car_user">
            <option value="任意人" selected>任意人</option>
			<%if rs2.eof and rs2.bof then
             response.write "<font color='red'>还没有任何人员</font>"
             else
             do while not (rs2.eof or rs2.bof)
             %> 
            <option value="<%=rs2("name")%>"><%=rs2("name")%></option>
			<%rs2.movenext 
              loop 
             end if%>
          </select>
          *(<font color="#FF0000">如果没有所属司机,请选择任意人</font>) </td>
      </tr> 
	  <tr> 
        <td WIDTH="17%"  VALIGN="top"> <p ALIGN="right">司机手机:</p></td><td WIDTH="83%"> 
<input NAME="car_usermobile" TYPE="text" CLASS="form" id="car_usermobile" SIZE="24"> </td></tr> <tr> 
        <td WIDTH="17%"  VALIGN="top" HEIGHT="27"> <p ALIGN="right">司机电话:</p></td><td WIDTH="83%" HEIGHT="27"> <input NAME="car_usertel" TYPE="text" CLASS="form" id="car_usertel" SIZE="24"> 
</td></tr><tr> 
        <td WIDTH="17%"  VALIGN="top"> <p ALIGN="right">运营费用:</p></td>
        <td WIDTH="83%"> <p> 
            <textarea name="car_money" cols="43" rows="5" class="smallarea" id="car_money"></textarea>
            (<font color="#FF0000">记录车辆所需缴纳的费用</font>)</p></td></tr> <%if session("id")<>"" then %> 
<tr> <td WIDTH="17%"  VALIGN="top"> <p ALIGN="right">维修记录:</p></td><td WIDTH="83%"> 
<p>
            <textarea name="car_fixlog" cols="43" rows="7" class="smallarea" id="car_fixlog"></textarea>
          </p></td></tr>  <%end if%> </table></div><div align="center"><input type=image  src="images/add_off.gif">&nbsp;&nbsp; 
<a  href="javaScript:window.close()"><img   border="0" src="images/close_1.gif"></a> 
</div></form>
       
</body>       
</html>

⌨️ 快捷键说明

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