X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/d8aeb8ffe3848255f492b10883b57a0ff24cc773..ba466154033d54821e07ab851bccc42e8e344fe9:/sistema/www/servicios/novedades/detalle.php diff --git a/sistema/www/servicios/novedades/detalle.php b/sistema/www/servicios/novedades/detalle.php index 4b35f6a..33d5cf8 100644 --- a/sistema/www/servicios/novedades/detalle.php +++ b/sistema/www/servicios/novedades/detalle.php @@ -8,15 +8,8 @@ Myrna Degano require_once 'HTML/Page.php'; require_once 'MECON/HTML/Tabla.php'; -require_once 'DB.php'; require_once 'BandasNovedades/Agente.php'; -//Conexión a la BD -$dbh = DB::connect("mysql://intranet:intranet@intranet-db/novedades", true); -if (DB::isError($dbh)) { - die ($dbh->getMessage()); -} - $PAGE =& new HTML_Page(array ('doctype' => 'HTML 4.01 Transitional', 'charset' => 'iso-8859-1', 'lineend' => 'unix', @@ -25,7 +18,7 @@ $PAGE =& new HTML_Page(array ('doctype' => 'HTML 4.01 Transitional', 'simple' => 'true')); -$agente =& new BandasNovedades_Agente($dbh, $_GET['nrodoc']); +$agente =& new BandasNovedades_Agente($DB, $_GET['nrodoc']); $novedad = $agente->obtenerDetalle ($_GET['anio'], $_GET['codnov']); @@ -39,7 +32,7 @@ $TABLA->addRow(array('Total A $PAGE->addStyleSheet($TABLA->getCss()); $PAGE->addBodyContent($TABLA); -$PAGE->setTitle('Novedades de Personal'); +$PAGE->setTitle('Intranet'); $PAGE->display();