<?php use app\components\ExamHelper; ?>
<?php foreach($exams as $oneexam){ ?>
    <tr>
      <td><?php echo $oneexam->title; ?></td>
      <td><?php echo ExamHelper::showCourseName($oneexam->courseid); ?></td>
      <td><?php echo $oneexam->begintime; ?></td>
      <td><?php echo $oneexam->endtime; ?></td>
      <td><?php echo $oneexam->points; ?></td>
      <td><div class="layui-btn-group">
      <a class="layui-btn layui-btn-sm" title="预览" onclick="javascript:return showExamPreviewBox(<?php echo $oneexam->id; ?>);">预览</a>
      <?php if($oneexam->ispublish==1){ ?>
      <a class="layui-btn layui-btn-sm" title="统计" onclick="showExamTongjiBox(<?php echo $oneexam->id; ?>);">统计</a>
      <a class="layui-btn layui-btn-sm" title="导出成绩" target="_blank" href="/glexam/export/<?php echo $oneexam->id; ?>">导出成绩</a>
      <?php } ?>
      </div></td>
    </tr>
<?php } ?>