0){ $where2 = "area_id=$areaid and parent_id=38 and topid=38 and is_del=0 and status=1"; }else{ $where2 = "parent_id=38 and topid=38 and is_del=0 and status=1"; } ?> {eyou:assign name='pid' value="$route_param.tid" /} {eyou:sql sql="select COUNT(*) as total FROM __PREFIX__arctype where $where2" cachetime='3600' empty='没有数据' id="list"} {eyou:php} $total_page = ceil($list['total']/$pagesize); $total_page_for = $total_page + 1; $pro_page = $curpage - 1; $pev_page = $curpage + 1; {/eyou:php}