operate_8.php 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <span class="iconfont click-sc addbx" aria-hidden="true" title="选择学生" onclick="javascript:location.href='<?php echo $this->createUrl('third/exam_list',array('exam_group_id'=>$cl['exam_group_id'],'branch'=>$cl['branch'],'grade'=>$class_grade[$cl['class_id']],'upload_status'=>$cl['upload_status']));?>'">&#xe668;</span>
  2. <?php if($cl['homework']==0):?>
  3. <?php
  4. if($cl['show_print']){
  5. if(isset($cl['is_change_to_third']) && $cl['is_change_to_third']==1){
  6. ?>
  7. <span class="iconfont click-sc addbx" aria-hidden="true" title="打印答题卡" onclick="createTemplateEnglish('<?php echo $cl['exam_id']?>',12)">&#xe6bb;</span>
  8. <?php
  9. }else{
  10. echo '<span class="iconfont click-sc addbx print_sheet" aria-hidden="true" title="打印答题卡" exam_group_id="'.$cl['exam_group_id'].'">&#xe6bb;</span>';
  11. }
  12. }
  13. ?>
  14. <a class="iconfont click-sc addbx create_sheet_subject" aria-hidden="true" feedback="<?php echo $cl['is_feedback']?>" qxk="<?php echo $cl['qxk_paper_id']?>" tw_status="<?php echo $cl['tw_status']?>" labelled="<?php echo $cl['is_labelled']?>" title="<?php if(isset($exam_sheets[$cl['exam_group_id']]) && !empty($exam_sheets[$cl['exam_group_id']])){ echo '修改关联答题卡';}else{echo "关联答题卡";}?>" mark_type="<?php echo $cl['mark_type'];?>" exam_group_id="<?php echo $cl['exam_group_id']?>" sheet_id ="<?php if(isset($exam_sheets[$cl['exam_group_id']]) && !empty($exam_sheets[$cl['exam_group_id']])){ echo $exam_sheets[$cl['exam_group_id']];}else{echo 0;}?>">&#xe804;</a>
  15. <?php
  16. if(isset($exam_sheets[$cl['exam_group_id']]) && $exam_sheets[$cl['exam_group_id']]==0 ){
  17. ?>
  18. <span class="iconfont click-sc addbx" aria-hidden="true" title="扫描答题卡" onclick="createTemplateSubject('<?php echo $cl['exam_group_id'];?>',<?php echo Yii::app()->session['session_duoxueke_subject_id']?>,<?php echo $cl['import_score_type']?>)">扫</span>
  19. <?php
  20. }
  21. ?>
  22. <?php
  23. if(isset($cl['is_change_to_third']) && $cl['is_change_to_third']==1){
  24. if($cl['is_labelled']==0){
  25. ?>
  26. <span class="iconfont click-sc addbx sendLabelTask"
  27. examId="<?php echo $cl["exam_id"];?>"
  28. examName="<?php echo $cl["exam_name"];?>"
  29. subjectId="<?php echo $cl["subject_id"];?>"
  30. createTime="<?php echo $cl["create_time"];?>"
  31. status = '0'
  32. <?php
  33. if (isset($exam_sheets[$cl['exam_group_id']]) ) {
  34. echo ' isAnswerSheet=1 ';
  35. }else{
  36. echo ' isAnswerSheet=0 ';
  37. }
  38. ?>
  39. type="send"
  40. aria-hidden="true" title="发送试题标注">&#xe71f;
  41. </span>
  42. <?php
  43. }elseif($cl['is_labelled']==4){
  44. ?>
  45. <span class="iconfont click-sc addbx sendLabelTask"
  46. examId="<?php echo $cl["exam_id"];?>"
  47. examName="<?php echo $cl["exam_name"];?>"
  48. subjectId="<?php echo $cl["subject_id"];?>"
  49. createTime="<?php echo $cl["create_time"];?>"
  50. status = '2'
  51. <?php
  52. if (isset($exam_sheets[$cl['exam_group_id']]) ) {
  53. echo ' isAnswerSheet=1 ';
  54. }else{
  55. echo ' isAnswerSheet=0 ';
  56. }
  57. ?>
  58. type="resend"
  59. aria-hidden="true" title="重新发送">&#xe71f;</span>
  60. <?php
  61. }elseif($cl['is_labelled']==2 || $cl['is_labelled']==3){
  62. ?>
  63. <span class="iconfont click-delete addbx sendLabelTask"
  64. examId="<?php echo $cl["exam_id"];?>"
  65. examName="<?php echo $cl["exam_name"];?>"
  66. subjectId="<?php echo $cl["subject_id"];?>"
  67. createTime="<?php echo $cl["create_time"];?>"
  68. status = '4'
  69. type="cancel"
  70. aria-hidden="true" title="取消标注"><i class="fa fa-reply"></i></span>
  71. <?php
  72. }
  73. }elseif($cl['is_labelled'] == 0 || $cl['is_labelled'] == 4) {
  74. if (isset($exam_sheets[$cl['exam_group_id']]) ) {
  75. $isAnswerSheer=1;
  76. } else {
  77. $isAnswerSheer=0;
  78. }
  79. if(!$cl['qxk_paper_id'] &&
  80. ((!$cl['word_path'] && !$cl['allsubject_file_path']) || (($cl['word_path'] || $cl['allsubject_file_path']) && in_array($cl['tw_status'],array(3,4,7))))) {
  81. echo '<span class="iconfont click-sc addbx layshow-btn" aria-hidden="true" title="发送标注" isAnswerSheet="'.$isAnswerSheer.'" examGroupId="' . $cl['exam_group_id'] . '">&#xe640;</span>';
  82. }
  83. if($cl['qxk_paper_id'] &&
  84. ((!$cl['word_path'] && !$cl['allsubject_file_path']) || (($cl['word_path'] || $cl['allsubject_file_path']) && in_array($cl['tw_status'],array(3,4,7))))) {
  85. ?>
  86. <!-- <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷"
  87. onclick="uploadTemplateForSelectType('<?php echo $cl['exam_group_id']; ?>','<?php echo $cl['exam_name']; ?>','<?php echo $class_grade[$cl['class_id']]; ?>')">&#xe640;</span>-->
  88. <?php
  89. }
  90. ?>
  91. <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷题目" onclick="uploadExamTopic('<?php echo $cl['exam_group_id'];?>',<?php echo Yii::app()->session['session_duoxueke_subject_id']?>,<?php if(isset($cl['uploadExamTemplateId'])){ echo $cl['uploadExamTemplateId']; }else{ echo 0;}?>,<?php echo $cl['tpl_index'];?>)">&#xe640;</span>
  92. <span class="iconfont click-sc addbx" aria-hidden="true" title="上传试卷答案" onclick="uploadExamAnswer('<?php echo $cl['exam_group_id'];?>',<?php echo Yii::app()->session['session_duoxueke_subject_id']?>,<?php if(isset($cl['uploadAnswerTemplateId'])){ echo $cl['uploadAnswerTemplateId']; }else{ echo 0;}?>)">答</span>
  93. <?php
  94. }
  95. ?>
  96. <?php
  97. if($cl['is_scan_changed'] != 1 && $cl['homework']==0 && isset($exam_sheets[$cl['exam_group_id']]) && $exam_sheets[$cl['exam_group_id']]==1 ):?>
  98. <span class="iconfont" aria-hidden="true" title="扫描在线答题卡" onclick="createTemplateScanOnline('<?php echo $cl['exam_group_id'];?>',this,'<?php echo $cl['exam_name']; ?>',<?php echo $cl['import_score_type']?>)"><img src="/images/online_scan.svg"></span>
  99. <?php endif;?>
  100. <?php if($cl['is_display'] == 1):?>
  101. <span class="iconfont click-sc click-tc addbx" aria-hidden="true" title="恢复试卷" onclick="oprateExam('<?php echo $cl['exam_group_id'];?>',0)">&#xe68f;</span>
  102. <?php else:?>
  103. <span class="iconfont click-sc click-delete addbx" aria-hidden="true" title="隐藏试卷" onclick="oprateExam('<?php echo $cl['exam_group_id'];?>',1)">&#xe68b;</span>
  104. <?php endif;?>
  105. <a href="<?php echo $this->createUrl("third/modifyThirdExam",array('exam_group_id'=>$cl['exam_group_id']));?>" class="iconfont click-sc addbx" aria-hidden="true" title="编辑考试信息" >编</a>
  106. <?php endif;?>
  107. <?php if(Yii::app()->params['section']==1 && $cl["create_time"]>strtotime('2022-9-1 21:00:00')):?>
  108. <a href="/vue/index.html#/ExamProcess/ExamProcessList?examGroupId=<?php echo $cl['exam_group_id'] ?>" class="iconfont click-sc addbx" aria-hidden="true" title="查看考试流程" >轨</a>
  109. <?php endif;?>
  110. <?php if($exportExam):?>
  111. <span class="iconfont click-sc addbx exam_export" eid="<?php echo $cl['exam_group_id'] ?>" aria-hidden="true" title="导出考试数据" >导出</span>
  112. <?php endif;?>