Ejemplo n.º 1
0
function cityOptions()
{
    $city = new City();
    $data = $city->get_cityOptions(trim($_GET['v1']), trim($_GET['v2']), trim($_GET['v']), 'N');
    if (count($data) < 1) {
        return '<input name="txtcity" type="text" size="30" maxlength="100" />&nbsp;&nbsp;';
    }
    $ret = '	<select class="select" name="txtcity" >';
    $ret .= '<option value="">' . get_lang('select_text') . '</option>';
    foreach ($data as $k => $y) {
        if ($k != 'AA') {
            $ret .= "<option value='{$k}'>{$y}</option>";
        }
    }
    unset($data);
    return $ret .= '</select>';
}
Ejemplo n.º 2
0
         $_SESSION['loc']['stateprovince'] = $key;
     }
 }
 //status
 $_SESSION['loc']['stateprovince'] = $_SESSION['loc']['stateprovince'] != '' ? $_SESSION['loc']['stateprovince'] : "";
 if ($_SESSION['loc']['stateprovince'] != '') {
     $lang['counties'] = $county->get_countyOptions($countrycode, $_SESSION['loc']['stateprovince'], 'N');
     if (count($lang['counties']) == 1) {
         foreach ($lang['counties'] as $key => $val) {
             $_SESSION['loc']['countycode'] = $key;
         }
     }
     //county
     $_SESSION['loc']['countycode'] = $_SESSION['loc']['countycode'] != '' ? $_SESSION['loc']['countycode'] : "";
     if ($_SESSION['loc']['countycode'] != '') {
         $lang['cities'] = $city->get_cityOptions($countrycode, $_SESSION['loc']['stateprovince'], $_SESSION['loc']['countycode'], 'N');
         if (count($lang['cities']) == 1) {
             foreach ($lang['cities'] as $key => $val) {
                 $_SESSION['loc']['citycode'] = $key;
             }
         }
         //city
         $_SESSION['loc']['citycode'] = $_SESSION['loc']['citycode'] != '' ? $_SESSION['loc']['citycode'] : "";
     }
 }
 $smarty->assign('titles', format_lang('select', 'titles'));
 $html_title = SITE_NAME . " - " . format_lang('page_title', 'my_account') . " ( " . $user->full_name() . " ) ";
 $smarty->assign('lang', $lang);
 $smarty->assign('message', $message);
 $smarty->assign('rendered_page', $smarty->fetch('account.tpl'));
 break;
Ejemplo n.º 3
0
        $_SESSION['add_job']['state'] = $key;
    }
}
//status
$_SESSION['add_job']['state'] = $_SESSION['add_job']['state'] != '' ? $_SESSION['add_job']['state'] : "";
if ($_SESSION['add_job']['state'] != '') {
    $lang['counties'] = $county->get_countyOptions($countrycode, $_SESSION['add_job']['state'], 'N');
    if (count($lang['counties']) == 1) {
        foreach ($lang['counties'] as $key => $val) {
            $_SESSION['add_job']['county'] = $key;
        }
    }
    //county
    $_SESSION['add_job']['county'] = $_SESSION['add_job']['county'] != '' ? $_SESSION['add_job']['county'] : "";
    if ($_SESSION['add_job']['county'] != '') {
        $lang['cities'] = $city->get_cityOptions($countrycode, $_SESSION['add_job']['state'], $_SESSION['add_job']['county'], 'N');
        if (count($lang['cities']) == 1) {
            foreach ($lang['cities'] as $key => $val) {
                $_SESSION['add_job']['city'] = $key;
            }
        }
        //city
        $_SESSION['add_job']['city'] = $_SESSION['add_job']['city'] != '' ? $_SESSION['add_job']['city'] : "";
    }
}
//end//
$smarty->assign('titles', get_lang('titles'));
$html_title = SITE_NAME . " Add New Employer ";
$smarty->assign('lang', $lang);
$smarty->assign('message', $message);
$smarty->assign('rendered_page', $smarty->fetch('admin/new_employee.tpl'));