set_file('leftcontent','search_basic_left.html'); $tpl->set_var('ethnic_options',vector2options($accepted_ethnics,1,array(_ANY_,_NDISCLOSED_))); $tpl->set_var('gender_options',vector2options($accepted_genders,2,array(_ANY_,_NDISCLOSED_))); $tpl->set_var('lookingfor_options',vector2options($accepted_genders,1,array(_ANY_,_NDISCLOSED_))); $tpl->set_var('zodiac_options',vector2options($zodiac_signs,1,array(_ANY_))); $left_content=$tpl->process('','leftcontent',TPL_FINISH | TPL_INCLUDE); $field_lookingfor=""; if ($fields['users_looking_for'][0]) { $tpl->set_file('temp','bits/field_lookingfor.html'); $tpl->set_var('lookingfor_options',vector2options($accepted_genders,$looking_for,array(_ANY_,_NDISCLOSED_))); $field_lookingfor=$tpl->process('','temp',TPL_FINISH); } $field_connection=""; if ($fields['users_connection'][0]) { $tpl->set_file('temp','bits/field_connection.html'); $tpl->set_var('connection_options',vector2options($accepted_connections,$connection,array(_NDISCLOSED_))); $field_connection=$tpl->process('','temp',TPL_FINISH); } $field_state=""; if ($fields['users_state'][0] && isset($accepted_states[$country])) { $tpl->set_file('temp','bits/field_state.html'); $tpl->set_var('state_options',vector2options($accepted_states[$country],$state,array(_CHOOSE_,_NDISCLOSED_))); $field_state=$tpl->process('','temp',TPL_FINISH); } $field_city=""; if ($fields['users_city'][0]) { $tpl->set_file('temp','bits/field_city.html'); $tpl->set_var('city',$city); $field_city=$tpl->process('','temp',TPL_FINISH); } $field_zip=""; if ($fields['users_zip'][0] && $country==1) { $tpl->set_file('temp','bits/field_zip_search.html'); $tpl->set_var('zip',$zip); $field_zip=$tpl->process('','temp',TPL_FINISH); } $field_ethnic=""; if ($fields['users_ethnic'][0]) { $tpl->set_file('temp','bits/field_ethnic.html'); $tpl->set_var('ethnic_options',vector2options($accepted_ethnics,$ethnic,array(_CHOOSE_,_NDISCLOSED_))); $field_ethnic=$tpl->process('','temp',TPL_FINISH); } $field_looks=""; if ($fields['users_looks'][0]) { $tpl->set_file('temp','bits/field_looks.html'); $tpl->set_var('looks_options',vector2options($accepted_looks,$looks,array(_CHOOSE_,_NDISCLOSED_))); $field_looks=$tpl->process('','temp',TPL_FINISH); } $field_body=""; if ($fields['users_body'][0]) { $tpl->set_file('temp','bits/field_body.html'); $tpl->set_var('body_options',vector2options($accepted_bodies,$body,array(_CHOOSE_,_NDISCLOSED_))); $field_body=$tpl->process('','temp',TPL_FINISH); } $field_height=""; if ($fields['users_height'][0]) { $tpl->set_file('temp','bits/field_height_search.html'); $tpl->set_var('height_min_options',vector2options($accepted_heights,$height_min,array(_CHOOSE_,_NDISCLOSED_))); $tpl->set_var('height_max_options',vector2options($accepted_heights,$height_max,array(_CHOOSE_,_ANY_,_NDISCLOSED_))); $field_height=$tpl->process('','temp',TPL_FINISH); } $field_weight=""; if ($fields['users_weight'][0]) { $tpl->set_file('temp','bits/field_weight_search.html'); $tpl->set_var('weight_min_options',vector2options($accepted_weights,$weight_min,array(_CHOOSE_,_NDISCLOSED_))); $tpl->set_var('weight_max_options',vector2options($accepted_weights,$weight_max,array(_CHOOSE_,_ANY_,_NDISCLOSED_))); $field_weight=$tpl->process('','temp',TPL_FINISH); } $field_hair=""; if ($fields['users_hair'][0]) { $tpl->set_file('temp','bits/field_hair.html'); $tpl->set_var('hair_options',vector2options($accepted_hair,$hair,array(_CHOOSE_,_NDISCLOSED_))); $field_hair=$tpl->process('','temp',TPL_FINISH); } $field_eyes=""; if ($fields['users_eyes'][0]) { $tpl->set_file('temp','bits/field_eyes.html'); $tpl->set_var('eyes_options',vector2options($accepted_eyes,$eyes,array(_CHOOSE_,_NDISCLOSED_))); $field_eyes=$tpl->process('','temp',TPL_FINISH); } $field_smoking=""; if ($fields['users_smoking'][0]) { $tpl->set_file('temp','bits/field_smoking.html'); $tpl->set_var('smoking_options',vector2options($accepted_smoking,$smoking,array(_CHOOSE_,_NDISCLOSED_))); $field_smoking=$tpl->process('','temp',TPL_FINISH); } $field_drinking=""; if ($fields['users_drinking'][0]) { $tpl->set_file('temp','bits/field_drinking.html'); $tpl->set_var('drinking_options',vector2options($accepted_drinking,$drinking,array(_CHOOSE_,_NDISCLOSED_))); $field_drinking=$tpl->process('','temp',TPL_FINISH); } $field_partying=""; if ($fields['users_partying'][0]) { $tpl->set_file('temp','bits/field_partying.html'); $tpl->set_var('partying_options',vector2options($accepted_partying,$partying,array(_CHOOSE_,_NDISCLOSED_))); $field_partying=$tpl->process('','temp',TPL_FINISH); } $field_sexpractices=""; if ($fields['users_sexpractices'][0]) { $tpl->set_file('temp','bits/field_sexpractices.html'); $tpl->set_var('sexpractices_options',vector2options($accepted_sexpractices,$sexpractices,array(_CHOOSE_,_NDISCLOSED_))); $field_sexpractices=$tpl->process('','temp',TPL_FINISH); } $field_maritalstatus=""; if ($fields['users_maritalstatus'][0]) { $tpl->set_file('temp','bits/field_maritalstatus.html'); $tpl->set_var('marital_options',vector2options($accepted_marital,$marital,array(_CHOOSE_,_NDISCLOSED_))); $field_maritalstatus=$tpl->process('','temp',TPL_FINISH); } $field_children=""; if ($fields['users_children'][0]) { $tpl->set_file('temp','bits/field_children.html'); $tpl->set_var('children_options',vector2options($accepted_children,$children,array(_CHOOSE_,_NDISCLOSED_))); $field_children=$tpl->process('','temp',TPL_FINISH); } $field_profession=""; if ($fields['users_profession'][0]) { $tpl->set_file('temp','bits/field_profession.html'); $tpl->set_var('profession_options',vector2options($accepted_professions,$profession,array(_CHOOSE_,_NDISCLOSED_))); $field_profession=$tpl->process('','temp',TPL_FINISH); } $field_education=""; if ($fields['users_education'][0]) { $tpl->set_file('temp','bits/field_education.html'); $tpl->set_var('education_options',vector2options($accepted_educations,$education,array(_CHOOSE_,_NDISCLOSED_))); $field_education=$tpl->process('','temp',TPL_FINISH); } $field_religion=""; if ($fields['users_religion'][0]) { $tpl->set_file('temp','bits/field_religion.html'); $tpl->set_var('religion_options',vector2options($accepted_religions,$religion,array(_CHOOSE_,_NDISCLOSED_))); $field_religion=$tpl->process('','temp',TPL_FINISH); } $field_rellength=""; if ($fields['users_rellength'][0]) { $tpl->set_file('temp','bits/field_rellength_search.html'); $tpl->set_var('rellength_options',vector2options($accepted_rellengths,$rellength,array(_CHOOSE_,_NDISCLOSED_))); $field_rellength=$tpl->process('','temp',TPL_FINISH); } $field_seriousrel=""; if ($fields['users_seriousrel'][0]) { $tpl->set_file('temp','bits/field_seriousrel_search.html'); $tpl->set_var('seriousrel_options',vector2options($accepted_seriousrels,$seriousrel,array(_CHOOSE_,_NDISCLOSED_))); $field_seriousrel=$tpl->process('','temp',TPL_FINISH); } $field_sleptwith=""; if ($fields['users_sleptwith'][0]) { $tpl->set_file('temp','bits/field_sleptwith_search.html'); $tpl->set_var('sleptwith_options',vector2options($accepted_sleptwith,$sleptwith,array(_CHOOSE_,_NDISCLOSED_))); $field_sleptwith=$tpl->process('','temp',TPL_FINISH); } $field_drugviews=""; if ($fields['users_drugviews'][0]) { $tpl->set_file('temp','bits/field_drugs_search.html'); $tpl->set_var('drugviews_options',vector2options($accepted_drugviews,$drugviews,array(_CHOOSE_,_NDISCLOSED_))); $field_drugviews=$tpl->process('','temp',TPL_FINISH); } $field_marriageviews=""; if ($fields['users_marriageviews'][0]) { $tpl->set_file('temp','bits/field_marriage_search.html'); $tpl->set_var('marriageviews_options',vector2options($accepted_marriageviews,$marriageviews,array(_CHOOSE_,_NDISCLOSED_))); $field_marriageviews=$tpl->process('','temp',TPL_FINISH); } $field_reading=""; if ($fields['users_reading'][0]) { $tpl->set_file('temp','bits/field_reading_search.html'); $tpl->set_var('reading_options',vector2options($accepted_reading,$reading,array(_CHOOSE_,_NDISCLOSED_))); $field_reading=$tpl->process('','temp',TPL_FINISH); } $tpl->set_file('middlecontent','search_advanced.html'); $tpl->set_var('gender_options',vector2options($accepted_genders,$gender,array(_ANY_,_NDISCLOSED_))); $tpl->set_var('age_min_options',vector2options($accepted_ages,$age_min)); $tpl->set_var('age_max_options',vector2options($accepted_ages,$age_max)); $tpl->set_var('zodiac_options',vector2options($zodiac_signs,$zodiac,array(_CHOOSE_,_NDISCLOSED_))); $tpl->set_var('country_options',vector2options($accepted_countries,$country,array(_CHOOSE_,_NDISCLOSED_))); $tpl->set_var('field_lookingfor',$field_lookingfor); $tpl->set_var('field_connection',$field_connection); $tpl->set_var('field_state',$field_state); $tpl->set_var('field_city',$field_city); $tpl->set_var('field_zip',$field_zip); $tpl->set_var('field_ethnic',$field_ethnic); $tpl->set_var('field_looks',$field_looks); $tpl->set_var('field_body',$field_body); $tpl->set_var('field_height',$field_height); $tpl->set_var('field_weight',$field_weight); $tpl->set_var('field_hair',$field_hair); $tpl->set_var('field_eyes',$field_eyes); $tpl->set_var('field_smoking',$field_smoking); $tpl->set_var('field_drinking',$field_drinking); $tpl->set_var('field_partying',$field_partying); $tpl->set_var('field_sexpractices',$field_sexpractices); $tpl->set_var('field_maritalstatus',$field_maritalstatus); $tpl->set_var('field_children',$field_children); $tpl->set_var('field_profession',$field_profession); $tpl->set_var('field_education',$field_education); $tpl->set_var('field_religion',$field_religion); $tpl->set_var('field_rellength',$field_rellength); $tpl->set_var('field_seriousrel',$field_seriousrel); $tpl->set_var('field_sleptwith',$field_sleptwith); $tpl->set_var('field_drugviews',$field_drugviews); $tpl->set_var('field_marriageviews',$field_marriageviews); $tpl->set_var('field_reading',$field_reading); $middle_content=$tpl->process('','middlecontent',TPL_FINISH | TPL_INCLUDE); $title=$_messages['core'][169]; include('content_right.php'); include('content_frame.php'); ?>