// +X2C includes
require_once 'HTML/Table.php';
+require_once 'MECON/HTML/Link.php';
// ~X2C
// +X2C Class 162 :HTML_Noticia
$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.php',$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'));
$this->addRow(array("<a href='$this->volver' class='noticias_ver_mas'>".$tmp->toHTML().
'volver</a>'),
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