mirror of
https://github.com/rmontanana/inventario2.git
synced 2025-08-15 15:35:56 +00:00
resolve #1
-Corregido mensaje de error en Pdf_mysql_table -Los informes de tablas se gestionan ahora en AportaContenido en lugar de en Inventario -El enlace al informe en Mantenimiento incluye en la URL los datos de filtrado y orden -Las definiciones de los informes incluyen variables para el orden y el filtrado -El mantenimiento de usuarios permite buscar usuarios y lo tiene en cuenta para el informe
This commit is contained in:
@@ -124,22 +124,10 @@ class Inventario {
|
||||
// Creamos un objeto Distribución facilitándole el
|
||||
// nombre del archivo plantilla y el objeto que aportará
|
||||
// el contenido
|
||||
$opc = $_GET['opc'];
|
||||
list($opcion, $parametro) = explode("&", $this->opcActual);
|
||||
switch ($opc) {
|
||||
case 'informe':
|
||||
$enlace = 'xml/informe' . ucfirst($opcion) . '.xml';
|
||||
//$enlace="tmp/inventarioUbicacion.xml";
|
||||
$informe = new InformePDF($this->bdd, $enlace, $this->registrado);
|
||||
$informe->crea($enlace);
|
||||
$informe->cierraPDF();
|
||||
$informe->imprimeInforme();
|
||||
return;
|
||||
default:
|
||||
$salida = new Distribucion($this->plant, $this->creaContenido());
|
||||
echo $salida->procesaPlantilla();
|
||||
break;
|
||||
}
|
||||
$salida = new Distribucion($this->plant, $this->creaContenido());
|
||||
echo $salida->procesaPlantilla();
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user