示例#1
0
}
?>
 
                                    </option> 
                                </select>                                        
                            </div>

                            <div id="" class="form-group">
                                <label class="control-label">
                                    Objetivo(s) Estratégicos                                    
                             
                                </label>
                                <select  id="idObjetivoEstrategicoActualizar" name="idObjetivoEstrategicoActualizar[]" class="js-example-basic-multiple" multiple="multiple" tabindex="1" aria-hidden="true" style="width:100%; height: 41px;overflow-y: auto;">     
                                    <option value="null">Seleccione</option> 
                                    <?php 
$ObjetivoEstrategicoCrear = new ObjetivoEstrategico();
$ObjetivosEstrategicoCrear = $ObjetivoEstrategicoCrear->findAll();
foreach ($ObjetivosEstrategicoCrear as $value) {
    $objetivoEstrategicoRiesgo = ObjetivoEstrategicoRiesgo::model()->findAllByAttributes(array('id_riesgo' => $riesgo->id_riesgo, 'id_objetivo_estrategico' => $value->id_objetivo_estrategico));
    if (count($objetivoEstrategicoRiesgo) == 0) {
        ?>
 

                                            <option value="<?php 
        echo $value->id_objetivo_estrategico;
        ?>
" title="<?php 
        echo $value->nombre;
        ?>
">
                                                <?php 
 /**
  * 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 ObjetivoEstrategico the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = ObjetivoEstrategico::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
示例#3
0
                <h3 class="no-margin"><i class="fa fa-list-alt"></i> Listado de Objetivos Estrategicos</h3>
            </div>
            <div class="modal-body padding-20" style="overflow-x: hidden; overflow-y: auto">
                <form >
                    <table id="tablaDetallesObjetivos" class="table table-bordered table-striped" style="width:100%;">
                        <thead class="text-center">
                            <tr>

                                <th>Objetivo</th>
                                <th>Código</th>
                                <th>Dimensión</th>
                            </tr>
                        </thead>
                        <tbody class="text-center">
                            <?php 
$objetivoEstrategico = new ObjetivoEstrategico();
$objetivosEstrategicos = $objetivoEstrategico->findAll();
foreach ($objetivosEstrategicos as $value) {
    ?>
 
                                <tr>
                                    <td>
                                        <?php 
    echo $value->nombre;
    ?>
                
                                    </td>
                                    <td>
                                        <?php 
    echo $value->codigo;
    ?>