示例#1
0
require_once "../includes.php";
require_once "consulta_reporte.php";
$estilo = "";
if ($_REQUEST["tipo"] == 2) {
    header("Content-Type: application/vnd.ms-excel");
    header("Content-Disposition: attachment; filename=Reporte_Busqueda.xls");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
} else {
    require '../libs/html2pdf/html2fpdf.php';
    ob_start();
    $estilo = "font-size:8px;";
}
$usuario = new Usuario($_SESSION['session'][0]);
$reporte = new Reporte();
$historial = $reporte->consultaAvanzada();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Reporte de Busqueda</title>
<style type="text/css">
.cabecera_documento {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: bold;
	text-transform: capitalize;
	color: #FFFFFF;
	background-color: #2873AA;