<?
session_start();
//print_r($_SESSION);
$errologin = "";
if($_SESSION['errologin'])
	$errologin = "Login ou password inválidos.";
$_SESSION['errologin'] = 0;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>Login BM</title>
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
	<link rel="STYLESHEET" type="text/css" href="css/login.css">
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.validate.js"></script>
	
	<script type="text/javascript">
	$(document).ready(function(){
		$("#formlogin").validate({
			rules: {
				login: {required: true},
				password: {required: true}
			},
			messages: {
				login: {required: "Insira o seu login."},
				password: {required: "Insira a sua password."}
			}
		});
	});
	</script>
</head>
<body>
	<form id="formlogin" name="dataform" method="post" action="index.php">
		<div class="curved" id="divlogin_fora">
			Admin
			<div class="curved" id="divlogin_dentro">
				<label>Login:</label><input type="text" name="login" class="textbox">
				<label>Password:</label><input type="password" name="password"  class="textbox">
				<input type="hidden" name="anterior" value="<?=$anterior ?>">
				<input type="submit" value="login" class="button" style="margin-left: 168px">
				<span style="color: red; font-weight: bold"><?=$errologin; ?></span>
			</div>
		</div>
	</form>
</body>
</html>

