예제 #1
0
echo $form->labelEx($model, 'descripcion');
?>
		<?php 
echo $form->textField($model, 'descripcion', array('size' => 60, 'maxlength' => 200));
?>
		<?php 
echo $form->error($model, 'descripcion');
?>
	</div>

	<div class="span3">
		<?php 
echo $form->labelEx($model, 'tipo_prestacion_id');
?>
		<?php 
echo $form->dropDownList($model, 'tipo_prestacion_id', CHtml::listData(TipoPrestacion::model()->findAll(), 'id', 'nombre'), array('prompt' => 'Seleccione Tipo de Prestación'));
?>
		<?php 
echo $form->error($model, 'tipo_prestacion_id');
?>
	</div>

        
        <div class="clearfix"></div>
	<div class="span4">
		<?php 
echo $form->labelEx($model, 'ejecutor_id');
?>
		<?php 
echo $form->dropDownList($model, 'ejecutor_id', CHtml::listData(Ejecutor::model()->listar(), 'id', 'nombre'), array('prompt' => 'Seleccione Maestro'));
?>
 public function actionExportarXLS()
 {
     // generate a resultset
     $data = TipoPrestacion::model()->findAll();
     $this->toExcel($data, array('nombre'), 'Tipos de Prestaciones', array());
 }