2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de Economía |
6 // +--------------------------------------------------------------------+
7 // | This file is part of Intranet. |
9 // | Intranet is free software; you can redistribute it and/or modify |
10 // | it under the terms of the GNU General Public License as published |
11 // | by the Free Software Foundation; either version 2 of the License, |
12 // | or (at your option) any later version. |
14 // | Intranet is distributed in the hope that it will be useful, but |
15 // | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 // | General Public License for more details. |
19 // | You should have received a copy of the GNU General Public License |
20 // | along with Hooks; if not, write to the Free Software Foundation, |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 // +--------------------------------------------------------------------+
23 // | Creado: Thu Jul 3 14:43:38 2003 |
24 // | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
25 // +--------------------------------------------------------------------+
27 // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
33 require_once 'HTML/Table.php';
36 // +X2C Class 162 :HTML_Noticia
40 class HTML_Noticia extends HTML_Table {
42 * @var noticia $noticia
66 function toHTML() // ~X2C
70 $this->addRow(array('El Nombre de la Seccion'), array('class' => 'titulo_uno'));
71 $this->addRow(array(new HTML_Image('images/noticia_linea_azul.gif')),
72 array('class' => 'ver_mas'));
73 $this->addRow(array($this->noticia->getTitulo()), array('class' => 'textoazul'));
74 $this->addRow(array($this->noticia->getTitulo2()), array('class' => 'titulo_vinculos'));
75 $this->addRow(array($this->noticia->getTexto()), array('class' => 'titulo_noticia'));
76 $tmp = $this->noticia->getFecha();
77 $this->addRow(array($tmp->format('Fecha de publicación: %d/%m/%Y')),
78 array('class' => 'ver_mas'));
79 $this->addRow(array(new HTML_Image('images/blanco.gif')),
80 array('class' => 'ver_mas'));
81 $tmp = new HTML_Image('images/noticia_anterior.gif');
82 $this->addRow(array($tmp->toHTML().'volver'),
83 array('class' => 'ver_mas'));
87 $this->addRow(array($this->noticia->getTitulo()),
88 array('class' => 'subtitulo'));
92 $nuevo = new HTML_Image('images/noticia_nuevo.gif');
93 $img_str = $nuevo->toHTML();
95 $this->addRow(array($this->noticia->getTitulo2().$img_str), array('class' => 'titulo_noticia'));
96 $tmp = $this->noticia->getFecha();
97 $this->addRow(array($tmp->format('(%d/%m/%Y)')),
98 array('class' => 'fecha_noticia'));
99 $mas = new HTML_Image('images/noticia_mas.gif');
100 $this->addRow(array($mas->toHTML().'ver más'),
101 array('class' => 'ver_mas'));
102 $this->addRow(array(new HTML_Image('images/noticia_linea_puntos.gif')),
103 array('class' => 'ver_mas'));
105 return parent::toHTML();
109 // +X2C Operation 167
111 * @param noticia $noticia
116 function HTML_Noticia($noticia) // ~X2C
118 $this->noticia = $noticia;
119 $params = array('width' => '280',
122 parent::HTML_Table($params);
127 // +X2C Operation 175
129 * @param bool $completa
134 function setCompleta($completa) // ~X2C
136 $this->completa = $completa;
140 // +X2C Operation 176
147 function setNuevo($nuevo) // ~X2C
149 $this->nuevo = $nuevo;
153 } // -X2C Class :HTML_Noticia