<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $exam->title; ?>成绩单</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <style type="text/css">
  *{font-family:"微软雅黑", Arial, Times;}
  .table{border-collapse:collapse;}
  .table th{line-height:20px; padding:5px 10px; background:#eee; border:1px solid #999; text-align:center;}
  .table td{line-height:20px; padding:5px 10px; border:1px solid #999; text-align:left;}
  </style>
  
</head>
<body>

<table class="table">
  <tr>
    <th>姓名</th>
    <th>学号</th>
    <th>班级</th>
    <th>状态</th>
    <th>得分</th>
  </tr>
  <?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>
  </tr>
  <?php } ?>
</table>

</body>
</html>