index2.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <style>
  2. /*切换选择*/
  3. .tab-con{
  4. position: relative;
  5. height: 30px;
  6. width: 200px;
  7. background: #F2F2F2;
  8. border: 1px solid #2977ff;
  9. border-radius: 15px;
  10. }
  11. .sel-opt{
  12. width: 50%;
  13. position: relative;
  14. color: #2977ff;
  15. line-height: 30px;
  16. text-indent: 6px;
  17. cursor: pointer;
  18. }
  19. .sel-opt:after{
  20. content: '';
  21. border-left: 6px solid transparent;
  22. border-right: 6px solid transparent;
  23. border-top: 8px solid #2977ff;
  24. position: absolute;
  25. right: 12px;
  26. top: 12px;
  27. }
  28. .xdsoft_datetimepicker{
  29. z-index:99999999!important;
  30. }
  31. // .sel-opt select{
  32. // width: 100%;
  33. // height: 30px;
  34. // background: #F2F2F2;
  35. // color: #01B677;
  36. // text-indent: 6px;
  37. // font-size: inherit;
  38. // border-top-right-radius: 15px;
  39. // border-bottom-right-radius: 15px;
  40. // cursor: pointer;
  41. // }
  42. // .sel-opt select option{
  43. // position: relative;
  44. // }
  45. .points{
  46. position: absolute;
  47. top: -2px;
  48. right: 0;
  49. width: 10px;
  50. height: 10px;
  51. background: #F01516;
  52. border-radius: 50%;
  53. }
  54. .sel-cons{
  55. border: 1px solid #2977ff;
  56. width: 50%;
  57. position: absolute;
  58. right: 0;
  59. top: 30px;
  60. text-indent: 10px;
  61. display: none;
  62. }
  63. .sc-lis{
  64. line-height: 30px;
  65. cursor: pointer;
  66. }
  67. .sc-lis span{
  68. position: relative;
  69. }
  70. .sc-lis .points{
  71. top: 2px;
  72. right: -16px;
  73. }
  74. .click-sc:focus {
  75. color: #fff;
  76. }
  77. .click-sc:hover {
  78. color: #fff;
  79. }
  80. .create-third{
  81. position: absolute;
  82. right: 6px;
  83. top: 10px;
  84. }
  85. .tab-con-btn{
  86. height: 31px;
  87. width: 210px;
  88. background: #F2F2F2;
  89. border: 1px solid #2977ff;
  90. border-radius: 15px;
  91. display: inline-block;
  92. text-align: center;
  93. }
  94. .tab_btn{
  95. display: inline-block;
  96. width:100px;
  97. padding: 0;
  98. border: 0;
  99. outline:none;
  100. margin:0;
  101. background: #F2F2F2;
  102. border-radius: inherit;
  103. }
  104. .has-sel{
  105. background: #2977ff;
  106. color: #fff;
  107. width: 50%;
  108. height: 30px;
  109. border-top-left-radius: 15px;
  110. border-bottom-left-radius: 15px;
  111. text-align: center;
  112. line-height: 30px;
  113. }
  114. .has-sel-1{
  115. background: #2977ff;
  116. color: #fff;
  117. width: 50%;
  118. height: 30px;
  119. border-top-right-radius: 15px;
  120. border-bottom-right-radius: 15px;
  121. text-align: center;
  122. line-height: 30px;
  123. }
  124. .layer-upload{padding:10px 20px; display:none;}
  125. .layer-upload p{line-height:20px;color:#aaa;}
  126. .upload-btn{color:#2977ff}
  127. .layer-upload ul{padding:10px;line-height:30px; border:1px solid #ccc;}
  128. .layer-upload li{border-bottom:1px solid #ccc;}
  129. .layer-upload li span{width:40%;}
  130. .layer-upload li em{width:20%;font-size:26px;text-align:center;cursor:pointer}
  131. .tooltip {
  132. position: absolute;
  133. display: none;
  134. z-index: 9900000;
  135. outline: none;
  136. padding: 5px;
  137. border-width: 1px;
  138. border-style: solid;
  139. border-radius: 5px;
  140. -moz-border-radius: 5px 5px 5px 5px;
  141. -webkit-border-radius: 5px 5px 5px 5px;
  142. border-radius: 5px 5px 5px 5px;
  143. }
  144. .table-hover>tbody>tr:hover {
  145. background-color: #E6F1EC
  146. }
  147. .selectSendType{width:180px;height:100px;border:1px solid #ccc;display: inline-block;text-align: center;line-height: 100px;cursor:pointer;border-radius:5px;}
  148. .selected{background:#aaa; }
  149. /* Tooltip 容器 */
  150. .tooltipclass {
  151. display: inline-block;
  152. }
  153. /* Tooltip 文本 */
  154. .tooltipclass .tooltiptext {
  155. visibility: hidden;
  156. width: 160px;
  157. background-color: #555;
  158. color: #fff;
  159. padding: 5px;
  160. border-radius: 6px;
  161. font-size:11px;
  162. text-align: left;
  163. /* 定位 */
  164. position: absolute;
  165. z-index: 1;
  166. }
  167. /* 鼠标移动上去后显示提示框 */
  168. .tooltipclass:hover .tooltiptext {
  169. visibility: visible;
  170. }
  171. .sendLabelTask{margin-left:10px;}
  172. </style>
  173. <link rel="stylesheet" href="/fonts/fpdf/iconfont.css" />
  174. <link rel="stylesheet" href="/css/alert.css"/>
  175. <link rel="stylesheet" href="/fonts/shangchuan/iconfont.css" />
  176. <script language="javascript" src="<?php echo Yii::app()->params['static_url_js']; ?>/js/MaskUtil.js?<?php echo Yii::app()->params['static_version']; ?>"></script>
  177. <div class="layer-upload">
  178. <p>请上传试卷及答案解析,发送给后台老师标注。支持word、PDF或图片格式</p>
  179. <div class="clearfix">
  180. <span class="fl">试卷:</span>
  181. <a href="javascript:;" class="fr upload-btn upload-btn-paper">+添加附件</a>
  182. </div>
  183. <ul class="upload-ul-paper">
  184. </ul>
  185. <div class="clearfix">
  186. <span class="fl">答案及解析:</span>
  187. <a href="javascript:;" class="fr upload-btn upload-btn-answer">+添加附件</a>
  188. </div>
  189. <ul class="upload-ul-answer">
  190. </ul>
  191. <input type="hidden" name="english_paper" class="english_paper_id" value="0"/>
  192. <p class="red">请确保试卷及答案解析完整,再发送标注,否则无法生成错题本/个性化学习宝</p>
  193. <p class="red">*单个文件不要超过8M</p>
  194. <div class="clearfix">
  195. <div class="mcp-form-menu fl">期望标注完成时间</div>
  196. <div class="mcp-form-detail fl clearfix">
  197. <input type="text" class='core datetimepicker8' style="width: 140px;line-height: 27px;padding-left: 5px;" name="english-print-time" id="trial_begin_time_test" autocomplete="off" readonly="readonly"/>
  198. </div>
  199. <div id="examDate"></div>
  200. </div>
  201. </div>
  202. <?php include(Yii::app()->basePath.'/views/layouts/parse_label.php');?>
  203. <div class="main-content-inner">
  204. <!-- 导航栏开始-->
  205. <?php include(Yii::app()->basePath.'/views/layouts/view_navigation.php');?>
  206. <!-- 导航栏结束-->
  207. <div class="page-content">
  208. <div class="row" style="margin:0px;">
  209. <div class="col-xs-12">
  210. <!-- PAGE CONTENT BEGINS -->
  211. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  212. <div class="row">
  213. <form method="get" id="form1" action="<?php echo $this->createUrl("third/index");?>">
  214. <div class="col-xs-12">
  215. <div class="dataTables_length margin-zy">
  216. <div class="tab-con-btn">
  217. <?php
  218. if(isset($list_type) && $list_type==1):
  219. ?>
  220. <button class="tab_btn " >阅卷试卷</button>
  221. <button class="tab_btn has-sel-1" >导入成绩试卷</button>
  222. <?php
  223. else:
  224. ?>
  225. <button class="tab_btn has-sel" >阅卷试卷</button>
  226. <button class="tab_btn " >导入成绩试卷</button>
  227. <?php
  228. endif;
  229. ?>
  230. </div>
  231. <input type="hidden" name="list_type" value="<?php if(isset($list_type)){echo $list_type;}else{echo 0;}?>" />
  232. <input type="hidden" name="type" value="<?php echo $printType;?>" />
  233. <input type="checkbox" name="display" style="margin: -1px 2px 0 0;display:inline-block;vertical-align: middle;width:15px;height:15px;" value="1" <?php if($display === '1') echo "checked";?>>显示隐藏试卷
  234. <!-- <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6,41,42,43)) && Yii::app()->params['section']!=3)
  235. {
  236. ?> <select class="form-control" id="labelled" name="labelled">
  237. <option value="">标注状态</option>
  238. <option value="0" <?php if($labelled === '0') echo "selected";?> >未发送</option>
  239. <option value="2" <?php if($labelled == 2) echo "selected";?> >已发送</option>
  240. <option value="1" <?php if($labelled == 1) echo "selected";?>>已标注</option>
  241. <option value="3" <?php if($labelled === 3) echo "selected";?> >标注中</option>
  242. <option value="4" <?php if($labelled == 4) echo "selected";?> >已取消</option>
  243. <option value="5" <?php if($labelled == 5) echo "selected";?>>补题中</option>
  244. </select><?php } ?>-->
  245. <input type="text" class="form-control input-sm" placeholder="请输入打印任务名称" name="name" value="<?php echo $printName;?>">
  246. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  247. </div>
  248. </div>
  249. </form>
  250. <button class="label-primary-s bth-s create-third" data-button="red">创建试卷</button>
  251. </div>
  252. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  253. <thead>
  254. <tr>
  255. <th>名称</th>
  256. <th>创建日期</th>
  257. <th>考试日期</th>
  258. <th>答题卡类型</th>
  259. <th>考号类型</th>
  260. <th>选择题量</th>
  261. <th>填空题量</th>
  262. <th>解答题量</th>
  263. <th>选做题量</th>
  264. <th>阅卷方式</th>
  265. <th>主阅老师</th>
  266. <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6)))
  267. {
  268. ?>
  269. <th >
  270. 状态
  271. <div class="tooltipclass">&nbsp;<img src="/images/icon-warning-red.png"><span class="tooltiptext">标注状态栏,“老”代表数学老题库,个性化学习宝系列产品发送标注时,请点击对应按钮。“新”代表全学科题库,方法宝产品发送标注时,请点击对应按钮。仅适用于高中数学学科。</span></div>
  272. </th><?php } ?>
  273. <?php if(!in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6,51,8)))
  274. {
  275. ?>
  276. <th>状态</th>
  277. <?php } ?>
  278. <?php if(Yii::app()->session['session_duoxueke_subject_id'] == 8)
  279. {
  280. ?>
  281. <th>标注状态</th>
  282. <?php } ?>
  283. <!-- <th>后台协助状态</th>-->
  284. <th >操作</th>
  285. </tr>
  286. </thead>
  287. <tbody>
  288. <?php if(!empty($printList)):foreach($printList as $cl):?>
  289. <tr>
  290. <td style="max-width:260px">
  291. <?php
  292. if($cl['is_new']==0)
  293. {
  294. echo "<span style='color: #ff0000;font-weight: bold;'>【New】</span>";
  295. }
  296. if($cl['homework']==1)
  297. {
  298. echo "<span style='color: #fff;font-weight: bold;display:inline-block;background: #337ab7;padding:0 5px;'> 作业 </span>";
  299. // echo $cl['exam_name'];
  300. }
  301. if($cl['qxk_paper_id']){
  302. ?>
  303. <a href="<?php echo Yii::app()->createUrl('allSubject/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>
  304. <!-- <a href="<?php echo Yii::app()->createUrl('paper/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>-->
  305. <?php
  306. }else{
  307. ?>
  308. <a href="<?php echo Yii::app()->createUrl('paper/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>
  309. <?php
  310. }
  311. ?>
  312. </td>
  313. <td><?php if(!empty($cl['create_time'])){ echo date('Y-m-d',$cl['create_time']);}?></td>
  314. <td><?php if(!empty($cl['examDate'])){ echo date('Y-m-d',$cl['examDate']);}?></td>
  315. <td>
  316. <?php
  317. if(isset($exam_sheets[$cl['exam_group_id']]) ){
  318. if($exam_sheets[$cl['exam_group_id']]==1){
  319. echo '在线';
  320. }else{
  321. echo '第三方';
  322. }
  323. }else{
  324. echo "未创建";
  325. }
  326. ?>
  327. </td>
  328. <td>
  329. <?php
  330. if($cl['school_card_status']==1){
  331. if ($cl['upload_status'] > 0 || $cl['homework']==1) {
  332. echo '学校';
  333. }else{
  334. echo '<a href="javascript::void()" class="studentCard" cardStatus="'.$cl['school_card_status'].'" cardLength="'.$cl['school_card_length'].'" is_show="' . $cl['upload_status'] . '" examId="' . $cl["exam_group_id"] . '" >学校</a>';
  335. }
  336. }else{
  337. if ($cl['upload_status'] > 0 || $cl['homework']==1) {
  338. echo '系统';
  339. }else{
  340. echo '<a href="javascript::void()" class="studentCard" cardStatus="'.$cl['school_card_status'].'" cardLength="'.$cl['school_card_length'].'" is_show="' . $cl['upload_status'] . '" examId="' . $cl["exam_group_id"] . '" >系统</a>';
  341. }
  342. }
  343. ?>
  344. </td>
  345. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  346. echo $sheet_rs[$cl['exam_group_id']]->ke_topic_num;
  347. }else{echo 0;}?></td>
  348. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  349. echo $sheet_rs[$cl['exam_group_id']]->tian_topic_num;
  350. }else{echo 0;}?></td>
  351. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  352. echo $sheet_rs[$cl['exam_group_id']]->zu_topic_num;
  353. }else{echo 0;}?></td>
  354. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  355. echo $sheet_rs[$cl['exam_group_id']]->xuan_topic_num;
  356. }else{echo 0;}?></td>
  357. <td>
  358. <?php
  359. $txt='';
  360. if($cl['import_score_type']>0){
  361. $txt='导入成绩';
  362. }elseif ($cl['mark_type'] == 0) {
  363. $txt='线下阅卷';
  364. }elseif($cl['mark_type'] == 4){
  365. $txt='班级单独阅卷';
  366. }elseif($cl['mark_type']==3){
  367. $txt='混合阅卷';
  368. }
  369. if ($cl['upload_status'] > 0 || $cl['homework']==1 || $cl['import_score_type']) {
  370. echo $txt;
  371. }else{
  372. $markingPapers=0;
  373. if(isset($exam_sheets[$cl['exam_group_id']]) && $exam_sheets[$cl['exam_group_id']]==1){
  374. $online=1;
  375. }else{
  376. $online=0;
  377. }
  378. if(isset($marking_papers[$cl['exam_group_id']])){
  379. $markingPapers=$marking_papers[$cl['exam_group_id']];
  380. }
  381. echo '<a href="javascript::void()" class="maskType" online="'.$online.'" marking_papers="'.$markingPapers.'" is_show="' . $cl['upload_status'] . '" examId="' . $cl["exam_group_id"] . '" tpl_index="' . $cl["tpl_index"] . '" mark_type="' . $cl["mark_type"] . '" >'.$txt.'</a>';
  382. }
  383. ?>
  384. </td>
  385. <td><?php if($teachers && isset($teachers[$cl['teacher_id']])){ echo $teachers[$cl['teacher_id']];}else{echo "";}?></td>
  386. <td>
  387. <?php
  388. if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6))){
  389. require 'operate/status_3.php';
  390. }elseif(Yii::app()->session['session_duoxueke_subject_id']==8){
  391. require 'operate/status_8.php';
  392. }elseif(Yii::app()->session['session_duoxueke_subject_id']==12 || Yii::app()->session['session_duoxueke_subject_id']==41){
  393. require 'operate/status_12.php';
  394. }else{
  395. require 'operate/status_other.php';
  396. }
  397. ?>
  398. </td>
  399. <td style="width:315px;">
  400. <?php
  401. if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6))){
  402. require 'operate/operate_3.php';
  403. }elseif(Yii::app()->session['session_duoxueke_subject_id']==8){
  404. require 'operate/operate_8.php';
  405. }elseif(Yii::app()->session['session_duoxueke_subject_id']==12){
  406. require 'operate/operate_12.php';
  407. }else{
  408. require 'operate/operate_other.php';
  409. }
  410. ?>
  411. </td>
  412. </tr>
  413. <?php endforeach;else:?>
  414. <tr><td colspan="10">暂无数据!</td></tr>
  415. <?php endif;?>
  416. </tbody>
  417. </table>
  418. <?php if(!empty($page_total)):?>
  419. <div class="row">
  420. <div class="col-xs-6">
  421. &nbsp;
  422. </div>
  423. <div class="col-xs-6">
  424. <div class="dataTables_paginate paging_simple_numbers">
  425. <?php
  426. $this->widget('CLinkPager', array(
  427. 'header' => '',
  428. 'firstPageLabel'=> '首页',
  429. 'lastPageLabel' => '末页',
  430. 'prevPageLabel' => '上一页',
  431. 'nextPageLabel' => '下一页',
  432. 'pages' => $pages,
  433. 'maxButtonCount'=> 5,
  434. ));
  435. echo '共:'.$page_total.'条';
  436. ?>
  437. </div>
  438. </div>
  439. </div>
  440. <?php endif;?>
  441. </div>
  442. <!--上传模板弹窗-->
  443. <!-- PAGE CONTENT ENDS -->
  444. </div>
  445. </div>
  446. </div>
  447. </div>
  448. <!--题目设置弹窗-->
  449. <style>
  450. .topic_list,.topic_class{width:100%;display: block;clear:both}
  451. .topic_list li{padding:0 10px;height:30px;border:1px solid #ccc;background: #fff;margin:5px;text-align: center;line-height: 30px;cursor: pointer}
  452. .topic_list li.active{background:#aaa}
  453. .topic_class li{margin:0 10px 5px 10px;padding:0;float:left}
  454. .topic-modal-body{margin-top:15px;max-height: 400px;overflow: auto}
  455. .topic_right{float:left;margin-bottom:15px;}
  456. .topic_right li{float:left;}
  457. .gray{background: #0a3e64}
  458. </style>
  459. <div class="confirmbox-mask" style="display:none;" id="fieldModalTopic">
  460. <div class="class-modal" style="padding: 0;width:400px;height:250px;min-height: 250px;">
  461. <div class="class-modal-head" ><span class="change-tpl-close" style="float: right;padding: 5px;cursor: pointer;">X</span></div>
  462. <form id="examSelect">
  463. <div class="topic-modal-body">
  464. <br>
  465. 当前考试已存在在线答题卡数据,请选择你需要的操作<br>
  466. 【仅切换模板】:仅删除在线答题卡扫描模板,原有试题结构及指定题目保留,<br>
  467. 【重新制作】:删除已有试题及模板数据,重新制作模板(仅支持未上传成绩、试卷且未发送标注考试)<br>
  468. <font color="red">注意:选做题含有小题的考试暂不支持切换切割模板</font>
  469. </div>
  470. <br><br>
  471. <p class="class_btn" style="text-align: center;">
  472. <input type="hidden" name="tpl_exam_group_id" value="0">
  473. <input type="hidden" name="tpl_qxk" value="0">
  474. <button type="button" class="tpl_change" style="margin-right: 10px;">仅切换模板</button>
  475. <button type="button" feedback="0" class="tpl_new gray">重新制作</button>
  476. </p>
  477. </form>
  478. </div>
  479. </div>
  480. <!--题目设置弹窗end-->
  481. <?php require "_third.php"?>