<?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,30); ?></td>
      <td><?php echo QuestionHelper::ShowStemtypeName($oneresour->typechild); ?></td>
      <td><?php echo QuestionHelper::ShowLevelsName($oneresour->levels); ?></td>
      <td><a class="layui-btn layui-btn-sm" title="预览" onclick="javascript:parent.showResourViewBox(<?php echo $oneresour->id; ?>);"><i class="fa fa-eye"></i></a></td>
    </tr>
<?php } ?>