='$learn_level_min'"; if($learn_level_max) $cond .= " and auto_learn_level<='$learn_level_max'"; } $sql = "select count(*) from ".DB_PREFIX."formula t1 where auto_learn_level<=70 $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"]); $para_str ="?"; $paras = array(); if($search_name){ $paras[] ="search_name={$search_name}"; } if($learn_level_min){ $paras[]="learn_level_min={$learn_level_min}"; } if($learn_level_max){ $paras[]="learn_level_max={$learn_level_max}"; } if($formula_select){ $paras[]="formula_select={$formula_select}"; } if($fid){ $paras[]="fid={$fid}"; } if($type_select){ $paras[]="type_select={$type_select}"; } $param = implode("&",$paras);; //$param="http://".$_SERVER ['HTTP_HOST']. $_SERVER['SCRIPT_NAME'].$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; } // $sql = "select distinct type from ".DB_PREFIX."formula "; $res = $db->query($sql); while($row = $db->fetch_array($res)){ $type_option .= ""; } foreach($formula_type as $key=>$val) { $formula_option.= ""; $formula_list .= "$val | "; } $formula_list = substr($formula_list,0,-3); //导航 $navigation = ""; if($fid>0) { $navigation = $formula_name; }elseif($_GET["search"]) { $navigation = "搜索结果"; }else { $navigation = "全部"; } ?>

《天下贰》游戏主题站

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