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); $tpl->set_file('middlecontent','search_basic.html'); $tpl->set_var('lookingfor_options',vector2options($accepted_genders,$looking_for,array(_ANY_,_NDISCLOSED_))); $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_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_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); } $tpl->set_var('field_connection',$field_connection); $tpl->set_var('field_state',$field_state); $tpl->set_var('field_zip',$field_zip); $tpl->set_var('field_city',$field_city); $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('country_options',vector2options($accepted_countries,$country)); $middle_content=$tpl->process('','middlecontent',TPL_FINISH | TPL_INCLUDE); $title=$_messages['core'][167]; include('content_right.php'); include('content_frame.php'); } else { trigger_error($_messages['core'][168],E_USER_ERROR); } ?>