navigation.jsp
上传用户:ycdfsj258
上传日期:2022-08-04
资源大小:1094k
文件大小:5k
源码类别:

图形图象

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.core.ChStr"%>
  3. <%@ page import="com.dao.ManagerDAO"%>
  4. <%@ page import="com.actionForm.ManagerForm"%>
  5. <%
  6. //验证用户是否登录
  7. String manager = "";
  8. manager = (String) session.getAttribute("manager");
  9. if (manager == null || "".equals(manager)) {
  10. response.sendRedirect("login.jsp");
  11. }
  12. ChStr chStr = new ChStr();
  13. ManagerDAO managerDAO = new ManagerDAO();
  14. ManagerForm form1 = (ManagerForm) managerDAO.query_p(manager);
  15. int sysset1 = 0;
  16. int readerset1 = 0;
  17. int bookset1 = 0;
  18. int borrowback1 = 0;
  19. int sysquery1 = 0;
  20. if (form1 != null) {
  21. sysset1 = form1.getSysset();
  22. readerset1 = form1.getReaderset();
  23. bookset1 = form1.getBookset();
  24. borrowback1 = form1.getBorrowback();
  25. sysquery1 = form1.getSysquery();
  26. }
  27. %>
  28. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  29. <script src="JS/onclock.JS"></script>
  30. <script src="JS/menu.JS"></script>
  31. <script language="javascript">
  32.  function mycheck(){
  33.    
  34.  }
  35.  </script>
  36. <div class=menuskin id=popmenu
  37. onmouseover="clearhidemenu();highlightmenu(event,'on')"
  38. onmouseout="highlightmenu(event,'off');dynamichide(event)"
  39. style="Z-index:100;position:absolute;"></div>
  40. <table width="778" border="0" align="center" cellpadding="0"
  41. cellspacing="0">
  42. <tr>
  43. <td height="150" valign="top" background="Images/top_bg.gif"
  44. bgcolor="#EEEEEE">
  45. <table width="100%" height="53" border="0" cellpadding="0"
  46. cellspacing="0">
  47. <tr>
  48. <td width="77%" height="18">&nbsp;
  49. </td>
  50. <td colspan="4">&nbsp;
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>&nbsp;
  55. </td>
  56. <td width="2%">
  57. <img src="Images/Top_flag.gif" width="3" height="7">
  58. </td>
  59. <td width="8%">
  60. <a href="#" onClick="window.location.reload();">刷新页面</a>
  61. </td>
  62. <td width="1%">
  63. <img src="Images/Top_flag.gif" width="3" height="7">
  64. </td>
  65. <script language="javascript">
  66. function myclose(){
  67. if(confirm("真的要关闭当前窗口吗?")){
  68. window.close();
  69. }
  70. }
  71. </script>
  72. <td width="12%">
  73. <a href="#" onClick="myclose()">关闭系统</a>
  74. </td>
  75. </tr>
  76. </table>
  77. <table width="98%" height="93" border="0" cellpadding="0"
  78. cellspacing="0">
  79. <tr>
  80. <td align="right" valign="bottom" class="word_Green">
  81. 当前登录用户:
  82. <%=chStr.toChinese(manager)%>
  83. </td>
  84. </tr>
  85. </table>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td height="33" align="right" background="Images/navigation_bg.gif"
  90. bgcolor="#EEEEEE">
  91. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  92. <tr>
  93. <td width="3%">&nbsp;
  94. </td>
  95. <td width="25%">
  96. <div id="bgclock" class="word_Green"></div>
  97. </td>
  98. <script language="javascript">
  99. function quit(){
  100. if(confirm("真的要退出系统吗?")){
  101. window.location.href="logout.jsp";
  102. }
  103. }
  104. </script>
  105. <td width="70%" align="right">
  106. <a href="main.jsp">首页</a>┊
  107. <%
  108. if (borrowback1 == 1) {
  109. %>
  110. <a href="bookBorrow.jsp">借阅</a>┊
  111. <%
  112. }
  113. %>
  114. <%
  115. if (borrowback1 == 1) {
  116. %>
  117. <a href="bookRenew.jsp">续借</a>┊
  118. <%
  119. }
  120. %>
  121. <%
  122. if (borrowback1 == 1) {
  123. %>
  124. <a href="bookBack.jsp">归还</a>┊
  125. <%
  126. }
  127. %>
  128. <%
  129. if (readerset1 == 1) {
  130. %>
  131. <a onmouseover=showmenu(event,readermenu)
  132. onmouseout=delayhidemenu() class='navlink' style="CURSOR:hand">读者管理</a>┊
  133. <%
  134. }
  135. %>
  136. <%
  137. if (bookset1 == 1) {
  138. %>
  139. <a onmouseover=showmenu(event,bookmenu) onmouseout=delayhidemenu()
  140. class='navlink' style="CURSOR:hand">图书管理</a>┊
  141. <%
  142. }
  143. %>
  144. <%--<%
  145. if (borrowback1 == 1) {
  146. %>
  147. <a onmouseover=showmenu(event,borrowmenu)
  148. onmouseout=delayhidemenu() class='navlink' style="CURSOR:hand">图书借还</a>┊
  149. <%
  150. }
  151. %>
  152. --%><%
  153. if (sysquery1 == 1) {
  154. %>
  155. <a onmouseover=showmenu(event,querymenu)
  156. onmouseout=delayhidemenu() class='navlink' style="CURSOR:hand">系统查询</a>┊
  157. <%
  158. }
  159. %>
  160. <a onmouseover=showmenu(event,sortmenu) onmouseout=delayhidemenu()
  161. class='navlink' style="CURSOR:hand">排行榜</a>┊
  162. <%--<a href="manager.do?action=querypwd">更改口令</a>┊
  163. --%>
  164. <%
  165. if (sysset1 == 1) {
  166. %>
  167. <a onmouseover=showmenu(event,sysmenu) onmouseout=delayhidemenu()
  168. class='navlink' style="CURSOR:hand">系统设置</a>┊
  169. <%
  170. }
  171. %>
  172. <a href="#" onClick="quit()">退出系统</a>
  173. </td>
  174. <td width="2%">&nbsp;
  175. </td>
  176. </tr>
  177. </table>
  178. </td>
  179. </tr>
  180. </table>