public static function imprimirEquipos() { $seleccionar = IntegrantesController::consultaGetTodosIntegrantes(); $cuerpoTabla = ''; $i = 0; $fecha = PdfController::getFecha(); foreach ($seleccionar as $value) { $i = $i + 1; $resNombre = $value['resNombre']; $intNombre = $value['intNombre']; $intNCompleto = $value['intNombreCompleto']; $intCorreo = $value['intCorreo']; $cuerpoTabla = $cuerpoTabla . '<tr> <td width="3%" > <div align="center"> <CODE style="font-size: 80%;">' . $i . '</code> </div> </td> <td> <div align="center"> <CODE>' . $resNombre . '</code> </div> </td> <td> <div align="center"> <CODE>' . $intNombre . '</code> </div> </td> <td> <div align="center"> <CODE>' . $intNCompleto . '</code> </div> </td> <td> <div align="center"> <CODE>' . $intCorreo . '</code> </div> </td> </tr>'; } $html = '<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><body>' . '<h5 align="right">Sistema de Noticias </h5><h5 align="right">Vázquez Hernández Contadores, S.C.</h5>' . '<h3 align="center">Integración de equipos</h3>' . '<table cellspacing="0" border="1" align="left" width="450" > <tbody > <tr> <td width="3%" > <div align="center"> </div> </td> <td width="10%" > <div align="center"> <h5><strong>Representante</strong> </h5> </div> </td> <td width="30%" colspan=2> <div align="center"> <h5><strong>Nombre</strong> </h5> </div> </td> <td width="30%"> <div align="center"> <h5><strong>Correo</strong> </h5> </div> </td> </tr>' . $cuerpoTabla . '</tbody </table>' . '</body></html>'; return PDF::load($html, 'letter', 'portrait')->show(); }