admin_announce.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file =conn.asp-->
  2. <!-- #include file="inc/const.asp" -->
  3. <title><%=txl_info(0)%>--管理页面</title>
  4. <!--#include file="inc/admin_css.asp"-->
  5. <meta NAME=GENERATOR Content="Microsoft FrontPage 3.0" CHARSET=GB2312>
  6. <BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
  7. <%
  8. if not supermaster or session("flag")="" then
  9. Errmsg=Errmsg+"<br>"+"<li>本页面为管理员专用,请<a href=admin_index.asp target=_top>登陆</a>后进入。<br><li>您没有管理本页面的权限。"
  10. call txl_error()
  11. else
  12. call top()
  13. if request("action")="AddAnn" then
  14. call addann()
  15. elseif request("action")="SaveAnn" then
  16. call saveann()
  17. elseif request("action")="EditAnn" then
  18. call EditAnn()
  19. elseif request("action")="SaveEdit" then
  20. call SaveEdit()
  21. elseif request("action")="Savemana" then
  22. call Savemana()
  23. elseif request("action")="delann" then
  24. call delann()
  25. else
  26. call main()
  27. end if
  28. conn.close
  29. set conn=nothing
  30. end if
  31. sub main()
  32. %>
  33. <FORM METHOD=POST ACTION="?action=Savemana">
  34. <table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
  35. <tr>
  36. <th width="5%" id=TableTitleLink height=25>ID</th>
  37. <th width="55%" id=TableTitleLink>标题</th>
  38. <th width="20%" id=TableTitleLink>日期</th>
  39. <th width="10%" id=TableTitleLink>操作</th>
  40. <th width="10%" id=TableTitleLink>选定</th>
  41. </tr>
  42. <%
  43. set rs=conn.execute("select * from txlnews order by addtime desc")
  44. do while not rs.eof
  45. %>
  46. <tr>
  47. <td width="5%" align=center height=25 class=txlrow><%=rs("id")%></td>
  48. <td width="55%" class=txlrow><a href="?action=EditAnn&id=<%=rs("id")%>"><%=htmlencode(rs("title"))%></a></td>
  49. <td width="20%" align=center class=txlrow><%=rs("addtime")%></td>
  50. <td width="10%" align=center class=txlrow><a href="?action=delann&id=<%=rs("id")%>" onclick="{if(confirm('您确定执行的操作吗?')){return true;}return false;}"><u>删除</u></a></td>
  51. <td width="10%" align=center class=txlrow><input type="radio" name="id" value="<%=rs("id")%>" <%if rs("active")=1 then response.write "checked"%>></td>
  52. </tr>
  53. <%
  54. rs.movenext
  55. loop
  56. set rs=nothing
  57. %>
  58. <tr>
  59. <td class=txlrow colspan=5 align=right>选择首页要显示的公告