Changeset 21527 for branches/version-2_12-dev/data/smarty_extends
- Timestamp:
- 2012/02/17 02:42:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php
r21481 r21527 130 130 131 131 function smarty_function_html_radios_output_ex($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $tags) { 132 $_output = '';132 $_output = ''; 133 133 134 $_output .= '<input type="radio" name="'134 $_output .= '<input type="radio" name="' 135 135 . smarty_function_escape_special_chars($name) . '" value="' 136 136 . smarty_function_escape_special_chars($value) . '"'; 137 137 138 if ($labels && $label_ids) {139 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value));140 $_output .= ' id="' . $_id . '"';141 }138 if ($labels && $label_ids) { 139 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 140 $_output .= ' id="' . $_id . '"'; 141 } 142 142 if ((string)$value == $selected) { 143 143 $_output .= ' checked="checked"'; … … 149 149 150 150 if ($labels) { 151 if ($label_ids) {152 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value));153 $_output .= '<label for="' . $_id . '">';154 } else {155 $_output .= '<label>';156 }151 if ($label_ids) { 152 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 153 $_output .= '<label for="' . $_id . '">'; 154 } else { 155 $_output .= '<label>'; 156 } 157 157 } 158 158
Note: See TracChangeset
for help on using the changeset viewer.
