<?php if(empty($courses)){ ?>
	<tr><td colspan="3">暂无公开的题库</td></tr>
<?php }else{ ?>
<?php foreach($courses as $onecourse){ ?>
    <tr>
      <td><?php echo $onecourse->name; ?></td>
      <td><span class="layui-badge"><?php echo $onecourse->questinum; ?></span></td>
      <td><div class="layui-btn-group">
      <a class="layui-btn layui-btn-sm" href="/lequesti/tree/<?php echo $onecourse->id; ?>" title="知识树模式">知识树模式</a>
      <a class="layui-btn layui-btn-sm" href="/lequesti/list/<?php echo $onecourse->id; ?>" title="列表模式">列表模式</a>
      </div></td>
    </tr>
<?php } ?>
<?php } ?>