예제 #1
0
                                    <input type="text" id="nombreProcesoEdit" name="nombreProcesoEdit" title="Nombre de Proceso" class="form-control" />
                                </div>
                            </div>
                            <div class="col-sm-4 hidden">
                                <input type="hidden" id="idProcesoEditar" name="idProcesoEditar"/>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group">
                                    <label for="form-field-22">
                                        Macroproceso
                                        <span class="symbol required"></span>
                                    </label>
                                    <select id="idMacroProcesoEdit" name="idMacroProcesoEdit" class="js-example-basic-single" tabindex="-1" aria-hidden="true" style="width:100%; height: 40px;">

                                        <?php 
$macroprocesoenProceso = new Macroproceso();
$macroprocesoenProcesos = $macroprocesoenProceso->findAll();
foreach ($macroprocesoenProcesos as $value) {
    ?>
 

                                            <option value="<?php 
    echo $value->id_macroproceso;
    ?>
">
                                                <?php 
    echo $value->nombre;
}
?>
 
                                        </option> 
예제 #2
0
}
?>
 
                                        </option> 
                                    </select>                            
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
                                    <label class="control-label">
                                        Macroproceso(s)
                                    </label>
                                    <select  id="macroprocesoSearch" name="macroprocesoSearch[]" class="js-example-basic-multiple" multiple="multiple" tabindex="1" aria-hidden="true" style="width:100%; height: 40px;">     
                                        <option value="">Seleccione</option> 
                                        <?php 
$modelMacroproceso = new Macroproceso();
$macroprocesos = $modelMacroproceso->findAll();
foreach ($macroprocesos as $value) {
    ?>
 

                                            <option value="<?php 
    echo $value->id_macroproceso;
    ?>
" title="">
                                                <?php 
    echo $value->nombre;
}
?>
 
                                        </option> 
예제 #3
0
}
echo $mostrar;
?>
</h3>
            <h4 class="title block no-margin">PERDIDA<br> ESPERADA</h4>
        </div>
        <div class="icon">
            <i class="ion fa fa-dollar"></i>
        </div>
        <a href="#" class="small-box-footer">Detalles <i class="fa fa-arrow-circle-right"></i></a>
    </div>

    <div class="small-box panel-dark-blue " >
        <div class="inner">
            <h3><?php 
$array = Macroproceso::model()->findAll();
echo count($array);
?>
</h3>
            <h4 class="title block no-margin">MACRO<br> PROCESOS</h4>
        </div>
        <div class="icon">
            <i class="ion fa fa-cog fa-spin"></i>
        </div>
        <a href="#" class="small-box-footer">Detalles <i class="fa fa-arrow-circle-right"></i></a>
    </div>
</section>

<!-- /.box -->

 /**
  * 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 Macroproceso the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Macroproceso::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }