='$required_level_min'"; if($required_level_max) $cond .= " and required_level<='$required_level_max'"; } if($cond!="") { $cond = substr($cond,5); $cond = " where ".$cond; } $sql = "select count(*) from ".DB_PREFIX."equip $cond"; $total_num = $db->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"]); $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; } //列表 $equip_type_list = ""; $list_option = ""; $menpai_option = ""; if(is_array($equip_type_ary[$type])) { foreach($equip_type_ary[$type] as $key=>$val) { $equip_type_list .= "".$val." | "; $list_option .= ""; } if($type=='tset') { $list_option = ""; foreach($equip_type_ary['armor'] as $key=>$val) { $list_option .= ""; } } } foreach($menpai_short as $key=>$val) { $menpai_option .= ""; } if($type=='armor') { $equip_type_list .= "套装 | 门派装备 | "; } $equip_type_list = substr($equip_type_list,0,-3); //导航 $navigation = ""; if($stype>0) { $navigation = $equip_type_ary[$type][$stype]; }elseif($_GET["search"]) { $navigation = "搜索结果"; }else { $navigation = "全部"; } ?>

《天下贰》游戏主题站

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