ssjg.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>${siteTitle!}</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
  7. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/ly_html.css">
  8. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/bcrc-phone-body.css">
  9. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/bcrc-phone-page.css">
  10. <link rel="stylesheet" type="text/css" href="${resPath}/syrc/css/myPagination.css">
  11. <script type="text/javascript" src="${resPath}/bcrc-mobile/js/jquery-1.7.2.min.js"></script>
  12. <script type="text/javascript" src="${resPath}/bcrc-mobile/js/TL_PC_Slider.js"></script>
  13. <script type="text/javascript" src="${resPath}/bcrc-mobile/js/TL_Tab.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. @includeFileTemplate("/www/syrc-mobile/include/header.html",{"current":"index"}){}
  43. <!--内容开始-->
  44. <div class="wz_cont">
  45. <div class="wz_cont_in">
  46. <div class="dqwz">当前位置:<a target="_blank" href="${frontPath!}/4">首页</a>>>站内搜索</div>
  47. <div class="all_title"><a><span>站内搜索</span></a></div>
  48. @for(content in list){
  49. <div class="serachcont" style="border-bottom: solid 1px #ccc;padding: 4% 0;">
  50. <h3><a href="${ctxPath}/system/reception/NoLoginSearchInTheStationNews?contentId=${content.contentId}" style="font-size: 1em;color: #333;line-height: 1.6em;">
  51. <i class="finKey" >${content.title}</i>
  52. <span style="font-size: .9em;color: #777;">${content.inputdate,dateFormat="YYYY年MM月dd日"}</span></a></h3>
  53. </div>
  54. @}
  55. <div id="pagination" class="pagination"></div>
  56. <script>
  57. var datatotal = '${total}';
  58. var pageAmount = '${pagesize}';
  59. var pagenum = '${pagenum}';
  60. pageTotal=Math.ceil(datatotal/pageAmount);
  61. if(pageTotal>5){
  62. pageSize=5
  63. }else{
  64. pageSize=pageTotal
  65. }
  66. window.onload = function () {
  67. new myPagination({
  68. id: 'pagination',
  69. curPage:pagenum, //初始页码
  70. pageTotal: pageTotal, //总页数
  71. pageAmount: pageAmount, //每页多少条
  72. dataTotal: datatotal, //总共多少条数据
  73. getPage: function (page) {
  74. window.location.href ='${ctxPath}/system/reception/NoLoginSearchInTheStation?pageNumber='+page+'&title=${title}';
  75. }
  76. })
  77. }
  78. </script>
  79. </div>
  80. </div>
  81. <!--内容结束-->
  82. @includeFileTemplate("/www/syrc-mobile/include/footer.html",{"current":"index"}){}
  83. </body>
  84. <script>
  85. $(function(){
  86. var keyword='${title}';
  87. if (keyword!=''){
  88. $(".finKey").each(function () {
  89. var str=$(this).text();
  90. var substr="/("+keyword+")/g";
  91. var replaceStr=str.replace(eval(substr),"<span style='color:red;'>"+keyword+"</span>")
  92. $(this).html(replaceStr);
  93. });
  94. }
  95. });
  96. </script>
  97. </html>