X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/ad8d163f67d2ba38439c0e548f3267416af4aa55..c3070ea4067c0b7b9af7b871cd9fd918bed81fab:/sistema/www/servicios/bandas/impresion_banda_agente.php diff --git a/sistema/www/servicios/bandas/impresion_banda_agente.php b/sistema/www/servicios/bandas/impresion_banda_agente.php index c133d6e..b7dbad7 100644 --- a/sistema/www/servicios/bandas/impresion_banda_agente.php +++ b/sistema/www/servicios/bandas/impresion_banda_agente.php @@ -128,8 +128,8 @@ $pagina->addBodyContent($t); $pagina->addBodyContent('
'); -$script = 'window.print();'; -$pagina->addScriptDeclaration($script); +$script = 'javascript:window.print();'; +$pagina->updateAttributes(array('onload'=>$script)); $pagina->display(); ?>