2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de Econom� |
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 10 15:14:06 2003 |
24 // | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
25 // +--------------------------------------------------------------------+
27 // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
30 require_once 'MECON/HTML/Image.php';
34 require_once 'HTML/Table.php';
37 // +X2C Class 162 :HTML_Copete
41 class HTML_Copete extends HTML_Table {
63 function HTML_Copete($seccion) // ~X2C
65 $this->seccion = $seccion;
74 function getCSS() // ~X2C
76 return PATH_RAIZ."css/copete.css";
85 function toHTML() // ~X2C
87 $mapa = '<map name="intranet"
88 ><area shape="rect" coords="686,17,710,41"
89 alt="E-mail" title="E-mail"
90 href="mailto:intranet2@mecon.gov.ar"
91 ><area shape="rect" coords="645,17,669,41"
92 href="https://ldapmaster.mecon.ar/bbng/servlet/ServletDispatcher?hans=gui.FormPassUsr"
93 alt="Cambio de Clave" title="Cambio de Clave" target="_blank"';
94 if(isset($_SESSION['usuario']))
95 $mapa .= '><area shape="rect" coords="726,17,750,41" alt="Logout"
96 title="Logout" href="'.PATH_RAIZ.'logout.php"';
97 $mapa .= '><area shape="rect" coords="472,17,562,44"
98 href="'.PATH_RAIZ.'sistemas.php" alt="Sistemas"
100 ><area shape="rect" coords="366,17,456,44"
101 href="'.PATH_RAIZ.'servicios.php" alt="Servicios"
103 ><area shape="rect" coords="258,17,348,44"
104 href="'.PATH_RAIZ.'noticias.php"
105 alt="Noticias" title="Noticias"
109 parent::HTML_Table(array('width' => '760',
111 'cellspacing' => '0',
112 'cellpadding' => '0'));
114 $anchos = array('12', '25', '712', '11');
116 foreach($anchos as $a)
117 $fila[] = '<img src="'.PATH_RAIZ.'images/blanco.gif" width="'.$a.'" height="1">';
118 $this->addRow($fila);
120 if(isset($_SESSION['usuario']))
121 $img_seccion = 'images/copete_'.$this->seccion.'_logout.jpg';
123 $img_seccion = 'images/copete_'.$this->seccion.'.jpg';
124 $this->addRow(array('<img src="'.PATH_RAIZ.$img_seccion.'" width="760" height="66" border="0" usemap="#intranet">'.$mapa), array('colspan' => '4'));
127 $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_inicio.gif',
129 array('height' => '30',
131 $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_flecha_azul.gif',
133 array('height' => '30',
136 switch($this->seccion)
138 case 'noticias': $fila[] = 'Enlaces útiles:
139 <a href="http://www.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
140 Ministerio de Economía y Producción
143 <a href="http://boletinoficial.mecon.ar/" target="_blank" class="copete_TextBlue">
144 Boletín Oficial
147 <a href="http://infoleg.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
151 <a href="http://cdi.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
155 case 'servicios': $fila[] = '<span class="copete_titulo_uno">Servicios</span>';
157 case 'sistemas': $fila[] = '<span class="copete_titulo_uno">Sistemas</span>';
161 $fila[] = $this->titulo;
162 $fila[] = new MECON_HTML_Image(PATH_RAIZ.'images/copete_fin.gif',
164 array('height' => '30',
166 $this->addRow($fila, array('class' => 'copete_titulo_vinculos'));
168 for($n = 0; $n < 4; $n++)
169 $this->updateCellAttributes(1, $n, array('width'=>$anchos[$n]));
170 return parent::toHTML();
174 // +X2C Operation 176
176 * @param int $contenido
181 function setTitulo($contenido) // ~X2C
183 $this->titulo = $contenido;
187 } // -X2C Class :HTML_Copete