- Timestamp:
- 2012/02/06 11:05:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php
r21420 r21441 53 53 $extra = ''; 54 54 55 foreach ($params as $_key => $_val) {56 switch ($_key) {55 foreach ($params as $_key => $_val) { 56 switch ($_key) { 57 57 case 'tags': 58 58 $$_key = split("\|", $_val); … … 65 65 case 'checked': 66 66 case 'selected': 67 if (is_array($_val)) {67 if (is_array($_val)) { 68 68 $smarty->trigger_error('html_radios: the "' . $_key . '" attribute cannot be an array', E_USER_WARNING); 69 69 } else { … … 94 94 95 95 default: 96 if (!is_array($_val)) {96 if (!is_array($_val)) { 97 97 $extra .= ' '.$_key.'="'.smarty_function_escape_special_chars($_val).'"'; 98 98 } else { … … 122 122 } 123 123 124 if (!empty($params['assign'])) {124 if (!empty($params['assign'])) { 125 125 $smarty->assign($params['assign'], $_html_result); 126 126 } else { … … 150 150 151 151 if ($labels) { 152 if ($label_ids) {152 if ($label_ids) { 153 153 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 154 154 $_output .= '<label for="' . $_id . '">';
Note: See TracChangeset
for help on using the changeset viewer.