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

📄 admin_setting.asp

📁 功能强大的一个b/s工作站
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--#include file =conn.asp-->
<!-- #include file="inc/const.asp" -->
<title><%=Forum_info(0)%>--管理页面</title>
<link rel="stylesheet" href="forum_admin.css" type="text/css">
<meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GB2312>
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<%
	dim admin_flag
	admin_flag="01"
	if not master or instr(session("flag"),admin_flag)=0 then
		Errmsg=Errmsg+"<br>"+"<li>本页面为管理员专用,请<a href=admin_index.asp target=_top>登陆</a>后进入。<br><li>您没有管理本页面的权限。"
		call dvbbs_error()
	else
		if request("action")="save" then
		call saveconst()
		elseif request("action")="restore" then
		call restore()
		else
		call consted()
		end if
		conn.close
		set conn=nothing
	end if


sub consted()
dim sel
%>
<form method="POST" action="admin_setting.asp?action=save">
<table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center>
<tr> 
<td height=25 colspan=2 align=left><B>说明</B>:这里的设置代表了所有论坛中所有的设置,包括总设置和分论坛,在这里您可以设置几套不同的方案以供各个不同的分论坛使用。</td>
</tr>
<tr> 
<td height=25 colspan=2 align=left>
<table width=85% align=center>
<tr>
<td width=50% ><a name=top></a><a href="#setting1">[论坛设置]</a></td>
<td width=50% ><a href="#setting17">[防刷新机制]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting3">[基本信息]</a></td>
<td width=50% ><a href="#setting4">[联系资料]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting16">[帖子选项]</a></td>
<td width=50% ><a href="#setting6">[悄悄话选项]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting7">[论坛首页选项]</a></td>
<td width=50% ><a href="#setting8">[用户与注册选项]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting19">[门派设置]</a></td>
<td width=50% ><a href="#setting10">[系统设置]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting18">[论坛分页设置]</a></td>
<td width=50% ><a href="#setting12">[在线和用户来源]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting13">[邮件选项]</a></td>
<td width=50% ><a href="#setting14">[上传设置]</a></td>
</tr>
<tr>
<td width=50% ><a href="#setting15">[用户选项(签名、头衔、排行等)]</a></td>
<td width=50% ></td>
</tr>
</table>
</td>
</tr> 
</table>
<table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
<tr> 
<th width="100%" colspan=2  class="tableHeaderText" height=25>当前使用设置(可将当前设置保存到下列设置模板中,选中即可)
</th></tr>
<tr> 
<td width="100%" colspan=2 class="forumrow" height=25><input type="checkbox" name="checkall" checked value="1">&nbsp;全选:如果要使下面设置对所有模板生效,请全选,建议全选
</td>
</tr>
<tr> 
<td width="100%" colspan=2 class="forumrow">
<%
set rs = server.CreateObject ("adodb.recordset")
sql="select * from config"
rs.open sql,conn,1,1
do while not rs.eof
if request("skinid")="" then
	if request("boardid")="" then
	if rs("active")=1 then
	sel="checked"
	skinid=rs("id")
	else
	sel=""
	end if
	else
	sel=""
	end if
else
	if rs("id")=cint(request("skinid")) then
	sel="checked"
	skinid=rs("id")
	else
	sel=""
	end if
end if
response.write "<input type=checkbox name=skinid value="&rs("id")&" "&sel&"><a href=admin_setting.asp?skinid="&rs("id")&">"&rs("skinname")&"</a>&nbsp;"
rs.movenext
loop
rs.close
set rs=nothing
%></font>
</td></tr>
<tr> 
<td width="100%" colspan=2 class="Forumrow"><B>当前使用该设置的分论坛</B> | <a href="?action=restore&skinid=<%=skinid%>"><B>还原论坛常规设置</B></a> <BR><BR>以下分论坛将使用本设置,如需修改论坛使用设置,可到论坛管理中重新设置<BR>
<select size=1>
<%
set rs = server.CreateObject ("adodb.recordset")
sql="select * from board where sid="&skinid
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<option>没有论坛使用该模板</option>"
else
do while not rs.eof
response.write "<option>" & rs("boardtype") & "</option>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%></select>
</td></tr>
<tr> 
<th height="25" colspan="2" align=left id=TableTitleLink><a name="setting1"></a><b>论坛设置</b>[<a href="#top">顶部</a>]</th>
</tr>
<tr> 
<td width="50%" class=Forumrow>
<U>版面语言</U></td>
<td width="50%" class=Forumrow> 
<select size=1 name="forum_setting(9)">
<option value="lang_gb.asp">简体中文
</select>
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow><U>论坛当前状态</U><BR>维护期间可设置关闭论坛使用</td>
<td width="50%" class=Forumrow> 
<input type=radio name="Forum_Setting(21)" value=0 <%if cint(Forum_Setting(21))=0 then%>checked<%end if%>>打开&nbsp;
<input type=radio name="Forum_Setting(21)" value=1 <%if cint(Forum_Setting(21))=1 then%>checked<%end if%>>关闭&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow><U>维护说明</U><BR>在论坛关闭情况下显示,支持html语法</td>
<td width="50%" class=Forumrow> 
<textarea name="StopReadme" cols="40" rows="3"><%=StopReadme%></textarea>
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow>
<U>是否起用定时开关论坛</U></td>
<td width="50%" class=Forumrow> 
<input type=radio name="forum_setting(69)" value=0 <%if cint(Forum_Setting(69))=0 then%>checked<%end if%>>否&nbsp;
<input type=radio name="forum_setting(69)" value=1 <%if cint(Forum_Setting(69))=1 then%>checked<%end if%>>是&nbsp;
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow>
<U>论坛开放时间</U><BR>请确认您已经设置起用定时开关功能<BR>起止小时用符号“|”分开</td>
<td width="50%" class=Forumrow> 
<input type=text size=10 name="forum_setting(70)" value="<%=forum_setting(70)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>首页模式</U></td>
<td width="50%" class=Forumrow>  
<input type=radio name="Forum_Setting(4)" value=0 <%if cint(Forum_Setting(4))=0 then%>checked<%end if%>>新版样式&nbsp;
<input type=radio name="Forum_Setting(4)" value=1 <%if cint(Forum_Setting(4))=1 then%>checked<%end if%>>旧版样式&nbsp;
</td>
</tr>
<tr> 
<th height=25 colspan=2 align=left id=tabletitlelink><a name="setting3"></a><b>论坛基本信息</b>[<a href="#top">顶部</a>]</th>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>论坛名称</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="ForumName" size="35" value="<%=Forum_info(0)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>论坛的url</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="ForumURL" size="35" value="<%=Forum_info(1)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>主页名称</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="CompanyName" size="35" value="<%=Forum_info(2)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>主页URL</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="HostUrl" size="35" value="<%=Forum_info(3)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>论坛首页Logo地址</U><BR>显示在论坛首页,添加论坛如果没有填写logo地址,则使用该内容</td>
<td width="50%" class=Forumrow>  
<input type="text" name="Logo" size="35" value="<%=Forum_info(6)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>论坛图片目录</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="Picurl" size="35" value="<%=Forum_info(7)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>发贴心情目录</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="Faceurl" size="35" value="<%=Forum_info(8)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>发贴表情目录</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="emoturl" size="35" value="<%=Forum_info(10)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>论坛头像目录</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="UserFaceurl" size="35" value="<%=Forum_info(11)%>">
</td>
</tr>
<tr> 
<td width="50%" class=Forumrow> <U>版权信息</U></td>
<td width="50%" class=Forumrow>  
<input type="text" name="Copyright" size="35" value="<%=Copyright%>">
</td>
</tr>
<tr> 
<th height=25 colspan=2 align=left id=tabletitlelink><a name="setting4"></a><b>论坛联系资料</b>[<a href="#top">顶部</a>]</th>
</tr>

⌨️ 快捷键说明

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