editTrial.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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>重新提交</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/jquery.datetimepicker.css"/>
  11. <style>
  12. .ims-box {
  13. padding: 30px 50px;
  14. }
  15. .ims-box > h1 {
  16. font-size: 28px;
  17. }
  18. .screen {
  19. width: 100%;
  20. }
  21. .screen li {
  22. height: 30px;
  23. line-height: 30px;
  24. border: 1px solid #DBDBDB;
  25. font-size: 0;
  26. }
  27. .screen span {
  28. display: inline-block;
  29. font-size: 13px;
  30. }
  31. .screen .title {
  32. width: 100px;
  33. background-color: #EAEAEA;
  34. text-align: center;
  35. }
  36. /*.screen .type {*/
  37. /*width: 400px;*/
  38. /*}*/
  39. .screen .type label {
  40. margin: 0 20px;
  41. }
  42. .list {
  43. overflow: hidden;
  44. }
  45. .list h2 {
  46. line-height: 30px;
  47. }
  48. .list .student-list_box {
  49. width: 30%;
  50. }
  51. .list .student-selected_box {
  52. margin-left: 60px;
  53. width: 60%;
  54. overflow-x: scroll;
  55. }
  56. .list .student-list {
  57. height: 360px;
  58. overflow: auto;
  59. padding: 20px;
  60. background-color: #eef3ff;
  61. }
  62. .list .student-list li {
  63. line-height: 30px;
  64. cursor: pointer;
  65. }
  66. .list .student-list li.active .btn-select_all {
  67. display: inline-block;
  68. }
  69. .list .student-list span {
  70. cursor: pointer;
  71. }
  72. .list .btn-select_all {
  73. margin-left: 84px;
  74. color: #008000;
  75. }
  76. .student-name_box li {
  77. position: relative;
  78. margin-left: 28px;
  79. line-height: 30px;
  80. }
  81. .student-name_box input {
  82. position: absolute;
  83. left: 140px;
  84. top: 8px;
  85. }
  86. .btn-select_all, .student-name_box {
  87. display: none;
  88. }
  89. .student-selected {
  90. width: 628px;
  91. height: 400px;
  92. overflow: auto;
  93. }
  94. .student-selected li {
  95. float: left;
  96. margin-right: 24px;
  97. margin-bottom: 12px;
  98. width: 280px;
  99. height: 26px;
  100. line-height: 26px;
  101. text-indent: 20px;
  102. background-color: #f2f2f2;
  103. }
  104. .student-selected .btn-delete {
  105. float: right;
  106. margin-right: 20px;
  107. color: red;
  108. cursor: pointer;
  109. }
  110. .btn-trial {
  111. display: block;
  112. margin: 0 auto;
  113. margin-top: 100px;
  114. margin-bottom: 50px;
  115. width: 430px;
  116. line-height: 54px;
  117. color: #fff;
  118. font-family: PingFangSC-Regular, "PingFang SC";
  119. font-weight: 400;
  120. font-style: normal;
  121. font-size: 20px;
  122. text-align: center;
  123. background-color: rgba(0, 153, 102, 1);
  124. cursor: pointer;
  125. }
  126. .layui-layer-btn .layui-layer-btn0 {
  127. border-color: #15ae68 !important;
  128. background-color: #15ae68 !important;
  129. color: #fff;
  130. }
  131. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  132. line-height: 140px;
  133. text-align: center;
  134. }
  135. </style>
  136. </head>
  137. <body>
  138. <div class="ims-box">
  139. <h1 class="title">试用学生名单</h1>
  140. <div class="screen">
  141. <ul>
  142. <li>
  143. <span class="title">试用商品</span>
  144. <span class="type filter-goodsType">
  145. <?php if ($goodList):?>
  146. <?php foreach ($goodList as $k=>$good):?>
  147. <label>
  148. <input type="radio" name="goodsTypeId" <?php if ($good['goodsTypeId']==$goodsTypeId) echo 'checked'?> value="<?php echo $good['goodsTypeId']?>"/>
  149. <?php echo $good['goodsTypeName']?>
  150. </label>
  151. <?php endforeach;?>
  152. <?php endif;?>
  153. </span>
  154. </li>
  155. <li>
  156. <span class="title">试用年级</span>
  157. <span class="type filter-grade">
  158. <label><input type="radio" name="grade" value="1" <?php if ($grade==1) echo 'checked'?>/> 高一</label>
  159. <label><input type="radio" name="grade" value="2" <?php if ($grade==2) echo 'checked'?>/> 高二</label>
  160. <label><input type="radio" name="grade" value="3" <?php if ($grade==3) echo 'checked'?>/> 高三</label>
  161. </span>
  162. </li>
  163. <li>
  164. <span class="title">开始时间</span>
  165. <span class="">
  166. <input id="startTime" type="text" style="margin-left: 30px;text-indent: 5px;" value="">
  167. </span>
  168. </li>
  169. </ul>
  170. </div>
  171. <div class="list">
  172. <div class="student-list_box fl">
  173. <h2>学生名单</h2>
  174. <ul class="student-list">
  175. </ul>
  176. </div>
  177. <div class="student-selected_box fl">
  178. <h2>已选(<span id="studentSelectedLength"><?php echo count($selectedStudent);?></span>)</h2>
  179. <ul class="student-selected">
  180. <?php if ($selectedStudent):?>
  181. <?php foreach ($selectedStudent as $item):?>
  182. <li studentId="<?php echo $item['studentId']?>" student-info="<?php echo $item['studentName'].'#'.$item['studentId'].'#'.$item['clazzName'].'#'.$item['clazzId'];?>">
  183. <?php echo $item['studentName']?>
  184. --
  185. <?php echo $item['clazzName']?>
  186. <i class="btn-delete" value="<?php echo $item['studentId'] ;?>">X</i>
  187. </li>
  188. <?php endforeach;?>
  189. <?php endif;?>
  190. </ul>
  191. </div>
  192. </div>
  193. <a class="btn-trial">开通试用</a>
  194. </div>
  195. <script src="/js/productset/jquery.min.js"></script>
  196. <script src="/js/ims/jquery.datetimepicker.js"></script>
  197. <script src="/js/layer/layer.js"></script>
  198. <?php include_once '_trial.php' ;?>
  199. </body>
  200. </html>