]> git.llucax.com Git - mecon/intranet.git/blob - sistema/local_lib/HTML_Copete.php
80becd7026401983f303366eeb5796a8f96d3c2f
[mecon/intranet.git] / sistema / local_lib / HTML_Copete.php
1 <?php
2 // vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // |                      Ministerio de Economía                        |
5 // |                             Intranet                              |
6 // +--------------------------------------------------------------------+
7 // | This file is part of Intranet.                                    |
8 // |                                                                    |
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.                             |
13 // |                                                                    |
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.                           |
18 // |                                                                    |
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 // +--------------------------------------------------------------------+
26 //
27 // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
28 //
29
30
31
32 // +X2C includes
33 require_once 'HTML/Table.php';
34 // ~X2C
35
36 // +X2C Class 162 :HTML_Copete
37 /**
38  * @access public
39  */
40 class HTML_Copete extends HTML_Table {
41     // ~X2C
42
43     // +X2C Operation 163
44     /**
45      * @param  int $seccion 
46      *
47      * @return void
48      * @access public
49      */
50     function HTML_Copete($seccion) // ~X2C
51     {
52     $mapa = '<map name="intranet"
53                ><area shape="rect" coords="14,0,209,54"
54                       href="#" alt="Intranet" title="Intranet"
55                ><area shape="rect" coords="605,17,629,41"
56                       alt="E-mail" title="E-mail"
57                       href="mailto:intranet2@mecon.gov.ar"
58                ><area shape="rect" coords="645,17,669,41"
59                       href="https://ldapmaster.mecon.ar/bbng/servlet/ServletDispatcher?hans=gui.FormPassUsr"
60                       alt="Cambio de Clave" title="Cambio de Clave"
61                ><area shape="rect" coords="685,17,709,41" href="#"
62                       alt="Ayuda" title="Ayuda"
63                ><area shape="rect" coords="726,17,750,41" alt="Logout"
64                       title="Logout" href="'.PATH_RAIZ.'logout.php"
65                ><area shape="poly" coords="473,19,473,43,475,45,561,45,563,43,563,19,561,17,475,17,473,19,473,19"
66                       href="'.PATH_RAIZ.'sistemas.php" alt="Sistemas"
67                       title="Sistemas" 
68                ><area shape="poly" coords="366,19,366,43,368,45,454,45,456,43,456,19,454,17,368,17,366,19,366,19"
69                       href="'.PATH_RAIZ.'servicios.php" alt="Servicios"
70                       title="Servicios"
71                ><area shape="poly" coords="258,20,258,44,260,46,346,46,348,44,348,20,346,18,260,18,258,20,258,20"
72                       href="'.PATH_RAIZ.'noticias.php"
73                       alt="Noticias" title="Noticias"
74              ></map>';
75
76
77 parent::HTML_Table(array('width'  => '760',
78                              'border' => '0',
79                              'cellspacing' => '0',
80                              'cellpadding' => '0'));
81     $anchos = array('12', '25', '712', '11');
82     $fila = array();
83     foreach($anchos as $a)
84       $fila[] = '<img src="'.PATH_RAIZ.'images/blanco.gif" width="'.$a.'" height="1">';
85     $this->addRow($fila);
86     $img_seccion = 'images/copete_'.$seccion.'.jpg';
87     $this->addRow(array('<img src="'.PATH_RAIZ.$img_seccion.'" width="760" height="66" border="0" usemap="#intranet">'.$mapa), array('colspan' => '4'));
88     $fila = array();
89     $fila[] = '<img src="'.PATH_RAIZ.'images/copete_inicio.gif" height="30" border="0">';
90     $fila[] = '<img src="'.PATH_RAIZ.'images/copete_flecha_azul.gif" height="30" border="0">';
91     switch($seccion)
92     {
93       case 'noticias': $fila[] = 'Enlaces &uacute;tiles:
94          <a href="http://www.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
95            Ministerio de Econom&iacute;a y Producci&oacute;n
96          </a>
97          -
98          <a href="http://boletinoficial.mecon.ar/" target="_blank" class="copete_TextBlue">
99            Bolet&iacute;n Oficial
100          </a>
101          -
102          <a href="http://infoleg.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
103            INFOLEG
104          </a> 
105          -
106          <a href="http://cdi.mecon.gov.ar/" target="_blank" class="copete_TextBlue">
107            CDI
108          </a>';
109              break;
110      case 'servicios': $fila[] = '<span class="copete_titulo_uno">Servicios</span>';
111              break;
112      case 'sistemas': $fila[] = '<span class="copete_titulo_uno">Sistemas</span>';
113              break;
114     }
115     $fila[] = '<img src="'.PATH_RAIZ.'images/copete_fin.gif" height="30" border="0">';
116     $this->addRow($fila, array('class' => 'copete_titulo_vinculos'));
117     {
118       for($n = 0; $n < 4; $n++)
119         $this->updateCellAttributes(1, $n, array('width'=>$anchos[$n]));
120     }
121     }
122     // -X2C
123
124     // +X2C Operation 169
125     /**
126      * @return void
127      * @access public
128      */
129     function getCSS() // ~X2C
130     {
131         return PATH_RAIZ."css/copete.css";
132     }
133     // -X2C
134
135 } // -X2C Class :HTML_Copete
136 ?>