-<body bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">
<?
- require_once '../local_lib/copete.php';
- $c = new Copete('noticias');
- echo $c->toHTML();
-?>
-<table width='760' border='0'>
- <tr>
- <td width='160' valign='top'>
- <?
- require_once '../local_lib/intranetdb.php';
- require_once 'MECON/HTML/Arbol/ArbolDB.php';
- $db = IntranetDB::connect();
- $dbdata = array(
+ 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');
- echo $arbol->toHTML();
- ?>
- </td>
- <td width='600'>
- <?
- require_once '../../lib/noticia.php';
- require_once '../local_lib/HTML_Noticia.php';
-
- $not = new HTML_Noticia(1);
- $not->setNuevo(true);
- $ht = new HTML_Table(array('width'=>'600', 'border'=>'0', 'cellspacing'=>'0'));
- $ht->addRow(array($not, $not));
- $ht->addRow(array($not, $not));
- $ht->addRow(array($not, $not));
- $ht->display();
- ?>
- </td>
- </tr>
-</table>
-</body>
+ $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();
+?>