X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/11b81d2f79bfd131d04ac0c91c51175a4d89cd4d..8d11319a99d9d2a48a73a0ae402e3b32745cf04b:/sistema/www/una_noticia.php diff --git a/sistema/www/una_noticia.php b/sistema/www/una_noticia.php index 30346be..cc07361 100644 --- a/sistema/www/una_noticia.php +++ b/sistema/www/una_noticia.php @@ -1,11 +1,13 @@ - display(); - $noticias = new HTML_Table(array('width' => '760', 'border' => '0')); + require_once '../local_lib/HTML_DietMarco.php'; require_once '../local_lib/intranetdb.php'; - require_once 'MECON/HTML/Arbol/ArbolDB.php'; + require_once 'MECON/HTML/ArbolDB.php'; + require_once '../../lib/noticia.php'; + require_once '../local_lib/HTML_Noticia.php'; + + $m = new HTML_DietMarco('noticias', 'Noticias'); + $noticias = new HTML_Table(array('width' => '760', 'border' => '0')); + $db = IntranetDB::connect(); $dbdata = array( 'db' => $db, @@ -13,16 +15,19 @@ 'id' => 'grupo', 'nombre' => 'nombre', 'id_padre' => 'grupo_padre', + 'order' => '', 'prepend_link' => 'noticias.php?grupo='); - $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); + $arbol = new MECON_HTML_ArbolDB($dbdata, 'NOTICIAS'); - require_once '../../lib/noticia.php'; - require_once '../local_lib/HTML_Noticia.php'; $noticia = new HTML_Noticia(new noticia($_GET['numero'])); + $noticia->setVolver('noticias.php'); $noticia->setCompleta(true); $noticias->addRow(array($arbol,$noticia)); + $m->addStyleSheet($arbol->getCSS()); + $m->addStyleSheet($noticia->getCSS()); $noticias->updateCellAttributes(0, 0, array('valign'=>'top')); $noticias->updateCellAttributes(0, 1, array('valign'=>'top')); - $noticias->display(); + $m->addBodyContent($noticias); + $m->display(); ?>