* Name: html_options
* Purpose: Prints the list of ' . "\n"; $idx ++; } else { $_idx = 0; $_html_result = smarty_function_html_options_optgroup($key, $value, $selected, !empty($id) ? ($id . '-' . $idx) : null, $class, $_idx); $idx ++; } return $_html_result; } function smarty_function_html_options_optgroup($key, $values, $selected, $id, $class, $label, &$idx) { $optgroup_html = '' . "\n"; foreach ($values as $key => $value) { $optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected, $id, $class, $label, $idx); } $optgroup_html .= "\n"; return $optgroup_html; }