X-Git-Url: https://git.llucax.com/mecon/intranet.git/blobdiff_plain/f8d2d0db50d7c90d76772cacd1439d44396800ed..650c46e564795b6c6f2aaf697e0f9a348b3011a4:/sistema/local_lib/HTML_Noticia.php?ds=inline diff --git a/sistema/local_lib/HTML_Noticia.php b/sistema/local_lib/HTML_Noticia.php index 52b472d..4e535d2 100644 --- a/sistema/local_lib/HTML_Noticia.php +++ b/sistema/local_lib/HTML_Noticia.php @@ -24,13 +24,14 @@ // | Autor: Gonzalo Merayo | // +--------------------------------------------------------------------+ // -// $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $ +// $Id$ // // +X2C includes require_once 'HTML/Table.php'; +require_once 'MECON/HTML/Link.php'; // ~X2C // +X2C Class 162 :HTML_Noticia @@ -73,6 +74,17 @@ class HTML_Noticia extends HTML_Table { $this->addRow(array($this->noticia->getTitulo()), array('class' => 'noticias_textoazul')); $this->addRow(array($this->noticia->getTitulo2()), array('class' => 'noticias_titulo_vinculos')); $this->addRow(array($this->noticia->getTexto()), array('class' => 'noticias_titulo_noticia')); + foreach($this->noticia->getLinks() as $l) + $this->addRow(array(new MECON_HTML_Link('una_noticia',$l['texto'],$l))); + foreach($this->noticia->getArchivos() as $a) + { + //Cuando se cambie la herramienta hay que usar este otro script + //para obtener los archivos + //$this->addRow(array(new MECON_HTML_Link('attach',$a['texto'],$a))); + $this->addRow(array(new MECON_HTML_Link('http://intranet.mecon.ar/get_file.epl', + $a['texto'], + array('NEWS.FilesForArticle.file_for_article_id' =>$a['numero'])))); + } $tmp = $this->noticia->getFecha(); $this->addRow(array($tmp->format('Fecha de publicaciĆ³n: %d/%m/%Y')), array('class' => 'noticias_ver_mas')); @@ -83,10 +95,6 @@ class HTML_Noticia extends HTML_Table { $this->addRow(array("".$tmp->toHTML(). 'volver'), array('class' => 'noticias_ver_mas')); - foreach($this->noticia->getLinks() as $l) - $this->addRow(array($l)); - foreach($this->noticia->getArchivos() as $a) - $this->addRow(array($a['caption'])); return parent::toHTML(); } else