<?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 title="<?php echo $stemtitle; ?>"><?php echo StringHelper::utf8Substr($stemtitle,0,50); ?></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:showResourViewBox(<?php echo $oneresour->id; ?>);">预览</a></td>
    </tr>
<?php } ?>