index2.php 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  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. <!--
  217. <div class="tab-con-btn">
  218. <?php
  219. if(isset($list_type) && $list_type==1):
  220. ?>
  221. <button class="tab_btn " >阅卷试卷</button>
  222. <button class="tab_btn has-sel-1" >导入成绩试卷</button>
  223. <?php
  224. else:
  225. ?>
  226. <button class="tab_btn has-sel" >阅卷试卷</button>
  227. <button class="tab_btn " >导入成绩试卷</button>
  228. <?php
  229. endif;
  230. ?>
  231. </div>
  232. -->
  233. <input type="hidden" name="list_type" value="<?php if(isset($list_type)){echo $list_type;}else{echo 0;}?>" />
  234. <input type="hidden" name="type" value="<?php echo $printType;?>" />
  235. <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";?>>显示隐藏试卷
  236. <!-- <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6,41,42,43)) && Yii::app()->params['section']!=3)
  237. {
  238. ?> <select class="form-control" id="labelled" name="labelled">
  239. <option value="">标注状态</option>
  240. <option value="0" <?php if($labelled === '0') echo "selected";?> >未发送</option>
  241. <option value="2" <?php if($labelled == 2) echo "selected";?> >已发送</option>
  242. <option value="1" <?php if($labelled == 1) echo "selected";?>>已标注</option>
  243. <option value="3" <?php if($labelled === 3) echo "selected";?> >标注中</option>
  244. <option value="4" <?php if($labelled == 4) echo "selected";?> >已取消</option>
  245. <option value="5" <?php if($labelled == 5) echo "selected";?>>补题中</option>
  246. </select><?php } ?>-->
  247. <input type="text" class="form-control input-sm" placeholder="请输入打印任务名称" name="name" value="<?php echo $printName;?>">
  248. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  249. </div>
  250. </div>
  251. </form>
  252. <button class="label-primary-s bth-s create-third" data-button="red">创建试卷</button>
  253. </div>
  254. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  255. <thead>
  256. <tr>
  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. <th>阅卷方式</th>
  267. <th>主阅老师</th>
  268. <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6)))
  269. {
  270. ?>
  271. <th >
  272. 状态
  273. <div class="tooltipclass">&nbsp;<img src="/images/icon-warning-red.png"><span class="tooltiptext">标注状态栏,“老”代表数学老题库,个性化学习宝系列产品发送标注时,请点击对应按钮。“新”代表全学科题库,方法宝产品发送标注时,请点击对应按钮。仅适用于高中数学学科。</span></div>
  274. </th><?php } ?>
  275. <?php if(!in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6,51,8)))
  276. {
  277. ?>
  278. <th>状态</th>
  279. <?php } ?>
  280. <?php if(Yii::app()->session['session_duoxueke_subject_id'] == 8)
  281. {
  282. ?>
  283. <th>标注状态</th>
  284. <?php } ?>
  285. <!-- <th>后台协助状态</th>-->
  286. <th >操作</th>
  287. </tr>
  288. </thead>
  289. <tbody>
  290. <?php if(!empty($printList)):foreach($printList as $cl):?>
  291. <tr>
  292. <td style="max-width:260px">
  293. <?php
  294. if($cl['is_new']==0)
  295. {
  296. echo "<span style='color: #ff0000;font-weight: bold;'>【New】</span>";
  297. }
  298. if($cl['homework']==1)
  299. {
  300. echo "<span style='color: #fff;font-weight: bold;display:inline-block;background: #337ab7;padding:0 5px;'> 作业 </span>";
  301. // echo $cl['exam_name'];
  302. }
  303. if($cl['qxk_paper_id']){
  304. ?>
  305. <a href="<?php echo Yii::app()->createUrl('allSubject/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>
  306. <!-- <a href="<?php echo Yii::app()->createUrl('paper/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>-->
  307. <?php
  308. }else{
  309. ?>
  310. <a href="<?php echo Yii::app()->createUrl('paper/index', array('eid' => $cl['exam_id'],'is_third'=>1)) ?>"><?php echo $cl['exam_name']; ?></a>
  311. <?php
  312. }
  313. ?>
  314. </td>
  315. <td><?php if(!empty($cl['create_time'])){ echo date('Y-m-d',$cl['create_time']);}?></td>
  316. <td><?php if(!empty($cl['examDate'])){ echo date('Y-m-d',$cl['examDate']);}?></td>
  317. <td>
  318. <?php
  319. if(isset($exam_sheets[$cl['exam_group_id']]) ){
  320. if($exam_sheets[$cl['exam_group_id']]==1){
  321. echo '在线';
  322. }else{
  323. echo '第三方';
  324. }
  325. }else{
  326. echo "未创建";
  327. }
  328. ?>
  329. </td>
  330. <td>
  331. <?php
  332. if($cl['school_card_status']==1){
  333. if ($cl['upload_status'] > 0 || $cl['homework']==1) {
  334. echo '学校';
  335. }else{
  336. 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>';
  337. }
  338. }else{
  339. if ($cl['upload_status'] > 0 || $cl['homework']==1) {
  340. echo '系统';
  341. }else{
  342. 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>';
  343. }
  344. }
  345. ?>
  346. </td>
  347. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  348. echo $sheet_rs[$cl['exam_group_id']]->ke_topic_num;
  349. }else{echo 0;}?></td>
  350. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  351. echo $sheet_rs[$cl['exam_group_id']]->tian_topic_num;
  352. }else{echo 0;}?></td>
  353. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  354. echo $sheet_rs[$cl['exam_group_id']]->zu_topic_num;
  355. }else{echo 0;}?></td>
  356. <td><?php if(isset($sheet_rs[$cl['exam_group_id']]) && !empty($sheet_rs[$cl['exam_group_id']])){
  357. echo $sheet_rs[$cl['exam_group_id']]->xuan_topic_num;
  358. }else{echo 0;}?></td>
  359. <td>
  360. <?php
  361. $txt='';
  362. if($cl['import_score_type']>0){
  363. $txt='导入成绩';
  364. }elseif ($cl['mark_type'] == 0) {
  365. $txt='线下阅卷';
  366. }elseif($cl['mark_type'] == 4){
  367. $txt='班级单独阅卷';
  368. }elseif($cl['mark_type']==3){
  369. $txt='混合阅卷';
  370. }
  371. if ($cl['upload_status'] > 0 || $cl['homework']==1 || $cl['import_score_type']) {
  372. echo $txt;
  373. }else{
  374. $markingPapers=0;
  375. if(isset($exam_sheets[$cl['exam_group_id']]) && $exam_sheets[$cl['exam_group_id']]==1){
  376. $online=1;
  377. }else{
  378. $online=0;
  379. }
  380. if(isset($marking_papers[$cl['exam_group_id']])){
  381. $markingPapers=$marking_papers[$cl['exam_group_id']];
  382. }
  383. 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>';
  384. }
  385. ?>
  386. </td>
  387. <td><?php if($teachers && isset($teachers[$cl['teacher_id']])){ echo $teachers[$cl['teacher_id']];}else{echo "";}?></td>
  388. <td>
  389. <?php
  390. if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6))){
  391. require 'operate/status_3.php';
  392. }elseif(Yii::app()->session['session_duoxueke_subject_id']==8){
  393. require 'operate/status_8.php';
  394. }elseif(Yii::app()->session['session_duoxueke_subject_id']==12 || Yii::app()->session['session_duoxueke_subject_id']==41){
  395. require 'operate/status_12.php';
  396. }else{
  397. require 'operate/status_other.php';
  398. }
  399. ?>
  400. </td>
  401. <td style="width:315px;">
  402. <?php
  403. if(in_array(Yii::app()->session['session_duoxueke_subject_id'],array(3,6))){
  404. require 'operate/operate_3.php';
  405. }elseif(Yii::app()->session['session_duoxueke_subject_id']==8){
  406. require 'operate/operate_8.php';
  407. }elseif(Yii::app()->session['session_duoxueke_subject_id']==12){
  408. require 'operate/operate_12.php';
  409. }else{
  410. require 'operate/operate_other.php';
  411. }
  412. ?>
  413. </td>
  414. </tr>
  415. <?php endforeach;else:?>
  416. <tr><td colspan="10">暂无数据!</td></tr>
  417. <?php endif;?>
  418. </tbody>
  419. </table>
  420. <?php if(!empty($page_total)):?>
  421. <div class="row">
  422. <div class="col-xs-6">
  423. &nbsp;
  424. </div>
  425. <div class="col-xs-6">
  426. <div class="dataTables_paginate paging_simple_numbers">
  427. <?php
  428. $this->widget('CLinkPager', array(
  429. 'header' => '',
  430. 'firstPageLabel'=> '首页',
  431. 'lastPageLabel' => '末页',
  432. 'prevPageLabel' => '上一页',
  433. 'nextPageLabel' => '下一页',
  434. 'pages' => $pages,
  435. 'maxButtonCount'=> 5,
  436. ));
  437. echo '共:'.$page_total.'条';
  438. ?>
  439. </div>
  440. </div>
  441. </div>
  442. <?php endif;?>
  443. </div>
  444. <!--上传模板弹窗-->
  445. <!-- PAGE CONTENT ENDS -->
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. <!--题目设置弹窗-->
  451. <style>
  452. .topic_list,.topic_class{width:100%;display: block;clear:both}
  453. .topic_list li{padding:0 10px;height:30px;border:1px solid #ccc;background: #fff;margin:5px;text-align: center;line-height: 30px;cursor: pointer}
  454. .topic_list li.active{background:#aaa}
  455. .topic_class li{margin:0 10px 5px 10px;padding:0;float:left}
  456. .topic-modal-body{margin-top:15px;max-height: 400px;overflow: auto}
  457. .topic_right{float:left;margin-bottom:15px;}
  458. .topic_right li{float:left;}
  459. .gray{background: #0a3e64}
  460. </style>
  461. <div class="confirmbox-mask" style="display:none;" id="fieldModalTopic">
  462. <div class="class-modal" style="padding: 0;width:400px;height:250px;min-height: 250px;">
  463. <div class="class-modal-head" ><span class="change-tpl-close" style="float: right;padding: 5px;cursor: pointer;">X</span></div>
  464. <form id="examSelect">
  465. <div class="topic-modal-body">
  466. <br>
  467. 当前考试已存在在线答题卡数据,请选择你需要的操作<br>
  468. 【仅切换模板】:仅删除在线答题卡扫描模板,原有试题结构及指定题目保留,<br>
  469. 【重新制作】:删除已有试题及模板数据,重新制作模板(仅支持未上传成绩、试卷且未发送标注考试)<br>
  470. <font color="red">注意:选做题含有小题的考试暂不支持切换切割模板</font>
  471. </div>
  472. <br><br>
  473. <p class="class_btn" style="text-align: center;">
  474. <input type="hidden" name="tpl_exam_group_id" value="0">
  475. <input type="hidden" name="tpl_qxk" value="0">
  476. <button type="button" class="tpl_change" style="margin-right: 10px;">仅切换模板</button>
  477. <button type="button" feedback="0" class="tpl_new gray">重新制作</button>
  478. </p>
  479. </form>
  480. </div>
  481. </div>
  482. <!--题目设置弹窗end-->
  483. <?php require "_third.php"?>