    <?php
    $pdf = Yii::createComponent('application.extensions.MPDF52.mpdf');
    $html='
    <link rel="stylesheet" type="text/css" href="'.Yii::app()->request->baseUrl.'/css/pdf.css" />
    <table id="yw0" class="detail-view2" border="2">
          <tr class="principal">
                <td colspan="2" align="center"><b>DATOS DEL MONTE PIO</b></td>
          <tr>
          <tr class="odd"><td> <b>Cedula</b> </td> <td> '.$model->trabajador->cedula.'</td></tr>
          <tr class="even"><td> <b>Nombre Trabajador</b> </td><td> '.$model->trabajador->nombre.'</td></tr>
          <tr class="odd"><td> <b>Apellido Trabajador</b> </td><td> '.$model->trabajador->apellidos.'</td></tr>
          <tr class="even"><td> <b>Cedula difunto</b> </td><td> '.$model->cedula.'</td></tr>          
          <tr class="even"><td> <b>Nombre difunto</b> </td><td> '.$model->nombre.'</td></tr>
          <tr class="even"><td> <b>Apellido difunto</b> </td><td> '.$model->apellido.'</td></tr>
          <tr class="even"><td> <b>Fecha del suceso</b> </td><td> '.$model->fecha_siniestro.'</td></tr>
          <tr class="even"><td> <b>Parentesco difunto</b> </td><td> '.$model->parent->descripcion.'</td
          <tr class="even"><td> <b>Fecha Solicitud</b> </td><td> '.$model->fecharegistro.'</td></tr>
    </table>';
    $header=$header.'<img align="center" src="'.Yii::app()->request->baseUrl.'/images/cattpi_banner.png" />';
    $mpdf=new mPDF('win-1252','LETTER','','',15,15,50,12,5,7);
     // $mpdf=new mPDF('win-1252','LETTER','','',15,15,25,12,5,7);
    $mpdf->SetHTMLHeader($header);
    $mpdf->SetFooter(' {DATE j/m/Y} enviar a mutuoauxilio@cattpi.com.ve |CATTPI');
    $mpdf->WriteHTML($html);
    $mpdf->Output('Ficha-MONTEPIO-'.$model->idsolicitud.'.pdf','D');
    exit;
    ?>


