<foreach name=”data” item=”v”>
<tr class=”check-all”>
<td><input class=”check-all” type=”checkbox”></td>
<td>{$v.n_title}</td>
<td>{$v.n_click}</td>
<td>{$v.add_time|date=”Y-m-d”,###}</td>
<td class=”last”>
<span class=”revise”><a href=”{:U(‘Message/edit’)}?n_id={$v.n_id}”>修改</a></span>
<span class=”line”>|</span>
<span class=”del”><a href=”{:U(‘Message/delete_msg’)}?n_id={$v.n_id}”>删除</a></span>
</td>
</tr>
</foreach>
<script>
$(“#one”).click(function(){
if(this.checked){
$(“.check-all :checkbox”).prop(“checked”, true);
}else{
$(“.check-all :checkbox”).prop(“checked”, false);
}
});
</script>