index1.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. <script src="/js/xsgl.js"></script>
  2. <link rel="stylesheet" href="/css/cylet.css" />
  3. <link rel="stylesheet" href="/css/export/report.css?v=1.0.10">
  4. <style>
  5. *{margin: 0;padding: 0;}
  6. .loading-pop{position: fixed;left: 0;top: 0;bottom: 0;right: 0;background: rgba(0,0,0,0.5);z-index: 200;}
  7. .loading-pop-msg{color: #fff;position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);font-size: 22px;letter-spacing: 4px;}
  8. a:hover, a:focus {
  9. color: #23527c;
  10. text-decoration: none;
  11. }
  12. @font-face {font-family: "iconfont";
  13. src: url('/fonts/pdf/iconfont.eot?t=1484561666180'); /* IE9*/
  14. src: url('/fonts/pdf/iconfont.eot?t=1484561666180#iefix') format('embedded-opentype'), /* IE6-IE8 */
  15. url('/fonts/pdf/iconfont.woff?t=1484561666180') format('woff'), /* chrome, firefox */
  16. url('/fonts/pdf/iconfont.ttf?t=1484561666180') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  17. url('/fonts/pdf/iconfont.svg?t=1484561666180#iconfont') format('svg'); /* iOS 4.1- */
  18. }
  19. .iconfont {
  20. font-family:"iconfont" !important;
  21. font-size:16px;
  22. font-style:normal;
  23. -webkit-font-smoothing: antialiased;
  24. -moz-osx-font-smoothing: grayscale;
  25. }
  26. /*切换选择*/
  27. .tab-con{
  28. position: relative;
  29. height: 30px;
  30. width: 200px;
  31. background: #F2F2F2;
  32. border: 1px solid #01B677;
  33. border-radius: 15px;
  34. }
  35. .has-sel{
  36. background: #01B677;
  37. color: #fff;
  38. width: 50%;
  39. height: 30px;
  40. border-top-left-radius: 15px;
  41. border-bottom-left-radius: 15px;
  42. text-align: center;
  43. line-height: 30px;
  44. }
  45. .sel-opt{
  46. width: 50%;
  47. position: relative;
  48. color: #01B677;
  49. line-height: 30px;
  50. text-indent: 6px;
  51. cursor: pointer;
  52. }
  53. .sel-opt:after{
  54. content: '';
  55. border-left: 6px solid transparent;
  56. border-right: 6px solid transparent;
  57. border-top: 8px solid #01B677;
  58. position: absolute;
  59. right: 12px;
  60. top: 12px;
  61. }
  62. // .sel-opt select{
  63. // width: 100%;
  64. // height: 30px;
  65. // background: #F2F2F2;
  66. // color: #01B677;
  67. // text-indent: 6px;
  68. // font-size: inherit;
  69. // border-top-right-radius: 15px;
  70. // border-bottom-right-radius: 15px;
  71. // cursor: pointer;
  72. // }
  73. // .sel-opt select option{
  74. // position: relative;
  75. // }
  76. .points{
  77. position: absolute;
  78. top: -2px;
  79. right: 0;
  80. width: 10px;
  81. height: 10px;
  82. background: #F01516;
  83. border-radius: 50%;
  84. }
  85. .sel-cons{
  86. border: 1px solid #01B677;
  87. width: 50%;
  88. position: absolute;
  89. right: 0;
  90. top: 30px;
  91. text-indent: 10px;
  92. display: none;
  93. }
  94. .sc-lis{
  95. line-height: 30px;
  96. cursor: pointer;
  97. }
  98. .sc-lis span{
  99. position: relative;
  100. }
  101. .sc-lis .points{
  102. top: 2px;
  103. right: -16px;
  104. }
  105. .icon-pdf:before { content: "\e618"; }}
  106. .fl{float:left;}
  107. /* 往期教师讲案按钮 */
  108. .history-teacher-exolaincase-btn{cursor: pointer;background: rgb(21,174,104);color: #fff;width: 130px;height: 28px;margin-left: 20px;text-indent: 10px;}
  109. .history-teacher-exolaincase-btn img,.history-teacher-exolaincase-btn span{ color: #fff;vertical-align: middle;line-height: 28px;font-size: 12px;}
  110. .dtw-top-right-btns{float: right;padding-right:10px;}
  111. .dtw-top-left-cons{float: left;padding-left: 12px;}
  112. </style>
  113. <div class="main-content-inner">
  114. <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
  115. <div class="page-content" >
  116. <div class="row" style="margin:0px;">
  117. <div class="col-xs-12">
  118. <!-- PAGE CONTENT BEGINS -->
  119. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  120. <div class="row">
  121. <form method="get" action="<?php echo $this->createUrl('export/index_duo'); ?>" style="padding-left: 0px;">
  122. <div class="dtw-top-left-cons">
  123. <div class="dataTables_length margin-zy">
  124. <div class='diy_select2' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;width: 140px;">
  125. <input type='hidden' id="type_id" name="type_id" class='diy_select_input2' value="<?php if (empty($type_id)) {
  126. echo 0;
  127. } else {
  128. echo $type_id;
  129. } ?>"/>
  130. <div class='diy_select_txt2'>
  131. <?php
  132. if (empty($type_id)) {
  133. echo '请选择试卷类别';
  134. } else {
  135. switch ($type_id) {
  136. case 2:echo '第三方线上阅卷试卷';
  137. break;
  138. case 3:echo '第三方导入成绩试卷';
  139. break;
  140. }
  141. }
  142. ?>
  143. </div>
  144. <div class='diy_select_btn2'></div>
  145. <ul class='diy_select_list2'>
  146. <li val="0" >请选择试卷类别</li>
  147. <li val="2">第三方线上阅卷试卷</li>
  148. <li val="3">第三方导入成绩试卷</li>
  149. </ul>
  150. </div>
  151. <div class='diy_select1' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;">
  152. <input type='hidden' id="grade_id" name="grade_id" class='diy_select_input1' value="<?php if (empty($grade_id)) {
  153. echo 0;
  154. } else {
  155. echo $grade_id;
  156. } ?>"/>
  157. <div class='diy_select_txt1'><?php
  158. if (empty($grade_id)) {
  159. echo '请选择年级';
  160. } else {
  161. if(isset(Yii::app()->params['grade_list'][$grade_id])){
  162. echo Yii::app()->params['grade_list'][$grade_id]['grade_name'];
  163. }
  164. }
  165. ?></div>
  166. <div class='diy_select_btn1'></div>
  167. <ul class='diy_select_list1'>
  168. <li val="0" >请选择年级</li>
  169. <?php
  170. if(Yii::app()->params['grade_config']){
  171. foreach (Yii::app()->params['grade_config'] as $id=> $val){
  172. echo '<li val="'.$id.'">'.$val['grade_name'].'</li>';
  173. }
  174. }
  175. ?>
  176. </ul>
  177. </div>
  178. <div class='diy_select'>
  179. <input type='hidden' id="class_id" name="class_id" class='diy_select_input' value="<?php if (empty($grade_id) || empty($grade_class) || empty($class_id)) {
  180. echo 0;
  181. } else {
  182. echo $class_id;
  183. } ?>"/>
  184. <div class='diy_select_txt'><?php if (empty($grade_id) || empty($class_id) || empty($grade_class)) {
  185. echo '请选择班级';
  186. } else {
  187. if (isset($grade_class[$class_id]) && !empty($grade_class[$class_id])) {
  188. echo $grade_class[$class_id]['class_name'];
  189. }
  190. } ?></div>
  191. <div class='diy_select_btn'></div>
  192. <ul class='diy_select_list'>
  193. <li val="0">请选择班级</li>
  194. <?php if (empty($grade_id) || empty($grade_class)) {
  195. echo '';
  196. } else {
  197. foreach ($grade_class as $v) {
  198. ?>
  199. <li val="<?php echo $v['class_id'] ?>"><?php echo $v['class_name'] ?></li>
  200. <?php }
  201. } ?>
  202. </ul>
  203. </div>
  204. <input type="text" class="form-control input-sm" placeholder="请输入报告名称!" name="realname" value="<?php if (!empty($realname)) {
  205. echo $realname;
  206. } ?>">
  207. <!--<button class="btn btn-minier btn-primary">搜索</button>-->
  208. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  209. </div>
  210. </div>
  211. </form>
  212. <div class="dtw-top-right-btns mt15" >
  213. <?php if(Yii::app()->params['section']==1):?>
  214. <?php if(isset(Yii::app()->session['session_duoxueke_subject_id']) && in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])) { ?>
  215. <?php if ($past_sem_exist):?>
  216. <div class="history-teacher-exolaincase-btn fl">
  217. <img src="/images/download.png" alt="" class="" href="">
  218. <a href="<?php echo Yii::app()->createUrl('export/pastacdemicrs');?>"><span>往期教学宝</span></a>
  219. </div>
  220. <?php endif;?>
  221. <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
  222. <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/statistics') ?>">
  223. <i class="fa fa-plus " style="font-style: normal;"></i> 校长专用分析报告
  224. </a>
  225. </div>
  226. <?php }?>
  227. <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
  228. <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/batch_duo') ?>">
  229. <i class="fa fa-plus " style="font-style: normal;"></i> 批量下载报表
  230. </a>
  231. </div>
  232. <?php endif;?>
  233. </div>
  234. </div>
  235. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  236. <thead>
  237. <tr>
  238. <th width="40%">名称</th>
  239. <th width="10%">试卷类别</th>
  240. <th width="10%">年级</th>
  241. <th width="10%">班级</th>
  242. <th width="10%">阅卷状态</th>
  243. <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){ ?>
  244. <th width="10%">错题文档</th>
  245. <?php }?>
  246. <th width="30%">操作</th>
  247. </tr>
  248. </thead>
  249. <tbody>
  250. <?php if (!empty($printList)):foreach ($printList as $cl): ?>
  251. <tr>
  252. <td><?php echo $cl['print_name']; ?></td>
  253. <td><?php echo $cl['type_name']; ?></td>
  254. <td><?php echo $cl['grade_name']; ?></td>
  255. <td><?php echo $cl['class_name']; ?></td>
  256. <td><?php if($cl['status']==1){echo '已完成';}else{echo '未完成';}?></td>
  257. <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){
  258. ?>
  259. <td><span style="color: #15ae68;font-weight: bold">
  260. <?php if ($cl['is_topwb_html'] == 0 || $cl['is_topwb_html'] == 90) {
  261. echo '未生成';
  262. } elseif ($cl['is_topwb_html'] == 1 && $cl['is_topwb_pdf'] == 0) {
  263. echo "正在生成中";
  264. } elseif ($cl['is_topwb_pdf'] == 1) {
  265. echo '已生成';
  266. } elseif ($cl['is_topwb_pdf'] == 9) {
  267. echo '已删除';
  268. };
  269. ?>
  270. </span>
  271. </td>
  272. <?php
  273. }?>
  274. <td>
  275. <?php if ($this->schoolManager->classExamHasPaperRs($cl['exam_id'], $cl['class_id'])): ?>
  276. <!-- <a class="green" style="margin-left:4px;" href="<?php /*echo $this->createUrl("export/excel?examId={$cl['exam_id']}&classId={$cl['class_id']}&type=word&is_outer=0"); */?>">
  277. <span class="fa fa-file-word-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="导出Word(精简)"></span>
  278. </a>-->
  279. <!-- <i class="icon icon-download downloadFileBtn" rel="<?php echo $cl['exam_id']?>" subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>" class_id="<?php echo $cl['class_id']?>" title="下载报表"></i> -->
  280. <?php if($cl['status']==1){
  281. ?>
  282. <a class="green setEduce" href="javascript:;">
  283. <span
  284. class="fa fa-file-word-o click-sc addbx downloadFileBtn"
  285. data-downloadType="1"
  286. style="padding:0.5px 9px"
  287. aria-hidden="true"
  288. title="导出Word"
  289. <?php
  290. if($cl['status']==1){
  291. echo ' complete="1" ';
  292. }else{
  293. echo ' complete="0" ';
  294. }
  295. ?>
  296. rel="<?php echo $cl['exam_id']?>"
  297. subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>"
  298. class_id="<?php echo $cl['class_id']?>" topic_count="<?php echo isset($cl['topic_count'])?$cl['topic_count']:0;?>"
  299. ></span>
  300. </a>
  301. <?php
  302. }?>
  303. <a class="green setEduce" href="javascript:;" >
  304. <span
  305. class="fa fa-file-excel-o click-sc addbx downloadFileBtn"
  306. data-downloadType="2"
  307. style="padding:0.5px 9px"
  308. aria-hidden="true"
  309. title="导出Excel"
  310. <?php
  311. if($cl['status']==1){
  312. echo ' complete="1" ';
  313. }else{
  314. echo ' complete="0" ';
  315. }
  316. ?>
  317. rel="<?php echo $cl['exam_id']?>"
  318. subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>"
  319. class_id="<?php echo $cl['class_id']?>"
  320. ></span>
  321. </a>
  322. <?php $_sub_id = Yii::app()->session['session_duoxueke_subject_id'];?>
  323. <!--
  324. <?php if(in_array($_sub_id,array(8,9,12,13,14,15,16,17,18,19)) && $cl['status']==1 && Yii::app()->params['section']!=0){?>
  325. <?php if($cl['topic_answer_upload'] == 1 || ($_sub_id == 8 && $cl['is_fine_paper'] > 0) || ($_sub_id == 8 && $cl['qxk_paper_id']>0)):?>
  326. <a class="green" onclick="downpdfPrint('<?php echo $cl['exam_id'] ?>', '<?php echo $cl['class_id'] ?>', '0')" href="javascript:void(0);">
  327. <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载教学宝"></span>
  328. </a>
  329. <?php elseif($_sub_id == 12 && $cl['is_labelled']):?>
  330. <a class="green" onclick="downpdfPrint('<?php echo $cl['exam_id'] ?>', '<?php echo $cl['class_id'] ?>', '<?php echo $cl['is_labelled'] ?>')" href="javascript:void(0);">
  331. <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载教学宝"></span>
  332. </a>
  333. <?php endif;?>
  334. <?php if ($cl['is_topwb_pdf'] == 1) { ?>
  335. <a class="green" onclick="downCTQSPrint('<?php echo $cl['exam_id'] ?>')" href="#">
  336. <span class="fa fa-file-powerpoint-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载错题前十"></span>
  337. </a>
  338. <?php } ?>
  339. <?php //if(isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)){ ?>
  340. <?php if($cl['is_academicr_pdf']=='1'&&$cl['academicr_pdf_path']!=""){ ?>
  341. <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成教学宝" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',1,this)">&#xe6db;</span>
  342. <?php } ?>
  343. <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){?>
  344. <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成错题前十" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',2,this)">&#xe6db;</span>
  345. <?php }?>
  346. <?php //}
  347. }?>
  348. -->
  349. <?php else: ?>
  350. <a style="margin-left:10px">
  351. <span class="iconfont click-sc addbx" aria-hidden="true" title="数据异常">&#xe7e6;</span>
  352. </a>
  353. <?php endif; ?>
  354. </td>
  355. </tr>
  356. <?php endforeach;
  357. else: ?>
  358. <tr><td colspan="4">暂无数据!</td></tr>
  359. <?php endif; ?>
  360. </tbody>
  361. </table>
  362. <?php if (!empty($page_total)): ?>
  363. <div class="row" style="padding-top:10px;">
  364. <div class="col-xs-7">
  365. &nbsp;
  366. </div>
  367. <div class="col-xs-5" style="font-size: 16px">
  368. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  369. <?php
  370. $this->widget('CLinkPager', array(
  371. 'header' => '',
  372. 'firstPageLabel' => '首页',
  373. 'lastPageLabel' => '末页',
  374. 'prevPageLabel' => '上一页',
  375. 'nextPageLabel' => '下一页',
  376. 'pages' => $pages,
  377. 'maxButtonCount' => 5,
  378. ));
  379. echo '<span style="vertical-align:middle;">共:' . $page_total . '条</span>';
  380. ?>
  381. </div>
  382. </div>
  383. </div>
  384. <?php endif; ?>
  385. </div>
  386. <!-- PAGE CONTENT ENDS -->
  387. </div>
  388. </div>
  389. </div>
  390. </div>
  391. <div class="port-down-pop">
  392. <div class="pdp-con">
  393. <div class="pop-top-con clearfix">
  394. 下载报表<span class="dib pointer close-pop-btn">×</span>
  395. </div>
  396. <div class="pop-main-con">
  397. <div class="download-filter-title">
  398. <span class="tit-msg vtm">下载的学情分析报告是否需要下列数据:</span>
  399. <input type="checkbox" class="selectall-filter pointer vtm" id="selectall-filter">
  400. <label class="pointer vtm" for="selectall-filter">全选</label>
  401. </div>
  402. <div class="filter-sel-con">
  403. <input type="checkbox" name="student_card" class="selectall-filter pointer vtm" id="system-num">
  404. <label class="pointer vtm label-msg" for="system-num">系统准考证</label>
  405. <input type="checkbox" name="school_student_card" class="selectall-filter pointer vtm" id="school-num">
  406. <label class="pointer vtm label-msg" for="school-num">学校准考证</label>
  407. <input type="checkbox" name="is_outer" class="selectall-filter pointer vtm" id="now-stu">
  408. <label class="pointer vtm label-msg" for="now-stu">只显示在籍生</label>
  409. <input type="checkbox" name="id_number" class="selectall-filter pointer vtm" id="identify-num">
  410. <label class="pointer vtm label-msg" for="identify-num">身份证</label>
  411. </div>
  412. <div id="score_excel">
  413. <div class="tit-msg">报表下载设置:</div>
  414. <h3 class="tit-sub-intro">总分段人数分析表(请按分数进行分段):<span class="fr">注:分段包含右边界值</span></h3>
  415. <div class="clearfix">
  416. <div class="fl">
  417. <div class="dib vtm table_set_1">
  418. <input type="hidden" name="max_score" value="">
  419. <span class="score-inp-list"><input type="text" class="subsection" name="score_0" srcvalue="" value="">-</span>
  420. <span class="score-inp-list"><input type="text" class="subsection" name="score_1" srcvalue="" value="">-</span>
  421. <span class="score-inp-list"><input type="text" class="subsection" name="score_2" srcvalue="" value="">-</span>
  422. <span class="score-inp-list"><input type="text" class="subsection" name="score_3" srcvalue="" value="">-</span>
  423. <span class="score-inp-list"><input type="text" class="subsection" name="score_4" srcvalue="" value="">-</span>
  424. <span class="score-inp-list"><input type="text" class="subsection" name="score_5" srcvalue="" value="">-</span>
  425. <span class="score-inp-list"><input type="text" class="subsection" name="score_6" srcvalue="" value="">-</span>
  426. <span class="score-inp-list"><input type="text" class="subsection" name="score_7" srcvalue="" value="">-</span>
  427. <span class="score-inp-list"><input type="text" class="subsection" name="score_8" srcvalue="" value="">-</span>
  428. <span class="score-inp-list"><input type="text" class="subsection" name="score_9" srcvalue="" value="">-</span>
  429. </div>
  430. 0<input type="hidden" name="score_10" value="0">
  431. </div>
  432. <div class="fr">
  433. <span class="dib pointer vtm reduce-btn">-</span>
  434. <span class="dib pointer vtm add-btn">+</span>
  435. <img src="/images/del-icon.png" alt="" class="del-icon pointer vtm">
  436. </div>
  437. </div>
  438. </div>
  439. </div>
  440. <div class="pop-opt-con">
  441. <input type="hidden" name="exam_id" value="0">
  442. <input type="hidden" name="file_type" value="">
  443. <span class="dib sure-btn pointer" id="btnSubmit">确定</span>
  444. <span class="dib cancel-btn pointer" id="btnClose">取消</span>
  445. </div>
  446. </div>
  447. </div>
  448. <?php include(Yii::app()->basePath.'/views/print/_print.php');?>
  449. <script src="/js/export/report.js?v=1.1.4"></script>
  450. <script type="text/javascript">
  451. function reloadAcademicr(examId,type,obj){
  452. $.get("<?php echo $this->createUrl("export/reload_academicr") ?>", {examId: examId, type: type}, function(data) {
  453. var m = JSON.parse(data);
  454. if (m.status == 0)
  455. {
  456. alert('重置成功');
  457. $(obj).hide()
  458. }
  459. });
  460. }
  461. function downpdf(examId, classId,isLabelled) {
  462. layer.msg('生成中,请稍后...', { time: 0, shade: 0.4 })
  463. //学科ID
  464. var subId = "<?php echo Yii::app()->session['session_duoxueke_subject_id'];?>";
  465. //是否是多学科
  466. var isDuoSub = "<?php echo in_array($sub_id,array(8,9,12,13,14,15,16,17,18,19))?1:0;?>";
  467. var teachingRoute = '';
  468. if (isDuoSub && isLabelled == 0) {
  469. teachingRoute = "<?php echo $this->createUrl('teaching/index');?>";
  470. }else if(subId == 12 && isLabelled == 1){//物理新版
  471. teachingRoute = "<?php echo $this->createUrl('teaching/physics');?>";
  472. }else{
  473. teachingRoute = "<?php echo $this->createUrl('export/academicr');?>";
  474. }
  475. $.get(teachingRoute, {examId: examId, classId: classId}, function(data) {
  476. //$.get("<?php //echo $this->createUrl('export/academicr') ?>//", {examId: examId, classId: classId}, function(data) {
  477. var m = JSON.parse(data);
  478. if (m.status == 0)
  479. {
  480. if (m.is_create == 1) {
  481. setTimeout(function() {
  482. layer.closeAll()
  483. }, 500);
  484. } else {
  485. layer.closeAll()
  486. }
  487. location.href="<?php echo $this->createUrl("export/down_load")?>?examId="+examId;
  488. } else
  489. {
  490. setTimeout(function() {
  491. layer.closeAll()
  492. }, 500);
  493. layer.msg(m.error)
  494. // alert(m.error);
  495. }
  496. });
  497. }
  498. $(document).ready(function() {
  499. $(".sel-opt,.sel-cons").mouseover(function(){
  500. $(".sel-cons").show();
  501. }).mouseout(function(){
  502. $(".sel-cons").hide();
  503. });
  504. $(".sc-lis").click(function(){
  505. var data = {
  506. subjectId : $(this).attr('val')
  507. };
  508. $.post("<?php echo Yii::app()->createUrl('third/setSubjectId')?>",data,function(flags){
  509. if(flags)
  510. {
  511. location.reload();
  512. }else
  513. {
  514. alert('网络异常');
  515. }
  516. });
  517. $('.has-sel').text($(this).text());
  518. $(".sel-cons").hide();
  519. });
  520. });
  521. function ccc() {
  522. layer.msg('敬请期待!', {
  523. time: 0,
  524. btn: ['确定', '取消'],
  525. yes: function(index) {
  526. layer.close(index);
  527. return false;
  528. }
  529. });
  530. }
  531. $(function() {
  532. $(".diy_select1").click(function() {
  533. var grade = $(".diy_select1 input[class=diy_select_input1]").val();
  534. if (grade == 0)
  535. {
  536. $(".diy_select input[class=diy_select_input]").val(0);
  537. $(".diy_select_txt").text("请选择班级");
  538. $(".diy_select_list li").text("请选择班级");
  539. $(".diy_select_list li").attr("val", 0);
  540. }
  541. $.post("<?php echo $this->createUrl('classes/getclass'); ?>", {grade_id: grade}, function(data) {
  542. var m = JSON.parse(data);
  543. if (m.status == 0)
  544. {
  545. $(".diy_select input[class=diy_select_input]").val(0);
  546. $(".diy_select_txt").text("请选择班级");
  547. $(".diy_select_list").empty();
  548. var html = '<li val="0">请选择班级</li>';
  549. $(".diy_select_list").html(html);
  550. } else {
  551. $(".diy_select input[class=diy_select_input]").val(0);
  552. $(".diy_select_txt").text("请选择班级");
  553. $(".diy_select_list").empty();
  554. var html = '<li val="0">请选择班级</li>';
  555. $.each(m.result, function(i, n) {
  556. html += '<li val="' + n.class_id + '">' + n.class_name + '</li>';
  557. });
  558. $(".diy_select_list").html(html);
  559. }
  560. });
  561. });
  562. });
  563. </script>