fetch_val($sql); $show_num = $total_num; if($total_num>$SHOW_TOTAL_NUM) $total_num = $SHOW_TOTAL_NUM; //分页 //$param = preg_replace("/&page=[0-9]*/is","",$_SERVER["QUERY_STRING"]); $para_str ="?"; $paras = array(); if($id){ $paras[] ="iid={$id}"; } if($search_name){ $paras[]="search_name={$search_name}"; } if($search){ $paras[]="search={$search}"; } if($search_type){ $paras[]="search_type={$search_type}"; } $param = implode("&",$paras);; $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; } //地图列表 $count = 0; foreach($item_ary as $key=>$val) { $count++; $zonelist.="".$val." | "; if($count==10) { $zonelist = substr($zonelist,0,-3); $zonelist.="
"; } $list_option .= ""; } $zonelist = substr($zonelist,0,-3); //导航 $navigation = ""; if($id>0) { $navigation = $item_name."系"; }elseif($_GET["search"]) { $navigation = "搜索结果"; }else { $navigation = "全部"; } ?>

《天下贰》游戏主题站

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