function oos_prepare_country_zones_pull_down($country_id = '') { // preset the width of the drop-down for Netscape $pre = ''; if ( (!oos_browser_detect('MSIE')) && (oos_browser_detect('Mozilla/4')) ) { for ($i=0; $i<45; $i++) $pre .= ' '; } $zones = oos_get_country_zones($country_id); if (count($zones) > 0) { $zones_select = array(array('id' => '', 'text' => PLEASE_SELECT)); $zones = array_merge($zones_select, $zones); } else { $zones = array(array('id' => '', 'text' => TYPE_BELOW)); // create dummy options for Netscape to preset the height of the drop-down if ( (!oos_browser_detect('MSIE')) && (oos_browser_detect('Mozilla/4')) ) { for ($i=0; $i<9; $i++) { $zones[] = array('id' => '', 'text' => $pre); } } } return $zones; }
/** * Alias function for Store configuration values in the Administration Tool * * @param $zone_id * @return string */ function oos_cfg_pull_down_zone_list($zone_id) { return oos_draw_pull_down_menu('configuration_value', oos_get_country_zones(STORE_COUNTRY), $zone_id); }