status_12.php 7.2 KB

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