@@ 686-706 (lines=21) @@ | ||
683 | return HTML::selectField('configuration_value', tep_get_country_zones(STORE_COUNTRY), $zone_id); |
|
684 | } |
|
685 | ||
686 | function tep_cfg_pull_down_tax_classes($tax_class_id, $key = '') { |
|
687 | $name = tep_not_null($key) ? 'configuration[' . $key . ']' : 'configuration_value'; |
|
688 | ||
689 | $tax_class_array = [ |
|
690 | [ |
|
691 | 'id' => '0', |
|
692 | 'text' => OSCOM::getDef('text_none') |
|
693 | ] |
|
694 | ]; |
|
695 | ||
696 | $Qclass = Registry::get('Db')->get('tax_class', ['tax_class_id', 'tax_class_title'], null, 'tax_class_title'); |
|
697 | ||
698 | while ($Qclass->fetch()) { |
|
699 | $tax_class_array[] = [ |
|
700 | 'id' => $Qclass->valueInt('tax_class_id'), |
|
701 | 'text' => $Qclass->value('tax_class_title') |
|
702 | ]; |
|
703 | } |
|
704 | ||
705 | return HTML::selectField($name, $tax_class_array, $tax_class_id); |
|
706 | } |
|
707 | ||
708 | //// |
|
709 | // Function to read in text area in admin |
|
@@ 1329-1352 (lines=24) @@ | ||
1326 | } |
|
1327 | } |
|
1328 | ||
1329 | function tep_cfg_pull_down_zone_classes($zone_class_id, $key = '') { |
|
1330 | $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value'; |
|
1331 | ||
1332 | $zone_class_array = [ |
|
1333 | [ |
|
1334 | 'id' => '0', |
|
1335 | 'text' => OSCOM::getDef('text_none') |
|
1336 | ] |
|
1337 | ]; |
|
1338 | ||
1339 | $Qclass = Registry::get('Db')->get('geo_zones', [ |
|
1340 | 'geo_zone_id', |
|
1341 | 'geo_zone_name' |
|
1342 | ], null, 'geo_zone_name'); |
|
1343 | ||
1344 | while ($Qclass->fetch()) { |
|
1345 | $zone_class_array[] = [ |
|
1346 | 'id' => $Qclass->valueInt('geo_zone_id'), |
|
1347 | 'text' => $Qclass->value('geo_zone_name') |
|
1348 | ]; |
|
1349 | } |
|
1350 | ||
1351 | return HTML::selectField($name, $zone_class_array, $zone_class_id); |
|
1352 | } |
|
1353 | ||
1354 | function tep_cfg_pull_down_order_statuses($order_status_id, $key = '') { |
|
1355 | $OSCOM_Db = Registry::get('Db'); |