fetch_val($sql); $show_num = $total_num; if($total_num>$SHOW_TOTAL_NUM) $total_num = $SHOW_TOTAL_NUM; //分页 $para_str ="?"; $paras = array(); if($id){ $paras[] ="zid={$id}"; } if($search_name){ $paras[] = "search_name={$search_name}"; } if($search_zone){ $paras[] = "search_zone={$search_zone}"; } if($search){ $paras[] = "search={$search}"; } //if($page){ //$paras[] = "page={$page}"; //} $para_str .= implode("&",$paras);; //$param = preg_replace("/&page=[0-9]*/is","",$para_str); $page_num = ceil($total_num/$PAGE_VIEW_NPC); if($page<1||$page>$page_num) $page = 1; //页数修正 if($page<$page_num) { $pgnext = "下一页"; }else { $pgnext = "下一页"; } if($page>1) { $pgprev = "上一页"; }else { $pgprev = "上一页"; } $start = ($page-1)*$PAGE_VIEW_NPC+1; if($page<$page_num) { $end = $start+$PAGE_VIEW_NPC-1; }else { $end =$total_num; } //地图列表 $zonelist = ""; $list_option = ""; foreach($map_ary as $key=>$val) { $zonelist.="".$val[0]." | "; $list_option .= ""; } $zonelist = substr($zonelist,0,-3); //导航 $navigation = ""; if($id>0) { $navigation = $zone_name; }elseif($_GET["search"]) { $navigation = "搜索结果"; }else { $navigation = "全部"; } ?>

《天下贰》游戏主题站

关于多玩 | 多玩招聘 | 联系多玩 | 商务合作:020-85521516 | 24小时客服热线:13728076034
Copyright © 2005-2008 DuoWan.com [多玩游戏] ICP证编号:粤B2-20050785