示例#1
0
    ?>
		                <div class="tab-pane" id="tabla">
		                	<h5>Historial de Tabla de Medidas</h5>
		                	<table class="table table-condensed">
		                		<tr>
		                			<th>Fecha</th>
		                			<th>Responsable</th>
		                			<th>IMC</th>
		                			<th>Peso</th>
		                			<th>Busto</th>
		                			<th>Contorno</th>
		                			<th></th>
		                		</tr>
		                
		                	<?php 
    $lasTablas = HistorialTablaMedidas::model()->findAll("paciente_id = {$model->id}");
    foreach ($lasTablas as $las_tablas) {
        ?>
						 			<tr>
						 				<td><?php 
        echo Yii::app()->dateformatter->format("dd-MM-yyyy", $las_tablas->fecha);
        ?>
</td>
						 				<td><?php 
        echo $las_tablas->personal->nombreCompleto;
        ?>
</td>
						 				<td><?php 
        echo $las_tablas->imc;
        ?>
</td>
示例#2
0
$busto = "";
$contorno = "";
$cintura = "";
$umbilical = "";
$abd_inferior = "";
$abd_superior = "";
$cadera = "";
$piernas = "";
$muslo_derecho = "";
$muslo_izquierdo = "";
$brazo_derecho = "";
$brazo_izquierdo = "";
$fecha = "";
$observaciones = "";
//Datos Anteriores
$elHistorial = HistorialTablaMedidas::model()->findAll("paciente_id={$elPaciente}");
foreach ($elHistorial as $el_historial) {
    $peso = $peso . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->peso . "<br>";
    $busto = $busto . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->busto . "<br>";
    $contorno = $contorno . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->contorno . "<br>";
    $cintura = $cintura . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cintura . "<br>";
    $umbilical = $umbilical . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->umbilical . "<br>";
    $abd_inferior = $abd_inferior . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->abd_inferior . "<br>";
    $abd_superior = $abd_superior . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->abd_superior . "<br>";
    $cadera = $cadera . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cadera . "<br>";
    $piernas = $piernas . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->piernas . "<br>";
    $muslo_derecho = $muslo_derecho . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->muslo_derecho . "<br>";
    $muslo_izquierdo = $muslo_izquierdo . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->muslo_izquierdo . "<br>";
    $brazo_derecho = $brazo_derecho . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->brazo_derecho . "<br>";
    $brazo_izquierdo = $brazo_izquierdo . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->brazo_izquierdo . "<br>";
    $observaciones = $observaciones . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->observaciones . "<br>";
示例#3
0
<?php 
$this->endWidget();
?>

</div><!-- form -->

<!-- Historial de Evaluación Cosmetológica -->
<?php 
if ($tabla > 0) {
    ?>
<div id="tabla" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Tabla de Medidas</h3>
  </div>
  <div class="modal-body">
 	<!-- Evaluar politicas de cancelación -->
 	<?php 
    $latabla = HistorialTablaMedidas::model()->find("paciente_id = {$elPaciente}");
    $this->widget('zii.widgets.CDetailView', array('data' => $latabla, 'attributes' => array('peso', 'busto', 'contorno', 'cintura', 'umbilical', 'abd_inferior', 'abd_superior', 'cadera', 'piernas', 'muslo_derecho', 'muslo_izquierdo', 'brazo_derecho', 'brazo_izquierdo')));
    ?>
  </div>
  	
   <div class="modal-footer">
    <!-- <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button> -->
  </div>
</div>

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