From: Gonzalo Merayo Date: Tue, 8 Jul 2003 17:21:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: svn_import~240 X-Git-Url: https://git.llucax.com/mecon/intranet.git/commitdiff_plain/3b2afa96baebfb799446a404373da59a542b9383?ds=sidebyside --- diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php index d7dca9b..f6b96f0 100644 --- a/sistema/local_lib/HTML_Noticia.php +++ b/sistema/local_lib/HTML_Noticia.php @@ -76,7 +76,8 @@ class HTML_Noticia extends HTML_Table { $tmp = $this->noticia->getFecha(); $this->addRow(array($tmp->format('Fecha de publicaciĆ³n: %d/%m/%Y')), array('class' => 'ver_mas')); - $this->addRow(array(new HTML_Image('images/blanco.gif')), + $this->addRow(array(new HTML_Image('images/blanco.gif','', + array('height'=>'15', 'width'=>'1', 'border'=>'0'))), array('class' => 'ver_mas')); $tmp = new HTML_Image('images/noticia_anterior.gif'); $this->addRow(array($tmp->toHTML().'volver'), diff --git a/sistema/www/images/noticia_anterior.gif b/sistema/www/images/noticia_anterior.gif new file mode 100644 index 0000000..04989c8 Binary files /dev/null and b/sistema/www/images/noticia_anterior.gif differ diff --git a/sistema/www/images/noticia_linea_azul.gif b/sistema/www/images/noticia_linea_azul.gif new file mode 100644 index 0000000..cdb186c Binary files /dev/null and b/sistema/www/images/noticia_linea_azul.gif differ diff --git a/sistema/www/images/linea_puntos.gif b/sistema/www/images/noticia_linea_puntos.gif similarity index 100% rename from sistema/www/images/linea_puntos.gif rename to sistema/www/images/noticia_linea_puntos.gif diff --git a/sistema/www/images/mas.gif b/sistema/www/images/noticia_mas.gif similarity index 100% rename from sistema/www/images/mas.gif rename to sistema/www/images/noticia_mas.gif diff --git a/sistema/www/images/nuevo.gif b/sistema/www/images/noticia_nuevo.gif similarity index 100% rename from sistema/www/images/nuevo.gif rename to sistema/www/images/noticia_nuevo.gif diff --git a/sistema/www/una_noticia.php b/sistema/www/una_noticia.php new file mode 100644 index 0000000..cb10060 --- /dev/null +++ b/sistema/www/una_noticia.php @@ -0,0 +1,28 @@ + +display(); + $noticias = new HTML_Table(array('width' => '760', 'border' => '0')); + require_once '../local_lib/intranetdb.php'; + require_once 'MECON/HTML/Arbol/ArbolDB.php'; + $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'); + + require_once '../../lib/noticia.php'; + require_once '../local_lib/HTML_Noticia.php'; + $noticia = new HTML_Noticia(new noticia($_GET['numero'])); + $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(); +?> +