@@ 250-258 (lines=9) @@ | ||
247 | return $country_id; |
|
248 | } |
|
249 | ||
250 | function tep_get_zone_name($country_id, $zone_id, $default_zone) { |
|
251 | $Qzone = Registry::get('Db')->get('zones', 'zone_name', ['zone_country_id' => (int)$country_id, 'zone_id' => (int)$zone_id]); |
|
252 | ||
253 | if ($Qzone->fetch() !== false) { |
|
254 | return $Qzone->value('zone_name'); |
|
255 | } |
|
256 | ||
257 | return $default_zone; |
|
258 | } |
|
259 | ||
260 | function tep_not_null($value) { |
|
261 | if (is_array($value)) { |
|
@@ 418-426 (lines=9) @@ | ||
415 | // Description : Function to retrieve the state/province code (as in FL for Florida etc) |
|
416 | // |
|
417 | //////////////////////////////////////////////////////////////////////////////////////////////// |
|
418 | function tep_get_zone_code($country, $zone, $def_state) { |
|
419 | $Qstate = Registry::get('Db')->get('zones', 'zone_code', ['zone_country_id' => (int)$country, 'zone_id' => (int)$zone]); |
|
420 | ||
421 | if ($Qstate->fetch() !== false) { |
|
422 | return $Qstate->value('zone_code'); |
|
423 | } |
|
424 | ||
425 | return $def_state; |
|
426 | } |
|
427 | ||
428 | function tep_get_uprid($prid, $params) { |
|
429 | $uprid = $prid; |
|
@@ 716-724 (lines=9) @@ | ||
713 | return HTML::textareaField($name, 35, 5, $text); |
|
714 | } |
|
715 | ||
716 | function tep_cfg_get_zone_name($zone_id) { |
|
717 | $Qzone = Registry::get('Db')->get('zones', 'zone_name', ['zone_id' => (int)$zone_id]); |
|
718 | ||
719 | if ($Qzone->fetch()) { |
|
720 | return $Qzone->value('zone_name'); |
|
721 | } |
|
722 | ||
723 | return $zone_id; |
|
724 | } |
|
725 | ||
726 | //// |
|
727 | // Sets the status of a banner |