list.jsp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <%@ include file="../../../common/head.jsp"%>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link href="../res/css/plugins/bootstrap-table/bootstrap-table.min.css"
  10. rel="stylesheet" />
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"
  12. type="text/javascript"></script>
  13. <script
  14. src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"
  15. type="text/javascript"></script>
  16. <script
  17. src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"
  18. type="text/javascript"></script>
  19. <script>
  20. function setCompel(value,row,index){
  21. if(value){
  22. return "启用";
  23. }else{
  24. return "禁用";
  25. }
  26. }
  27. </script>
  28. </head>
  29. <body class="gray-bg">
  30. <div class="wrapper wrapper-content animated fadeInRight">
  31. <!-- <div class="ibox " style=""> -->
  32. <!-- <div class="ibox-content"> -->
  33. <div class="row row-lg">
  34. <div class="col-sm-12">
  35. <cs:toolbar title="版本" tableId="tab_version" width="768px"
  36. height="460px" menuCode="188">
  37. </cs:toolbar>
  38. <table id="tab_version" data-toggle="table"
  39. data-url="<%=basePath%>version/list2.cs" data-method="get"
  40. data-click-to-select="true" data-pagination="true"
  41. data-search="false" data-data-type="json" data-show-refresh="true"
  42. data-show-columns="true" data-show-toggle="true"
  43. data-search-on-enter-key="true" data-toolbar="#def_toolbar"
  44. data-side-pagination="server" data-query-params="queryParams"
  45. data-mobile-responsive="true">
  46. <thead>
  47. <tr>
  48. <th data-radio="true" data-click-to-select="true"></th>
  49. <th data-field="plat">平台</th>
  50. <th data-field="version">版本号</th>
  51. <th data-field="compel" data-formatter="setCompel">强制更新</th>
  52. <th data-field="remark">版本内容</th>
  53. <th data-field="url">下载地址</th>
  54. <!-- <th data-formatter="test">操作</th> -->
  55. </tr>
  56. </thead>
  57. </table>
  58. </div>
  59. </div>
  60. <!-- </div> -->
  61. <!-- </div> -->
  62. </div>
  63. </body>
  64. </html>