📄 admin_contact.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/check_admin.asp" -->
<%
if Request.Form("submit") <> "" then
with Session("rs")
.Open "contact",Session("conn"),adOpenDynamic,adLockOptimistic,adCmdTableDirect
.Find "id = 1"
.Fields("phone") = Trim(Request.Form("phone"))
.Fields("fax") = Trim(Request.Form("fax"))
.Fields("email") = Trim(Request.Form("email"))
.Update
.Close
Response.Redirect("welcome.asp")
end with
else
Session("rs").Open "select * from contact where id = 1"
if not Session("rs").EOF then
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center"><form action="admin_contact.asp" method="post" name="frm_contact">
<table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>电话:</td>
<td align="right"><input name="phone" type="text" id="phone" value="<%= Session("rs")("phone") %>"></td>
</tr>
<tr>
<td>传真:</td>
<td align="right"><input name="fax" type="text" id="fax" value="<%= Session("rs")("fax") %>"></td>
</tr>
<tr>
<td>信箱:</td>
<td align="right"><input name="email" type="text" id="email" value="<%= Session("rs")("email") %>"></td>
</tr>
<tr align="center">
<td colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="修 改"> <input type="reset" name="Submit2" value="重 置">
<input type="button" name="Submit3" value="取 消"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
<%
end if
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -