-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.php
More file actions
120 lines (108 loc) · 5.23 KB
/
index.php
File metadata and controls
120 lines (108 loc) · 5.23 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
require_once("config/conexion.php");
if(isset($_POST["enviar"]) and $_POST["enviar"]=="si"){
require_once("models/Usuario.php");
$usuario = new Usuario();
$usuario->login();
}
?>
<!DOCTYPE html>
<html>
<head lang="es">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>AnderCode</>::Acceso</title>
<link href="img/favicon.144x144.png" rel="apple-touch-icon" type="image/png" sizes="144x144">
<link href="img/favicon.114x114.png" rel="apple-touch-icon" type="image/png" sizes="114x114">
<link href="img/favicon.72x72.png" rel="apple-touch-icon" type="image/png" sizes="72x72">
<link href="img/favicon.57x57.png" rel="apple-touch-icon" type="image/png">
<link href="img/favicon.png" rel="icon" type="image/png">
<link href="img/favicon.ico" rel="shortcut icon">
<link rel="stylesheet" href="public/css/separate/pages/login.min.css">
<link rel="stylesheet" href="public/css/lib/font-awesome/font-awesome.min.css">
<link rel="stylesheet" href="public/css/lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="public/css/main.css">
</head>
<body>
<div class="page-center">
<div class="page-center-in">
<div class="container-fluid">
<form class="sign-box" action="" method="post" id="login_form">
<input type="hidden" id="rol_id" name="rol_id" value="1">
<div class="sign-avatar">
<img src="public/1.jpg" alt="" id="imgtipo">
</div>
<header class="sign-title" id="lbltitulo">Acceso Usuario</header>
<?php
if (isset($_GET["m"])){
switch($_GET["m"]){
case "1";
?>
<div class="alert alert-warning alert-icon alert-close alert-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<i class="font-icon font-icon-warning"></i>
El Usuario y/o Contraseña son incorrectos.
</div>
<?php
break;
case "2";
?>
<div class="alert alert-warning alert-icon alert-close alert-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<i class="font-icon font-icon-warning"></i>
Los campos estan vacios.
</div>
<?php
break;
}
}
?>
<div class="form-group">
<input type="text" id="usu_correo" name="usu_correo" class="form-control" placeholder="E-Mail"/>
</div>
<div class="form-group">
<input type="password" id="usu_pass" name="usu_pass" class="form-control" placeholder="Password"/>
</div>
<div class="form-group">
<div class="float-right reset">
<a href="reset-password.html">Cambiar Contraseña</a>
</div>
<div class="float-left reset">
<a href="#" id="btnsoporte">Acceso Soporte</a>
</div>
</div>
<input type="hidden" name="enviar" class="form-control" value="si">
<button type="submit" class="btn btn-rounded">Acceder</button>
</form>
</div>
</div>
</div>
<script src="public/js/lib/jquery/jquery.min.js"></script>
<script src="public/js/lib/tether/tether.min.js"></script>
<script src="public/js/lib/bootstrap/bootstrap.min.js"></script>
<script src="public/js/plugins.js"></script>
<script type="text/javascript" src="public/js/lib/match-height/jquery.matchHeight.min.js"></script>
<script>
$(function() {
$('.page-center').matchHeight({
target: $('html')
});
$(window).resize(function(){
setTimeout(function(){
$('.page-center').matchHeight({ remove: true });
$('.page-center').matchHeight({
target: $('html')
});
},100);
});
});
</script>
<script src="public/js/app.js"></script>
<script type="text/javascript" src="datos.js"></script>
</body>
</html>