''"; if($id) { if($id=='boss') $cond = " and fb<>''"; else $cond .= " and monster_zone='$zone_name'"; } if($_GET["Search"]==1) { $cond = str_replace(" and monster_zone<>''","",$cond); $search_name = postget("search_name"); $search_area = postget("search_area"); $monster_level_min = postget("monster_level_min"); $monster_level_max = postget("monster_level_max"); $drop_type = postget("drop_type"); $monster_rate_min = postget("monster_rate_min"); $monster_rate_max = postget("monster_rate_max"); if($search_name) $cond .= " and monster_name like '%$search_name%'"; if($search_area!=NULL) { $search_zone_name = $db->fetch_val("select zone_name from ".DB_PREFIX."zones where zone_id=$search_area"); $cond .=" and monster_zone='$search_zone_name'"; } if($monster_level_min) $cond .= " and monster_level>='$monster_level_min'"; if($monster_level_max) $cond .= " and monster_level<='$monster_level_max'"; if($drop_type) $cond .= " and drop_type = '".$drop_type."系'"; if($monster_rate_min) $cond .= " and monster_rate>='$monster_rate_min'"; if($monster_rate_max) $cond .= " and monster_rate<='$monster_rate_max'"; } if($cond!="") { $cond = substr($cond,5); $cond = " where ".$cond; } $sql = "select count(*) from ".DB_PREFIX."monster $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"]); $search_name = postget("search_name"); $search_area = postget("search_area"); $monster_level_min = postget("monster_level_min"); $monster_level_max = postget("monster_level_max"); $drop_type = postget("drop_type"); $monster_rate_min = postget("monster_rate_min"); $monster_rate_max = postget("monster_rate_max"); $para_str ="?"; $paras = array(); if($search_name){ $paras[] ="search_name={$search_name}"; } if($search_area){ $paras[]="search_area={$search_area}"; } if($monster_level_min){ $paras[]="monster_level_min={$monster_level_min}"; } if($monster_level_max){ $paras[]="monster_level_max={$monster_level_max}"; } if($drop_type){ $paras[]="drop_type={$drop_type}"; } if($monster_rate_min){ $paras[]="monster_rate_min={$monster_rate_min}"; } if($monster_rate_max){ $paras[]="monster_rate_max={$monster_rate_max}"; } if($zid){ $paras[]="zid={$zid}"; } $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; } //地图列表 $zonelist = ""; $list_option = ""; foreach($map_ary as $key=>$val) { if($key==5) continue; $zonelist.="".$val[0]." | "; $list_option .= ""; } $zonelist = substr($zonelist,0,-3); $zonelist .=" | BOSS"; foreach($item_ary as $val) { $type_option .= ""; } //导航 $navigation = ""; if($id) { $navigation = $zone_name; }elseif($_GET["search"]) { $navigation = "搜索结果"; }else { $navigation = "全部"; } ?>

《天下贰》游戏主题站

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