Exemple #1
0
    ?>
" class="row field-row"<?php 
    if (@$htmlOptions['hide']) {
        ?>
 style="display: none;"<?php 
    }
    ?>
>
        <div class="large-<?php 
    echo $layoutColumns['label'];
    ?>
 column">
            <?php 
    $labelText = empty($htmlOptions['label']) ? CHtml::encode($element->getAttributeLabel($field)) : $htmlOptions['label'];
    $labelText .= ':';
    echo Chtml::label($labelText, Chtml::getIdByName($name));
    ?>
        </div>
        <div class="large-<?php 
    echo $layoutColumns['field'];
    ?>
 column<?php 
    if (empty($htmlOptions['append-text']) || empty($layoutColumns['append-text'])) {
        ?>
 end<?php 
    }
    ?>
">
            <?php 
    echo CHtml::textField($name, $value, $htmlOptions);
    ?>