?? admin_skin.asp
字號:
<!--#include file="conn.asp"-->
<!-- #include file="inc/const.asp" -->
<!--#include file=inc/char.asp-->
<!--#include file=chkuser.asp-->
<!-- #include file="admin_config.asp" -->
<title><%=ForumName%>--管理頁面</title>
<link rel="stylesheet" type="text/css" href="forum.css">
<BODY <%=ForumBody%>>
<%
if instr(session("flag"),"26")=0 then
Errmsg=Errmsg+"<br>"+"<li>本頁面為管理員專用,請<a href=admin_index.asp target=_top>登陸</a>后進入。<br><li>您沒有管理本頁面的權限。"
call Error()
else
dim rs,sql
dim body
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><font color="<%=TablefontColor%>">歡迎<b><%=membername%></b>進入管理中心</font>
</td>
</tr>
<tr bgcolor=<%=tablebodycolor%>>
<td width="100%" valign=top><p><font color="<%=TableContentColor%>">
<%
select case request("action")
case "save"
call saveskin()
case "news"
call step1()
case "step2"
call step2()
case "step3"
call step3()
case "step4"
call step4()
case "active"
call active()
case "delete"
call delete()
case "edit"
call edit()
case "savedit"
call savedit()
case else
call skininfo()
end select
%></font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
end sub
sub delete()
set rs=conn.execute("select skinname from config where active=1 and id="&request("skinid"))
if rs.eof and rs.bof then
conn.execute("delete from config where id="&request("skinid"))
response.write "刪除成功。"
else
response.write "錯誤提示:當前使用的論壇模板不能刪除,請先設置該模板為不是當前模板狀態。"
end if
rs.close
set rs=nothing
end sub
sub edit()
set rs=conn.execute("select skinname from config where id="&request("skinid"))
%>
<form method="POST" action="?action=savedit">
<input type=hidden value="<%=request("skinid")%>" name="skinid">
<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>請詳細填寫以下信息,修改模板配置請返回點擊相關連接。</font></td>
</tr>
<tr bgcolor=<%=Tabletitlecolor%>>
<td height="23" colspan="2" ><font color=<%=TableFontcolor%>><b>修改模板名稱</b></font></td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>模板名稱</B></font></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="SkinName" size="35" value="<%=rs(0)%>">
</td>
</tr>
<tr bgcolor=<%=Tabletitlecolor%>>
<td width="40%"><font color="<%=TableContentColor%>"> </td>
<td width="60%"><font color="<%=TableContentColor%>">
<div align="center">
<input type="submit" name="Submit" value="提交修改">
</div>
</td>
</tr>
</table>
</form>
<%
rs.close
set rs=nothing
end sub
sub savedit()
conn.execute("update config set skinname='"&request("skinname")&"' where id="&request("skinid"))
response.write "修改成功。"
end sub
sub skininfo()
%>
<form method=post action="admin_skin.asp?action=active">
<table width="95%" border="0" cellspacing="3" cellpadding="0" align=center>
<tr>
<td colspan=2 bgcolor="<%=aTableTitleColor%>"> <font color="<%=TableContentColor%>">
<p><b>論壇模板選擇管理</b>:<br>
注意:可點擊相應模板進行統一查看和管理,可以設置某個模板為當前使用。由于相關的設置項目非常多,為了不至混淆,建議對當前使用的模板修改點擊相應管理菜單進行修改,點擊模板名稱進行修改模板名。</p><B><a href=admin_skin.asp?action=news>添加新的模板</a></B></font>
</td>
</tr>
<tr bgcolor="<%=TableTitleColor%>">
<td width="83%" height=22><font color="<%=TablefontColor%>"> <B>模板名稱</B></font></td><td width="17%"><font color="<%=TablefontColor%>"> <B>當前是否使用</B></font></td>
</tr>
<%
set rs=conn.execute("select id,active,skinname from config order by id desc")
do while not rs.eof
%>
<tr>
<td height=25> <a href="admin_skin.asp?action=edit&skinid=<%=rs("id")%>"><%=rs(2)%></a>(<a href="admin_var.asp?skinid=<%=rs("id")%>"><font color="<%=Boardlinkcolor%>"><U>基本信息</U></font></a> | <a href="admin_use.asp?skinid=<%=rs("id")%>"><font color="<%=Boardlinkcolor%>"><U>使用設置</U></font></a> | <a href="admin_color.asp?skinid=<%=rs("id")%>"><font color="<%=Boardlinkcolor%>"><U>界面設置</U></font></a> | <a href="admin_pic.asp?skinid=<%=rs("id")%>"><font color="<%=Boardlinkcolor%>"><U>圖片設置</U></font></a> | <a href="admin_ads.asp?skinid=<%=rs("id")%>"><font color="<%=Boardlinkcolor%>"><U>廣告設置</U></font></a> | <a href="admin_skin.asp?action=delete&skinid=<%=rs("id")%>" onclick="{if(confirm('刪除后不可恢復,確定刪除嗎?')){return true;}return false;}"><font color="<%=Boardlinkcolor%>"><U>刪除</U></font></a>)</td>
<td> <input type=radio name=skinid value="<%=rs(0)%>" <%if rs(1)=1 then%>checked<%end if%>></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
<tr bgcolor="<%=TableTitleColor%>">
<td width="80%" height=22 align=right><font color="<%=TablefontColor%>"> 當前論壇默認使用模板只能選擇一個 </font></td><td width="50%"><font color="<%=TableContentColor%>"><input type=submit value="提 交" name=submit></td>
</tr>
</table>
</form>
<%
end sub
sub step1()
%>
<form method="POST" action=?action=step2>
<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>請詳細填寫以下信息,只有填寫完所有步驟的信息,該模板才能保存到論壇模板列表中。</font></td>
</tr>
<tr bgcolor=<%=Tabletitlecolor%>>
<td height="23" colspan="2" ><font color=<%=TableFontcolor%>><b>論壇基本信息</b></font></td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>模板名稱</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="SkinName" size="35">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇名稱</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="ForumName" size="35" value="<%=ForumName%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇的url</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="ForumURL" size="35" value="<%=ForumURL%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>主頁名稱</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="CompanyName" size="35" value="<%=CompanyName%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>主頁URL</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="HostUrl" size="35" value="<%=HostUrl%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>SMTP Server地址</B><BR>只有在論壇使用設置中打開了發送郵件功能,該填寫內容方有效</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="SMTPServer" size="35" value="<%=SMTPServer%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇管理員Email</B><BR>給用戶發送郵件時,顯示的來源Email信息</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="SystemEmail" size="35" value="<%=SystemEmail%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇首頁Logo地址</B><BR>顯示在論壇首頁,添加論壇如果沒有填寫logo地址,則使用該內容</td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="Logo" size="35" value="<%=ForumLogo%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇圖片目錄</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="Picurl" size="35" value="<%=picurl%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇表情目錄</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="Faceurl" size="35" value="<%=Faceurl%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>論壇所在時區</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="GMT" size="35" value="<%=GMT%>">
</td>
</tr>
<tr>
<td width="40%"><font color="<%=TableContentColor%>"><B>版權信息</B></td>
<td width="60%"><font color="<%=TableContentColor%>">
<input type="text" name="Copyright" size="35" value="<%=Copyright%>">
</td>
</tr>
<tr bgcolor=<%=Tabletitlecolor%>>
<td width="40%"><font color="<%=TableContentColor%>"> </td>
<td width="60%"><font color="<%=TableContentColor%>">
<div align="center">
<input type="submit" name="Submit" value="下一步">
</div>
</td>
</tr>
</table>
</form>
<%
end sub
sub step2()
Forum_info=Request("ForumName") & "," & Request("ForumURL") & "," & Request("CompanyName") & "," & Request("HostUrl") & "," & Request("SMTPServer") & "," & Request("SystemEmail") & "," & Request("Logo") & "," & Request("Picurl") & "," & Request("Faceurl") & "," & Request("GMT")
Forum_copyright=request("copyright")
skinName=request("skinname")
%>
<form method="POST" action=?action=step3>
<input type=hidden value="<%=Forum_info%>" name="Forum_info">
<input type=hidden value="<%=Forum_copyright%>" name="Forum_copyright">
<input type=hidden value="<%=skinname%>" name="skinname">
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -