-<link rel="stylesheet" href="css/noticias.css">
-<body bgcolor="#FFFFFF" class="subtitulo" link="#003366" vlink="#660066" alink="#0066FF" topmargin="0">
<?
- require_once '../local_lib/copete.php';
- $c = new Copete('noticias');
- $c->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 '../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,
'prepend_link' => 'noticias.php?grupo=');
$arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif');
- require_once '../local_lib/HTML_Titulares.php';
- $titulares = new HTML_Titulares(null, 7);
+ $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'));
- $noticias->display();
+
+ $m->addBodyContent($noticias);
+ $m->display();
?>
-</body>