css,thinkphp模板,

<foreach name="result" item="vo">
    <tr>
        <td class="center"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
        <td><a href="{:U('School/detail',array('id'=>$vo['id']))}">{$vo.real_name}</a></td>
        <td class="text-info center" title="{$vo.school}" style="cursor:pointer;overflow:hidden;">{$vo.school}</td>
        <td class="text-info center">{$vo.age}</td>
        <td class="text-info center" style="cursor:pointer;overflow:hidden;">{$vo.mobile}</td>
        <td class="text-info center" style="cursor:pointer;overflow:hidden;">{$vo.idcard}</td>
        <td class="text-info center" title="{$vo.desc}" style="cursor:pointer;overflow:hidden;"><a href="{:U('School/detail',array('id'=>$vo['id']))}">{$vo.desc|htmlspecialchars_decode|strip_tags|mb_substr=0,52,'utf-8'}</a><php>if(mb_strlen($vo['desc'])>=52)echo'......';</php></td>
        <td class="text-info center">--</td>
        <td class="text-info center"><if condition="($vo['status'] eq 0)">审核中<elseif condition="($vo['status'] eq 1)"/>已通过<else/>已拒绝</if></td>
        <td class="text-info center"><a href="#" class="pass" data-id="{$vo.id}">通过</a> <a href="#" class="refuse" data-id="{$vo.id}">拒绝</a></td>
    </tr>
</foreach>

thinkphp模板实现判断文字长度,如文字过长截取制定长度,并产生省略号,光标放上去显示所有内容。

nickname
content