@@ 276-297 (lines=22) @@ | ||
273 | } |
|
274 | } |
|
275 | ||
276 | function tep_tax_classes_pull_down($parameters, $selected = '') { |
|
277 | $select_string = '<select ' . $parameters . '>'; |
|
278 | ||
279 | $Qclasses = Registry::get('Db')->get('tax_class', [ |
|
280 | 'tax_class_id', |
|
281 | 'tax_class_title' |
|
282 | ], null, 'tax_class_title'); |
|
283 | ||
284 | while ($Qclasses->fetch()) { |
|
285 | $select_string .= '<option value="' . $Qclasses->valueInt('tax_class_id') . '"'; |
|
286 | ||
287 | if ($selected == $Qclasses->valueInt('tax_class_id')) { |
|
288 | $select_string .= ' SELECTED'; |
|
289 | } |
|
290 | ||
291 | $select_string .= '>' . $Qclasses->value('tax_class_title') . '</option>'; |
|
292 | } |
|
293 | ||
294 | $select_string .= '</select>'; |
|
295 | ||
296 | return $select_string; |
|
297 | } |
|
298 | ||
299 | function tep_geo_zones_pull_down($parameters, $selected = '') { |
|
300 | $select_string = '<select ' . $parameters . '>'; |
|
@@ 299-320 (lines=22) @@ | ||
296 | return $select_string; |
|
297 | } |
|
298 | ||
299 | function tep_geo_zones_pull_down($parameters, $selected = '') { |
|
300 | $select_string = '<select ' . $parameters . '>'; |
|
301 | ||
302 | $Qzones = Registry::get('Db')->get('geo_zones', [ |
|
303 | 'geo_zone_id', |
|
304 | 'geo_zone_name' |
|
305 | ], null, 'geo_zone_name'); |
|
306 | ||
307 | while ($Qzones->fetch()) { |
|
308 | $select_string .= '<option value="' . $Qzones->valueInt('geo_zone_id') . '"'; |
|
309 | ||
310 | if ($selected == $Qzones->valueInt('geo_zone_id')) { |
|
311 | $select_string .= ' SELECTED'; |
|
312 | } |
|
313 | ||
314 | $select_string .= '>' . $Qzones->value('geo_zone_name') . '</option>'; |
|
315 | } |
|
316 | ||
317 | $select_string .= '</select>'; |
|
318 | ||
319 | return $select_string; |
|
320 | } |
|
321 | ||
322 | function tep_get_geo_zone_name($geo_zone_id) { |
|
323 | $Qzones = Registry::get('Db')->get('geo_zones', 'geo_zone_name', ['geo_zone_id' => (int)$geo_zone_id]); |