<?
include("inc/mtopo.php");
?>
<style>
	label.error{
	color:red;
}
</style>
<script>
$(document).ready(function() {
	
	$("#formlogin").validate({	
		rules: {
			login: {required: true},
			password: {required: true}	
		},
		messages: {
			login: {required: " Indique o seu login"},
			password: {required: " Indique a sua password"}	
		}
	});
	
});

</script>

	<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
	<div id="contentor" class="clearfix" data-role="page">
			<div data-role="header">Faça login para aceder à sua revista</div>
			<br>
			<form name="formlogin" id="formlogin" action="mdologin.php" method="post" data-ajax="false">
			<p>
			<label for="login">Login (seu endereço de email)</label><br> 
			<input id="inputlogin" class="border" type="text" name="login">
			</p>
			<br>
			<p>
			<label for="login">Password (nº assinante) </label><br> 
			<input id="passwordlogin" class="border" type="password" name="password">
			</p>
			<p>
			<br>
			<label for="login">Fazer Login automáticamente</label>
			<input id="checklogin" class="border" type="checkbox" name="auto" value="1">
			</p>
			<div id="erroLogin"></div>
			<br>
			<input type="submit" id="btnsubmitlogin" class="botao" value="entrar">
			
		</form>
	</div>

</body>
</html>