-<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 '../../lib/noticia.php';
+ require_once '../local_lib/HTML_Noticia.php';
+
+ $m = new HTML_DietMarco('noticias');
+ $noticias = new HTML_Table(array('width' => '760', 'border' => '0'));
+
$db = IntranetDB::connect();
$dbdata = array(
'db' => $db,
'nombre' => 'nombre',
'id_padre' => 'grupo_padre',
'prepend_link' => 'noticias.php?grupo=');
- $arbol = new HTML_ArbolDB($dbdata, '/MECON/images/arbol_noticias.gif');
+ $arbol = new 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));
- $noticias->updateCellAttributes(0, 0, array('valign'=>'top', 'width'=>'160'));
- $noticias->updateCellAttributes(0, 1, array('valign'=>'top', 'width'=>'160'));
- $noticias->display();
+ $m->addStyleSheet($arbol->getCSS());
+ $m->addStyleSheet($noticia->getCSS());
+ $noticias->updateCellAttributes(0, 0, array('valign'=>'top'));
+ $noticias->updateCellAttributes(0, 1, array('valign'=>'top'));
+ $m->addBodyContent($noticias);
+ $m->display();
?>
</body>