list.jsp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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>
  18. function setAdvContent(value,row,index){
  19. if(value != null ){
  20. return '<img src="'+row.advPic+'" width="60px" />';
  21. }else{
  22. return '<img src="../res/img/goods-default-icon1.png" width="40px" />';
  23. }
  24. }
  25. </script>
  26. </head>
  27. <body class="gray-bg">
  28. <div class="wrapper wrapper-content animated fadeInRight">
  29. <div class="row row-lg">
  30. <div class="col-sm-12">
  31. <cs:toolbar title="轮播图" tableId="tab_goodsclass" width="868px"
  32. height="520px" menuCode="6001" hdMenu="1">
  33. </cs:toolbar>
  34. <table id="tab_goodsclass" data-toggle="table" data-url="list2.cs"
  35. data-method="get" data-click-to-select="true"
  36. data-pagination="true" data-search="true" data-data-type="json"
  37. data-show-refresh="true" data-show-columns="true"
  38. data-show-toggle="true" data-search-on-enter-key="true"
  39. data-toolbar="#def_toolbar" data-side-pagination="server"
  40. data-query-params="queryParams" data-mobile-responsive="true">
  41. <thead>
  42. <tr>
  43. <th data-radio="true" data-click-to-select="true"></th>
  44. <!-- <th data-field="apId" data-formatter="setApId">对应广告位</th> -->
  45. <th data-field="advTitle">标题</th>
  46. <th data-field="advSort">权重</th>
  47. <th data-field="advPic" data-formatter="setAdvContent">图片</th>
  48. <th data-field="createDate" data-formatter="format_time">创建时间</th>
  49. <!-- <th data-field=slideSort>排序</th> -->
  50. </tr>
  51. </thead>
  52. </table>
  53. </div>
  54. </div>
  55. </div>
  56. </body>
  57. </html>