Ignore:
Timestamp:
2012/02/17 02:42:21 (15 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/smarty_extends/function.html_radios_ex.php

    r21481 r21527  
    130130 
    131131function smarty_function_html_radios_output_ex($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $tags) { 
    132    $_output = ''; 
     132    $_output = ''; 
    133133 
    134    $_output .= '<input type="radio" name="' 
     134    $_output .= '<input type="radio" name="' 
    135135        . smarty_function_escape_special_chars($name) . '" value="' 
    136136        . smarty_function_escape_special_chars($value) . '"'; 
    137137 
    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    } 
    142142    if ((string)$value == $selected) { 
    143143        $_output .= ' checked="checked"'; 
     
    149149 
    150150    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        } 
    157157    } 
    158158 
Note: See TracChangeset for help on using the changeset viewer.