Ejemplo n.º 1
0
?>

	                <?php 
if ($laboratorio > 0) {
    ?>
		                <div class="tab-pane" id="laboratorio">
		                	<h5>Historial de Examenes de Laboratorios</h5>
		                	<table class="table table-condensed">
		                		<tr>
		                			<th>Fecha</th>
		                			<th>Responsable</th>
		                			<th></th>
		                		</tr>
		                
		                	<?php 
    $losLaboratorios = HistorialLaboratorio::model()->findAll("paciente_id = {$model->id}");
    foreach ($losLaboratorios as $los_laboratorios) {
        ?>
						 			<tr>
						 				<td><?php 
        echo Yii::app()->dateformatter->format("dd-MM-yyyy", $los_laboratorios->fecha);
        ?>
</td>
						 				<td><?php 
        echo $los_laboratorios->personal->nombreCompleto;
        ?>
</td>
						 				<td>
						 					<a href="index.php?r=historialLaboratorio/view&id=<?php 
        echo $los_laboratorios->id;
        ?>
Ejemplo n.º 2
0
<?php

//Detalles
$id = $_GET['id'];
$historialLaboratorios = HistorialLaboratorio::model()->find("id = {$id}");
$detalleLaboratorios = HistorialLaboratorioDetalle::model()->findAll("historial_laboratorio_id = {$historialLaboratorios->id}");
//$elnumero = $laFactura->factura->numero;
?>

			<style type="text/css">
				#cuerpo{
				   font-size: 70%;
				}
				#total{
					/*color:red;*/
					background: #A9A9A9;
				}
			</style>

<body>
<div id="cuerpo" style="background-image: url(images/m_horizontal_presupuesto.jpg); background-repeat: no-repeat; height:100%; padding:0px 0px 0px 20px;">

<!-- <div style="height:175px"></div> -->
<!-- <div style="padding:170px 0px 0px 0px;"> -->

<div style="padding:90px 0px 0px 0px;">

<table>
	<tr>
		<td><p><b>N°: </b><?php 
echo $historialLaboratorios->id;
 /**
  * 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 HistorialLaboratorio the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = HistorialLaboratorio::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }