count(PF.'comment',$where2); $items=array (); if($sum>0){ $rs=$db->query("SELECT *,comment.itemid as itemid FROM ".PF."comment as comment left join ".PF."member as member on comment.author=member.name WHERE $where order by $order LIMIT 0,5"); $i=0; while($r=$db->fetch_array($rs)){ $r['posttime']=date('Y-m-d H:i',$r['posttime']); $r['lou']=$sum-$i++; $items[$r['itemid']]=$r; } $db->free_result($rs); } $more_url=url($c_path,'comment.php',$c_comment==2?('itemid='.$itemid):''); }else return ; ?>

{$sum} {l('评论')}

{if $sum>5} {/if}
{loop $items $item}
{$item['posttime']}  #{$item['lou']}
{html($item['author'])}
{html($item['content'])}
{/loop}