-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathqrcode.php
156 lines (148 loc) · 5.31 KB
/
qrcode.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
require_once('classes/session.php');
require_once('classes/utilisateur.php');
require_once('classes/infos.php');
require_once('classes/ouvrier.php');
require_once('includes/functions.php');
require_once('includes/qrs.php');
$session = new Session();
if(!$session->is_loggedin())
{
$session->message("vous devez s'authentifier");
header('Location: login.php');
}
$ut= new Utilisateur();
$ut->find_by_id($session->get_user_id());
$ut_data= $ut->get_utilisateur();
$ou = new Ouvrier();
if(!$ou->find_by_qrcode($_GET['o'])) {
header('Location: gestion.php');
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dashboard - QR Code Scan</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600"
rel="stylesheet">
<link href="css/font-awesome.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/pages/dashboard.css" rel="stylesheet">
<!-- 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]-->
</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.php">
<i class="shortcut-icon icon-qrcode"></i>
QR Code Scan</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i
class="icon-cog"></i> Compte <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:;">Paramètres</a></li>
<li><a href="javascript:;">Aide</a></li>
</ul>
</li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><i
class="icon-user"></i> <?php echo $ut_data['username']; ?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="profil.php">Profil</a></li>
<li><a href="process/logout.php">Logout</a></li>
</ul>
</li>
</ul>
<form class="navbar-search pull-right">
<input type="text" class="search-query" placeholder="Recherche">
</form>
</div>
<!--/.nav-collapse -->
</div>
<!-- /container -->
</div>
<!-- /navbar-inner -->
</div>
<!-- /navbar -->
<div class="subnavbar">
<div class="subnavbar-inner">
<div class="container">
<ul class="mainnav">
<li><a href="index.php"><i class="icon-dashboard"></i><span>Gestion</span> </a> </li>
<li class="active"><a href="rapports.php"><i class="icon-list-alt"></i><span>Rapports</span> </a> </li>
<!-- <li><a href="guidely.html"><i class="icon-facetime-video"></i><span>App Tour</span> </a></li> -->
<li><a href="stats.php"><i class="icon-bar-chart"></i><span>Charts</span> </a> </li>
<!-- <li><a href="shortcodes.html"><i class="icon-code"></i><span>Shortcodes</span> </a> </li> -->
<li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-long-arrow-down"></i><span>Autres</span> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="qrcodes.php">QR Codes</a></li>
<li><a href="utilisateurs.php">Utilisateurs</a></li>
</ul>
</li>
</ul>
</div>
<!-- /container -->
</div>
<!-- /subnavbar-inner -->
</div>
<!-- /subnavbar -->
<div class="main">
<div class="main-inner">
<div class="container">
<div class="row">
<div class="span12">
<?php
checkIn($_GET['o']);
}
?>
</div>
</div>
</div>
</div>
</div>
<!-- /main -->
<div class="extra">
<div class="extra-inner">
<div class="container">
<div class="row">
<!-- Copyright © HouTelecom 2014. Tous droits réservés. -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /extra-inner -->
</div>
<!-- /extra -->
<div class="footer">
<div class="footer-inner">
<div class="container">
<div class="row">
<div class="span12"> Copyright © <a href="http://www.houtelecom.com/">HouTelecom</a> 2014. Tous droits réservés. </div>
<!-- /span12 -->
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /footer-inner -->
</div>
<!-- /footer -->
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/excanvas.min.js"></script>
<script src="js/chart.min.js" type="text/javascript"></script>
<script src="js/bootstrap.js"></script>
<script language="javascript" type="text/javascript" src="js/full-calendar/fullcalendar.min.js"></script>
<script src="js/base.js"></script>
</body>
</html>