trialTableRestart.php 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>试用记录trial</title>
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9. <link href="/css/ims/base.css" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  11. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  12. <style>
  13. input {
  14. height: 30px;
  15. border-radius: 4px;
  16. border: 1px solid #ccc;
  17. box-shadow: none;
  18. text-indent: 10px;
  19. margin-right: 5px;
  20. float:left;
  21. }
  22. .green {
  23. color: green;
  24. }
  25. .red {
  26. color: red;
  27. }
  28. .yellow {
  29. color: #FF9900;
  30. }
  31. .layui-layer-zxhx .layui-layer-title {
  32. background: #15ae68;
  33. }
  34. .layui-layer-zxhx .layui-layer-btn a {
  35. background: #15ae68;
  36. border-color: #15ae68;
  37. }
  38. .ims-box {
  39. margin: 20px;
  40. }
  41. .ims-box .title h1 {
  42. display: inline-block;
  43. font-size: 28px;
  44. }
  45. .ims-box .title a {
  46. margin-left: 30px;
  47. color: #0000FF;
  48. }
  49. .screen {
  50. height: 30px;
  51. margin-top: 20px;
  52. margin-bottom: 20px;
  53. }
  54. .screen > div {
  55. margin: 0 5px;
  56. line-height: 30px;
  57. }
  58. .apply-extend-trial {
  59. cursor: pointer;
  60. }
  61. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  62. line-height: 140px;
  63. text-align: center;
  64. }
  65. </style>
  66. </head>
  67. <body>
  68. <div class="ims-box">
  69. <form action="<?php echo Yii::app()->createUrl('imsSale/trialRestart'); ?>" method="get">
  70. <div class="screen">
  71. <div class="diy_select select-goods">
  72. <input type="hidden" id="goodsTypeId" name="goodsTypeId" class="diy_select_input" value="0">
  73. <div class="diy_select_txt">请选择商品</div>
  74. <div class="diy_select_btn"></div>
  75. <ul class="diy_select_list" style="display: none;">
  76. <?php if ($goodList): ?>
  77. <li val="0">请选择商品</li>
  78. <?php foreach ($goodList as $good): ?>
  79. <li val="<?php echo $good['goodsTypeId']; ?>"><?php echo $good['goodsTypeName']; ?></li>
  80. <?php endforeach; ?>
  81. <?php else: ?>
  82. <li val="">暂无商品</li>
  83. <?php endif; ?>
  84. </ul>
  85. </div>
  86. <div class="diy_select select-grade">
  87. <input type="hidden" id="grade" name="grade" class="diy_select_input" value="0">
  88. <div class="diy_select_txt">请选择年级</div>
  89. <div class="diy_select_btn"></div>
  90. <ul class="diy_select_list" style="display: none;">
  91. <li val="0">请选择年级</li>
  92. <?php
  93. if(Yii::app()->params['grade_list']){
  94. foreach (Yii::app()->params['grade_list'] as $val){
  95. echo '<li val="'.$val['id'].'" >'.$val['grade_name'].'</li>';
  96. }
  97. }
  98. ?>
  99. </ul>
  100. </div>
  101. <div class=" select-clazzId">
  102. <input type="text" id="orderNo" name="orderNo" class="" value="" placeholder="订单号">
  103. </div>
  104. <button type="submit" class="label-primary-s bth-s">查询</button>
  105. </div>
  106. </form>
  107. <div>
  108. <table id="record-table"
  109. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  110. style="font-size:12px">
  111. <thead>
  112. <tr>
  113. <th>订单号</th>
  114. <th>订单启用编号</th>
  115. <th>试用商品</th>
  116. <th>试用人数</th>
  117. <th>年级</th>
  118. <th>试用学科</th>
  119. <th>本次重启人数</th>
  120. <th>审批状态</th>
  121. <th>查看</th>
  122. </tr>
  123. </thead>
  124. <tbody>
  125. <?php if ($list): ?>
  126. <?php foreach ($list as $key => $item): ?>
  127. <tr>
  128. <td><?php echo $item['otNo']; ?></td>
  129. <td><?php echo $item['oteCode']; ?></td>
  130. <td><?php echo $item['goodsName']; ?></td>
  131. <td>
  132. <?php echo $item['totalPersons']; ?>
  133. </td>
  134. <td><?php echo $item['gradeName']; ?></td>
  135. <td><?php echo $item['subjectName']; ?></td>
  136. <td><?php echo $item['enablePersons']; ?></td>
  137. <td><?php echo $item['statusName']; ?></td>
  138. <td >
  139. <a href="<?php echo $this->createUrl('imsSale/viewRestart',array('oteId'=>$item['oteId']))?>" orderId="" class="showLog">查看</a>
  140. </td>
  141. </tr>
  142. <?php endforeach; ?>
  143. <?php endif; ?>
  144. </tbody>
  145. </table>
  146. <?php if ($page): ?>
  147. <div class="col-sm-12">
  148. <ul class="pagination">
  149. <?php
  150. $params = array();
  151. if (isset($_GET['goodsTypeId']) && $_GET['goodsTypeId']) {
  152. $params['goodsTypeId'] = $_GET['goodsTypeId'];
  153. }
  154. if (isset($_GET['grade']) && $_GET['grade']) {
  155. $params['grade'] = $_GET['grade'];
  156. }
  157. if (isset($_GET['page'])) {
  158. $params['page'] = $_GET['page'];
  159. }else{
  160. $params['page'] = 1;
  161. }
  162. if (isset($_GET['orderNo']) && $_GET['orderNo']) {
  163. $params['orderNo'] = $_GET['orderNo'];
  164. }
  165. echo formatPage($page, 'imsSale/trialRestart', $params);
  166. ?>
  167. </ul>
  168. </div>
  169. <?php endif; ?>
  170. </div>
  171. </div>
  172. </div>
  173. <script src="/js/productset/jquery.min.js"></script>
  174. <script src="/js/layer/layer.js"></script>
  175. <script src="/js/ims/xsgl.js"></script>
  176. <!--日志弹层-->
  177. <link rel="stylesheet" href="/css/cylet.css" />
  178. <style>
  179. .class-modal-body-1{overflow: auto;height:400px;}
  180. .class-modal-body-1 td{font-size:14px;line-height:200%}
  181. </style>
  182. <div class="confirmbox-mask" style="display: none" id="classModal">
  183. <div class="class-modal">
  184. </div>
  185. </div>
  186. <div class="confirmbox-mask" style="display: none" id="classModal-1">
  187. <form name="table_set">
  188. <div class="class-modal-1">
  189. <i class="icon icon-close-1"></i><div class="class-modal-head-1">日志</div>
  190. <div class="class-modal-body-1">
  191. <table cellspacing="0" cellpadding="0" border="0" class="logList">
  192. </table>
  193. </div>
  194. </div>
  195. </form>
  196. </div>
  197. <div class="confirmbox-mask" style="display: none" id="classModal-2">
  198. <div class="class-modal-1">
  199. <i class="icon icon-close-1"></i><div class="class-modal-head-1">试用学生查询</div>
  200. <div style="margin: 5px 0 0 5px;color: red;font-size: 10px;">输入学生姓名或试用单号查询</div>
  201. <div style="margin: 5px 0 0 5px;width: 100%;" >
  202. <input type="text" class="clazzName" placeholder="输入学生姓名"/>
  203. <input type="text" class="clazzName" placeholder="试用订单号"/>
  204. <input type="button" class="label-primary-s order-module-query " value="查询"/>
  205. </div>
  206. <br><br>
  207. <div style="height: 300px;max-height:300px;overflow: auto;">
  208. <table id="record-table"
  209. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  210. style="font-size:12px;width: 680px;margin: 5px 5px 0 5px;">
  211. <thead id="student-info">
  212. </thead>
  213. </table>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="confirmbox-mask" style="display: none" id="classModal-3">
  218. <div class="class-modal-1">
  219. <i class="icon icon-close-1"></i><div class="class-modal-head-1">普通试用时间表</div>
  220. <div style="height: 300px;max-height:300px;overflow: auto;">
  221. <table id="record-table"
  222. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  223. style="font-size:12px;width: 680px;margin: 5px 5px 0 5px;">
  224. <thead id="timetable-info">
  225. </thead>
  226. </table>
  227. </div>
  228. </div>
  229. </div>
  230. <script>
  231. </script>
  232. </body>
  233. </html>