📄 admin_cg.asp
字号:
<!-- #include file="conn.asp"-->
<%
set rs=server.CreateObject("ADODB.recordset")
rs.open "index",conn,3,3
name=rs("name")
rs.close
set rs=nothing
%>
<title><%=name%>购物--管理系统</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta NAME=GENERATOR Content=""Microsoft FrontPage 4.0"" CHARSET=GB2312>
<BODY leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<%
if request("action")="save" then
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
response.write "<script language=JavaScript>{window.location='error.asp'}</script>"
response.end
end if
set rs=server.CreateObject("ADODB.recordset")
rs.open "index",conn,3,3
rs("name")=request("name")
rs("http")=request("http")
rs("copy")=request("copy")
rs("email")=request("email")
rs("qq")=request("qq")
rs.update
response.write "<script language=JavaScript>{window.alert('常规设置成功!');window.location='admin_cg.asp'}</script>"
response.end
rs.close
set rs=nothing
end if
%>
<br>
<%
set rs=server.CreateObject("ADODB.recordset")
rs.open "index",conn,3,3
%>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align="center" class="tableBorder">
<form action="admin_cg.asp?action=save" method="post">
<tr>
<th width="100%" colspan="2" height="25">常规设置</th>
</tr>
<tr>
<td width="30%" height="25" class="forumrow">网站名称</td>
<td width="70%" height="25" class="forumrow">
<input name="name" size="40" value="<%=rs("name")%>">
</td>
</tr>
<tr>
<td width="30%" height="25" class="forumrow">网站地址</td>
<td width="70%" class="forumrow">
<input name="http" size="40" value="<%=rs("http")%>">
</td>
</tr>
<tr>
<td width="30%" height="25" class="forumrow">版权所有者</td>
<td width="70%" class="forumrow">
<input name="copy" size="40" value="<%=rs("copy")%>">
</td>
</tr>
<tr>
<td width="30%" height="25" class="forumrow">客服E-mail</td>
<td width="70%" class="forumrow">
<input name="email" size="40" value="<%=rs("email")%>">
</td>
</tr>
<tr>
<td width="30%" height="25" class="forumrow">客服QQ</td>
<td width="70%" class="forumrow">
<input name="qq" size="40" value="<%=rs("qq")%>">
</td>
</tr>
<tr>
<td height="15" colspan="2" class="forumrow">
<input type="submit" style="CURSOR:hand" value="修 改">
</td>
</tr>
</form>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -