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

📄 close.asp

📁 电子商务网络购物系统
💻 ASP
字号:
<% Option Explicit %>
<!--#include file="conn.asp" -->
<%
Dim strMode
Dim blnLocked

blnLocked = CBool(Request.Form("lock"))
strMode = Request.Form("mode")
strSQL = "SELECT timescfg.* From timescfg;"
rsConn.CursorType = 2
rsConn.LockType = 3
rsConn.Open strSQL, adoCon
If strMode = "postBack" Then
	With rsConn
		.Fields("bbsclosed") = blnLocked	
		.Update
		.Requery
	End With
End If

If NOT rsConn.EOF Then
	blnLocked = CBool(rsConn("bbsclosed"))
End If
rsConn.Close
Set rsConn = Nothing
adoCon.Close
Set adoCon = Nothing
%>

<html>
<head>
<title>锁定论坛</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="includes/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"> 
  <p class="text"><span class="heading">锁定论坛</span></p>
  <p class="text"> <a href="menu.asp" target="_self">返回到管理主菜单</a><br />
    <br>
    维护论坛时,你可以先锁定论坛</p>
 <table width="96%" border="0" cellspacing="1" cellpadding="4" bgcolor="#000000">
  <tr> 
      <td align="center" bgcolor="#CCCCCC" class="lgText"> !!!注意!!!</td>
  </tr>
  <tr> 
      <td bgcolor="#EFEFEF"> <p class="text">如果你锁定论坛,所有的会员将不能登录论坛,当你退出后也不能登录到论坛首页<br>
          要解除锁定,在你的浏览器中输入管理页面的地址直接登录,解除锁定</p></td>
  </tr>
 </table>
</div>
<form method="post" name="frmLock" action="close.asp">
 <table width="560" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#000000">
  <tr> 
   <td width="560"> <table width="100%" border="0" align="center" cellpadding="4" cellspacing="1">
     <tr align="left" bgcolor="#CCCCCC"> 
            <td colspan="2" class="text">锁定前,请务必记住 解除锁定论坛 的方法</td>
     </tr>
     <tr  bgcolor="#FFFFFF"> 
            <td width="59%"  height="7" align="left" class="text">锁定论坛<br />
            </td>
            <td width="41%" height="7" valign="top" class="text">锁定
<input type="radio" name="lock" value="True" <% If blnLocked = True Then Response.Write "checked" %>>
              &nbsp; &nbsp;解除锁定 
              <input type="radio" name="lock" value="False" <% If blnLocked = False Then Response.Write "checked" %>> </td>
     </tr>
     <tr bgcolor="#FFFFFF" align="center"> 
      <td valign="top" height="2" colspan="2" > <p> 
        <input type="hidden" name="mode" value="postBack">
        <input type="submit" name="Submit" value="提交">
       </p></td>
     </tr>
    </table></td>
  </tr>
 </table>
</form>
<br />
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -