?? admin_announce.asp
字號:
<!--#include file =conn.asp-->
<!-- #include file="inc/const.asp" -->
<title><%=txl_info(0)%>--管理頁面</title>
<!--#include file="inc/admin_css.asp"-->
<meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GB2312>
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<%
if not supermaster or session("flag")="" then
Errmsg=Errmsg+"<br>"+"<li>本頁面為管理員專用,請<a href=admin_index.asp target=_top>登陸</a>后進(jìn)入。<br><li>您沒有管理本頁面的權(quán)限。"
call txl_error()
else
call top()
if request("action")="AddAnn" then
call addann()
elseif request("action")="SaveAnn" then
call saveann()
elseif request("action")="EditAnn" then
call EditAnn()
elseif request("action")="SaveEdit" then
call SaveEdit()
elseif request("action")="Savemana" then
call Savemana()
elseif request("action")="delann" then
call delann()
else
call main()
end if
conn.close
set conn=nothing
end if
sub main()
%>
<FORM METHOD=POST ACTION="?action=Savemana">
<table width="95%" border="0" cellspacing="1" cellpadding="3" align=center class="tableBorder">
<tr>
<th width="5%" id=TableTitleLink height=25>ID</th>
<th width="55%" id=TableTitleLink>標(biāo)題</th>
<th width="20%" id=TableTitleLink>日期</th>
<th width="10%" id=TableTitleLink>操作</th>
<th width="10%" id=TableTitleLink>選定</th>
</tr>
<%
set rs=conn.execute("select * from txlnews order by addtime desc")
do while not rs.eof
%>
<tr>
<td width="5%" align=center height=25 class=txlrow><%=rs("id")%></td>
<td width="55%" class=txlrow><a href="?action=EditAnn&id=<%=rs("id")%>"><%=htmlencode(rs("title"))%></a></td>
<td width="20%" align=center class=txlrow><%=rs("addtime")%></td>
<td width="10%" align=center class=txlrow><a href="?action=delann&id=<%=rs("id")%>" onclick="{if(confirm('您確定執(zhí)行的操作嗎?')){return true;}return false;}"><u>刪除</u></a></td>
<td width="10%" align=center class=txlrow><input type="radio" name="id" value="<%=rs("id")%>" <%if rs("active")=1 then response.write "checked"%>></td>
</tr>
<%
rs.movenext
loop
set rs=nothing
%>
<tr>
<td class=txlrow colspan=5 align=right>選擇首頁要顯示的公告
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -