top.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" session="true" %>
  2. <html>
  3. <head>
  4. <script src="${ctxStatic}/plugin/layui/layer/layer.js"></script>
  5. <script src="${ctxStatic}/plugin/layui/laytpl/laytpl.js"></script>
  6. </head>
  7. <script type="text/javascript">
  8. $(function() {
  9. $('#fav').addFavorite('收藏本站',location.href);
  10. })
  11. jQuery.fn.addFavorite = function(l, h) {
  12. return this.click(function() {
  13. var t = jQuery(this);
  14. if(jQuery.browser.msie) {
  15. window.external.addFavorite(h, l);
  16. } else if (jQuery.browser.mozilla || jQuery.browser.opera) {
  17. t.attr("rel", "sidebar");
  18. t.attr("title", l);
  19. t.attr("href", h);
  20. } else {
  21. alert("请使用Ctrl+D将本页加入收藏夹!");
  22. }
  23. });
  24. };
  25. function exit() {
  26. layer.confirm('确认要退出登录吗?', {icon: 3, title:'提示'}, function(index){
  27. window.location.href = "${ctxF}/logout";
  28. layer.close(index);
  29. });
  30. }
  31. </script>
  32. <body>
  33. <div class="top">
  34. <div class="w">
  35. <div class="top_left fl"><i><img src="${ctxStaticWeb}/img/index_03.png"></i>
  36. <a href="javascript:;" id="fav">收藏本站</a>
  37. </div>
  38. <div class="top_right fr">
  39. <c:choose>
  40. <c:when test="${applicationScope.talentPerson == null}">
  41. <a href="${ctxF}/login">登录</a>&nbsp;&nbsp;
  42. <%--|&nbsp;&nbsp;<a href="${ctxF}/register">注册</a>--%>
  43. </c:when>
  44. <c:otherwise>
  45. ${applicationScope.talentPerson.name},欢迎登录&nbsp;&nbsp;|
  46. <a href="${ctxF}/info">个人中心</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#" onclick="exit()">退出登录</a>
  47. </c:otherwise>
  48. </c:choose>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="logo w ">
  53. <div class="logo_left fl"><img src="${ctxStaticWeb}/img/index_07.png" width="489" height="100"></div>
  54. <div class="logo_right fr">
  55. <%--<div class="sreach">
  56. <input type="text" placeholder="输入您想查找的内容">
  57. <a href="#"></a>
  58. </div>--%>
  59. </div>
  60. </div>
  61. <div class="nav w clearfix">
  62. <a href="${ctx}/">网站首页</a>
  63. <a href="${ctxF}/columnNews">学习专题</a>
  64. <a href="${ctxF}/videonews?typeId=1">榜样风采</a>
  65. <a href="${ctxF}/videonews?typeId=2">远教直播</a>
  66. <a href="${ctxF}/news?typeId=3">党史知识</a>
  67. <a href="${ctxF}/videonews?typeId=3">干部网苑</a>
  68. <a href="${ctxF}/news?typeId=5">远教课件</a>
  69. <c:choose>
  70. <c:when test="${applicationScope.talentPerson == null}">
  71. <a href="${ctxF}/login">在线考试</a>
  72. </c:when>
  73. <c:otherwise>
  74. <a href="${ctxF}/exam/wait">在线考试</a>
  75. </c:otherwise>
  76. </c:choose>
  77. <a href="${ctxF}/service">便民服务</a>
  78. </div>
  79. </body>
  80. </html>