[ticket/555] Allow defining default currency in ACP
B3P-555
This commit is contained in:
@@ -85,7 +85,9 @@ class modules_helper
|
||||
public function generate_select_box($key, $select_ary, $selected_options)
|
||||
{
|
||||
// Build options
|
||||
$options = '<select id="' . $key . '" name="' . $key . '[]" multiple="multiple">';
|
||||
$options = '<select id="' . $key . '" name="' . $key;
|
||||
var_dump($selected_options, sizeof($selected_options));
|
||||
$options .= (sizeof($selected_options) > 1) ? '[]" multiple="multiple">' : '">';
|
||||
foreach ($select_ary as $id => $option)
|
||||
{
|
||||
$options .= '<option value="' . $option['value'] . '"' . ((in_array($option['value'], $selected_options)) ? ' selected="selected"' : '') . (!empty($option['disabled']) ? ' disabled="disabled" class="disabled-option"' : '') . '>' . $option['title'] . '</option>';
|
||||
|
||||
Reference in New Issue
Block a user