Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the | ||
Результат | the | static model class |
"> <label for="<?php echo CHtml::modelName($social_history); ?> _driving_statuses"><?php echo CHtml::encode($social_history->getAttributeLabel('driving_statuses')); ?> :</label> </div> <div class="<?php echo $form->columns('field'); ?> "> <input type="hidden" name="SocialHistory[driving_statuses]" value="" /> <?php $this->widget('application.widgets.MultiSelectList', array('element' => $social_history, 'field' => 'SocialHistory[driving_statuses]', 'relation' => 'driving_status_assignments', 'relation_id_field' => 'driving_status_id', 'options' => CHtml::listData(SocialHistoryDrivingStatus::model()->findAll(array('order' => 'display_order asc')), 'id', 'name'), 'default_options' => array(), 'htmlOptions' => array('empty' => '- Select -', 'label' => $social_history->getAttributeLabel('driving_statuses'), 'nowrapper' => true), 'hidden' => false, 'inline' => false, 'noSelectionsMessage' => null, 'showRemoveAllLink' => false, 'sorted' => false, 'layoutColumns' => array('field' => 4))); ?> </div> </div> <div class="field-row row"> <div class="<?php echo $form->columns('label'); ?> "> <label for="relative_id"><?php echo CHtml::encode($social_history->getAttributeLabel('smoking_status_id')); ?> :</label> </div> <div class="<?php echo $form->columns('field');
?> </div> </div> <div class="field-row row"> <div class="<?php echo $form->columns('label'); ?> "> <label for="relative_id">Driving Status:</label> </div> <div class="<?php echo $form->columns('field'); ?> "> <?php echo CHtml::activeDropDownList($social_history, 'driving_status_id', CHtml::listData(SocialHistoryDrivingStatus::model()->findAll(array('order' => 'display_order asc')), 'id', 'name'), array('empty' => '- Select -')); ?> </div> </div> <div class="field-row row"> <div class="<?php echo $form->columns('label'); ?> "> <label for="relative_id">Smoking Status:</label> </div> <div class="<?php echo $form->columns('field'); ?> "> <?php