📄 option.asp
字号:
<!--#INCLUDE FILE="config.asp"-->
<%if session("admin")<>1 then response.Redirect "default.asp"%>
<%
if request.Form<>"" then
register=request.Form("register")
adminreply=request.Form("adminreply")
show=request.Form("show")
modal=request.Form("modal")
row1=request.Form("row1")
row2=request.Form("row2")
inputtime=request.Form("inputtime")
lybcount=request.Form("lybcount")
killword=request.Form("killword")
stopword=request.Form("stopword")
killIP=request.Form("killIP")
lytitle=request.Form("lytitle")
webname=request.Form("webname")
weblink=request.Form("weblink")
if killip="" then killip=","
Set rs=server.createobject("ADODB.RECORDSET")
rs.open "Select * From option1" ,Conn,3,3
rs("register")=register
rs("adminreply")=adminreply
rs("show")=show
rs("modal")=modal
rs("row1")=row1
rs("row2")=row2
rs("inputtime")=inputtime
rs("lybcount")=lybcount
rs("killword")=killword
rs("stopword")=stopword
rs("killIP")=killIP
rs("lytitle")=lytitle
rs("webname")=webname
rs("weblink")=weblink
rs.update
rs.close
response.Redirect "post_ok.asp?info=留言板设置成功!"
conn.close
set conn=nothing
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>功能选项</title>
<link href="1.css" rel="stylesheet" type="text/css">
</head>
<body>
<table border=0 width=700 align=center>
<tr>
<td align=center>
<!--#INCLUDE FILE="top.asp"-->
</tr>
<tr>
<td align=center><hr size=1 width=100% noshade color=#C0C0C0></tr>
</table>
<% Set rs=server.createobject("ADODB.RECORDSET")
rs.open "Select * From option1",Conn,3,3
%>
<table border=0 width=100% align=center>
<tr>
<td width="3%" align=lift><font color="#FF0000"> </font></td>
<td width="8%" align=lift><a href="<%if session("list")=0 then%>default.asp<%else%>default1.asp<%end if%>">留言首页</a></td>
<td width="89%" align=right>
<!--#INCLUDE FILE="link.asp"-->
</td>
</table>
<form action="" method="POST" name="form" id="form" >
<div align="center">
<table width="100%" border="1" cellpadding="5" cellspacing="1" bgcolor="#E6F2FF" style="border-collapse: collapse" bordercolor="#000000" >
<tr >
<td colspan="2" bordercolorlight="#000000" bordercolordark="#C0C0C0">
<p align="center"><strong>功能选项</strong></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>是否必须注册才能留言:<br>
</strong>可设置留言时是否需要已注册
</div></td>
<td width="651" height="28" align="center"><div align="left"><font color="#FFFFFF">
<input name="register" type="radio" value="1" <%if rs("register") then%>checked<%end if%>>
</font>是 <font color="#FFFFFF">
<input type="radio" name="register" value="0" <%if not rs("register") then%>checked<%end if%>>
</font>否 </div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>是否只有管理员或版主可以回复:<br>
</strong>可设置游客或注册用户是否可回复主题 </div></td>
<td height="28" align="center"><div align="left"><font color="#FFFFFF">
<input name="adminreply" type="radio" value="1" <%if rs("adminreply") then%>checked<%end if%>>
</font>是 <font color="#FFFFFF">
<input type="radio" name="adminreply" value="0" <%if not rs("adminreply") then%>checked<%end if%>>
</font>否<font color="#FFFFFF"> </font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>是否需要经过验证才能显示留言:<br>
</strong>发表留言时是否需要管理员选择通过验证,未通过管理员申核的留言对游客及注册人员不显示</div></td>
<td height="28" align="center"><div align="left"><font color="#FFFFFF">
<input name="show" type="radio" value="1" <%if rs("show") then%>checked<%end if%>>
</font>是 <font color="#FFFFFF">
<input type="radio" name="show" value="0" <%if not rs("show") then%>checked<%end if%>>
</font>否<font color="#FFFFFF"> </font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>被过滤词语后自动禁止其留言:<br>
</strong>发表的留言如涉及被过滤词语可自动禁止其留言,以防其再次发布 </div></td>
<td height="28" align="center"><div align="left"><font color="#FFFFFF">
<input name="stopword" type="radio" value="1" <%if rs("stopword") then%>checked<%end if%>>
</font>是 <font color="#FFFFFF">
<input type="radio" name="stopword" value="0" <%if not rs("stopword") then%>checked<%end if%>>
</font>否<font color="#FFFFFF"> </font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>默认显示方式:<br>
</strong>访客进到留言板首页时显示的方式 </div></td>
<td height="28" align="center"><div align="left"><font color="#FFFFFF">
<input name="modal" type="radio" value="1" <%if rs("modal")=1 then%>checked<%end if%>>
</font>讨论区 <font color="#FFFFFF">
<input type="radio" name="modal" value="2" <%if rs("modal")=2 then%>checked<%end if%>>
</font>留言板<font color="#FFFFFF"> </font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>留言板方式查看时每页显示留言数:</strong></div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="row1" type="text" class="input1" id="row12" value="<%=rs("row1")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>讨论区方式查看时每页显示留言数:</strong></div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="row2" type="text" class="input1" id="row2" value="<%=rs("row2")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>留言间隔时间(防灌水):<br>
</strong>此项对管理员及版主留言时无效 </div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="inputtime" type="text" class="input1" id="second2" value="<%=rs("inputtime")%>" size="30" >
</font>秒<font color="#00FF00"> </font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>自动过滤词语(用半角逗号,分隔):<br>
</strong></div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="killword" type="text" class="input1" id="killword2" value="<%=rs("killword")%>" size="30" maxlength="255" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>禁止指定IP留言(用半角逗号,分隔):</strong></div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="killip" type="text" class="input1" id="killip" value="<%=rs("killIP")%>" size="30" maxlength="255" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>留言板计数器值:</strong></div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="lybcount" type="text" class="input1" id="count2" value="<%=rs("lybcount")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>留言板显示标题:<br>
</strong>留言板首页显示的标题</div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="lytitle" type="text" class="input1" id="lytitle2" value="<%=rs("lytitle")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>网站名称:<br>
</strong>输入您网站的名称
</div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="webname" type="text" class="input1" id="webname2" value="<%=rs("webname")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td width="350" align="center"><div align="left"><strong>网站地址:<br>
</strong>输入您网站的地址
</div></td>
<td height="28" align="center"><div align="left"><font color="#00FF00">
<input name="weblink" type="text" class="input1" id="weblink2" value="<%=rs("weblink")%>" size="30" >
</font></div></td>
</tr>
<tr class="table001">
<td height="28" colspan="2" align="center"><input name="join" type="submit" class="input2" id="join3" value=" 提 交 " >
<input name="B12" type="reset" class="input2" id="B123" value=" 重 写 " >
</td>
</tr>
</table>
</div>
<table border=0 width=700 align=center>
<tr>
<td height=12><HR SIZE=1 WIDTH=100% NOSHADE COLOR=#C0C0C0></td>
</tr>
<tr>
<td align=center>
<!--#INCLUDE FILE="bottom.asp"-->
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -