The followings are the available columns in table:
Inheritance: extends BaseActiveRecord
Ejemplo n.º 1
0
">
					<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');
Ejemplo n.º 2
0
    ?>
				</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