{eyou:type typeid='$route_param.tid' empty='暂时没有数据'} {eyou:if condition='($route_param.tid != 38)'} {$field.typename} {eyou:else /} 职称工种 {/eyou:if} {/eyou:type}
{eyou:if condition='($route_param.tid == 38 && $areaid === 0)'} {eyou:php} //计算limit属性 $pagesize = 12; if(!empty($route_param['pa'])){ $curpage = $route_param['pa']; $start_li = $pagesize*($curpage-1); //开始位置 $end_li = $pagesize*$curpage; $limit_cat_value = $start_li.','.$pagesize; }else{ $curpage = 1; $limit_cat_value = '0,'.$pagesize; } {/eyou:php} {eyou:assign name='limit_cat' value="$limit_cat_value" /} {eyou:sql sql="SELECT id FROM __PREFIX__arctype WHERE $where order by update_time desc limit $limit_cat" cachetime='3600' id='res'} {eyou:foreach name='$res' item='cat'} {eyou:type typeid='$cat' empty='暂时没有数据' id='item'}
  • {$item.typename} {$item.typename}
  • {/eyou:type} {/eyou:foreach} {/eyou:sql} {eyou:else /} {eyou:php} //计算limit属性 $pagesize = 12; if(!empty($route_param['pa'])){ $curpage = $route_param['pa']; $start_li = $pagesize*($curpage-1); //开始位置 $end_li = $pagesize*$curpage; $limit_cat_value = $start_li.','.$pagesize; }else{ $curpage = 1; $limit_cat_value = '0,'.$pagesize; } {/eyou:php} {eyou:assign name='limit_cat' value="$limit_cat_value" /} {eyou:sql sql="SELECT id FROM __PREFIX__arctype where $where1 order by add_time asc limit $limit_cat" cachetime='3600' id='res'} {eyou:foreach name='$res' item='cat'} {eyou:type typeid='$cat' empty='暂时没有数据' id='item'}
  • {$item.typename} {$item.typename}
  • {/eyou:type} {/eyou:foreach} {/eyou:sql} {/eyou:if}
    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}
    {eyou:if condition='($route_param.tid == 38 && $areaid === 0)'} {eyou:if condition='((int)$total_page > 1)'} {eyou:if condition='((int)$curpage === 1)'}
  • 首页
  • 上一页
  • {eyou:else /}
  • 首页
  • {eyou:if condition='((int)$curpage === 2)'}
  • 上一页
  • {eyou:else /}
  • 上一页
  • {/eyou:if} {/eyou:if} {eyou:for start='1' end="$total_page_for"} {eyou:if condition='((int)$i === 1)'} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /}
  • {$i}
  • {/eyou:if} {eyou:else /} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /} 10){ if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
  • {$i}
  • 3 && ((int)$curpage-2) === $i){ echo "
  • ...
  • "; } if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){ echo "
  • ...
  • "; }else{ } ?>
  • {$i}
  • {/eyou:if} {/eyou:if} {/eyou:for} {eyou:if condition='((int)$curpage === (int)$total_page)'}
  • 下一页
  • 末页
  • {eyou:else /}
  • 下一页
  • 末页
  • {/eyou:if} {/eyou:if} 共 {eyou:php} echo $total_page; {/eyou:php} {$list.total}条 {eyou:else /} {eyou:if condition='((int)$total_page > 1)'} {eyou:if condition='((int)$curpage === 1)'}
  • 首页
  • 上一页
  • {eyou:else /}
  • 首页
  • {eyou:if condition='((int)$curpage === 2)'}
  • 上一页
  • {eyou:else /}
  • 上一页
  • {/eyou:if} {/eyou:if} {eyou:for start='1' end="$total_page_for"} {eyou:if condition='((int)$i === 1)'} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /}
  • {$i}
  • {/eyou:if} {eyou:else /} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /} 10){ if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
  • {$i}
  • 3 && ((int)$curpage-2) === $i){ echo "
  • ...
  • "; } if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){ echo "
  • ...
  • "; }else{ } ?>
  • {$i}
  • {/eyou:if} {/eyou:if} {/eyou:for} {eyou:if condition='((int)$curpage === (int)$total_page)'}
  • 下一页
  • 末页
  • {eyou:else /}
  • 下一页
  • 末页
  • {/eyou:if} {/eyou:if} 共 {eyou:php} echo $total_page; {/eyou:php} {$list.total}条 {/eyou:if}
    {/eyou:sql}