Exemplo n.º 1
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = Ejecutor::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
function main()
{
    try {
        configuracionInicial();
        configurarSesion();
        Ejecutor::run(new Request());
    } catch (Exception $e) {
        echo $e->getMessage();
    }
}
Exemplo n.º 3
0
		<?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'));
?>
		<?php 
echo $form->error($model, 'ejecutor_id');
?>
	</div>

	<div class="span2">
            <?php 
echo $form->labelEx($model, 'genera_cargos');
?>
            <?php 
echo $form->checkbox($model, 'genera_cargos');
?>
	</div>
        
Exemplo n.º 4
0
 public function actionExportarXLS()
 {
     // generate a resultset
     $data = Ejecutor::model()->findAll();
     $this->toExcel($data, array('rut', 'nombre', 'direccion', 'telefono', 'email', 'especialidad'), 'Ejecutores', array());
 }
Exemplo n.º 5
0
	<div class="row">
		<?php 
echo $form->label($model, 'tipo_prestacion_id');
?>
		<?php 
echo $form->dropDownList($model, 'tipo_prestacion_id', CHtml::listData(TipoPrestacion::model()->findAll(), 'id', 'nombre'), array('prompt' => 'Seleccione un Tipo de Prestación'));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'ejecutor_id');
?>
		<?php 
echo $form->dropDownList($model, 'ejecutor_id', CHtml::listData(Ejecutor::model()->findAll(), 'id', 'nombre'), array('prompt' => 'Seleccione un Ejecutor'));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'genera_cargos');
?>
		<?php 
echo $form->dropDownList($model, 'genera_cargos', CHtml::listData(array(array('id' => 'Sí', 'nombre' => 'Sí'), array('id' => 'No', 'nombre' => 'No')), 'id', 'nombre'), array('prompt' => 'Todos'));
?>
	</div>

	<div class="row buttons">
		<?php 
echo CHtml::submitButton('Filtrar');