_header_first.jsp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <%@ page language="java" pageEncoding="UTF-8" %>
  2. <style>
  3. /*.navbar-right li a{*/
  4. /*padding:15px 10px!important;*/
  5. /*}*/
  6. .navbar-brand{
  7. /*padding-top:15px!important;*/
  8. }
  9. .btn-sm{
  10. background-color: transparent;
  11. outline: none!important;
  12. }
  13. .btn-sm:hover{
  14. background-color: #ddd;
  15. }
  16. .btn-sm:active{
  17. background-color: #ccc;
  18. box-shadow: none;
  19. }
  20. .btn-sm:focus{
  21. background-color: #ccc;
  22. box-shadow: none;
  23. }
  24. .more_more{
  25. color:#fff;
  26. border: 1px solid #fff;
  27. }
  28. .more_more:hover{
  29. background-color: #fff;
  30. color:#000;
  31. border: 1px solid #fff;
  32. }
  33. .more_more:visited{
  34. background-color: #fff;
  35. color:#000;
  36. border: 1px solid #fff;
  37. }
  38. .more_more:focus{
  39. background-color: #fff;
  40. color:#000;
  41. border: 1px solid #fff;
  42. }
  43. .lanlan{
  44. position: relative;
  45. }
  46. .container-fluid{
  47. padding-top: 5px;
  48. padding-bottom: 5px;
  49. }
  50. </style>
  51. <c:if test="${not empty flashMessages}">
  52. <div id="m-success-message" style="display:none;">
  53. <ul>
  54. <c:forEach items="${flashMessages}" var="item">
  55. <li>${item}</li>
  56. </c:forEach>
  57. </ul>
  58. </div>
  59. </c:if>
  60. <script type="text/javascript">
  61. function unreadCount() {
  62. $.getJSON('${tenantPrefix}/rs/msg/unreadCount?_sed=' + new Date().getTime(), {}, function(data) {
  63. if (data.data == 0) {
  64. $('#unreadMsg').html('');
  65. } else {
  66. $('#unreadMsg').html(data.data);
  67. }
  68. });
  69. }
  70. unreadCount();
  71. setInterval(unreadCount, 10000);
  72. </script>