doTrial.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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. <link rel="stylesheet" type="text/css" href="/css/ims/bootstrap.min.css"/>
  12. <link rel="stylesheet" type="text/css" href="/css/ims/ace.min.css"/>
  13. <link href="/css/ims/ims.css" rel="stylesheet">
  14. <style>
  15. .ims-box {
  16. padding: 30px 50px;
  17. }
  18. .ims-box > h1 {
  19. font-size: 28px;
  20. }
  21. .screen {
  22. width:100%;
  23. }
  24. .screen li {
  25. height: 30px;
  26. line-height: 30px;
  27. border: 1px solid #DBDBDB;
  28. font-size: 0;
  29. }
  30. .screen span {
  31. display: inline-block;
  32. font-size: 13px;
  33. }
  34. .screen .title {
  35. width: 100px;
  36. background-color: #EAEAEA;
  37. text-align: center;
  38. }
  39. /*.screen .type {*/
  40. /*width: 400px;*/
  41. /*}*/
  42. .screen .type label {
  43. margin: 0 20px;
  44. }
  45. .list {
  46. overflow: hidden;
  47. }
  48. .list h2 {
  49. line-height: 30px;
  50. }
  51. .list .student-list_box {
  52. width: 30%;
  53. }
  54. .list .student-selected_box {
  55. margin-left: 60px;
  56. width: 60%;
  57. overflow-x: scroll;
  58. }
  59. .list .student-list {
  60. height: 360px;
  61. overflow: auto;
  62. padding: 20px;
  63. background-color: #eef3ff;
  64. }
  65. .list .student-list li {
  66. line-height: 30px;
  67. cursor: pointer;
  68. }
  69. .list .student-list li.active .btn-select_all {
  70. display: inline-block;
  71. }
  72. .list .student-list span {
  73. cursor: pointer;
  74. }
  75. .list .btn-select_all {
  76. margin-left: 84px;
  77. color: #619aff;
  78. }
  79. .student-name_box li {
  80. position: relative;
  81. margin-left: 28px;
  82. line-height: 30px;
  83. }
  84. .student-name_box input {
  85. position: absolute;
  86. left: 140px;
  87. top: 8px;
  88. }
  89. .btn-select_all, .student-name_box {
  90. display: none;
  91. }
  92. .student-selected {
  93. height: 400px;
  94. overflow: auto;
  95. }
  96. .student-selected li {
  97. float: left;
  98. margin-right: 24px;
  99. margin-bottom: 12px;
  100. width: 280px;
  101. height: 26px;
  102. line-height: 26px;
  103. text-indent: 20px;
  104. background-color: #f2f2f2;
  105. }
  106. .student-selected .btn-delete {
  107. float: right;
  108. margin-right: 20px;
  109. color: red;
  110. cursor: pointer;
  111. }
  112. .btn-trial {
  113. display: block;
  114. margin: 0 auto;
  115. margin-top: 100px;
  116. margin-bottom: 50px;
  117. width: 430px;
  118. line-height: 54px;
  119. color: #fff;
  120. font-family: PingFangSC-Regular, "PingFang SC";
  121. font-weight: 400;
  122. font-style: normal;
  123. font-size: 20px;
  124. text-align: center;
  125. background-color: #2977ff;
  126. cursor: pointer;
  127. }
  128. .layui-layer-btn .layui-layer-btn0 {
  129. border-color: #2977ff !important;
  130. background-color: #2977ff !important;
  131. color: #fff;
  132. }
  133. .stop-layer-box, .resubmit-layer-box, .delete-layer-box {
  134. line-height: 140px;
  135. text-align: center;
  136. }
  137. .ims-add-student-box {
  138. margin: 20px;
  139. }
  140. .ims-add-student-box p{
  141. margin: 0;
  142. }
  143. .ims-add-student-box .ims-title{
  144. font-size: 20px;
  145. font-weight: bold;
  146. }
  147. .ims-add-student-box .ims-title span{
  148. margin-right: 20px;
  149. }
  150. .ims-add-student-box .add-student-box {
  151. margin-top: 20px;
  152. font-size: 0;
  153. overflow: hidden;
  154. }
  155. .ims-add-student-box .add-student-box>div{
  156. display: inline-block;
  157. height: 530px;
  158. font-size: 14px;
  159. vertical-align: top;
  160. }
  161. .ims-add-student-box .add-student-box .add-student-title{
  162. padding: 0 8px;
  163. line-height: 30px;
  164. color: #fff;
  165. background-color: #2977ff;
  166. }
  167. .ims-add-student-box .add-student-box .add-student-title label{
  168. font-size: 14px;
  169. font-weight: normal;
  170. cursor: pointer;
  171. margin-bottom: 0;
  172. }
  173. .ims-add-student-box .add-student-box .add-student-title input{
  174. vertical-align: middle;
  175. margin: 0;
  176. }
  177. #input-search-student{
  178. width: 120px;
  179. height: 20px;
  180. border: 0;
  181. color:#000;
  182. }
  183. .ims-add-student-box .add-student-box{
  184. line-height: 30px;
  185. min-width: 938px;
  186. }
  187. .ims-add-student-box .add-student-box .class-box {
  188. width: 180px;
  189. text-align: center;
  190. border: 1px solid #ccc;
  191. }
  192. .ims-add-student-box .student-list div{
  193. font-size: 14px;
  194. font-weight: normal;
  195. }
  196. .ims-add-student-box .add-student-box .class-list{
  197. height: 500px;
  198. overflow: auto;
  199. }
  200. .ims-add-student-box .add-student-box .class-list li{
  201. border-bottom: 1px solid #ccc;
  202. cursor: pointer;
  203. }
  204. .ims-add-student-box .class-list .active{
  205. color: #619aff;
  206. }
  207. .ims-add-student-box .add-student-box .student-list{
  208. margin: 0;
  209. width: 34%;
  210. min-width: 326px;
  211. border: 1px solid #ccc;
  212. border-left: 0;
  213. }
  214. .ims-add-student-box .student-list-content,.selected-list-content{
  215. padding: 8px;
  216. height: 500px;
  217. overflow: auto;
  218. }
  219. .ims-add-student-box .student-list-content label,.selected-list-content label{
  220. display: inline-block;
  221. width: 150px;
  222. cursor: pointer;
  223. font-size: 14px;
  224. font-weight: normal;
  225. }
  226. .ims-add-student-box .btn-search-student{
  227. height: 20px;
  228. line-height: 20px;
  229. padding: 0 5px;
  230. border-radius: 3px;
  231. color: #2977ff;
  232. background-color: #fff;
  233. border: none;
  234. outline: none;
  235. cursor: pointer;
  236. }
  237. .ims-add-student-box .btns-box {
  238. width: 100px;
  239. text-align: center;
  240. }
  241. .ims-add-student-box .btn-left,.ims-add-student-box .btn-right{
  242. margin: 150px auto 0;
  243. width: 40px;
  244. height: 40px;border: 1px solid #ccc;
  245. border-radius: 50%;
  246. background-color: #fff;
  247. text-align: center;
  248. line-height: 40px;
  249. cursor: pointer;
  250. }
  251. .ims-add-student-box .selected-list{
  252. width: 34%;
  253. min-width: 326px;
  254. border: 1px solid #ccc;
  255. }
  256. .ims-add-student-box .btn-confirm_purchase {
  257. display: block;
  258. margin: 0 auto;
  259. margin-top: 100px;
  260. margin-bottom: 50px;
  261. width: 200px;
  262. line-height: 54px;
  263. color: #fff;
  264. font-family: PingFangSC-Regular, "PingFang SC";
  265. font-weight: 400;
  266. font-style: normal;
  267. font-size: 20px;
  268. text-align: center;
  269. background-color:#2977ff;
  270. cursor: pointer;
  271. }
  272. .yiiPager li{display: inline}
  273. .ims-add-student-box .good-type-prompt{color: red; font-size: 13px; font-weight: normal;}
  274. </style>
  275. </head>
  276. <body>
  277. <div class="ims-box">
  278. <h1 class="title">试用学生名单</h1>
  279. <div class="screen">
  280. <table id="formalOrderTable"
  281. class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable"
  282. style="font-size:12px">
  283. <tr>
  284. <th class="title">试用商品</th>
  285. <th style="width:38%">
  286. <span class="type filter-goodsType">
  287. <?php if ($goodList):?>
  288. <?php foreach ($goodList as $k=>$good):?>
  289. <label>
  290. <?php if ($k==0):?>
  291. <input type="radio" class="goodTypeInput" name="goodsTypeId" checked value="<?php echo $good['goodsTypeId']?>"/>
  292. <?php else:?>
  293. <input type="radio" class="goodTypeInput" name="goodsTypeId" value="<?php echo $good['goodsTypeId']?>"/>
  294. <?php endif;?>
  295. <?php echo $good['goodsTypeName']?>
  296. </label>
  297. <?php endforeach;?>
  298. <?php endif;?>
  299. </span>
  300. </th>
  301. <th class="title">试用年级</th>
  302. <th>
  303. <span class="type filter-grade">
  304. <?php
  305. if(Yii::app()->params['section']==1) {
  306. ?>
  307. <label><input type="radio" name="grade" value="<?php echo $grade[1] ?>" load-grade="1"
  308. checked/> 高一</label>
  309. <label><input type="radio" name="grade" value="<?php echo $grade[2] ?>" load-grade="2"/> 高二</label>
  310. <label><input type="radio" name="grade" value="<?php echo $grade[3] ?>" load-grade="3"/> 高三</label>
  311. <span class="real-grade">实际年级:<?php echo $gradeName[$grade[1]] ?></span>
  312. <?php
  313. }else{
  314. ?>
  315. <label><input type="radio" name="grade" value="<?php echo $grade[7] ?>" load-grade="7"
  316. checked/> 七年级</label>
  317. <label><input type="radio" name="grade" value="<?php echo $grade[8] ?>" load-grade="8"/> 八年级</label>
  318. <label><input type="radio" name="grade" value="<?php echo $grade[9] ?>" load-grade="9"/> 九年级</label>
  319. <span class="real-grade">实际年级:<?php echo $gradeName[$grade[7]] ?></span>
  320. <?php
  321. }
  322. ?>
  323. </span>
  324. </th>
  325. </tr>
  326. <tr>
  327. <th class="title">开始时间</th>
  328. <th >
  329. <span class="">
  330. <input id="startTime" type="text" style="text-indent: 5px;">
  331. </span>
  332. </th >
  333. <th class="title" style="width:10%">学科</th>
  334. <th>
  335. <span class="">
  336. <select name="subject_id" id="subjectId">
  337. </select>
  338. </span>
  339. </th>
  340. </tr>
  341. <tr>
  342. <th class="title">所在学期</th>
  343. <th >
  344. <span class="">
  345. <select name="semesterId" id="semesterId"></select>
  346. </span>
  347. </th >
  348. <th class="title" style="width:10%">试用类型</th>
  349. <th>
  350. <span class="">
  351. <input id="typeName" name="typeName" readonly type="text" style="text-indent: 5px;" value="">
  352. <input type="hidden" name="UsefulType" value="-1">
  353. </span>
  354. </th>
  355. </tr>
  356. </table>
  357. </div>
  358. <div class="ims-add-student-box">
  359. <h2 class="ims-title"><span>添加学生</span><span class="good-type-prompt"></span></h2>
  360. <div class="add-student-box">
  361. <div class="class-box">
  362. <div class="add-student-title">
  363. <p>班级</p>
  364. </div>
  365. <ul class="class-list">
  366. <li class="active">一班</li>
  367. <li>二班</li>
  368. <li>三班</li>
  369. </ul>
  370. </div>
  371. <div class="student-list">
  372. <div class="add-student-title clearfix">
  373. <span class="fl">
  374. <label>
  375. <input type="checkbox" name="select-all" value="1" />全选
  376. </label>
  377. <span></span>
  378. </span>
  379. <span class="fr">
  380. <input type="text" id="input-search-student" name="search-student-name" placeholder="学生姓名" />
  381. <button type="button" class="btn-search-student">搜索</button>
  382. </span>
  383. </div>
  384. <div class="student-list-content" id="studentListContent">
  385. </div>
  386. </div>
  387. <div class="btns-box">
  388. <p class="btn-left" id="btnRemoveStudent"><</p>
  389. <p class="btn-right" id="btnAddStudent" >></p>
  390. </div>
  391. <div class="selected-list">
  392. <div class="add-student-title">
  393. <p>已选(<span id="studentSelectedLength">0</span>人)</p>
  394. </div>
  395. <div class="selected-list-content" id="selectedListContent">
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. <a class="btn-trial">开通试用</a>
  401. </div>
  402. <script src="/js/productset/jquery.min.js"></script>
  403. <script src="/js/ims/jquery.datetimepicker.js"></script>
  404. <script src="/js/layer/layer.js"></script>
  405. <?php include_once '_trial.php' ;?>
  406. </body>
  407. </html>