<?php
use app\components\QuestionHelper;
use app\components\StringHelper;
?>
<?php foreach($resources as $oneresour){ ?>
	<?php 
	$stemtitle = strip_tags($oneresour->content);
	$stemtitle = StringHelper::loseSpace($stemtitle);
	?>
    <tr>
      <td><input type="checkbox" name="resourid[]" lay-skin="primary" value="<?php echo $oneresour->id; ?>"></td>
      <td title="<?php echo $stemtitle; ?>"><?php echo StringHelper::utf8Substr($stemtitle,0,40); ?></td>
      <td><?php echo QuestionHelper::ShowStemtypeName($oneresour->typechild); ?></td>
      <td><?php echo QuestionHelper::ShowLevelsName($oneresour->levels); ?></td>
      <td><?php echo QuestionHelper::ShowAuthorName($oneresour->userid); ?></td>
      <td><?php echo substr($oneresour->cometime,0,10); ?></td>
      <td><?php echo $oneresour->showIslocked(); ?></td>
      <td><div class="layui-btn-group"><a class="layui-btn layui-btn-sm" title="编辑" onclick="javascript:showResourEditBox(<?php echo $oneresour->id; ?>,<?php echo $oneresour->treeid; ?>);">编辑</a> <a class="layui-btn layui-btn-sm" title="预览" onclick="javascript:showResourViewBox(<?php echo $oneresour->id; ?>);">预览</a>
          </div>
      </td>
    </tr>
<?php } ?>