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: Mon Aug 4 17:33:07 2003 |
24 // | Autor: Gonzalo Merayo <gmeray@mecon.gov.ar> |
25 // +--------------------------------------------------------------------+
27 // $Id: xmi2code.tpl.php 1 2003-06-23 18:29:20Z gmeray $
31 require_once 'HTML/Image.php';
34 require_once 'HTML/Table.php';
37 // +X2C Class 171 :HTML_Login
41 class HTML_Login extends HTML_Table {
49 function HTML_Login() // ~X2C
51 parent::HTML_Table(array('bgColor' => '#FFFFFF',
53 'borderColor' => '#003060',
65 function getCSS() // ~X2C
67 return "css/login.css";
76 function toHTML() // ~X2C
78 $int = new HTML_Table(array('border' => 0,
82 $img = new HTML_Image('images/login_candados.gif');
83 $int->addRow(array($img->toHTML().'Usuarios',
84 $img->toHTML().'Usuario:',
85 '<INPUT maxLength=50 name=usuario size=10>',
86 $img->toHTML().'Contraseña:',
87 '<INPUT maxLength=50 name=password size=10 type=password>'.
88 '<INPUT value="'.$_GET['redirect'].'" name=redirect type=hidden>',
89 '<INPUT name = Submit type=submit value=Enviar>'));
90 $int->updateColAttributes(0, array('class' => 'titulo_tabla',
91 'bgColor' => '#003366'));
92 $int->updateColAttributes(1, array('class' => 'titulo'));
93 $int->updateColAttributes(3, array('class' => 'titulo'));
94 $this->addRow(array($int));
95 return '<FORM ACTION = "login.php" METHOD = "POST">'.parent::toHTML().'</FORM>';
99 } // -X2C Class :HTML_Login