[ticket/555] Allow defining default currency in ACP

B3P-555
This commit is contained in:
Marc Alexander
2015-06-03 12:53:21 +02:00
parent 367d5168bd
commit a5ccbb48c7
7 changed files with 114 additions and 71 deletions

View File

@@ -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>';