-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
91 lines (79 loc) · 3.22 KB
/
index.php
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
<?php
require_once 'clases/clase_login.php';
$msg="";
$sesion = new Login();
if(!empty($_POST['usu']) and !empty($_POST['con'])){
$sesion->crearSesion();
}
if(isset ($_GET['usuario'])){
if($_GET['usuario']=='no_existe'){
$msg='<label>Usuario o contraseña <span class="blue">Incorrecta!</span></label>';
}
else if($_GET['usuario']=='inactivo'){
$msg='<label>Usuario Inactivo consulte con el <span class="blue">Administrador!</span></label>';
}
}
if(isset($_SESSION['usuario']) and isset ($_SESSION['tipo_usuario'])){
header('location:administrador.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Sistema de control de tramiento de Hemodialisis">
<meta name="author" content="Instituto Tecnológico de Oaxaca">
<!-- Le styles -->
<link href="css/inicio/bootstrap.min.css" rel="stylesheet">
<link href="css/inicio/bootstrap-responsive.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/inicio/typica-login.css">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le favicon -->
<link rel="shortcut icon" href="img/icono.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.html"><img src="img/logo.png" alt="Typica - Bootstrap Awesome Template!"></a><br>
</div>
</div>
</div>
<div class="container">
<div id="login-wraper">
<form class="form login-form"method="post" action="">
<legend>Iniciar Sesión <span class="blue">Acceso</span></legend>
<h3 class="text-info"><img src="img/usuario.png" class="img-circle" width="80" height="80">
<div class="body">
<input type="text" name="usu" placeholder="Usuario" autocomplete="off" required><br>
<input type="password" name="con" placeholder="Contraseña" autocomplete="off" required>
</div>
<?php echo $msg; ?>
<div class="footer">
<label class="checkbox inline">
<input type="checkbox" id="inlineCheckbox1" value="option1"> Recordarme
</label>
<button type="submit" class="btn btn-success">Acceder</button>
</div>
</form>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/inicio/jquery.js"></script>
<script src="js/inicio/bootstrap.js"></script>
<script src="js/inicio/backstretch.min.js"></script>
<script src="js/typica-login.js"></script>
</body>
</html>