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';
34 require_once 'HTML/Image.php';
37 // +X2C Class 162 :HTML_Noticia
41 class HTML_Noticia extends HTML_Table {
43 * @var noticia $noticia
67 function toHTML() // ~X2C
69 $this->addRow(array('Subtítulo'), array('class' => 'subtitulo'));
73 $nuevo = new HTML_Image('images/nuevo.gif');
74 $img_str = $nuevo->toHTML();
76 $this->addRow(array('Título de la noticia que nos vincula con su texto completo.'.$img_str), array('class' => 'titulo_noticia'));
77 $this->addRow(array('(10/02/03)'),
78 array('class' => 'fecha_noticia'));
79 $mas = new HTML_Image('images/mas.gif');
80 $this->addRow(array($mas->toHTML().'ver más'),
81 array('class' => 'ver_mas'));
82 $this->addRow(array(new HTML_Image('images/linea_puntos.gif')),
83 array('class' => 'ver_mas'));
84 return parent::toHTML();
90 * @param noticia $noticia
95 function HTML_Noticia($noticia) // ~X2C
97 $this->noticia = $noticia;
98 $params = array('width' => '280',
101 parent::HTML_Table($params);
106 // +X2C Operation 175
108 * @param bool $completa
113 function setCompleta($completa) // ~X2C
115 $this->completa = $completa;
119 // +X2C Operation 176
126 function setNuevo($nuevo) // ~X2C
128 $this->nuevo = $nuevo;
132 } // -X2C Class :HTML_Noticia