status_12.php 7.3 KB

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