📄 edit.asp
字号:
<%if Session.Contents("master")="master" or Session.Contents("master")="admin" then%>
<!--#include file="conn.asp"-->
<%
dim id
id=Request("id")
If id="" Then
response.write "非法的请求"
Else
%>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM 违法车辆 where id="+id
rs.Open sql,conn,3,2
%>
<link rel="stylesheet" href="css.css">
<br><br><br><br>
<table border="1" cellspacing="1" cellpadding="5" align="center" height="10" bordercolor="#7C96B8" bordercolordark="#FFFFFF">
<form method="post" action="save.asp?id=<%=request("id")%>" name="Form1">
<TR bgcolor="#7C96B8">
<td height="20" colspan="2"><font color="#FFFFFF">修改违法数据</font></td>
</TR>
<tr>
<td width="80">车主姓名:</td>
<td><input name="xm" type="text" id="xm" value="<%=rs("车主姓名")%> "></td>
</tr>
<tr>
<td>违法车辆:</td>
<td><input name="cl" type="text" id="cl" value="<%=rs("违法车辆")%> "></td>
</tr>
<tr>
<td>违法车型:</td>
<td><select name="cx" id="cx">
<option <%if rs("违法车型")="小型汽车" then response.write "selected" end if%>>小型汽车</option>
<option <%if rs("违法车型")="大型汽车" then response.write "selected" end if%>>大型汽车</option>
<option <%if rs("违法车型")="两、三轮摩托车" then response.write "selected" end if%>>两、三轮摩托车</option>
<option <%if rs("违法车型")="轻便摩托车" then response.write "selected" end if%>>轻便摩托车</option>
<option <%if rs("违法车型")="外籍汽车" then response.write "selected" end if%>>外籍汽车</option>
<option <%if rs("违法车型")="外籍摩托车" then response.write "selected" end if%>>外籍摩托车</option>
<option <%if rs("违法车型")="农用车" then response.write "selected" end if%>>农用车</option>
</select></td>
</tr>
<tr>
<td>违法时间:</td>
<td><input name="sj" type="text" id="sj" value="<%=rs("违法时间")%> " size="30"></td>
</tr>
<tr>
<td>违法地点:</td>
<td><input name="dd" type="text" id="dd" value="<%=rs("违法地点")%> " size="40"></td>
</tr>
<tr>
<td>违法情况:</td>
<td><input name="qk" type="text" id="qk" value="<%=rs("违法情况")%>" size="40"></td>
</tr>
<tr>
<td>操 作 员:</td>
<td><input name="czy" type="text" id="czy" value="<%=rs("操作员")%>" readonly="true"></td>
</tr>
<tr align="center">
<td height="16" colspan="2"><input type="submit" name="Submit" value="修改" onclick="return checkdata()">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</FORM>
</table>
<%end if%>
<%
Else
response.redirect "login.asp"
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -