<?php
// vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4:
// +--------------------------------------------------------------------+
-// | Ministerio de Economía |
+// | Ministerio de Econom� |
// | Intranet |
// +--------------------------------------------------------------------+
// | This file is part of Intranet. |
//
-require_once 'HTML/Image.php';
+require_once 'MECON/HTML/Image.php';
// +X2C includes
require_once 'HTML/Table.php';
// +X2C Class 171 :HTML_Login
/**
+ * @package sistema_local_lib
* @access public
*/
class HTML_Login extends HTML_Table {
'cellPadding' => 0,
'cellSpacing' => 2,
'width' => '100%'));
- $img = new HTML_Image('images/login_candados.gif');
+ $img = new MECON_HTML_Image('images/login_candados.gif');
+ $img2 = new MECON_HTML_Image('images/login_flechita.gif');
$int->addRow(array($img->toHTML().'Usuarios',
- $img->toHTML().'Usuario:',
+ $img2->toHTML().'Usuario:',
'<INPUT maxLength=50 name=usuario size=10>',
- $img->toHTML().'Contraseña:',
+ $img2->toHTML().'Contrasea:',
'<INPUT maxLength=50 name=password size=10 type=password>'.
- '<INPUT value="'.$_GET['redirect'].'" name=redirect type=hidden>',
+ '<INPUT value="'.@$_GET['redirect'].@$_POST['redirect'].'" name=redirect type=hidden>',
'<INPUT name = Submit type=submit value=Enviar>'));
$int->updateColAttributes(0, array('class' => 'titulo_tabla',
'bgColor' => '#003366'));
$int->updateColAttributes(1, array('class' => 'titulo'));
$int->updateColAttributes(3, array('class' => 'titulo'));
+ if(isset($this->login_incorrecto) && $this->login_incorrecto == true)
+ {
+ $login_incorrecto = new MECON_HTML_Image('images/login_incorrecto.gif');
+ $login_incorrecto = '<div align=left>'.$login_incorrecto->toHTML().'</div>';
+ }else $login_incorrecto='';
$this->addRow(array($int));
- return '<FORM ACTION = "login.php" METHOD = "POST">'.parent::toHTML().'</FORM>';
+ return $login_incorrecto.'<FORM ACTION = "login.php" METHOD = "POST">'.parent::toHTML().'</FORM>';
}
// -X2C
} // -X2C Class :HTML_Login
-?>
+?>
\ No newline at end of file