📄 config2.asp
字号:
<!--#include file="../include/buyok_shop_30_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<script language=javascript src=../include/mouse_on_title.js></script>
<%call checkmanage("01")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif">
<%action=request("ok")
if action="" then
Set rs = conn.Execute("select * from shopsetup")
%>
<table width="98%" border="1" style="border-collapse: collapse; border-style: dotted; border-width: 0px" bordercolor="#333333" cellspacing="0" cellpadding="2">
<form action=config2.asp method=post name=setup>
<tr class=backs><td colspan=2 class=td height=18>网站开关设置 </td></tr>
<tr><td width=20% align=right>网站开关状态 </td><td > <input type="radio" name="kaiguan" value="1" <%if rs("kaiguan")<>0 then%>checked<%end if%>>开放 <input type="radio" name="kaiguan" value="0" <%if rs("kaiguan")=0 then%>checked<%end if%>>关闭</td></TR>
<tr><td width=20% align=right>网站关闭时的提示语 </td><td ><TEXTAREA NAME="guanbi" ROWS="6" COLS="34" style="overflow:auto;"><%=Replace(rs("guanbi"),"<BR>",vbCRLF)%></TEXTAREA> <img align=top src=../images/admin/memo.gif alt="支持html"></td></tr>
<tr><td colspan=2 width="568" ><INPUT name="ok" TYPE="hidden" value="ok"><INPUT name=action TYPE="submit" value="保存设置"> </td></tr>
</form>
</table>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if action="ok" then
if request.form("kaiguan")="0" and request.form("guanbi")="" then
response.write "<script language='javascript'>"
response.write "alert('出错了,请填写网站关闭时的提示语!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from shopsetup"
rs.open sql,conn,1,3
rs("kaiguan")=request.form("kaiguan")
rs("guanbi")=request.form("guanbi")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write "<script language='javascript'>"
response.write "alert('操作成功,您设置的信息已保存!');"
response.write "location.href='config2.asp';"
response.write "</script>"
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -