<?php use app\components\UserHelper; ?>
<?php foreach($xzclasses as $oneclass){ ?>
    <tr>
      <td><input type="checkbox" name="xzclassid[]" lay-skin="primary" value="<?php echo $oneclass->id; ?>"></td>
      <td><?php echo $oneclass->name; ?></td>
      <td><?php echo $oneclass->grade; ?></td>
      <td><?php echo UserHelper::showSpecialpathname($oneclass->specialpath); ?></td>
      <td><?php echo $oneclass->studentnum; ?></td>
      <td><div class="layui-btn-group">
      <a class="layui-btn layui-btn-sm" title="编辑" onclick="showXzclassEditBox(<?php echo $oneclass->specialid; ?>, <?php echo $oneclass->id; ?>);">编辑</a>
      <a class="layui-btn layui-btn-sm" title="学生" href="/glxzclass/student/<?php echo $oneclass->id; ?>">学生管理</a>
      <a class="layui-btn layui-btn-sm" title="重新统计学生数量" onclick="javascript:return calcStudentnumAgain(<?php echo $oneclass->specialid; ?>, <?php echo $oneclass->id; ?>);">统计人数</a>
      </div></td>
    </tr>
<?php } ?>