X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/e54c0e22cd808855fdc1171d1bc70d00175e1ad0..f5f3a1c3c7197cc0baa49fc15f96a27054c49f64:/sistema/local_lib/HTML_Noticia.php diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php index ad25c41..7477fe9 100644 --- a/sistema/local_lib/HTML_Noticia.php +++ b/sistema/local_lib/HTML_Noticia.php @@ -31,7 +31,6 @@ // +X2C includes require_once 'HTML/Table.php'; -require_once 'HTML/Image.php'; // ~X2C // +X2C Class 162 :HTML_Noticia @@ -66,15 +65,16 @@ class HTML_Noticia extends HTML_Table { */ function toHTML() // ~X2C { - $this->addRow(array('Subtítulo'), array('class' => 'subtitulo')); + $this->addRow(array($this->noticia->getTitulo2()), array('class' => 'subtitulo')); $img_str = null; if($this->nuevo) { $nuevo = new HTML_Image('images/nuevo.gif'); $img_str = $nuevo->toHTML(); } - $this->addRow(array('Título de la noticia que nos vincula con su texto completo.'.$img_str), array('class' => 'titulo_noticia')); - $this->addRow(array('(10/02/03)'), + $this->addRow(array($this->noticia->getTitulo().$img_str), array('class' => 'titulo_noticia')); + $tmp = $this->noticia->getFecha(); + $this->addRow(array($tmp->format('(%d/%m/%Y)')), array('class' => 'fecha_noticia')); $mas = new HTML_Image('images/mas.gif'); $this->addRow(array($mas->toHTML().'ver más'),