⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config2.asp

📁 这是一个很漂亮的网站购物系统
💻 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>网站开关设置 &nbsp;</td></tr>
<tr><td width=20% align=right>网站开关状态 &nbsp;</td><td > <input type="radio" name="kaiguan" value="1" <%if rs("kaiguan")<>0 then%>checked<%end if%>>开放 &nbsp; <input type="radio" name="kaiguan" value="0" <%if rs("kaiguan")=0 then%>checked<%end if%>>关闭</td></TR>   
<tr><td width=20% align=right>网站关闭时的提示语 &nbsp;</td><td ><TEXTAREA NAME="guanbi" ROWS="6" COLS="34" style="overflow:auto;"><%=Replace(rs("guanbi"),"<BR>",vbCRLF)%></TEXTAREA>   &nbsp;&nbsp; <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="保存设置"> &nbsp;</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 + -