list.jsp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@taglib prefix="p" uri="http://www.test.com/jsp/permission"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <%@ include file="../../common/head.jsp"%>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  10. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css"
  11. rel="stylesheet" />
  12. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  13. <script
  14. src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  15. <script
  16. src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  17. <script type="text/javascript">
  18. <!--
  19. function setShow(value,row,index){
  20. if(row.news_show == '1'){
  21. return '显示' ;
  22. }else{
  23. return '隐藏' ;
  24. }
  25. }
  26. function setOpenFlag(value,row,index){
  27. if(row.open_flag == '1'){
  28. return '公开' ;
  29. }else{
  30. return '内部' ;
  31. }
  32. }
  33. //-->
  34. </script>
  35. </head>
  36. <body class="gray-bg">
  37. <div class="wrapper wrapper-content animated fadeInRight">
  38. <div class="row row-lg">
  39. <div class="col-sm-12">
  40. <cs:toolbar title="公告" tableId="tabNews" width="100%"
  41. height="100%" menuCode="${menuCode }" >
  42. </cs:toolbar>
  43. <table id="tabNews" data-toggle="table" data-url="list2.cs"
  44. data-method="get" data-click-to-select="true"
  45. data-pagination="true" data-search="false" data-data-type="json"
  46. data-show-refresh="true" data-show-columns="true"
  47. data-show-toggle="true" data-search-on-enter-key="true"
  48. data-toolbar="#def_toolbar" data-side-pagination="server"
  49. data-query-params="queryParams" data-mobile-responsive="true">
  50. <thead>
  51. <tr>
  52. <th data-radio="true" data-click-to-select="true"></th>
  53. <th data-field="news_title">标题</th>
  54. <th data-field="open_flag" data-formatter="setOpenFlag">是否公开</th>
  55. <th data-field=news_sort>排序</th>
  56. <th data-field="news_show" data-formatter="setShow">是否显示</th>
  57. <th data-field="create_time" data-formatter="format_time">添加时间</th>
  58. </tr>
  59. </thead>
  60. </table>
  61. </div>
  62. </div>
  63. </div>
  64. </body>
  65. </html>