/**
  * 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, $modelClass = __CLASS__)
 {
     $model = CursoEdicion::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
예제 #2
0
?>
<div id="flashMsg"  class="flash-messages">

</div> 
<div class="widget blue">
    <div class="widget-title">
        <h4> <i class="icon-fire-extinguisher"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo FaltasEstudiante::label(2);
?>
 </h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">

            <?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'faltas-estudiante-grid', 'type' => 'striped bordered hover advance', 'dataProvider' => $model->search(), 'columns' => array('NRO_FALTAS', 'TOTAL_DIAS_CURSO', array('name' => 'PERSONA_ID', 'value' => 'isset($data->pERSONA) ? $data->pERSONA : null', 'filter' => CHtml::listData(Persona::model()->findAll(), 'ID', Persona::representingColumn())), array('name' => 'CURSO_EDICION_ID', 'value' => 'isset($data->cURSOEDICION) ? $data->cURSOEDICION : null', 'filter' => CHtml::listData(CursoEdicion::model()->findAll(), 'ID', CursoEdicion::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{update} {delete}', 'afterDelete' => 'function(link,success,data){ 
                    if(success) {
                         $("#flashMsg").empty();
                         $("#flashMsg").css("display","");
                         $("#flashMsg").html(data).animate({opacity: 1.0}, 5500).fadeOut("slow");
                    }
                    }', 'buttons' => array('update' => array('label' => '<button class="btn btn-primary"><i class="icon-pencil"></i></button>', 'options' => array('title' => 'Actualizar'), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="icon-trash"></i></button>', 'options' => array('title' => 'Eliminar'), 'imageUrl' => false)), 'htmlOptions' => array('width' => '80px')))));
?>
    </div>
</div>
예제 #3
0
?>
<div id="flashMsg"  class="flash-messages">

</div> 
<div class="widget blue">
    <div class="widget-title">
        <h4> <i class="icon-fire-extinguisher"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo CentroRecaudacionDepositos::label(2);
?>
 </h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">

            <?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'centro-recaudacion-depositos-grid', 'type' => 'striped bordered hover advance', 'dataProvider' => $model->search(), 'columns' => array('NRO_FACTURA', 'VALOR', 'PERSONA_ID', array('name' => 'CURSO_EDICION_ID', 'value' => 'isset($data->cURSOEDICION) ? $data->cURSOEDICION : null', 'filter' => CHtml::listData(CursoEdicion::model()->findAll(), 'ID', CursoEdicion::representingColumn())), array('class' => 'CButtonColumn', 'template' => '{update} {delete}', 'afterDelete' => 'function(link,success,data){ 
                    if(success) {
                         $("#flashMsg").empty();
                         $("#flashMsg").css("display","");
                         $("#flashMsg").html(data).animate({opacity: 1.0}, 5500).fadeOut("slow");
                    }
                    }', 'buttons' => array('update' => array('label' => '<button class="btn btn-primary"><i class="icon-pencil"></i></button>', 'options' => array('title' => 'Actualizar'), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="icon-trash"></i></button>', 'options' => array('title' => 'Eliminar'), 'imageUrl' => false)), 'htmlOptions' => array('width' => '80px')))));
?>
    </div>
</div>
예제 #4
0
                                        <?php 
echo $form->textFieldRow($model, 'MAT_DIDACTICO');
?>
                                
                                        <?php 
echo $form->textFieldRow($model, 'FORMA_ENSENANZA');
?>
                                
                                        <?php 
echo $form->textFieldRow($model, 'ESTUDIANTE_ID');
?>
                                
                                        <?php 
echo $form->textFieldRow($model, 'INSTRUCTOR_ID');
?>
                                
                                        <?php 
echo $form->dropDownListRow($model, 'CURSO_EDICION_ID', array('' => ' -- Seleccione -- ') + CHtml::listData(CursoEdicion::model()->findAll(), 'ID', CursoEdicion::representingColumn()));
?>
                                        </div>                <div class="form-actions">
                        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save')));
?>
            <?php 
$this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('AweCrud.app', 'Cancel'), 'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')));
?>
        </div>
    </div>
</div>
<?php 
$this->endWidget();
예제 #5
0
        </span>
    </div>
    <div class="widget-body">
        
        
            
                                        <?php 
echo $form->textFieldRow($model, 'NOMBRE', array('maxlength' => 20));
?>
                                        </div>        <div class="row nm_row">
<label for="cursoEdicions"><?php 
echo Yii::t('app', 'CursoEdicions');
?>
</label>
<?php 
echo CHtml::checkBoxList('MaterialDidactico[cursoEdicions]', array_map('AweHtml::getPrimaryKey', $model->cursoEdicions), CHtml::listData(CursoEdicion::model()->findAll(), 'ID', 'NRO_EDICION'), array('attributeitem' => 'ID', 'checkAll' => 'Select All'));
?>
</div>

        <div class="form-actions">
                        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'success', 'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save')));
?>
            <?php 
$this->widget('bootstrap.widgets.TbButton', array('label' => Yii::t('AweCrud.app', 'Cancel'), 'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')));
?>
        </div>
    </div>
</div>
<?php 
$this->endWidget();