studentOptionalCard.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>custom made</title>
  8. <script src="http://zsyas2.zhixinhuixue.com/js/jquery-2.2.2.min.js"></script>
  9. <script src="http://zsyas2.zhixinhuixue.com/js/layer/layer.js"></script>
  10. <link href="/css/productset/studentOptionalCard.css?1f3c9eb7ca528042749e" rel="stylesheet" />
  11. </head>
  12. <body>
  13. <style>
  14. .fl{
  15. float: left;
  16. }
  17. .fr{
  18. float: right;
  19. }
  20. .clearfix:after{
  21. content: '';
  22. display: block;
  23. clear: both;
  24. }
  25. .changeSubjectNav{
  26. position: fixed;
  27. width: 100%;
  28. box-sizing: border-box;
  29. top: 0;
  30. left: 0;
  31. z-index: 1000;
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. padding: 10px 10px;
  36. background: #ddd;
  37. }
  38. .changeSubjectNav .productSettingBtn a{
  39. display: block;
  40. width: 120px;
  41. height: 30px;
  42. background: #01B677;
  43. text-align: center;
  44. line-height: 30px;
  45. color: #fff;
  46. font-size: 16px;
  47. text-decoration: none;
  48. cursor: text;
  49. }
  50. /*切换选择*/
  51. .tab-con{
  52. position: relative;
  53. height: 30px;
  54. width: 200px;
  55. background: #F2F2F2;
  56. border: 1px solid #01B677;
  57. border-radius: 15px;
  58. box-sizing: border-box;
  59. }
  60. .has-sel{
  61. background: #01B677;
  62. color: #fff;
  63. width: 50%;
  64. height: 30px;
  65. border-top-left-radius: 15px;
  66. border-bottom-left-radius: 15px;
  67. text-align: center;
  68. line-height: 30px;
  69. }
  70. .sel-opt{
  71. width: 50%;
  72. position: relative;
  73. color: #01B677;
  74. line-height: 30px;
  75. text-indent: 6px;
  76. cursor: pointer;
  77. }
  78. .sel-opt:after{
  79. content: '';
  80. border-left: 6px solid transparent;
  81. border-right: 6px solid transparent;
  82. border-top: 8px solid #01B677;
  83. position: absolute;
  84. right: 12px;
  85. top: 12px;
  86. }
  87. // .sel-opt select{
  88. // width: 100%;
  89. // height: 30px;
  90. // background: #F2F2F2;
  91. // color: #01B677;
  92. // text-indent: 6px;
  93. // font-size: inherit;
  94. // border-top-right-radius: 15px;
  95. // border-bottom-right-radius: 15px;
  96. // cursor: pointer;
  97. // }
  98. // .sel-opt select option{
  99. // position: relative;
  100. // }
  101. .points{
  102. position: absolute;
  103. top: -2px;
  104. right: 0;
  105. width: 10px;
  106. height: 10px;
  107. background: #F01516;
  108. border-radius: 50%;
  109. }
  110. .sel-cons{
  111. border: 1px solid #01B677;
  112. width: 50%;
  113. position: absolute;
  114. right: 0;
  115. top: 30px;
  116. text-indent: 10px;
  117. display: none;
  118. }
  119. .sc-lis2{
  120. line-height: 30px;
  121. cursor: pointer;
  122. }
  123. .sc-lis2 span{
  124. position: relative;
  125. }
  126. .sc-lis2 .points{
  127. top: 2px;
  128. right: -16px;
  129. }
  130. .subject-change{
  131. margin:8px 11px 0 0;display: block
  132. }
  133. .subject-change-no{
  134. margin:8px 11px 0 0;display: none
  135. }
  136. </style>
  137. <?php
  138. $sub_id = isset(Yii::app()->session['session_subject_id']) ? Yii::app()->session['session_subject_id']:0;
  139. $duo_sub_id = isset(Yii::app()->session['session_duoxueke_subject_id']) ? Yii::app()->session['session_duoxueke_subject_id']:0;
  140. $testFlag = isset(Yii::app()->session['testFlag'])?Yii::app()->session['testFlag']:0;
  141. $printType = isset($printType)?$printType:'';
  142. $subject = isset($subject)?$subject:array();
  143. $urlInfoAll = Yii::app()->request->getPathInfo();
  144. $urlInfo = '';
  145. if($urlInfoAll){
  146. $urlInfoArr = explode('/',$urlInfoAll);
  147. if(isset($urlInfoArr[0]) && isset($urlInfoArr[1])){
  148. $urlInfo = $urlInfoArr[0].'/'.$urlInfoArr[1];
  149. }
  150. $urlType = '';
  151. foreach ($urlInfoArr as $_url_k => $_url_v) {
  152. if ($_url_v == 'type' && isset($urlInfoArr[$_url_k + 1])) {
  153. $urlType = $urlInfoArr[$_url_k + 1];
  154. }
  155. }
  156. if(count($urlInfoArr) > 4){
  157. $urlInfoArr = array_slice($urlInfoArr,0,4);
  158. }
  159. $urlInfoAll = implode('/',$urlInfoArr);
  160. }
  161. $subjectNameArr = array(
  162. 3 => '数学',
  163. 8 => '英语',
  164. 9 => '语文',
  165. 12 => '物理',
  166. 13 => '化学',
  167. 14 => '生物',
  168. 15 => '政治',
  169. 16 => '历史',
  170. 17 => '地理',
  171. 18 => '理综',
  172. 19 => '文综',
  173. 21 => '日语',
  174. );
  175. ?>
  176. <div class="changeSubjectNav">
  177. <div class="productSettingBtn"> <a href="javascript:;">产品设置</a> </div>
  178. <div class="tabs clearfix">
  179. <div class="tab-con clearfix pull-right">
  180. <div class="has-sel fl"><?php echo isset(Yii::app()->params["subjectId"][$sub_id])?Yii::app()->params["subjectId"][$sub_id]:'数学'?></div>
  181. <div class="sel-opt fl">
  182. 切换学科
  183. </div>
  184. <div class="sel-cons" style="z-index:6;background-color: #fff;">
  185. <?php foreach ($subjectNameArr as $_subId => $_subName):?>
  186. <div class="sc-lis2" val="<?php echo $_subId;?>"><span><?php echo $_subName;?><?php if($subject && isset($subject[$_subId]) && !empty($subject[$_subId])){?><?php }?></span></div>
  187. <?php endforeach;?>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. <script type="text/javascript">
  193. $(document).ready(function() {
  194. $(".sel-opt,.sel-cons").mouseover(function () {
  195. $(".sel-cons").show();
  196. }).mouseout(function () {
  197. $(".sel-cons").hide();
  198. });
  199. $(".sc-lis2").click(function () {
  200. var sub_id = $(this).attr('val');
  201. var data = {
  202. subjectId: sub_id
  203. };
  204. $.post("<?php echo Yii::app()->createUrl('print/setSubjectId')?>", data, function (flags) {
  205. if (flags) {
  206. location.href = "<?php echo $this->createUrl('productset/index');?>";
  207. } else {
  208. alert('网络异常');
  209. }
  210. });
  211. $('.has-sel').text($(this).text());
  212. $(".sel-cons").hide();
  213. });
  214. });
  215. </script>
  216. <div class="hgc_customBox">
  217. <div class="tabBar">
  218. <a href="<?php echo $this->createUrl('productset/template')?>" >模版中心</a>
  219. <a href="<?php echo $this->createUrl('productset/productClassSet')?>">班级定制</a>
  220. <a href="<?php echo $this->createUrl('productset/productStudentSet')?>">学生定制</a>
  221. <?php if($isShowCustomCard):?>
  222. <a class="current" href="<?php echo $this->createUrl('productset/CustomProductStudentSet')?>">学生自选卡</a>
  223. <?php endif;?>
  224. </div>
  225. <div class="operatorArea ">
  226. <div class="classify">
  227. <div class="dropDown">
  228. <span class="name">年级:</span>
  229. <select id="gradeSelect">
  230. <option value="0">请选择年级</option>
  231. <option value="1">高一</option>
  232. <option value="2">高二</option>
  233. <option value="3">高三</option>
  234. </select>
  235. </div>
  236. <div class="dropDown">
  237. <span class="name">班级:</span>
  238. <select id="classSelect">
  239. </select>
  240. </div>
  241. <div class="searchArea">
  242. <input type="text" id="studentName" placeholder="学生姓名">
  243. <div class="btns">
  244. <div class="h-btn" id="search">搜索</div>
  245. </div>
  246. </div>
  247. </div>
  248. <div class="resetArea">
  249. <div class="btns">
  250. <div class="h-btn" id="downloadOptionalCard">下载自选卡</div>
  251. <div class="h-btn" id="scanOptionalCard">扫描自选卡</div>
  252. </div>
  253. </div>
  254. </div>
  255. <ul class="hTable" id="customMadeListBox">
  256. </ul>
  257. <div class="m-style M-box4" id="h_pagination"></div>
  258. </div>
  259. <div class="hgc_lookBox">
  260. <div class="headInfo">
  261. <div class="studentInfo">
  262. <b>姓名:张三</b>
  263. <b>系统准考证号:2387746778</b>
  264. <b>年级:高一</b>
  265. <b>班级:高一(29)班</b>
  266. </div>
  267. <div class="opratorBtns">
  268. <a href="javascript:;" class="theme btn" id="backPic">返回</a>
  269. <a href="javascript:;" class="theme btn" id="prevPic">上一个</a>
  270. <a href="javascript:;" class="theme btn" id="nextPic">下一个</a>
  271. </div>
  272. </div>
  273. <div class="originPicBox" id="originPicBox">
  274. <img src="" alt="">
  275. </div>
  276. </div>
  277. <div class="hgc_modify">
  278. <div class="headInfo">
  279. <div class="studentInfo">
  280. <b>姓名:张三</b>
  281. <b>系统准考证号:2387746778</b>
  282. <b>年级:高一</b>
  283. <b>班级:高一(29)班</b>
  284. </div>
  285. <div class="opratorBtns">
  286. <a href="javascript:;" class="theme btn" id="backPic2">返回</a>
  287. <a href="javascript:;" class="theme btn" id="prevPic2">上一个</a>
  288. <a href="javascript:;" class="theme btn" id="nextPic2">下一个</a>
  289. <div class="h-btn saveOptionalCard" id="saveOptionalCard">保存设置</div>
  290. </div>
  291. </div>
  292. <div class="modifyCardContent">
  293. <div class="part">
  294. <h3>第一部分:个性化排版</h3>
  295. <ul id="modifyPart1">
  296. </ul>
  297. </div>
  298. <div class="part">
  299. <h3>第二部分:错题原题推送</h3>
  300. <ul id="modifyPart2">
  301. </ul>
  302. </div>
  303. <div class="part">
  304. <h3>第三部分:变式训练题</h3>
  305. <ul id="modifyPart3">
  306. </ul>
  307. </div>
  308. <div class="part">
  309. <h3>第四部分:提分培优</h3>
  310. <ul id="modifyPart4">
  311. </ul>
  312. </div>
  313. </div>
  314. </div>
  315. <script>
  316. var currentVersionName = 'class'
  317. </script>
  318. <script src="/js/productset/studentOptionalCard.js?1f3c9eb7ca528042749e"></script>
  319. </body>
  320. </html>