index_top.asp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <!--#include file="common.asp"-->
  2. <!--#include file="CheckComeUrl.asp"-->
  3. <%
  4. Dim uid, rsRole, isAdmin
  5. uid = trim(request("uid"))
  6. if trim(Lcase(AdminName)) = "admin" then
  7. isAdmin = true
  8. else
  9. isAdmin = false
  10. end if
  11. %>
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml">
  14. <head>
  15. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  16. <title><%=systemPageTitle%></title>
  17. <link href="bs2010.css" rel="stylesheet" type="text/css" />
  18. <script type="text/javascript" src="js/share.js"></script>
  19. <script type="text/javascript" src="js/prototype.js"></script>
  20. </head>
  21. <body>
  22. <div id="sysversion" name="sysversion" style=" width:100%; height:20px; z-index:20; position:absolute; top:5px; right:10px; text-align:right; color:#FFF; font-size:10px;">Version: <%=sysVersion%></div>
  23. <div>
  24. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  25. <tr>
  26. <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  27. <tr class="header">
  28. <td width="29%"><img src="images/2010_logo.gif" /></td>
  29. <td width="71%" align="right"><img src="images/2010_topright.gif" width="340" height="83" /></td>
  30. </tr>
  31. <tr>
  32. <td height="22" colspan="2" class="topMenubar"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  33. <tr>
  34. <td width="20" height="22"><img src="images/spacer.gif" width="20" height="22" /></td>
  35. <td width="100" align="center" class="topMenu"><a href="index_main.asp" target="main">&#x8BBE;&#x5907;&#x76D1;&#x63A7;</a></td>
  36. <td width="100" align="center" class="topMenu"><a href="report.asp" target="main"><%if allowHistoryDataSearch = false then response.write "报警查询" else response.write "日志报表"%></a></td>
  37. <%if isAdmin = true and showAdmin = true then%>
  38. <td width="100" align="center" class="topMenu"><a href="admin_area.asp" target="main">菜单管理</a></td>
  39. <td width="100" align="center" class="topMenu"><a href="admin_equipment.asp" target="main">设备管理</a></td>
  40. <%end if%>
  41. <%
  42. if isAdmin = true then
  43. if showUserAdmin = true then
  44. %>
  45. <td width="100" align="center" class="topMenu"><a href="admin_user.asp" target="main">用户管理</a></td>
  46. <%
  47. end if
  48. if useUserLog = true then
  49. %>
  50. <td width="100" align="center" class="topMenu"><a href="admin_userLog.asp" target="main">用户日志</a></td>
  51. <%
  52. end if
  53. end if
  54. %>
  55. <td align="right">操作员:<%=AdminName%>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <a href="login.asp?Action=Logout" target="_top">&gt;&gt;退出</a></td>
  56. <td width="20"><img src="images/spacer.gif" width="20" height="22" /></td>
  57. </tr>
  58. </table></td>
  59. </tr>
  60. </table></td>
  61. </tr>
  62. </table>
  63. </div>
  64. </body>
  65. </html>
  66. <%
  67. Call CloseConn
  68. %>