status_8.php 7.9 KB

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