function newse() { if (isset($_GET['search_type']) && $_GET['search_type'] == 2) { $search_uid = trim(MooGetGPC('search_uid', 'integer', 'G')); header("Location:index.php?n=search&h=nickid&info=" . $search_uid); exit; } //note 性别 $gender = isset($_GET['gender']) ? trim(MooGetGPC('gender', 'integer', 'G')) : 1; //note 年龄范围 $age_start = isset($_GET['age_start']) ? trim(MooGetGPC('age_start', 'integer', 'G')) : 0; $age_end = isset($_GET['age_end']) ? trim(MooGetGPC('age_end', 'integer', 'G')) : 0; //note 工作省、城市 $work_province = isset($_GET['workprovince']) ? trim(MooGetGPC('workprovince', 'integer', 'G')) : 0; $work_city = isset($_GET['workcity']) ? trim(MooGetGPC('workcity', 'integer', 'G')) : 0; //note 身高 $height1 = isset($_GET['height1']) ? trim(MooGetGPC('height1', 'integer', 'G')) : 0; $height2 = isset($_GET['height2']) ? trim(MooGetGPC('height2', 'integer', 'G')) : 0; $marriage = 0; $salary = 0; $education = 0; if (isset($_GET['marriage'])) { $marriage = $_GET['marriage'] == '' ? 0 : $_GET['marriage']; } if (isset($_GET['salary'])) { $salary = $_GET['salary'] == '' ? 0 : $_GET['salary']; } if (isset($_GET['education'])) { $education = $_GET['education'] == '' ? 0 : $_GET['education']; } //note 是否显示相片 // $photo = isset($_GET['photo']) ? trim(MooGetGPC('photo', 'integer', 'G')) : '0'; //echo $gender,"<br />",$age_start,"<br />",$age_end,"<br />",$work_province,"<br />",$work_city,"<br />",$photo;die; /**if(isset($_GET['searchid'])){ $search_id = trim(MooGetGPC('searchid', 'integer', 'G')); search_index($search_id, $gender, $age_start, $age_end, $work_province, $work_city, $photo, $marriage=0, $salary=0, $education=0, $height1=0, $height2=0, $home_townprovince=0, $home_towncity=0, $house=0, $vehicle=0); exit; }*/ //note 快速搜索处理功能函数 if ($age_start == -1) { $age_start = 0; } if ($age_end == -1) { $age_end = 0; } if ($work_province == -1) { $work_province = 0; } elseif ($work_province == -2) { $work_province = 2; } if ($work_city == -1) { $work_city = 0; } if ($marriage == -1) { $marriage = 0; } if ($salary == -1) { $salary = 0; } if ($education == -1) { $education = 0; } if ($height1 == -1) { $height1 = 0; } if ($height2 == -1) { $height2 = 0; } // if($photo == -1) $photo = 0; quick_search_page($gender, $age_start, $age_end, $work_province, $work_city, $photo); }
//note 快速搜索处理功能函数 if ($age_start == -1) { $age_start = 0; } if ($age_end == -1) { $age_end = 0; } if ($work_province == -1) { $work_province = 0; } elseif ($work_province == -2) { $work_province = 2; } if ($work_city == -1) { $work_city = 0; } quick_search_page($gender, $age_start, $age_end, $work_province, $work_city, $photo); /** * 新快速查询 * 采用sphinx查询 * @author likefei * @date 2011-11-14 */ function quick_search_page($gender, $age_start, $age_end, $work_province, $work_city, $photo) { global $_MooClass, $dbTablePre; global $user_arr, $userid, $last_login_time, $isdelcond, $isselectarea, $isdispmore, $isresult; $currenturl = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; $currenturl2 = preg_replace("/(&page=\\d+)/", "", $currenturl); if (isset($_GET['condition']) && $_GET['condition'] == '2') { $pagesize = 6; } else {