public function actionActualizarEstadoPeriodo()
 {
     date_default_timezone_set('America/Tegucigalpa');
     $PeriodoAcademico = PeriodoAcademico::model()->findByPk($_POST['pk']);
     $PeriodoAcademico->Activo = $_POST['value'];
     $PeriodoAcademico->ModificadoPor = Yii::app()->user->name;
     $PeriodoAcademico->Save();
 }
 /**
  * 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 $id the ID of the model to be loaded
  * @return PeriodoAcademico the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = PeriodoAcademico::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
                                                }')), 'options' => array('width' => '100%'), 'events' => array("change" => 'js:function(){ $("#AsesorCurso2").select2("val", "");}')));
?>
<br>
<br>
                                            <div class="row ">

                                       <section  class="col col-6">
                                            <?php 
$this->widget('booster.widgets.TbSelect2', array('name' => 'AsesorCurso2', 'options' => array('placeholder' => 'Seleccione el asesor *', 'width' => '100%')));
?>
                                             </section>
                                             <section  class="col col-6">

                                             
                                            <?php 
$this->widget('booster.widgets.TbSelect2', array('name' => 'PeriodoAcademicoCurso2', 'data' => CHtml::listData(PeriodoAcademico::model()->findAll("Activo=?", array(1)), 'IdPeriodoAcademico', 'PeriodoConcatenado'), 'options' => array('placeholder' => 'Periodo Académico *', 'width' => '100%')));
?>
                                             </section>
                                             </div>  

                                         

                          
                             

                          </fieldset>


                              </div>