qyzx-fbzwgl.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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}/syrc/css/myPagination.css">
  10. <script src="${resPath}/syrc/js/myPagination.js"></script>
  11. <script src="${resPath}/syrc/js/jquery-1.7.2.min.js"></script>
  12. <script src="${resPath}/syrc/js/qyzx_js .js"></script>
  13. <script type="text/javascript" src="${resPath}/bcrc/js/TL_Tab.js"></script>
  14. </head>
  15. <body onload="fenye();">
  16. <div class="contentbig">
  17. @includeFileTemplate("/www/syrc/include/header.html",{"current":"index"}){}
  18. <!--内容开始-->
  19. <div class="wz_cont">
  20. <div class="wz_cont_in">
  21. <div class="dqwz">当前位置:<a href="${frontPath!}/4">首页</a>>>发布职位管理</div>
  22. <div class=" clearfix">
  23. <div class="con_left fl">
  24. <h4><img src="${resPath}/bcrc/images/qyzx_03.png"/></h4>
  25. <ul class="left_nav">
  26. @includeFileTemplate("/www/syrc/include/qyzx-eightOtherLeftMeun.html",{"current":"index"}){}
  27. </ul>
  28. </div>
  29. <div class="con_right fr">
  30. <!--简历中心 开始-->
  31. <div class="all_title"><a><span>发布职位管理</span></a></div>
  32. <table class=" con_table">
  33. <thead>
  34. <th width="200">岗位名称</th>
  35. <th width="100">招聘人数</th>
  36. <th width="100">收藏次数</th>
  37. <th width="200">发布日期</th>
  38. <th width="200">更新日期</th>
  39. <th width="200">操作</th>
  40. </thead>
  41. @for(user in model.list){
  42. <tr>
  43. <td>${user.zw_zwmc}</td>
  44. <td>${user.zw_zprs}</td>
  45. <td>${user.zw_gznx}</td>
  46. <td>${strutil.subStringTo(user.zw_fbsc,0,10)}</td>
  47. <td>${user.zw_gxrq}</td>
  48. <td>
  49. <a class="btn_bj btn_a" href="javascript:void(0)" onclick="bianji('${user.zw_id}');"><img src="${resPath}/bcrc/images/jlzx_con_46.png"/>编辑</a>
  50. <a class="btn_sc btn_a" onclick="shanchu('${user.zw_id}');" href="javascript:void(0)"><img src="${resPath}/bcrc/images/jlzx_con_11.png"/>删除</a>
  51. </td>
  52. </tr>
  53. @}
  54. <tr>
  55. <td colspan="6">
  56. <div id="pagination" class="pagination"></div>
  57. </td>
  58. </tr>
  59. </table>
  60. <script type="text/javascript">
  61. var datatotal = '${model.total}';
  62. var pageAmount =5;
  63. var pagenum = '${model.pageNum}';
  64. pageTotal=Math.ceil(datatotal/pageAmount);
  65. if(pageTotal>5){
  66. pageSize=5
  67. }else{
  68. pageSize=pageTotal
  69. }
  70. window.onload = function () {
  71. new myPagination({
  72. id: 'pagination',
  73. curPage:pagenum, //初始页码
  74. pageTotal: pageTotal, //总页数
  75. pageAmount: pageAmount, //每页多少条
  76. dataTotal: datatotal, //总共多少条数据
  77. getPage: function (page) {
  78. window.location.href ='${ctxPath}/qyzx/goToQyzxFbzwgl?pageNum='+page;
  79. }
  80. })
  81. }
  82. function tzym(){
  83. window.location.href="${ctxPath}/qyzx/goToQyzxFbzwgl";
  84. }
  85. function tzym2(){
  86. window.location.href="${ctxPath}/qyzx/goToQyzxFbzwglForztfb";
  87. }
  88. function shanchu(zw_id){
  89. var gnl=confirm("你真的确定要删除吗?");
  90. if (gnl==true){
  91. window.location.href="${ctxPath}/qyzx/gwDeleteById?zw_id="+zw_id;
  92. return true;
  93. }
  94. else{
  95. return false;
  96. }
  97. }
  98. function bianji(id){
  99. var test='${ctxPath}/qyzx/selectOne?zw_id='+id;
  100. var url=location.href;
  101. mypost(test,{"url":url});
  102. }
  103. function mypost(url, params) {
  104. var temp_form = document.createElement("form");
  105. temp_form .action = url;
  106. temp_form .target = "_self";
  107. temp_form .method = "post";
  108. temp_form .style.display = "none";
  109. for (var x in params) {
  110. var opt = document.createElement("textarea");
  111. opt.name = x;
  112. opt.value = params[x];
  113. temp_form .appendChild(opt);
  114. }
  115. document.body.appendChild(temp_form);
  116. temp_form .submit();
  117. }
  118. </script>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <!--内容结束-->
  124. @includeFileTemplate("/www/syrc/include/footer.html",{"current":"index"}){}
  125. </div>
  126. </body>
  127. </html>