Viewing file: index1.php (2.09 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?PHP
include('config.php');
if ($_POST['submit'])
{
if($login->login($_POST['usn'], $_POST['pwd']))
{
header('location: admin.php');
}
else
{
echo "<script language='JavaScript' type='text/javascript'>
alert('Usuario o Constraseņa invalida')
window.location.href='index.php';
</script>";
}
}
if (!$login->logged()) : ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Login</title>
<style type="text/css">
body {
background-color:#7CC61A;
font-size:120%;
}
div.wrap {
height:100%
width:100%
}
h3 {
color:#ff00c0; font-size:22px;
}
.textbox_outer {
padding-top: 43px; padding-left:150px;
}
.box_wrapper {
background-image:url(images/bg.jpg); background-position:center; background-repeat:no-repeat;
width:600px; height:360px; margin:auto; margin-top: 70px;
}
input {
font-family: "Lucida Grande",Verdana,sans-serif;
font-size:18px;
border: 1px solid #999999;
}
input.textboxes {
width:270px;
background-color:#7CC61A;
}
input.btn {
color:#7CC61A;
border: 1px solid #999999;
}
div.labels {
width:100px;
color:#ff00c0;
}
.Estilo1 {color: #7CC61A}
.Estilo3 {color: #7CC61A; font-weight: bold; }
</style>
</head>
<body>
<div class="wrap">
<div class="box_wrapper">
<div class="textbox_outer">
<h3 class="Estilo1">Ingreso</h3>
<div class="labels">
<label for="name"><span class="Estilo3">Usuario:</span></label>
</div>
<form action="" method="POST">
<input name="usn" type="text" class="textboxes" id="name" value="" />
<div class="labels">
<label for="e-mail"><span class="Estilo3">Password:</span></label>
</div>
<input name="pwd" type="password" class="textboxes" id="e-mail" value="" />
<p class="submit"><input class="btn" type="submit" name="submit" value="Login" />
</form>
<?PHP
else:
header('location: admin.php');
endif;
?>
</p>
</div>
</div>
</div>
</body>
</html>
|