- Timestamp:
- 2012/01/23 04:49:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php
r20540 r21420 55 55 foreach($params as $_key => $_val) { 56 56 switch($_key) { 57 58 59 57 case 'tags': 58 $$_key = split("\|", $_val); 59 break; 60 60 case 'name': 61 61 case 'separator': … … 92 92 case 'assign': 93 93 break; 94 94 95 95 default: 96 96 if(!is_array($_val)) { … … 136 136 . smarty_function_escape_special_chars($name) . '" value="' 137 137 . smarty_function_escape_special_chars($value) . '"'; 138 138 139 139 if ($labels && $label_ids) { 140 141 140 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 141 $_output .= ' id="' . $_id . '"'; 142 142 } 143 143 if ((string)$value == $selected) { 144 144 $_output .= ' checked="checked"'; 145 145 } 146 147 $_output .= $extra . ' />';148 146 149 $_output .= $tags[0]; 150 151 if ($labels) { 147 $_output .= $extra . ' />'; 148 149 $_output .= $tags[0]; 150 151 if ($labels) { 152 152 if($label_ids) { 153 153 $_id = smarty_function_escape_special_chars(preg_replace('![^\w\-\.]!', '_', $name . '_' . $value)); 154 154 $_output .= '<label for="' . $_id . '">'; 155 155 } else { … … 157 157 } 158 158 } 159 160 161 162 163 164 165 159 160 // 値を挿入 161 $_output .= $output; 162 163 $_output .= $tags[1]; 164 165 if ($labels) $_output .= '</label>'; 166 166 $_output .= $separator; 167 167 168 168 return $_output; 169 169 } 170 171 ?>
Note: See TracChangeset
for help on using the changeset viewer.