<?php use app\components\SchoolclassHelper; ?>
<?php foreach($users as $oneuser){ ?>
    <tr>
      <td><?php echo $oneuser->realname; ?></td>
      <td><?php echo $oneuser->stdnumber; ?></td>
      <td><?php echo SchoolclassHelper::showClassname($oneuser->xzclassid); ?></td>
      <td><?php if(empty($oneuser->doexam)){echo '未提交';}else{
        if($oneuser->doexam->isdone==0 || $oneuser->doexam->isdone==1){echo '未提交';}elseif($oneuser->doexam->isdone==2){echo '未批改';}elseif($oneuser->doexam->isdone==3){echo '已批改';}
      } ?></td>
      <td><?php if(empty($oneuser->doexam)){echo '暂无';}else{echo $oneuser->doexam->points;} ?></td>
      <td><?php if(empty($oneuser->doexam)){echo '';}else{
        if($oneuser->doexam->isdone==3){ ?><a class="layui-btn layui-btn-sm" onclick="showDoexamResult(<?php echo $oneuser->doexam->id; ?>, <?php echo $exam->questway; ?>);">查看结果</a><?php }elseif($oneuser->doexam->isdone==2){ ?><a class="layui-btn layui-btn-sm" onclick="showDoexamPigai(<?php echo $oneuser->doexam->id; ?>, <?php echo $exam->questway; ?>);">进入批改</a><?php }else{echo '';}
      } ?></td>
    </tr>
<?php } ?>