📄 siteinfo.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
color: #000000;
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
}
a {
font-size: 12px;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body>
<%if request.form("sitename")<>"" and request.form("siteweb")<>"" and request.form("siteer")<>"" then
conn.execute ("update siteinfo set sitename='"&request.form("sitename")&"',siteweb='"&request.form("siteweb")&"',siteer='"&request.form("siteer")&"'")
response.write "更新成功"
end if
set rs=conn.execute ("select * from siteinfo")
if rs.eof then
response.write "没有记录,请在数据库里加一条记录"
response.end
end if
%>
<table width="95%" border="0">
<form name="form1" method="post" action=""> <tr>
<td width="19%">校友录名称:</td>
<td width="81%">
<input name="sitename" type="text" id="sitename" value="<%=rs("sitename")%>">
</td>
</tr>
<tr>
<td>校友录网址:</td>
<td><input name="siteweb" type="text" id="siteweb" value="<%=rs("siteweb")%>"></td>
</tr>
<tr>
<td>管理员姓名:</td>
<td><input name="siteer" type="text" id="siteer" value="<%=rs("siteer")%>"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></td>
</tr> </form> <tr>
<td> </td>
<td>说明:要使用这个功能必须保持siteinfo表中有一条记录,默认是有,记得不要把它删除了</td>
</tr>
</table>
<%rs.close
set rs=nothing%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -