- // @TODO Rewrite this to our API function
- $OUT = "<select name=\"".$name."\" size=\"1\" class=\"admin_select\">
- <option value=\"\">{--SELECT_NONE--}</option>\n";
- foreach ($ral as $rallye) {
- $OUT .= " <option value=\"".$rallye."\"";
- if ($default == $rallye) $OUT .= ' selected="selected"';
- $OUT .= ">".$rallye."</option>\n";
- } // END - foreach
- $OUT .= "</select>\n";
+ $OUT = '<select name="' . $name . '" size="1" class="admin_select">';
+ $OUT .= generateOptionList('/ARRAY/', array_keys($ral), array_values($ral), $default, '', 'none');
+ $OUT .= '</select>';