Example #1
0
?>
<?php// echo $form->labelEx($model,'fk_componentDetail'); ?>
		<?php 
?>
<?php// echo $form->textField($model,'fk_componentDetail',array('size'=>7,'maxlength'=>7)); ?>
		<?php 
?>
<?php// echo $form->error($model,'fk_componentDetail'); ?>
	</div>
-->
	<div class="row">
		<?php 
echo $form->labelEx($model, 'fk_staff');
?>
		<?php 
echo $form->dropDownList($model, 'fk_staff', CHtml::listData(staff::model()->findAll(array('order' => 'fullName ASC')), 'id', 'fullName'), array('prompt' => 'Select Staff'));
?>
		<?php 
echo $form->error($model, 'fk_staff');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'dateIssued');
?>
		<?php 
//Date picker widget for purchase date
?>
		<?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $model, 'attribute' => 'dateIssued', 'options' => array('showOn' => 'both', 'dateFormat' => 'yy-mm-dd', 'changeYear' => true, 'changeMonth' => true, 'yearRange' => '2000:2099')));