X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/b1898620c4461ff170c6c18f6e68d792ac652125..54970ec49e9cc800d7d431b4ba5158bae780f629:/sistema/www/noticias.php?ds=inline diff --git a/sistema/www/noticias.php b/sistema/www/noticias.php index 08f1635..0ebba56 100644 --- a/sistema/www/noticias.php +++ b/sistema/www/noticias.php @@ -1,17 +1,29 @@ -
- require_once '../local_lib/copete.php'; - $c = new Copete('noticias'); - echo $c->toHTML(); + require_once '../local_lib/HTML_DietMarco.php'; + require_once '../local_lib/intranetdb.php'; + require_once 'MECON/HTML/Arbol/ArbolDB.php'; + require_once '../local_lib/HTML_Titulares.php'; + + $m = new HTML_DietMarco('noticias'); + $m->addTitle('Noticias'); + + $noticias = new HTML_Table(array('width' => '760', 'border' => '0')); + //Esto va a cambiar... + $db = IntranetDB::connect(); + $dbdata = array( + 'db' => $db, + 'tabla' => 'grupo_secciones', + 'id' => 'grupo', + 'nombre' => 'nombre', + 'id_padre' => 'grupo_padre', + 'prepend_link' => 'noticias.php?grupo='); + $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif'); + + $titulares = new HTML_Titulares($_GET['grupo'], 7); + $noticias->addRow(array($arbol,$titulares)); + $noticias->updateCellAttributes(0, 0, array('valign'=>'top', 'width'=>'160')); + $noticias->updateCellAttributes(0, 1, array('width'=>'600')); + + $m->addBodyContent($noticias); + $m->display(); ?> -- include '../../../meconlib/tronco/test/prueba_arbol.php'?> - | -- include 'noticias.htm'?> - | -