📄 info.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
web=request("web")
address=request("address")
url=request("url")
tel=request("tel")
graduate=request("graduate")
zip=request("zip")
email=request("email")
rs("web")=web
rs("address")=address
rs("url")=url
rs("tel")=tel
rs("graduate")=graduate
rs("zip")=zip
rs("email")=email
rs.update
response.redirect("info.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">
<script language=javascript>
function check()
{
if(document.myform.web.value=="")
{
alert("网站名称不能为空!");
myform.web.focus();
return false;
}
}
</script>
</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=web class=smallInput id="web" style="FONT-SIZE: 14px" value="<%=rs("web")%>" size=30 maxLength=36></td>
</tr>
<tr>
<td><div align="center"><font color="#FFFFFF">联系地址</font></div></td>
<td><input name=address class=smallInput id="address" style="FONT-SIZE: 14px" value="<%=rs("address")%>" size=50 maxlength=50></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">网站地址</font></td>
<td><input name=url class=smallInput id="url" style="FONT-SIZE: 14px" value="<%=rs("url")%>" size=50 maxlength=36></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">你的电话</font></td>
<td><FONT size=+0>
<INPUT name=tel
class=smallInput id="tel"
style="FONT-SIZE: 14px" value="<%=rs("tel")%>" size=24 maxLength=36>
</FONT></td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">毕业学校</font></td>
<td><INPUT name=graduate class=smallInput id="fax" style="FONT-SIZE: 14px" value="<%=rs("graduate")%>" size=24 maxLength=36>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">邮编地址</font></td>
<td><INPUT name=zip class=smallInput id="zip" style="FONT-SIZE: 14px" value="<%=rs("zip")%>" size=24 maxLength=35>
</td>
</tr>
<tr>
<td align="center"><font color="#FFFFFF">邮件地址</font></td>
<td><input name=email class=smallInput id="email" style="FONT-SIZE: 14px" value="<%=rs("email")%>" 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 + -