//倒序显示评论楼层 $plnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewspl where id='$id' and classid='$classid' and checked=0"); $no=$no+1; $plfloor=$plnum-$no+1; //显示楼层结束 $saytext=addslashes(RepPltextFace(stripSlashes($saytext)));//替换表情
在输出模板中采用<?=$plfloor?>引用。
|