📄 sys_set.asp
字号:
<!--#include file="../config/sys.asp"-->
<%
if session("user_name")="" then
response.Redirect url&"error.asp?msg=您这样的操作本系统令人感到耻辱!&logout=true"
end if
if not selectROLE1(session("user_name")) then
response.Redirect url&"error.asp?msg=您这样的操作本系统令人感到耻辱!&logout=true"
end if
flog=Trim(Request.QueryString("flog"))
if flog="sys_edit" then
afficheYN=Trim(Request.Form("afficheYN"))
url=Trim(Request.Form("url"))
register=Trim(Request.Form("register"))
adminreply=Trim(Request.Form("adminreply"))
show=Trim(Request.Form("show"))
seconds=Trim(Request.Form("seconds"))
counts=Trim(Request.Form("counts"))
killword=Trim(Request.Form("killword"))
registYN=Trim(Request.Form("registYN"))
youkeYN=Trim(Request.Form("youkeYN"))
stopip=Trim(Request.Form("stopip"))
affiche=Trim(Request.Form("affiche"))
sys_name=Trim(Request.Form("sys_name"))
sys_welcome=Trim(Request.Form("sys_welcome"))
sys_logo=Trim(Request.Form("sys_logo"))
mod_time=cstr(date)
sqlqq = "update sys_set set url='"&url&"',register='"®ister&"',adminreply='"&adminreply&"',show='"&show&"',seconds='"&seconds&"',counts='"&counts&"',killword='"&killword&"',afficheYN='"&afficheYN&"',registYN='"®istYN&"',youkeYN='"&youkeYN&"',stopip='"&stopip&"',affiche='"&affiche&"',sys_name='"&sys_name&"',sys_welcome='"&sys_welcome&"',sys_logo='"&sys_logo&"',mod_time='"&mod_time&"' "
conn.Execute(sqlqq)
response.Redirect "sys_set.asp?msg=修改成功!"
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
<TABLE style="TABLE-LAYOUT: fixed" height=100% cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR height=3 width="100%">
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1>
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD bgColor=#DCDCDC></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC></TD>
<TD bgColor=#f7f8f9 colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD> <TABLE style="TABLE-LAYOUT: fixed" height="100%" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width=1 bgColor=#DCDCDC></TD>
<TD id=oINNER bgColor=#FFFFFF>
<form method="POST" action="?flog=sys_edit">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="24" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" colspan="3">
<font color="#999999"><b> 系统设置</b></font></td>
</tr> <tr>
<td bgcolor="#FFFFFF" valign="top">
<table border="0" width="100%" id="table2" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<div align="center">
<table border="0" width="99%" id="table3" height="99%" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" align="right">是否允许注册:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="register"<%if register then%> checked<%end if%>> 是
<input type="radio" value="0" name="register"<%if not register then%> checked<%end if%>> 否</td>
<td align="right">系统文件夹访问地址:</td>
<td>
<input type="text" name="url" size="20" value="<%=url%>"><br>
<font color="#FF0000">提示</font><font color="#808080">:在地址最后请以‘/’结束;<br>请不要带‘index.asp’或‘default.asp’等文件</font></td>
</tr>
<tr>
<td width="25%" align="right">是否只有老师可以回复:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="adminreply"<%if adminreply then%> checked<%end if%>> 是
<input type="radio" value="0" name="adminreply"<%if not adminreply then%> checked<%end if%>> 否</td>
<td align="right">过滤词语:</td>
<td>
<input type="text" name="killword" size="20" value="<%=killword%>"><br>
<font color="#FF0000">提示</font><font color="#808080">:数量多的话请用‘,’号间隔。</font></td>
</tr>
<tr>
<td width="25%" align="right">是否锁定论坛发帖:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="show"<%if show then%> checked<%end if%>> 是
<input type="radio" value="0" name="show"<%if not show then%> checked<%end if%>> 否</td>
<td align="right">禁止的IP:</td>
<td>
<input type="text" name="stopip" size="20" value="<%=stopip%>"><br>
<font color="#FF0000">提示</font><font color="#808080">:数量多的话请用‘,’号间隔。</font></td>
</tr>
<tr>
<td width="25%" align="right">注册是否需要数据验证:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="registYN"<%if registYN then%> checked<%end if%>> 是
<input type="radio" value="0" name="registYN"<%if not registYN then%> checked<%end if%>> 否</td>
<td align="right" rowspan="2">公告:</td>
<td rowspan="2">
<textarea rows="4" name="affiche" cols="33"<%if not afficheYN then%> disabled <%end if%>><%=affiche%></textarea><br>
<font color="#FF0000">提示</font><font color="#808080">:可以用HTML语言编辑。</font></td>
<%if not afficheYN then%><input type="hidden" value="<%=affiche%>" name="affiche"><%end if%>
</tr>
<tr>
<td width="25%" align="right">是否使用浮动公告:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="afficheYN"<%if afficheYN then%> checked<%end if%>> 是
<input type="radio" value="0" name="afficheYN"<%if not afficheYN then%> checked<%end if%>> 否</td>
</tr>
<tr>
<td width="25%" align="right">游客是否可以浏览文章帖子:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="radio" value="1" name="youkeYN"<%if youkeYN then%> checked<%end if%>> 是
<input type="radio" value="0" name="youkeYN"<%if not youkeYN then%> checked<%end if%>> 否</td>
<td align="right">系统名:</td>
<td>
<input type="text" name="sys_name" size="20" value="<%=sys_name%>"></td>
</tr>
<tr>
<td width="25%" align="right">计数器:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px" width="25%">
<input type="text" name="counts" size="8" value="<%=counts%>"></td>
<td align="right">系统顶上欢迎词:</td>
<td>
<input type="text" name="sys_welcome" size="20" value="<%=sys_welcome%>"></td>
</tr>
<tr>
<td style="border-left-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" width="25%" align="right">
发贴间隔时间:</td>
<td style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" width="25%">
<input type="text" name="seconds" size="8" value="<%=seconds%>">秒</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" align="right">
系统LOGO:</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px">
<input type="text" name="sys_logo" size="20" value="<%=sys_logo%>"></td>
</tr>
<tr>
<td height="33" colspan="4">
<p align="center"><input type="submit" value="修改" name="B1"><font color="#FF0000"><%=request("msg")%></font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table></form>
</TD>
<TD width=1 bgColor=#DCDCDC></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR height=3 width="100%">
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1>
<TD width=1></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1>
<TD colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD colSpan=3></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -