list.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="p" uri="http://www.test.com/jsp/permission" %>
  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" rel="stylesheet" />
  10. <script src="../res/js/plugins/bootstrap-table/bootstrap-table.js"></script>
  11. <script src="../res/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
  12. <script src="../res/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
  13. <script>
  14. function test(value,row,index){
  15. // return '<a href="#">' + row['id'] + '</a>';
  16. return '<a href="#">编辑 </a>|<a href="#">删除</a>';
  17. }
  18. function format_action(value,row,index){
  19. var orderId;
  20. var type=0;
  21. //订单编号为空
  22. if(row.orderId!=null){
  23. orderId=row.orderId
  24. type=1;
  25. }else{
  26. orderId=row.id;
  27. type=0;
  28. }
  29. var id=row.order
  30. var returnhtml = '<a href="javascript:show('+orderId+','+type+');">查看详情 </a>';
  31. return returnhtml;
  32. }
  33. function show(id,type){
  34. $.openDlg({
  35. url:'transfer.cs?action=view&id=' +id+'&type='+type,
  36. title:'查看详情',
  37. width:'95%',
  38. height:'95%',
  39. });
  40. }
  41. $(function(){
  42. $('#btnSearch').click(function () {
  43. window.location.href = "<%=basePath%>statistics/export.cs";
  44. });
  45. });
  46. </script>
  47. </head>
  48. <body class="gray-bg">
  49. <div class="wrapper wrapper-content animated fadeInUp">
  50. <!-- <div class="ibox " style=""> -->
  51. <!-- <div class="ibox-content"> -->
  52. <div class="row row-lg">
  53. <div class="col-sm-12">
  54. <div class="ibox-content m-b-sm border-bottom">
  55. <label><a href="#" id="btnSearch" class="btn btn-primary"><i class="icon-search"></i>导出</a></label>&nbsp;&nbsp;
  56. </div>
  57. <table id="tab_user"
  58. data-toggle="table"
  59. data-url="list2.cs"
  60. data-method="get"
  61. data-click-to-select="true"
  62. data-pagination="true"
  63. data-data-type="json"
  64. data-show-refresh="true"
  65. data-show-columns="true"
  66. data-show-toggle="true"
  67. data-search-on-enter-key="true"
  68. data-toolbar="#def_toolbar"
  69. data-side-pagination="server"
  70. data-query-params="queryParams"
  71. data-mobile-responsive="true"
  72. >
  73. <thead>
  74. <tr>
  75. <th data-checkbox="true" data-click-to-select="true"></th>
  76. <th data-field="product_name">产品名称</th>
  77. <th data-field="gc">所属类别</th>
  78. <th data-field="user_name">用户姓名</th>
  79. <th data-field="view_time_str">浏览时间</th>
  80. <th data-field="view_cont">浏览次数</th>
  81. <th data-field="tj">是否推介</th>
  82. <th data-field="modify_date_str">推介时间</th>
  83. <th data-field="customer_name">客户名称</th>
  84. <th data-field="will_cnt">订单数量</th>
  85. <th data-field="ordertype">订单类型</th>
  86. <th data-field="state_name">推介状态</th>
  87. <th data-field="modify_date_str">状态时间</th>
  88. <th data-field="saler_name">跟单人员</th>
  89. </tr>
  90. </thead>
  91. </table>
  92. </div>
  93. </div>
  94. <!-- </div> -->
  95. <!-- </div> -->
  96. </div>
  97. </body>
  98. </html>