ssjg.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>${siteTitle!}</title>
  6. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc/css/ly_html.css">
  7. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc/css/bcrc-body.css">
  8. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc/css/bcrc-page.css">
  9. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc/css/bcrc-index.css">
  10. <link rel="stylesheet" type="text/css" href="${resPath}/syrc/css/myPagination.css">
  11. <script src="${resPath}/syrc/js/jquery-1.7.2.min.js"></script>
  12. <script src="${resPath}/syrc/js/TL_Tab.js"></script>
  13. <script src="${resPath}/syrc/js/TL_PC_Slider.js"></script>
  14. <script src="${resPath}/syrc/js/myPagination.js"></script>
  15. </head>
  16. <style>
  17. .fy .pag li a {width: auto;float: none;color: #333;}
  18. .fy .pag {
  19. text-align: center;
  20. height: 20px;
  21. line-height: 20px;
  22. clear: both;
  23. float: none;
  24. padding: 0px;
  25. }
  26. .fy .pag li {
  27. text-align: center;
  28. margin: 0px 2px;
  29. padding: 0px 8px;
  30. height: 20px;
  31. line-height: 20px;
  32. text-decoration: none;
  33. display: inline-block;
  34. border: 1px solid #318ddc;
  35. width: auto;
  36. }
  37. .fy .pag .current {
  38. background-color: #318ddc;
  39. }
  40. </style>
  41. <body>
  42. <div class="contentbig">
  43. <!--头部开始-->
  44. @includeFileTemplate("/www/syrc/include/header.html",{"current":"index"}){}
  45. <!--头部结束-->
  46. <!--内容开始-->
  47. <div class="wz_cont">
  48. <div class="wz_cont_in">
  49. <div class="dqwz"><a target="_blank" href="${frontPath!}/4">首页</a>>><a>站内搜索</a></div>
  50. <div class="all_title"><a><span>站内搜索</span></a></div>
  51. @for(content in list){
  52. <div class="serachcont">
  53. <h3 style="overflow: hidden;"><a href="${ctxPath}/system/reception/NoLoginSearchInTheStationNews?contentId=${content.contentId}" style="font-weight: normal;">
  54. <i class="finKey" style="float: left;">${content.title}</i>
  55. <span style="float: right;">${content.inputdate,dateFormat="YYYY年MM月dd日"}</span>
  56. </a>
  57. </h3>
  58. </div>
  59. @}
  60. <div id="pagination" class="pagination"></div>
  61. <script>
  62. var datatotal = '${total}';
  63. var pageAmount = '${pagesize}';
  64. var pagenum = '${pagenum}';
  65. pageTotal=Math.ceil(datatotal/pageAmount);
  66. if(pageTotal>15){
  67. pageSize=15
  68. }else{
  69. pageSize=pageTotal
  70. }
  71. window.onload = function () {
  72. new myPagination({
  73. id: 'pagination',
  74. curPage:pagenum, //初始页码
  75. pageTotal: pageTotal, //总页数
  76. pageAmount: pageAmount, //每页多少条
  77. dataTotal: datatotal, //总共多少条数据
  78. getPage: function (page) {
  79. window.location.href ='${ctxPath}/system/reception/NoLoginSearchInTheStation?pageNumber='+page+'&title=${title}';
  80. }
  81. })
  82. }
  83. </script>
  84. </div>
  85. </div>
  86. </div>
  87. <!--内容结束-->
  88. <script>
  89. $(function(){
  90. var keyword='${title}';
  91. if (keyword!=''){
  92. $(".finKey").each(function () {
  93. var str=$(this).text();
  94. var substr="/("+keyword+")/g";
  95. var replaceStr=str.replace(eval(substr),"<span style='color:red;font-size: 18px;'>"+keyword+"</span>")
  96. $(this).html(replaceStr);
  97. });
  98. }
  99. });
  100. </script>
  101. @includeFileTemplate("/www/syrc/include/footer.html",{"current":"index"}){}
  102. </body>
  103. </html>