echo $salida; } } //---------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------- include "../common/get_post.php"; //foreach ($arrHttp as $var=>$value) echo "**$var=$value<br>"; include "../common/header.php"; echo "\r\n<body>\r\n<div class=\"sectionInfo\">\r\n\t<div class=\"breadcrumb\">" . $msgstr["cnv_export"] . " " . $msgstr["cnv_" . $arrHttp["tipo"]] . "\r\n\t</div>\r\n\t<div class=\"actions\">"; if ($arrHttp["Accion"] != "P") { echo "<a href=\"administrar.php?base=" . $arrHttp["base"] . "\" class=\"defaultButton backButton\">\r\n\t<img src=\"../images/defaultButton_iconBorder.gif\" alt=\"\" title=\"\" />\r\n\t\t<span><strong>" . $msgstr["regresar"] . "</strong></span></a>"; } ?> </div> <div class="spacer"> </div> </div> <div class="middle form"> <div class="formContent"> <?php if (isset($arrHttp["cnv"]) and trim($arrHttp["cnv"]) != "") { $Pft = LeerTablaCnv(); } else { $Pft = ""; } $data = Exportar($Pft); if ($arrHttp["Accion"] == "S") { GuardarArchivo($data); } echo "</div></div>"; include "../common/footer.php";
$generar = "ok"; } if ($generar == "ok") { if ($genDetalle == 1) { $queryE = $queryEDetalle; } if ($genTodosDetalle == 1) { $queryE = $queryETodosDetalle; } $rsE = $db->conn->Execute($queryE); if ($tipoEstadistica == 1) { include "tablaHtml2.php"; } else { include "tablaHtml.php"; } Exportar($ruta_raiz, $queryE, $titulo); } function Exportar($ruta_raiz, $queryE, $titulo) { ?> <table align="center" class="borde_tab" ><tr> <td align="center"> <?php $xsql = serialize($queryE); // SERIALIZO EL QUERY CON EL QUE SE QUIERE GENERAR EL REPORTE $_SESSION['xheader'] = "<center><b>{$titulo}</b></center><br><br>"; // ENCABEZADO DEL REPORTE $_SESSION['xsql'] = $xsql; // SUBO A SESION EL QUERY// CREO LOS LINKS PARA LOS REPORTES echo "<b><a href='{$ruta_raiz}/adodb/adodb-doc.inc.php' target='_blank'><img src='{$ruta_raiz}/adodb/compfile.png' width='40' heigth='40' border='0'></a></b> - "; //