예제 #1
0
파일: view.php 프로젝트: edarkzero/GineObs
<?php

/* @var $this PagoController */
/* @var $model Pago */
$this->breadcrumbs = array('Pagos' => array('index'), $model->id);
$this->menu = array(array('label' => 'Listar Pago', 'url' => array('index')), array('label' => 'Crear Pago', 'url' => array('create')), array('label' => 'Actualizar Pago', 'url' => array('update', 'id' => $model->id)), array('label' => 'Borrar Pago', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('label' => 'Administrar Pago', 'url' => array('admin')));
?>

<h1>View Pago #<?php 
echo $model->id;
?>
</h1>

<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', 'paga', 'fecha', array('name' => 'paciente_id', 'type' => 'raw', 'value' => Paciente::GET_NOMBRE_COMPLETO_PK($model->paciente_id)))));
예제 #2
0
파일: _view.php 프로젝트: edarkzero/GineObs
?>
	<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('paga'));
?>
:</b>
	<?php 
echo CHtml::encode($data->paga);
?>
	<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('fecha'));
?>
:</b>
	<?php 
echo CHtml::encode($data->fecha);
?>
	<br />

	<b><?php 
echo CHtml::encode($data->getAttributeLabel('paciente_id'));
?>
:</b>
	<?php 
echo CHtml::encode(Paciente::GET_NOMBRE_COMPLETO_PK($data->paciente_id));
?>
	<br />

</div>
예제 #3
0
 public function createPDF($id)
 {
     $model = $this->loadModel($id);
     $stylesheet = file_get_contents('C:\\xampp\\htdocs\\Gineobs\\themes\\hebo\\css\\pdfMain.css');
     $texto = '<div id=contenedor>';
     $texto = $texto . '<div id=columna1>';
     $texto = $texto . '<H1 class="h1PDF"> Dra. Maria C. Hernandez N.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Ginecologo-Obstetra.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> C.C. Galeno Center Of. C8  Av. Country Club. Bna.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Telf. 0281-2743367/0414-8240064. CM972.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Rif: 3956719-5 MSAS 18083.</H1>';
     $texto = $texto . '</div>';
     $texto = $texto . '<div id=columna2>';
     $texto = $texto . '<H1 class="h1PDF"> Dra. Maria C. Hernandez N.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Ginecologo-Obstetra.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> C.C. Galeno Center Of. C8  Av. Country Club. Bna.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Telf. 0281-2743367/0414-8240064. CM972.</H1>';
     $texto = $texto . '<H1 class="h1PDF"> Rif: 3956719-5 MSAS 18083.</H1>';
     $texto = $texto . '</div>';
     $texto = $texto . '<div id=columna1>';
     $texto = $texto . '<p>Medicina: ' . $this->visualizarArreglo($model->recipeMedicinas, 'nombre') . '</p>';
     $texto = $texto . '<p>Indicaciones: ' . $model->indicaciones . ' </p>';
     $texto = $texto . '<p>Paciente: ' . Paciente::GET_NOMBRE_COMPLETO_PK($model->paciente_id) . ' </p>';
     $texto = $texto . '<p>Fecha de creacion: ' . $model->fecha . ' </p>';
     $texto = $texto . '</div>';
     $texto = $texto . '</div>';
     /* $mpdf->writeHTML(
                $this->render('create',null ,true)
        );*/
     //Propiedades del header y footer
     //            $mpdf->defaultheaderfontsize=10;
     //            $mpdf->defaultheaderfontstyle='B';
     //            $mpdf->defaultheaderline=0;
     //            $mpdf->defaultfooterfontsize=10;
     //            $mpdf->defaultfooterfontstyle='BI';
     //            $mpdf->defaultfooterline=0;
     //configurando pdf general
     $mpdf = new mPDF('utf-8', 'Letter-L');
     //agregando header y footer
     $mpdf->SetHeader('{DATE j-m-Y}||Recipe #' . $model->id);
     $mpdf->SetFooter('Dr. María Hernández|Ginecologia y obstetricia|{PAGENO}');
     //Propiedades del PDF
     $mpdf->setTitle("Recipe Medico");
     $mpdf->setAuthor("María Hernández");
     $mpdf->setCreator("Edgar Cardona y Gabriela Soto");
     $mpdf->setSubject("Recipe medico para tratamiento de pacientes.");
     $mpdf->setKeywords("Recipe,Medico");
     //escribiendo CSS
     $mpdf->WriteHTML($stylesheet, 1);
     //Escribiendo PDF
     $mpdf->writeHTML($texto, 2);
     //Salida
     $mpdf->output("Recipe Medico", EYiiPdf::OUTPUT_TO_BROWSER);
 }