<?php if ($model->estado == "Cerrado") { $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('comentario_estado'))); } ?> </div> <div class="span4"></div> </div> <div class="row"> <div class="span12"></div> </div> <?php $laInsidencia = SeguimientoComercialDetalle::model()->findAll("seguimiento_comercial_id = {$model->id}"); if (count($laInsidencia) > 0) { ?> <h3 class="text-center">Insidencias de Seguimiento Comercial</h3> <div class="row"> <div class="span1"></div> <div class="span10"> <table class="table table-striped"> <tr> <th size="15%">Registrado</th> <th size="50%">Insidencia</th> <th size="15%">Fecha de Acción</th> <th size="20%">Responsable</th> </tr> <?php foreach ($laInsidencia as $la_insidencia) {
/** * 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 SeguimientoComercialDetalle the loaded model * @throws CHttpException */ public function loadModel($id) { $model = SeguimientoComercialDetalle::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }