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

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" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
  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. if request("action")="save" then
  13. call saveconst()
  14. else
  15. call consted()
  16. end if
  17. if founderr then call txl_error()
  18. conn.close
  19. set conn=nothing
  20. end if
  21. sub consted()
  22. dim sel
  23. %>
  24. <table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
  25. <form method="POST" action=admin_color.asp?action=save>
  26. <tr> 
  27. <th width="100%" colspan=3>当前使用模板设置</th>
  28. </tr>
  29. <%
  30. dim skinname
  31. if not isnumeric(request("skinid")) or request("skinid")="" or request("skinid")="0" then
  32. sqlstr=" active=1"
  33. else
  34. sqlstr=" id="&request("skinid")&" "
  35. end if
  36. sql = "select * from config where "&sqlstr&""
  37. set rs=conn.execute(sql)
  38. if rs.eof and rs.bof then
  39. response.write "错误的系统参数,没有选择模板。"
  40. response.end
  41. else
  42. skinname=rs("skinname")
  43. skinid=rs("id")
  44. txl_body=split(rs("txl_body"),"|||")
  45. end if
  46. rs.close
  47. set rs=nothing
  48. %>
  49. <input type=hidden name="skinid" value="<%=skinid%>">
  50. <tr> 
  51. <td width="45%" class=txlrow><u>当前模板名称</u>