status_8.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. $statusText='';
  3. if($cl['qxk_paper_id']){
  4. $statusText='新:';
  5. }else{
  6. $statusText='老:';
  7. }
  8. if($cl['allsubject_file_path']){//新word上传 ?>
  9. <?php if($cl['tw_status']==2 && $cl["is_labelled"]>0 ){
  10. if($cl["is_labelled"] == 1){
  11. echo "<span style='color:#2977ff;font-weight:normal;'>".$statusText."已标注</span>";
  12. }else if($cl["is_labelled"] == 2 ){
  13. echo "<span style='color:orange;font-weight:normal;'>".$statusText."已发送</span>&nbsp;";
  14. if($cl['allsubject_file_path']){
  15. if(isset($cl['estimate_time'])){
  16. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="预计标注完成时间:'.$cl['estimate_time'].',如有特殊情况请联系学科老师">预</span>';
  17. }else{
  18. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="如有特殊情况请联系学科老师">预</span>';
  19. }
  20. }
  21. }else if($cl["is_labelled"] == 3 ){
  22. echo "<span style='color:orange;font-weight:normal;'>".$statusText."标注中</span>&nbsp;";
  23. if($cl['allsubject_file_path']){
  24. if(isset($cl['estimate_time'])){
  25. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="预计标注完成时间:'.$cl['estimate_time'].',如有特殊情况请联系学科老师">预</span>';
  26. }else{
  27. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="如有特殊情况请联系学科老师">预</span>';
  28. }
  29. }
  30. }else if($cl["is_labelled"] == 4 ){
  31. echo "<span style='color:orange;font-weight:normal;'>".$statusText."已取消</span>";
  32. }else if($cl["is_labelled"] == 5){
  33. echo "<span style='color:orange;font-weight:normal;'>".$statusText."补题中</span>";
  34. }
  35. if($cl["is_labelled"] == 0 ){?>
  36. <?php if($cl['tw_status']==2){?>
  37. <span class="iconfont click-sc addbx sendLabelTask" isAnswerSheet="1" type="send" examId="<?php echo $cl["exam_id"];?>" examName="<?php echo $cl["exam_name"];?>" subjectId="<?php echo $cl["subject_id"];?>" createTime="<?php echo $cl["examDate"];?>" aria-hidden="true" title="发送试题标注">&#xe71f;</span>
  38. <?php }elseif($cl['tw_status']==5){?>
  39. <span class="iconfont click-sc addbx sendLabelTask" isAnswerSheet="1" type="send" examId="<?php echo $cl["exam_id"];?>" examName="<?php echo $cl["exam_name"];?>" subjectId="<?php echo $cl["subject_id"];?>" createTime="<?php echo $cl["examDate"];?>" aria-hidden="true" title="发送校标任务">&#xe71f;</span>
  40. <?php }?>
  41. <?php }elseif($cl['is_labelled']==4){?>
  42. <span class="iconfont click-sc addbx sendLabelTask"
  43. examId="<?php echo $cl["exam_id"];?>"
  44. examName="<?php echo $cl["exam_name"];?>"
  45. subjectId="<?php echo $cl["subject_id"];?>"
  46. createTime="<?php echo $cl["create_time"];?>"
  47. status = '2'
  48. <?php
  49. if (isset($exam_sheets[$cl['exam_group_id']]) ) {
  50. echo ' isAnswerSheet=1 ';
  51. }else{
  52. echo ' isAnswerSheet=0 ';
  53. }
  54. ?>
  55. type="resend"
  56. aria-hidden="true" title="重新发送">&#xe71f;</span>
  57. <?php }elseif(($cl['is_labelled']==2 || $cl['is_labelled']==3) && !$cl['allsubject_file_path']){
  58. if(isset($cl['estimate_time'])){
  59. $txtTitle="预计标注完成时间:".$cl['estimate_time'].",点击可撤回";
  60. }else{
  61. $txtTitle="点击可撤回";
  62. }
  63. ?>
  64. <span class="iconfont click-sc addbx sendLabelTask" isAnswerSheet="1" status="4" type="cancel" examId="<?php echo $cl["exam_id"];?>" examName="<?php echo $cl["exam_name"];?>" subjectId="<?php echo $cl["subject_id"];?>" createTime="<?php echo $cl["examDate"];?>" aria-hidden="true" title="<?php echo $txtTitle?>"><i class="fa fa-reply"></i></span>
  65. <?php
  66. }
  67. }else{
  68. if($cl['tw_status']==2){
  69. echo "<span style='color:orange;font-weight:normal;'>".$statusText."解析成功</span>";
  70. }elseif($cl['tw_status']==3){
  71. ?>
  72. <a style='color:orange;font-weight:normal;cursor:pointer' title="<?php echo $cl['wrong_reason'] ?>"><?php echo $statusText ?>解析失败</a>
  73. <?php
  74. // echo "<span style='color:orange;font-weight:normal;cursor:pointer' onclick=showError('".($cl['wrong_reason'])."')>解析失败</span>";
  75. }elseif($cl['tw_status']==5){
  76. echo "<span style='color:orange;font-weight:normal;'>".$statusText."解析待校对</span>";
  77. if($cl['allsubject_file_path']){
  78. if(isset($cl['estimate'])){
  79. $estimate=date('Y-m-d H:i',$cl['estimate']);
  80. }else{
  81. $estimate='';
  82. }
  83. ?>
  84. <span class="iconfont click-sc addbx sendLabelTask" isAnswerSheet="1" type="send" examId="<?php echo $cl["exam_id"];?>" examName="<?php echo $cl["exam_name"];?>" isTagging="1" subjectId="<?php echo $cl["subject_id"];?>" createTime="<?php echo $cl["examDate"];?>" aria-hidden="true" title="发送校标任务">&#xe71f;</span>
  85. <?php
  86. }
  87. }elseif($cl['tw_status']==6){
  88. echo "<span style='color:orange;font-weight:normal;'>".$statusText."校对中</span>";
  89. if($cl['allsubject_file_path']){
  90. if(isset($cl['estimate_time'])){
  91. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="预计标注完成时间:'.$cl['estimate_time'].',如有特殊情况请联系学科老师">预</span>';
  92. }else{
  93. echo '<span class="iconfont click-sc addbx" aria-hidden="true" title="如有特殊情况请联系学科老师">预</span>';
  94. }
  95. }
  96. }elseif($cl['tw_status']==7){
  97. echo "<span style='color:orange;font-weight:normal;' txt='".$cl['wrong_reason']."' class='show_wrong_reason'>".$statusText."已退回</span>";
  98. echo '<span class="iconfont click-sc addbx show_wrong_reason" aria-hidden="true" txt="'.$cl['wrong_reason'].'" >查</span>';
  99. }elseif($cl['word_path'] || $cl['allsubject_file_path']){
  100. echo "<span style='color:orange;font-weight:normal;'>".$statusText."等待解析</span>";
  101. }else{
  102. echo "<span style='color:orange;font-weight:normal;'>".$statusText."未上传</span>";
  103. }
  104. }?>
  105. <?php }else{//老版流程
  106. $examStatus = array(0=>'未上传',1=>'答案未上传',3=>'题目未上传',4=>'已上传');
  107. if(isset($examStatus[$cl['uploadExamStatus']])){
  108. $_status = $cl['uploadExamStatus'];
  109. if($_status == 4){
  110. if($cl['is_labelled'] == 0){
  111. echo '<span style="color:red">'.$statusText.'已上传未发送</span>';
  112. }elseif($cl['is_labelled'] == 2){
  113. echo '<span style="color:red">'.$statusText.'已发送未开始</span>';
  114. }elseif($cl['is_labelled'] == 3){
  115. echo '<span style="color:orange">'.$statusText.'标注中</span>';
  116. }elseif($cl['is_labelled'] == 1){
  117. if($cl['labelled_type']==1){
  118. echo '<span style="color:#2977ff">'.$statusText.'已标注(后)</span>';
  119. }else{
  120. echo '<span style="color:#2977ff">'.$statusText.'已标注(校)</span>';
  121. }
  122. }else{
  123. echo $statusText.'标注已取消';
  124. }
  125. // echo isset($examStatus[$cl['is_labelled']])?$examStatus[$cl['is_labelled']]:'';
  126. }else{
  127. echo $statusText.$examStatus[$cl['uploadExamStatus']];
  128. }
  129. }else{
  130. echo '';
  131. }
  132. }
  133. ?>