X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/e54c0e22cd808855fdc1171d1bc70d00175e1ad0..83cf0a600579a4b59b7458f42eacf92eb75ba5b5:/sistema/local_lib/HTML_Noticia.php diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php index ad25c41..bbbf200 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'), @@ -130,4 +130,4 @@ class HTML_Noticia extends HTML_Table { // -X2C } // -X2C Class :HTML_Noticia -?> +?> \ No newline at end of file