listPage.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <%var cssPar = {%>
  2. <link href="${contextPath}/WebPages_170421/css/personal/list.css" rel="stylesheet" type="text/css">
  3. <%};%>
  4. <%var jsPar = {%>
  5. <script type="text/javascript" src="${contextPath}/WebPages_170421/js/personal/list.js"></script>
  6. <%};%>
  7. <%layout("/WebPages_170421/personalPages/commonPage/_layout.html", {nav:"",meunsel:"",jsParam:jsPar,cssParam:cssPar}) {%>
  8. <div class="container">
  9. <div class="conent">
  10. <span class="nin">您当前的位置:</span>
  11. <a href="/" class="yiji">首页</a>
  12. <span class="nin"> > </span>
  13. <a href="/toindex" class="yiji">个人中心</a>
  14. <span class="nin"> > </span>
  15. <a href="${contextPath}/news/getnews?code=${code}&pageNumber=1" class="yiji">${typeName}信息维护</a>
  16. </div>
  17. </div>
  18. <div class="container" >
  19. <% include("/WebPages_170421/personalPages/commonPage/_navigation.html"){} %>
  20. <div class="Dlrt">
  21. <form action="${contextPath}/news/getnews" method="post" class="frmSs">
  22. <input type="hidden" name="pageNumber" value="1" />
  23. <input type="hidden" name="code" value="${code!''}" />
  24. <span class="p1">查询用户名称:</span>
  25. <input type="text" class="p2" name="code" placeholder="请输入用户名称">
  26. <span class="p1">查询新闻名称:</span>
  27. <input type="text" class="p2" name="name" placeholder="请输入新闻名称">
  28. <input type="submit" class="p3" value="查询">
  29. <a href="${contextPath}/news/toedit?code=${code!}&pageNumber=${pageNumber!1}">
  30. <input type="button" class="p4" value="添加${typeName}">
  31. </a>
  32. </form>
  33. <div class="table-fa">
  34. <table border="1" style="border-bottom:1px solid #cccccc; border-left:1px solid #f6f7f8; border-top:1px solid #f6f7f8; border-right:1px solid #cccccc;" width="915px" >
  35. <thead>
  36. <tr style="width: 910px; height: 40px; text-align: center; background: #e5f1f9">
  37. <th>序号</th>
  38. <th>创建用户名称</th>
  39. <th>新闻名称</th>
  40. <th>创建时间</th>
  41. <th>状态</th>
  42. <th>操作</th>
  43. </tr>
  44. </thead>
  45. <tbody id="t1">
  46. <%for(news in newsList!){%>
  47. <tr style=" height: 40px;">
  48. <td>${newsLP.index}</td>
  49. <td>${news.createUser!''}</td>
  50. <td>${news.name!''}</td>
  51. <td>${news.createDate!''}</td>
  52. <td>
  53. <%if(news.state == 0){%>
  54. <font color="blue">待管理员审核</font>
  55. <%}else if(news.state == 2){%>
  56. <font color="green">通过审核</font>
  57. <%}else if(news.state == 3){%>
  58. <font color="red">审核拒绝</font>
  59. <%}else if(news.state == 4){%>
  60. <font color="green">不需审核</font>
  61. <%}%>
  62. </td>
  63. <td style="width:110px;">
  64. <%if(session.LoginUser.role==1){%>
  65. <a href="${contextPath}/news/view?id=${news.id}&code=${code!}">
  66. <div class="btn1" style="margin-left:12px;" title="详情">
  67. <i class="icon-folder-open-alt"></i>
  68. </div>
  69. </a>
  70. <a href="${contextPath}/news/toedit?code=${code!}&id=${news.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  71. <div class="btn1" title="编辑">
  72. <i class="icon-edit"></i>
  73. </div>
  74. </a>
  75. <a href="javascript:" onclick="del()">
  76. <div class="btn1 bgli" title="删除">
  77. <i class="icon-trash" ></i>
  78. </div>
  79. </a>
  80. <%}else if(session.LoginUser.role==3){%>
  81. <a href="${contextPath}/news/view?id=${news.id}&code=${code!}">
  82. <div class="btn1" style="margin-left:12px;" title="详情">
  83. <i class="icon-folder-open-alt"></i>
  84. </div>
  85. </a>
  86. <%if(news.createUserId == session.LoginUser.id){%>
  87. <a href="${contextPath}/news/toedit?code=${code!}&id=${news.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  88. <div class="btn1" title="编辑">
  89. <i class="icon-edit"></i>
  90. </div>
  91. </a>
  92. <a href="javascript:" onclick="del()">
  93. <div class="btn1 bgli" title="删除">
  94. <i class="icon-trash" ></i>
  95. </div>
  96. </a>
  97. <%}%>
  98. <%}%>
  99. </td>
  100. </tr>
  101. <div id="box">
  102. <p style="width: 200px; height:80px; line-height:80px; text-align: center;">确认删除吗?</p>
  103. <a href="${contextPath}/news/del?code=${code!}&id=${news.id}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}">
  104. <input type="button" onclick="yes()" value="确定" class="delBtn">
  105. </a>
  106. <input type="button" onclick="no()" value="取消" class="delBtn m0" >
  107. </div>
  108. <%}elsefor{%>
  109. <tr>
  110. <td colspan="12">没有记录!</td>
  111. </tr>
  112. <%}%>
  113. </tbody>
  114. </table>
  115. <%include("/WebPages_170421/personalPages/commonPage/_paginate.html", {"currentPage": pageNumber!1, "totalPage": totalPage!1, "totalRow": totalRow!0, "actionUrl": contextPath+"/news/getnews?code=" + code!'' + "&pageNumber=", "urlParas": urlParas!''}){}%>
  116. </div>
  117. </div>
  118. </div>
  119. <%}%>