$num=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_news where classid=$GLOBALS[navclassid]"); $totalPage = ceil($num/12); ?>