Example #1
0
echo $form->error($model, 'attendence');
?>
	</div> -->

	<div class="row">
		<?php 
echo $form->labelEx($model, 'shift_id');
?>
		<?php 
//echo $form->textField($model,'shift_id');
?>
		<?php 
//echo $form->dropDownList($model,'shift_id', CHtml::listData(Shift::model()->findAll(), 'shift_id', 'shift_type'));
?>
		<?php 
echo $form->dropDownList($model, 'shift_id', Shift::items(), array('empty' => '---------------Select-------------', 'tabindex' => 1));
?>
<span class="status">&nbsp;</span>

		<?php 
echo $form->error($model, 'shift_id');
?>
	</div>
<!--
	<div class="row">
		<?php 
echo $form->labelEx($model, 'sem_id');
?>
		<?php 
//echo $form->textField($model,'sem_id');
?>
} else {
    echo $form->dropDownList($model, 'student_transaction_batch_id', array('empty' => '-----------Select---------'), array('tabindex' => 13));
}
?>
<span class="status">&nbsp;</span>
        <?php 
echo $form->error($model, 'student_transaction_batch_id');
?>
	</div>

	<div class="row-right">
        <?php 
echo $form->labelEx($model, 'student_transaction_shift_id');
?>
        <?php 
echo $form->dropDownList($model, 'student_transaction_shift_id', Shift::items(), array('empty' => '-----------Select---------', 'tabindex' => 14));
?>
<span class="status">&nbsp;</span>
        <?php 
echo $form->error($model, 'student_transaction_shift_id');
?>
	</div>

    </div>

    <div class="row">
	      <?php 
echo $form->labelEx($photo, 'student_photos_path');
?>
	      <?php 
CHtml::form('', 'post', array('enctype' => 'multipart/form-data'));
}
?>
<span class="status">&nbsp;</span>
 			<?php 
echo $form->error($model, 'student_transaction_batch_id');
?>
		</div>
	</div>
	
	<div class="row">
		<div class="row-left">
        		<?php 
echo $form->labelEx($model, 'student_transaction_shift_id');
?>
			<?php 
echo $form->dropDownList($model, 'student_transaction_shift_id', Shift::items(), array('empty' => 'Select Shift'));
?>
<span class="status">&nbsp;</span>
			<?php 
echo $form->error($model, 'student_transaction_shift_id');
?>
		</div>

    	</div>

	<?php 
if (Yii::app()->user->checkAccess('StudentTransaction.UpdateStudentData') || Yii::app()->user->checkAccess('StudentTransaction.*')) {
    ?>
    	<div class="row buttons">
		<?php 
    echo CHtml::button('Save', array('submit' => $this->createUrl('updateprofiletab1', array('id' => $_REQUEST['id'])), 'class' => 'submit', 'id' => 'submitbut1'));