<?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;
예제 #2
0
  <div class="modal-body">
 	<!-- Evaluar politicas de cancelación -->
 	<?php 
    $Gloslaboratorios = HistorialLaboratorio::model()->findAll("paciente_id = {$model->paciente_id}");
    foreach ($Gloslaboratorios as $Glos_examenes) {
        ?>
 			<?php 
        $this->widget('zii.widgets.CDetailView', array('data' => $Glos_examenes, 'attributes' => array(array('name' => 'fecha', 'value' => Yii::app()->dateformatter->format("dd-MM-yyyy", $Glos_examenes->fecha), ''))));
        ?>
 			<table class="table table-striped">
			<tr>
				<th>Laboratorio</th>
				<th>Descripción</th>
			</tr>
		<?php 
        $losExamenes = HistorialLaboratorioDetalle::model()->findAll("historial_laboratorio_id = {$Glos_examenes->id}");
        ?>
		<?php 
        foreach ($losExamenes as $los_examenes) {
            if ($los_examenes->laboratorio_id == null) {
                $nombreExamen = "";
            } else {
                $nombreExamen = $los_examenes->laboratorio->nombre;
            }
            ?>
				<tr>
					<td><?php 
            echo $nombreExamen;
            ?>
</td>
					<td><?php