?? admin_color.asp
字號:
<!--#include file =conn.asp-->
<!-- #include file="inc/const.asp" -->
<!--#include file=inc/char.asp-->
<!--#include file=chkuser.asp-->
<title><%=ForumName%>--管理頁面</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"),"23")=0 then
Errmsg=Errmsg+"<br>"+"<li>本頁面為管理員專用,請<a href=admin_index.asp target=_top>登陸</a>后進入。<br><li>您沒有管理本頁面的權限。"
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>進入管理頁面</font>
</td>
</tr>
<tr bgcolor=#FFFFFF>
<td width="100%" valign=top><font color="<%=TableContentColor%>">
<%
if request("action")="save" then
call saveconst()
else
call consted()
end if
if founderr then call error()
%></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
end sub
sub consted()
%>
<form method="POST" action=admin_color.asp?action=save>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align=center bordercolor=<%=aTablebackcolor%>>
<tr bgcolor=<%=aTabletitlecolor%>>
<td height="23" colspan="3" ><font color="<%=TableContentColor%>"><B>說明</B>:<BR>1、復選框中選擇的為當前的使用設置模板,點擊可查看該模板設置,點擊別的模板直接查看該模板并修改設置。您可以將您下面的設置保存在多個論壇風格模板中<BR>2、您也可以將下面設定的信息保存并應用到具體的分論壇設置中,可多選<BR>3、如果您想在一個版面引用別的版面或模板的配置,只要點擊該版面或模板名稱,保存的時候選擇要保存到的版面名稱或模板名稱即可。</font></td>
</tr>
<tr>
<td width="100%" colspan=3><font color="<%=TableContentColor%>"><B>當前使用主模板</B>(可將設置保存到下列模板中)<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_color.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=3><font color="<%=TableContentColor%>"><B>當前使用分論壇模板</B>(可將設置保存到下列論壇中)<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_color.asp?boardid="&rs("boardid")&"><font color="&TableContentColor&">" & rs("boardtype") & "</font></a> "
rs.movenext
loop
rs.close
set rs=nothing
%></font>
<script>
function color(para_URL){var URL =new String(para_URL)
window.open(URL,'','width=300,height=220,noscrollbars')}
</SCRIPT>
<tr bgcolor=<%=aTabletitlecolor%>>
<td height="23" colspan="3" ><font color="<%=TableContentColor%>"><b>論壇界面設置</b></font> 單擊 <a href="javascript:color('color.asp')"><font color="<%=TableContentColor%>">這里</font></a> 使用萬用顏色拾取器</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>論壇BODY標簽</B><br>
控制整個論壇風格的背景顏色或者背景圖片等</font></td>
<td width="5%"></td>
<td width="50%">
<input type="text" name="ForumBody" size="35" value="<%=ForumBody%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格邊框顏色一</B><br>
一般頁面</font></td>
<td width="5%" bgcolor="<%=Tablebackcolor%>"></td>
<td width="50%">
<input type="text" name="Tablebackcolor" size="35" value="<%=Tablebackcolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格邊框顏色二</B><br>
用戶頁面、提示頁面</font></td>
<td width="5%" bgcolor="<%=aTablebackcolor%>"></td>
<td width="50%">
<input type="text" name="aTablebackcolor" size="35" value="<%=aTablebackcolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>標題表格顏色一(深背景)</B><br>
一般頁面</font></td>
<td width="5%" bgcolor="<%=Tabletitlecolor%>"></td>
<td width="50%">
<input type="text" name="Tabletitlecolor" size="35" value="<%=Tabletitlecolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>標題表格顏色二(淺背景)</B><br>
用戶頁面、提示頁面</font></td>
<td width="5%" bgcolor="<%=aTabletitlecolor%>"></td>
<td width="50%">
<input type="text" name="aTabletitlecolor" size="35" value="<%=aTabletitlecolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格體顏色一</B></font></td>
<td width="5%" bgcolor="<%=Tablebodycolor%>"></td>
<td width="50%">
<input type="text" name="Tablebodycolor" size="35" value="<%=Tablebodycolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格體顏色二</B>(1和2顏色在首頁顯示中穿插)</font></td>
<td width="5%" bgcolor="<%=aTablebodycolor%>"></td>
<td width="50%">
<input type="text" name="aTablebodycolor" size="35" value="<%=aTablebodycolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格標題欄字體顏色</B></font></td>
<td width="5%" bgcolor="<%=TableFontcolor%>"></td>
<td width="50%">
<input type="text" name="TableFontcolor" size="35" value="<%=TableFontcolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格內容欄字體顏色</B></font></td>
<td width="5%" bgcolor="<%=TableContentcolor%>"></td>
<td width="50%">
<input type="text" name="TableContentcolor" size="35" value="<%=TableContentcolor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>警告提醒語句的顏色</B></font></td>
<td width="5%" bgcolor="<%=AlertFontColor%>"></td>
<td width="50%">
<input type="text" name="AlertFontColor" size="35" value="<%=AlertFontColor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>顯示帖子的時候,相關帖子,轉發帖子,回復等的顏色</B></font></td>
<td width="5%" bgcolor="<%=ContentTitle%>"></td>
<td width="50%">
<input type="text" name="ContentTitle" size="35" value="<%=ContentTitle%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>網頁字體顏色(表格外)</B></font></td>
<td width="5%" bgcolor="<%=BodyFontColor%>"></td>
<td width="50%">
<input type="text" name="BodyFontColor" size="35" value="<%=BodyFontColor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>首頁連接顏色</B><BR>如版面連接</font></td>
<td width="5%" bgcolor="<%=BoardLinkColor%>"></td>
<td width="50%">
<input type="text" name="BoardLinkColor" size="35" value="<%=BoardLinkColor%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>表格寬度</B></font></td>
<td width="5%"></td>
<td width="50%">
<input type="text" name="tablewidth" size="35" value="<%=tablewidth%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>一般用戶名稱字體顏色</B></font></td>
<td width="5%" bgcolor="<%=user_fc%>"></td>
<td width="50%">
<input type="text" name="user_fc" size="35" value="<%=user_fc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>一般用戶名稱上的光暈顏色</B></font></td>
<td width="5%" bgcolor="<%=user_mc%>"></td>
<td width="50%">
<input type="text" name="user_mc" size="35" value="<%=user_mc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>版主名稱字體顏色</B></font></td>
<td width="5%" bgcolor="<%=bmaster_fc%>"></td>
<td width="50%">
<input type="text" name="bmaster_fc" size="35" value="<%=bmaster_fc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>版主名稱上的光暈顏色</B></font></td>
<td width="5%" bgcolor="<%=bmaster_mc%>"></td>
<td width="50%">
<input type="text" name="bmaster_mc" size="35" value="<%=bmaster_mc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>管理員名稱字體顏色</B></font></td>
<td width="5%" bgcolor="<%=master_fc%>"></td>
<td width="50%">
<input type="text" name="master_fc" size="35" value="<%=master_fc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>版主名稱上的光暈顏色</B></font></td>
<td width="5%" bgcolor="<%=master_mc%>"></td>
<td width="50%">
<input type="text" name="master_mc" size="35" value="<%=master_mc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>貴賓名稱字體顏色</B></font></td>
<td width="5%" bgcolor="<%=vip_fc%>"></td>
<td width="50%">
<input type="text" name="vip_fc" size="35" value="<%=vip_fc%>">
</td>
</tr>
<tr>
<td width="45%"><font color="<%=TableContentColor%>"><B>貴賓名稱上的光暈顏色</B></font></td>
<td width="5%" bgcolor="<%=vip_mc%>"></td>
<td width="50%">
<input type="text" name="vip_mc" size="35" value="<%=vip_mc%>">
</tr>
<tr bgcolor=<%=aTabletitlecolor%>>
<td width="45%"> </td>
<td width="5%"></td>
<td width="50%">
<div align="center">
<input type="submit" name="Submit" value="提 交">
</div>
</td>
</tr>
</table>
</form>
<%
end sub
sub saveconst()
if trim(request("skinid"))="" and trim(request("boardid"))="" then
Founderr=true
Errmsg=Errmsg+"<br>"+"<li>請選擇保存的模板名稱"
else
Forum_body=request("Tablebackcolor") & "," & request("aTablebackcolor") & "," & request("Tabletitlecolor") & "," & request("aTabletitlecolor") & "," & request("Tablebodycolor") & "," & request("aTablebodycolor") & "," & request("TableFontcolor") & "," & request("TableContentcolor") & "," & request("AlertFontColor") & "," & request("ContentTitle") & "," & request("AlertFontColor") & "," & request("ForumBody") & "," & request("TableWidth") & "," & request("BodyFontColor") & "," & request("BoardLinkColor") & "," & request("user_fc") & "," & request("user_mc") & "," & request("bmaster_fc") & "," & request("bmaster_mc") & "," & request("master_fc") & "," & request("master_mc") & "," & request("vip_fc") & "," & request("vip_mc")
'response.write Forum_body
if request("skinid")<>"" then
sql = "update config set Forum_body='"&Forum_body&"' where id in ( "&request("skinid")&" )"
conn.execute(sql)
end if
if request("boardid")<>"" then
sql = "update board set Forum_body='"&Forum_body&"' where boardid in ( "&request("boardid")&" )"
conn.execute(sql)
end if
response.write "設置成功。"
end if
end sub
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -