?? admin_use.asp
字號(hào):
<!--#include file =conn.asp-->
<!-- #include file="inc/const.asp" -->
<!--#include file=inc/char.asp-->
<!--#include file=chkuser.asp-->
<title><%=ForumName%>--管理頁(yè)面</title>
<link rel="stylesheet" type="text/css" href="forum.css">
<meta NAME=GENERATOR Content=""Microsoft FrontPage 3.0"" CHARSET=GB2312>
<BODY <%=ForumBody%>>
<%
if instr(session("flag"),"22")=0 then
Errmsg=Errmsg+"<br>"+"<li>本頁(yè)面為管理員專用,請(qǐng)<a href=admin_index.asp target=_top>登陸</a>后進(jìn)入。<br><li>您沒有管理本頁(yè)面的權(quán)限。"
call Error()
else
call main()
conn.close
set conn=nothing
end if
sub main()
%>
<table cellpadding=0 cellspacing=0 border=0 width=<%=tablewidth%> bgcolor=<%=tablebackcolor%> align=center>
<tr>
<td>
<table cellpadding=3 cellspacing=1 border=0 width=100%>
<tr bgcolor='<%=Tabletitlecolor%>'>
<td align=center colspan="2"><font color="<%=TablefontColor%>">歡迎<b><%=membername%></b>進(jìn)入管理頁(yè)面</font>
</td>
</tr>
<tr bgcolor=<%=tablebodycolor%>>
<td width="100%" valign=top><font color="<%=TableContentColor%>">
<%
if request("action")="save" then
call saveconst()
else
call consted()
end if
%></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
end sub
sub consted()
%>
<form method="POST" action=admin_use.asp?action=save>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align=center bordercolor=<%=aTablebackcolor%>>
<tr bgcolor=<%=aTabletitlecolor%>>
<td height="23" colspan="2" ><font color="<%=TableContentColor%>"><B>說明</B>:<BR>1、復(fù)選框中選擇的為當(dāng)前的使用設(shè)置模板,點(diǎn)擊可查看該模板設(shè)置,點(diǎn)擊別的模板直接查看該模板并修改設(shè)置。您可以將您下面的設(shè)置保存在多個(gè)論壇風(fēng)格模板中<BR>2、您也可以將下面設(shè)定的信息保存并應(yīng)用到具體的分論壇設(shè)置中,可多選<BR>3、如果您想在一個(gè)版面引用別的版面或模板的配置,只要點(diǎn)擊該版面或模板名稱,保存的時(shí)候選擇要保存到的版面名稱或模板名稱即可。</font></td>
</tr>
<tr>
<td width="100%" colspan=2><font color="<%=TableContentColor%>"><B>當(dāng)前使用主模板</B>(可將設(shè)置保存到下列模板中)<BR>
<%
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"
else
sel=""
end if
else
sel=""
end if
else
if rs("id")=cint(request("skinid")) then
sel="checked"
else
sel=""
end if
end if
response.write "<input type=checkbox name=skinid value="&rs("id")&" "&sel&"><a href=admin_use.asp?skinid="&rs("id")&"><font color="&TableContentColor&">"&rs("skinname")&"</font></a> "
rs.movenext
loop
rs.close
set rs=nothing
%></font>
</td></tr>
<tr>
<td width="100%" colspan=2><font color="<%=TableContentColor%>"><B>當(dāng)前使用分論壇模板</B>(可將設(shè)置保存到下列論壇中)<BR>
<%
set rs = server.CreateObject ("adodb.recordset")
sql="select * from board"
rs.open sql,conn,1,1
do while not rs.eof
if request("boardid")<>"" or isnumeric(request("boardid")) then
if rs("boardid")=cint(request("boardid")) then
sel="checked"
else
sel=""
end if
end if
response.write "<input type=checkbox name=boardid value="&rs("boardid")&" "&sel&"><a href=admin_use.asp?boardid="&rs("boardid")&"><font color="&TableContentColor&">" & rs("boardtype") & "</font></a> "
rs.movenext
loop
rs.close
set rs=nothing
%></font>
</td></tr>
<tr bgcolor=<%=aTabletitlecolor%>>
<td height="23" colspan="2" ><font color="<%=TableContentColor%>"><b>論壇使用設(shè)置</b></font></td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇當(dāng)前狀態(tài)</B><BR>維護(hù)期間可設(shè)置關(guān)閉論壇使用</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="ForumStop" value=0 <%if cint(ForumStop)=0 then%>checked<%end if%>>打開
<input type=radio name="ForumStop" value=1 <%if cint(ForumStop)=1 then%>checked<%end if%>>關(guān)閉
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>維護(hù)說明</B><BR>在論壇關(guān)閉情況下顯示,支持html語(yǔ)法</td>
<td width="60%"><font color="<%=TableContentColor%>">
<textarea name="StopReadme" cols="50" rows="3"><%=StopReadme%></textarea>
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>服務(wù)器時(shí)差</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<select name="TimeAdjust">
<%for i=-23 to 23%>
<option value="<%=i%>" <%if cint(i)=cint(TimeAdjust) then%>selected<%end if%>><%=i%>
<%next%>
</select>
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>腳本超時(shí)時(shí)間</B><BR>默認(rèn)為300,一般不做更改</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="ScriptTimeOut" size="3" value="<%=ScriptTimeOut%>"> 秒
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>發(fā)送郵件組件</B><BR>如果您的服務(wù)器不支持下列組件,請(qǐng)選擇不支持</td>
<td width="60%"><font color="<%=TableContentColor%>">
<select name="EmailFlag">
<option value="0" <%if EmailFlag=0 then%>selected<%end if%>>不支持
<option value="1" <%if EmailFlag=1 then%>selected<%end if%>>JMAIL
<option value="2" <%if EmailFlag=2 then%>selected<%end if%>>CDONTS
<option value="3" <%if EmailFlag=3 then%>selected<%end if%>>ASPEMAIL
</select>
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>帖子上傳圖片</B><BR>用于帖子圖片的上傳,如分論壇已經(jīng)設(shè)置,以分論壇為準(zhǔn)</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="Uploadpic" value=0 <%if cint(Uploadpic)=0 then%>checked<%end if%>>關(guān)閉
<input type=radio name="Uploadpic" value=1 <%if cint(Uploadpic)=1 then%>checked<%end if%>>打開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>用戶IP</B><BR>該選擇對(duì)版主和管理員無效</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="IpFlag" value=0 <%if cint(IpFlag)=0 then%>checked<%end if%>>保密
<input type=radio name="IpFlag" value=1 <%if cint(IpFlag)=1 then%>checked<%end if%>>公開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>頭像上傳</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="uploadFlag" value=0 <%if uploadFlag=0 then%>checked<%end if%>>關(guān)閉
<input type=radio name="uploadFlag" value=1 <%if uploadFlag=1 then%>checked<%end if%>>打開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>用戶來源</B><BR>該選擇對(duì)版主和管理員無效<BR>為節(jié)省資源建議關(guān)閉</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="FromFlag" value=0 <%if cint(FromFlag)=0 then%>checked<%end if%>>保密
<input type=radio name="FromFlag" value=1 <%if cint(FromFlag)=1 then%>checked<%end if%>>公開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>客人瀏覽論壇</B><BR>可設(shè)置是否允許客人瀏覽論壇</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="guestlogin" value=0 <%if cint(guestlogin)=0 then%>checked<%end if%>>允許
<input type=radio name="guestlogin" value=1 <%if cint(guestlogin)=1 then%>checked<%end if%>>不允許
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>用戶頭銜</B><BR>是否允許用戶自定義頭銜</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="TitleFlag" value=0 <%if cint(TitleFlag)=0 then%>checked<%end if%>>關(guān)閉
<input type=radio name="TitleFlag" value=1 <%if cint(TitleFlag)=1 then%>checked<%end if%>>打開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>在線名單顯示客人在線</B><BR>為節(jié)省資源建議關(guān)閉</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="online_g" value=0 <%if cint(online_g)=0 then%>checked<%end if%>>關(guān)閉
<input type=radio name="online_g" value=1 <%if cint(online_g)=1 then%>checked<%end if%>>打開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>在線名單顯示用戶在線</B><BR>為節(jié)省資源建議關(guān)閉</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="online_u" value=0 <%if cint(online_u)=0 then%>checked<%end if%>>關(guān)閉
<input type=radio name="online_u" value=1 <%if cint(online_u)=1 then%>checked<%end if%>>打開
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>刪除不活動(dòng)用戶時(shí)間</B><BR>可設(shè)置刪除多少分鐘內(nèi)不活動(dòng)用戶<BR>單位:分鐘,請(qǐng)輸入數(shù)字</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="kicktime" size="3" value="<%=kicktime%>"> 分鐘
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>允許同時(shí)在線數(shù)</B><BR>如不想限制,可設(shè)置為999999</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="online_n" size="6" value="<%=online_n%>"> 人
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>新短消息彈出窗口</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="openmsg" value=0 <%if cint(openmsg)=0 then%>checked<%end if%>>否
<input type=radio name="openmsg" value=1 <%if cint(openmsg)=1 then%>checked<%end if%>>是
</td>
</tr>
<tr>
<td height="17" width="40%"><B>帖子內(nèi)容最大的字節(jié)數(shù)</B><BR>請(qǐng)輸入數(shù)字</td>
<td height="17" width="60%">
<input type="text" name="AnnounceMaxBytes" size="6" value="<%=AnnounceMaxBytes%>"> 字節(jié)
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>每頁(yè)顯示最多紀(jì)錄</B><BR>用于論壇所有和分頁(yè)有關(guān)的項(xiàng)目</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="MaxAnnouncePerPage" size="3" value="<%=MaxAnnouncePerPage%>"> 條
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>瀏覽貼子每頁(yè)顯示貼子數(shù)</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="Maxtitlelist" size="3" value="<%=Maxtitlelist%>"> 條
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>聯(lián)盟論壇模式</B><BR>1、每行列出聯(lián)盟論壇詳細(xì)資料<BR>2、聯(lián)盟論壇連接橫向排列<BR>3、顯示聯(lián)盟論壇logo,每行一個(gè)<BR>4、顯示聯(lián)盟論壇logo,橫向排列</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="LinkFlag" value=0 <%if cint(LinkFlag)=0 then%>checked<%end if%>>普通一
<input type=radio name="LinkFlag" value=1 <%if cint(LinkFlag)=1 then%>checked<%end if%>>普通二
<input type=radio name="LinkFlag" value=2 <%if cint(LinkFlag)=2 then%>checked<%end if%>>高級(jí)一
<input type=radio name="LinkFlag" value=3 <%if cint(LinkFlag)=3 then%>checked<%end if%>>高級(jí)二
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>發(fā)貼模式</B><BR>高級(jí)模式為顯示所有項(xiàng)目</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="TopicFlag" value=0 <%if cint(TopicFlag)=0 then%>checked<%end if%>>普通
<input type=radio name="TopicFlag" value=1 <%if cint(TopicFlag)=1 then%>checked<%end if%>>高級(jí)
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>是否允許客人投票</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type=radio name="VoteFlag" value=0 <%if cint(VoteFlag)=0 then%>checked<%end if%>>否
<input type=radio name="VoteFlag" value=1 <%if cint(VoteFlag)=1 then%>checked<%end if%>>是
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇投票項(xiàng)數(shù)目</B><BR>請(qǐng)?zhí)顚憯?shù)字</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="vote_num" size="3" value="<%=vote_num%>">
</td>
</tr>
<tr>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -