Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent/login.jsp
blob: ea908a1f5d43367acf21a1a615d33145282ae267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!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>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Login</title>
	<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/ejercitar-base.css" />
	<script src="lib/jquery-1.11.0.min.js"></script>
	<script src="lib/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			var msg = $('#e-msg-error');
			if(msg.html() === 'null') {
				$('#e-msg-error-cnt').hide();
			}
		});
	</script>
	<style type="text/css">
		.center {
			position: absolute;
			top: 50%;
			left: 50%;
			width: 400px;
			margin-left: -200px;
			margin-top: -150px;
		}

		.alert {
			margin-bottom: 0px;
		}

		.input-group {
			margin-bottom: 5px;
		}
	</style>
</head>
<body>
	<div class="container">
		<div class="center well">
			<div class="alert alert-danger" id="e-msg-error-cnt">
				<a class="close" data-dismiss="alert" href="#">x</a><div id="e-msg-error"><%= request.getAttribute("error") %></div>
			</div>
			<form class="e-form" action="LogInServlet" method="post" role="form">
				<div class="input-group">
					<span class="input-group-addon"><i class="e-icon-user"></i></span>
					<input type="text" name="usuario" class="form-control" placeholder="Usuario" required autofocus/>
				</div>
				<div class="input-group">
					<span class="input-group-addon"><i class="e-icon-password"></i></span>
					<input type="password" name="password"  class="form-control" placeholder="Password" required/>
				</div>
				<button class="btn btn-lg btn-primary btn-block" type="submit" name="submit">Aceptar</button>
				<button class="btn btn-lg btn-success btn-block" type="button" onclick="location.href='/EjercitarWeb/NuevoProfesorServlet';">Crear Cuenta</button>
			</form>
		</div>
	</div>
</body>
</html>