-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlockscreen.php
112 lines (94 loc) · 4.57 KB
/
lockscreen.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
require_once("class/class.php");
$tra = new Login();
if(isset($_POST['btn-login']))
{
$log = $tra->Logueo();
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="assets/images/favicon.png" rel="icon" type="image">
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/icons.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">
<!-- script jquery -->
<script src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/script/titulos.js"></script>
<script type="text/javascript" src="assets/script/validation.min.js"></script>
<script type="text/javascript" src="assets/script/script.js"></script>
<!-- script jquery -->
</head>
<body>
<div class="accountbg"></div>
<div class="wrapper-page">
<div class="panel panel-color panel-primary panel-pages">
<div class="panel-heading bg-img">
<span class="text-center m-t-12 text-white"><img src="assets/images/logo_white_2.png" alt="Software Gestión para Restaurant" width="240" height="77" class='retina-ready'></span> </div>
<div class="panel-body">
<form class="form-horizontal m-t-20" name="lockscreen" id="lockscreen" action="">
<div id="error">
<!-- error will be shown here ! -->
</div>
<div class="text-center">
<?php
if (isset($_SESSION['cedula'])) {
if (file_exists("fotos/".$_SESSION['cedula'].".jpg")){
echo "<img src='fotos/".$_SESSION['cedula'].".jpg?".date('h:i:s')."' class='img-responsive img-circle img-thumbnail' alt='thumbnail' width='90' height='90'>";
} else {
echo "<img src='fotos/avatar.jpg' class='img-responsive img-circle img-thumbnail' alt='thumbnail' width='90' height='90'>";
} } else {
echo "<img src='fotos/avatar.jpg' class='img-responsive img-circle img-thumbnail' alt='thumbnail' width='90' height='90'>";
}
?>
</div>
<div class="form-group">
<center><h4><?php echo $_SESSION['usuario'] ?></h4></center>
<p align="center" class="text-muted">Introduzca su Contraseña para acceder al sistema</p>
</div>
<div class="form-group has-feedback">
<label class="control-label">Ingrese su Password: <span class="symbol required"></span></label>
<input type="hidden" name="usuario" id="usuario" value="<?php echo $_SESSION['usuario'] ?>">
<input class="form-control" type="password" placeholder="Ingrese su Password" name="password" id="password" onKeyUp="this.value=this.value.toUpperCase();" autocomplete="off" required="" aria-required="true">
<i class="fa fa-lock form-control-feedback"></i>
</div>
<div class="form-group m-t-30 m-b-0">
<div class="col-sm-12 text-center"><a href="logout" class="text-muted">No Acceder con <?php echo $_SESSION['usuario']?>?</a></div>
</div>
<div class="form-group text-center m-t-20">
<div class="col-xs-12">
<button class="btn btn-block btn-lg btn-warning waves-effect waves-light" data-toggle="tooltip" data-placement="top" title="" data-original-title="Haga clic aquí para iniciar sesión" name="btn-login" id="btn-login" type="submit"><span class="fa fa-sign-in"></span> Acceder</button>
</div>
</div>
</form>
</div>
</div>
</div>
<script>
var resizefunc = [];
</script>
<!-- Main -->
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/detect.js"></script>
<script src="assets/js/fastclick.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/jquery.blockUI.js"></script>
<script src="assets/js/waves.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/jquery.scrollTo.min.js"></script>
<script src="assets/js/jquery.app.js"></script>
<!-- jQuery -->
<script src="assets/pages/jquery.dashboard.js"></script>
<script src="assets/plugins/notifyjs/dist/notify.min.js"></script>
<script src="assets/plugins/notifications/notify-metro.js"></script>
<script src="assets/plugins/notifications/notifications.js"></script>
<script src="assets/plugins//noty/packaged/jquery.noty.packaged.min.js"></script>
</body>
</html>