} 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 -->
<td> <?php echo $value->nombre; ?> </td> <td class="text-left"> <?php $unidadesNegocioMacroproceso = UnidadNegocioMacroproceso::model()->findAllByAttributes(array('id_unidad_negocio' => $value->id_unidad_negocio)); ?> <ul> <?php foreach ($unidadesNegocioMacroproceso as $value1) { $macroproceso = Macroproceso::model()->findByPk($value1->id_macroproceso); ?> <li><?php echo $macroproceso->nombre . ": " . $value1->nombre_responsable; ?> </li> <?php } ?> </ul> </td>
/** * 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; }