//
-require_once 'HTML/Image.php';
+require_once 'MECON/HTML/Image.php';
// +X2C includes
require_once 'HTML/Table.php';
'cellPadding' => 0,
'cellSpacing' => 2,
'width' => '100%'));
- $img = new HTML_Image('images/login_candados.gif');
+ $img = new MECON_HTML_Image('images/login_candados.gif');
$int->addRow(array($img->toHTML().'Usuarios',
$img->toHTML().'Usuario:',
'<INPUT maxLength=50 name=usuario size=10>',
$img->toHTML().'ContraseƱa:',
'<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