📄 car_weihu.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<%
if ChkAdmin("oa_car")=False then
call message("您没有管理车辆的权限","back")
call endexit()
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript src="../../inc/meizzDate.js"></SCRIPT>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
</head>
<%
act=request.QueryString("act")
car_mtime=trim(request.Form("car_mtime"))
car_mname=replace(trim(request.Form("car_mname")),"'","")
car_num=replace(trim(request.Form("car_num")),"'","")
car_mtxt=replace(trim(request.Form("car_mtxt")),"'","")
car_mtxt=HTMLEncode(car_mtxt)
insql="insert into oa_car_modify(car_num,car_mtime,car_mname,car_mtxt) "& _
"values('"&car_num&"','"&car_mtime&"','"&car_mname&"','"&car_mtxt&"')"
if act="add" then
conn.execute(insql)
call Message("发布成功","car_wxlist.asp?car_num="&car_num&"")
END IF
%>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F2F2" class="tabel1">
<form name="myform" method="post" action="car_weihu.asp?act=add" onSubmit="return CheckForm();">
<tr align="center">
<td height="25" colspan="2" bgcolor="#CC0000"><span class="style1">车辆维护登记</span></td>
</tr>
<tr bgcolor="#F9F9F9">
<td width="13%" height="25" align="center">维护时间</td>
<td width="87%" height="25" align="left"><input name="car_mtime" type="text" class="tabel1" id="car_mtime" value="<%=date()%>" onFocus="setday(this)"></td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center">选择车辆</td>
<td height="25" align="left">
<select name="car_num" id="car_num">
<option value="">选择车辆</option>
<%
sql="select car_num, car_type from oa_car where companyid="&session("companyid")
set rs=conn.execute(sql)
do while not rs.eof
%>
<option value="<%=rs("car_num")%>"><%=rs("car_type")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
</select>
* </td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> 维护人</td>
<td height="25" align="left"><input name="car_mname" type="text" class="tabel1" id="title">
*</td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> 维护内容</td>
<td height="25" align="left"><textarea name="car_mtxt" cols="50" rows="6" class="tabel1" id="car_mtxt"></textarea>
*</td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> </td>
<td height="25" align="left"><input name="Submit2" type="submit" class="bon" value="提交">
<input name="Submit3" type="reset" class="bon" value="重置">
<span class="style1"><font style="font-size:15px ">
<input name="Submit" type="button" class="bon" value="返回上页" onClick="window.history.go(-1)">
</font></span></td>
</tr></form>
</table>
<%
set conn=nothing
%>
</body>
</html>
<script language="javascript">
function CheckForm()
{
var objFrm=document.myform;
if(objFrm.car_num.value=="")
{
alert("请选择车辆型号!");
objFrm.car_num.focus();
return false;
}
if(objFrm.car_mname.value=="")
{
alert("请输入维护人!");
objFrm.car_mname.focus();
return false;
}
if(objFrm.car_mtxt.value=="")
{
alert("请输入维护内容!");
objFrm.car_mtxt.focus();
return false;
}
return true;
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -