parent.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <html xmlns:th="http://www.thymeleaf.org">
  2. <head>
  3. <title>私塾家</title>
  4. <script th:include="sys/common/metaCSS" th:remove="tag"></script>
  5. <script th:include="sys/common/metaJS" th:remove="tag"></script>
  6. <script src="sys/js/My97DatePicker/WdatePicker.js" th:src="@{/static/sys/js/My97DatePicker/WdatePicker.js}"></script>
  7. </head>
  8. <style>
  9. .tablelink{margin-right:10px;}
  10. .stylecss{
  11. color: red;
  12. }
  13. .select_width{
  14. width: 220px;
  15. }
  16. .date_width{
  17. width: 150px;
  18. }
  19. .tablelist th,td{
  20. white-space: nowrap;
  21. text-overflow: ellipsis;
  22. overflow: hidden;
  23. }
  24. .tablelist td a{
  25. text-decoration: underline;
  26. }
  27. </style>
  28. <body>
  29. <div class="place">
  30. <span>位置:</span>
  31. <ul class="placeul">
  32. <li><a href="#">系统数据分析</a></li>
  33. <li><a href="#">家长端数据分析</a></li>
  34. </ul>
  35. </div>
  36. <div class="rightinfo">
  37. <form id="seachform" th:action="@{/sys/analysis/parent.html}" method="post">
  38. <input type="hidden" name="pageSize" id="pageSize" value="10" />
  39. <ul class="seachform">
  40. <li>
  41. <label>开始日期</label>
  42. <input type="text" id="date" name="date" class="form-control scinput" autocomplete="off" th:value="${search.date}" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd',maxDate:'%y-%M-{%d-1}'})">
  43. </li>
  44. <li>
  45. <label>结束日期</label>
  46. <input type="text" id="date2" name="date2" class="form-control scinput" autocomplete="off" th:value="${search.date}" onclick="WdatePicker({dateFmt: 'yyyy-MM-dd',maxDate:'%y-%M-{%d-1}'})">
  47. </li>
  48. <li>
  49. <label>商户名称</label>
  50. <input name="unitName" type="text" class="scinput" th:value="${search.unitName}" />
  51. </li>
  52. <li>
  53. <input type="button" class="scbtn" value="查询" />
  54. <input type="button" id="button" class="scbtn" value="导出" />
  55. </li>
  56. </ul>
  57. </form>
  58. <table class="tablelist">
  59. <thead>
  60. <tr>
  61. <th >商户名称 </th>
  62. <th >机构名称 </th>
  63. <th >作业任务</th>
  64. <th >错题本</th>
  65. <th >成长报告 </th>
  66. <th >成长报告·周报</th>
  67. <th >成长报告·月报</th>
  68. <th >成长报告·学期</th>
  69. <th >定制练习</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <tr th:each="item:${list}" >
  74. <td th:title="${item.unit_name}" th:text="${item.unit_name}"></td>
  75. <td th:text="${item.league_name}"></td>
  76. <td >
  77. <a th:href="@{/sys/analysis/parent/info/12.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='作业任务')}">
  78. [[${item.get('count_0')}]]
  79. </a>
  80. </td>
  81. <td >
  82. <a th:href="@{/sys/analysis/parent/info/13.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='错题本')}">
  83. [[${item.get('count_1')}]]
  84. </a>
  85. </td>
  86. <td >
  87. <a th:href="@{/sys/analysis/parent/info/14.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='成长报告')}">
  88. [[${item.get('count_2')}]]
  89. </a>
  90. </td>
  91. <td >
  92. <a th:href="@{/sys/analysis/parent/info/15.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='成长报告·周报')}">
  93. [[${item.get('count_3')}]]
  94. </a>
  95. </td>
  96. <td >
  97. <a th:href="@{/sys/analysis/parent/info/16.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='成长报告·月报')}">
  98. [[${item.get('count_4')}]]
  99. </a>
  100. </td>
  101. <td >
  102. <a th:href="@{/sys/analysis/parent/info/17.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='成长报告·学期')}">
  103. [[${item.get('count_5')}]]
  104. </a>
  105. </td>
  106. <td >
  107. <a th:href="@{/sys/analysis/parent/info/18.html(libId=${item.get('lib_id')},date=${search.get('date')},date2=${search.get('date2')},title='定制练习')}">
  108. [[${item.get('count_6')}]]
  109. </a>
  110. </td>
  111. </tr>
  112. </tbody>
  113. </table>
  114. <!-- 分页 -->
  115. <div class="pagin">
  116. <div class="message">共<i class="blue">[[${page.rowCnt}]]</i>条记录,当前显示第&nbsp;<i class="blue">[[${page.pageNo }]]&nbsp;</i>页</div>
  117. <div th:utext='${listNavigatHtml}' th:remove="tag" ></div>
  118. </div>
  119. </div>
  120. </body>
  121. <script type="text/javascript">
  122. $(function () {
  123. $("#button").on('click',function(){
  124. document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/parent/export.html";
  125. $("#seachform").submit();
  126. window.setTimeout(function(){
  127. document.getElementById("seachform").action = "[[${sysUrl}]]/sys/analysis/parent.html";
  128. },3000);
  129. });
  130. })
  131. </script>
  132. </html>