[##ET.BODY_INF##]
'; $body_inf = ""; $body_inf .= '

Informe Básico de Jornadas por Empleado

Fecha de Emisión : [##ET.FECHA##]


NOMBRE DEL EMPLEADO :

CÓDIGO TIMBIL EMPLEADO: GRUPO TIMBIL EMPLEADO:

PERÍODO DEL INFORME : TOTAL DIAS VACACIONES ANUALES :

DETALLE DE JORNADAS

[##ET.ROWS_TABLE##]
Referencia Registro_Entrada Registro_Salida Total_Jornada Horas_Extras


Total Horas Período : [##ET.TOTAL_HORAS##]

DETALLE DE PERMISOS

[##ET.ROWS_TABLE_PERMISOS##]
Referencia Solicitud Motivo Estado Fecha Desc. Vacaciones
'; //REEMPLAZO LAS LINEAS D ELA TABLA EN EL HTML------------------------------------------ $html = str_replace("[##ET.BODY_INF##]", $body_inf, $html); //Cargo el html al dompdf---------------------------------------------------------- $dompdf->loadHtml($html); // (Optional) Setup the paper size and orientation--------------------------------- //$dompdf->setPaper('A4', 'landscape'); $dompdf->setPaper('A4', 'portail'); // Render the HTML as PDF---------------------------------------------------------- $dompdf->render(); // Output the generated------------------------------------------------------------ $pdf = $dompdf->output(); file_put_contents("prueba.pdf", $pdf); /* //LIMPIO LOS DOCUMENTOS CON ANTIGUEDAD MAYOR A 5 min------------------------------- $dir = opendir('temporales/'); while($f = readdir($dir)) { if((time()-filemtime('temporales/'.$f) > 300) and !(is_dir('temporales/'.$f))) unlink('temporales/'.$f); } */ ?>