/**
  * @return string the associated database table name
  */
 public static function DropDown()
 {
     $res = array();
     foreach (PersonEducationTypes::model()->findAll() as $record) {
         $res[$record->idPersonEducationTypes] = $record->PersonEducationTypesName;
     }
     return $res;
 }
Esempio n. 2
0
		<?php 
echo $form->textField($model, 'KOATUUFullName', array('class' => 'span12', 'size' => 60, 'maxlength' => 150));
?>
	</div>
</div>
<?php 
//------------------------------------------------------------------------------------------------------------------------------------//
?>
	
<div class="row-fluid">   
	<div class ="span4">
		<?php 
echo $form->labelEx($model, 'EducationTypeID');
?>
		<?php 
echo $form->dropDownList($model, 'EducationTypeID', PersonEducationTypes::DropDown(), array('class' => 'span12'));
?>
	</div>
</div>

<?php 
//------------------------------------------------------------------------------------------------------------------------------------//
?>
	
<div class="row-fluid">  
	<div class ="span4">
		<?php 
echo $form->labelEx($model, 'StreetTypeID');
?>
		<?php 
echo $form->dropDownList($model, 'StreetTypeID', StreetTypes::DropDown(), array('class' => 'span12'));