• 商家区域:
返回顶部 ↑
共3记录  当前1/1页
$cat, 'eid' => $area); $url=url_rewrite($s_a,$a_p,1); break; case 'com'; $cat=$catid;$area=$areaid; $a_p = array('catid' => $cat, 'eid' => $area, 'act'=>'list'); $url=url_rewrite($s_a,$a_p,1); break; case 'article'; $cat=$typeid; $a_p = array('iid' => $cat, 'act'=>'list'); $url=url_rewrite($s_a,$a_p,1); break; case 'help'; $cat=$typeid; $a_p = array('tid' => $cat, 'act'=>'list'); $url=url_rewrite($s_a,$a_p,1); break; default: $flt='.page.cat.catid.keywords.keyword.area.areaid.type.typeid'; $_REQUEST['page']=intval($_REQUEST['page'])?intval($_REQUEST['page']):1; foreach($_REQUEST as $k=>$v){ $v=trim($v); if(!$v) continue; if (strpos($flt,$k,0!==false)){ $url.=$k.'='.$v.'&'; } } $url=$s_f.'?'.rtrim($url,'&'); break; } /*获取链接结束*/ $p_count=$pager['page_count'];//分页总数 $p_page=$pager['page'];//当前页 $p_s=($p_page-4)<=1?1:$p_page-4;$p_e=($p_page+5)>=$p_count?$p_count:$p_page+5; if($p_count<=10){ $p_s=1;$p_e=$p_count; } if($p_count>=10){ if($p_e<10) $p_e=10; if(($p_e-$p_s)<10) $p_s=$p_e-9; } for($i=$p_s;$i<=$p_e;$i++){ if($i==$p_page) { echo '  '.$i.'  '; }else{ echo '  '.$i.'  '; } } ?> 18/页