📄 basic.asp
字号:
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from basic"
rs.open sql,conn,1,3
act=request("act")
if act="upd" then
name=request("name")
myyear=request("myyear")
household=request("household")
hight=request("hight")
nation=request("nation")
sex=request("sex")
z=request("z")
mtel=request("mtel")
marry=request("marry")
mytime=request("mytime")
rs("name")=name
rs("myyear")=myyear
rs("household")=household
rs("hight")=hight
rs("nation")=nation
rs("sex")=sex
rs("z")=z
rs("mtel")=mtel
rs("marry")=marry
rs("mytime")=mytime
rs.update
response.redirect("basic.asp")
end if
%>
<html>
<head>
<title>网站信息管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/CSS.CSS" type="text/css">
</head>
<body bgcolor="#9CC7EF" text="#000000" leftmargin="0" topmargin="0">
<br>
<table width="98%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight=#145AA0 bordercolordark=#9CC7EF class="unnamed1">
<tr align="left" bgcolor="#4296E7">
<td colspan="2">网站信息管理</td>
</tr>
<form action="?act=upd" name="myform" method="post">
<tr bgcolor="#5EA5E6">
<td width="15%" nowrap bgcolor="#5EA5E6"> <div align="center"><font color="#FFFFFF">姓名:</font></div></td>
<td align="left" nowrap bgcolor="#5EA5E6">
<INPUT name=name class=smallInput id="name" style="FONT-SIZE: 14px" value="<%=rs("name")%>" size=30 maxLength=36></td>
</tr>
<tr>
<td><div align="center"><font color="#FFFFFF">出生年月</font></div></td>
<td><input name=myyear class=smallInput id="myyear" style="FONT-SIZE: 14px" value="<%=rs("myyear")%>" size=30 maxlength=50></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">籍贯</font></td>
<td><input name=household class=smallInput id="household" style="FONT-SIZE: 14px" value="<%=rs("household")%>" size=50 maxlength=36></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">身高</font></td>
<td><FONT size=+0>
<INPUT name=hight
class=smallInput id="hight"
style="FONT-SIZE: 14px" value="<%=rs("hight")%>" size=24 maxLength=36>
</FONT></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">民族</font></td>
<td><INPUT name=nation class=smallInput id="nation" style="FONT-SIZE: 14px" value="<%=rs("nation")%>" size=24 maxLength=36>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">性别</font></td>
<td><INPUT name=sex class=smallInput id="sex" style="FONT-SIZE: 14px" value="<%=rs("sex")%>" size=24 maxLength=36>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">政治面貌</font></td>
<td><INPUT name=z class=smallInput id="z" style="FONT-SIZE: 14px" value="<%=rs("z")%>" size=24 maxLength=36>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">移动电话</font></td>
<td><INPUT name=mtel class=smallInput id="mtel" style="FONT-SIZE: 14px" value="<%=rs("mtel")%>" size=24 maxLength=35>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">婚姻状态</font></td>
<td><input name=marry class=smallInput id="marry" style="FONT-SIZE: 14px" value="<%=rs("marry")%>" size=30 maxlength=36></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">毕业时间</font></td>
<td><input name=mytime class=smallInput id="mytime" style="FONT-SIZE: 14px" value="<%=rs("mytime")%>" size=30 maxlength=36></td>
</tr>
<tr>
<td align="center"> </td>
<td><INPUT name=cmdReset type=submit value=" 修 改 "></td>
</tr>
</form>
<tr bgcolor="#4296E7">
<td colspan="2"> </td>
</tr>
</table>
</body>
</html>
<%
rs.close
conn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -