-
Notifications
You must be signed in to change notification settings - Fork 0
/
back_plomb.php
527 lines (474 loc) · 21.3 KB
/
back_plomb.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<?PHP
include "../../Services/core/serviceCore.php";
include "../../config.php";
$plomb=new servCore();
$listePlomb=$plomb->afficherPlomb();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<title>STMG Société de travaux et maintenance générale</title>
<!-- Favicons -->
<link href="../img/favicon.png" rel="icon">
<link href="../img/apple-touch-icon.png" rel="apple-touch-icon">
<!-- Bootstrap core CSS -->
<link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!--external css-->
<link href="../lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="../stylesheet" type="text/css" href="css/zabuto_calendar.css">
<link rel="../stylesheet" type="text/css" href="lib/gritter/css/jquery.gritter.css" />
<!-- Custom styles for this template -->
<link href="../css/style.css" rel="stylesheet">
<link href="../css/style-responsive.css" rel="stylesheet">
<script src="../lib/chart-master/Chart.js"></script>
<!-- =======================================================
Template Name: Dashio
Template URL: https://templatemag.com/dashio-bootstrap-admin-template/
Author: TemplateMag.com
License: https://templatemag.com/license/
======================================================= -->
</head>
<body>
<section id="container">
<!-- **********************************************************************************************************************************************************
TOP BAR CONTENT & NOTIFICATIONS
*********************************************************************************************************************************************************** -->
<!--header start-->
<header class="header black-bg">
<div class="sidebar-toggle-box">
<div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
</div>
<!--logo start-->
<a href="../index.html" class="logo"><b>ST<span>MG</span></b></a>
<!--logo end-->
<div class="nav notify-row" id="top_menu">
<!-- notification start -->
<ul class="nav top-menu">
<!-- settings start -->
<!-- <li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
<i class="fa fa-tasks"></i>
<span class="badge bg-theme">4</span>
</a>
<ul class="dropdown-menu extended tasks-bar">
<div class="notify-arrow notify-arrow-green"></div>
<li>
</li>
<li>
<a href="index.html#">
<div class="task-info">
<div class="desc">Dashio Admin Panel</div>
<div class="percent">40%</div>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
<span class="sr-only">40% Complete (success)</span>
</div>
</div>
</a>
</li>
<li>
<a href="index.html#">
<div class="task-info">
<div class="desc">Database Update</div>
<div class="percent">60%</div>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
<span class="sr-only">60% Complete (warning)</span>
</div>
</div>
</a>
</li>
<li>
<a href="index.html#">
<div class="task-info">
<div class="desc">Product Development</div>
<div class="percent">80%</div>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
<span class="sr-only">80% Complete</span>
</div>
</div>
</a>
</li>
<li>
<a href="index.html#">
<div class="task-info">
<div class="desc">Payments Sent</div>
<div class="percent">70%</div>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%">
<span class="sr-only">70% Complete (Important)</span>
</div>
</div>
</a>
</li>
<li class="external">
<a href="#">See All Tasks</a>
</li>
</ul>
</li>
<li id="header_inbox_bar" class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
<i class="fa fa-envelope-o"></i>
<span class="badge bg-theme">5</span>
</a>
<ul class="dropdown-menu extended inbox">
<div class="notify-arrow notify-arrow-green"></div>
<li>
<p class="green">You have 5 new messages</p>
</li>
<li>
<a href="index.html#">
<span class="photo"><img alt="avatar" src="img/ui-zac.jpg"></span>
<span class="subject">
<span class="from">Zac Snider</span>
<span class="time">Just now</span>
</span>
<span class="message">
Hi mate, how is everything?
</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="photo"><img alt="avatar" src="img/ui-divya.jpg"></span>
<span class="subject">
<span class="from">Divya Manian</span>
<span class="time">40 mins.</span>
</span>
<span class="message">
Hi, I need your help with this.
</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="photo"><img alt="avatar" src="img/ui-danro.jpg"></span>
<span class="subject">
<span class="from">Dan Rogers</span>
<span class="time">2 hrs.</span>
</span>
<span class="message">
Love your new Dashboard.
</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="photo"><img alt="avatar" src="img/ui-sherman.jpg"></span>
<span class="subject">
<span class="from">Dj Sherman</span>
<span class="time">4 hrs.</span>
</span>
<span class="message">
Please, answer asap.
</span>
</a>
</li>
<li>
<a href="index.html#">See all messages</a>
</li>
</ul>
</li>
<li id="header_notification_bar" class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
<i class="fa fa-bell-o"></i>
<span class="badge bg-warning">7</span>
</a>
<ul class="dropdown-menu extended notification">
<div class="notify-arrow notify-arrow-yellow"></div>
<li>
<p class="yellow">You have 7 new notifications</p>
</li>
<li>
<a href="index.html#">
<span class="label label-danger"><i class="fa fa-bolt"></i></span>
Server Overloaded.
<span class="small italic">4 mins.</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="label label-warning"><i class="fa fa-bell"></i></span>
Memory #2 Not Responding.
<span class="small italic">30 mins.</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="label label-danger"><i class="fa fa-bolt"></i></span>
Disk Space Reached 85%.
<span class="small italic">2 hrs.</span>
</a>
</li>
<li>
<a href="index.html#">
<span class="label label-success"><i class="fa fa-plus"></i></span>
New User Registered.
<span class="small italic">3 hrs.</span>
</a>
</li>
<li>
<a href="index.html#">See all notifications</a>
</li>
</ul>
</li>-->
<!-- notification dropdown end -->
</ul
<!-- notification end -->
</div>
<div class="top-menu">
<ul class="nav pull-right top-menu">
<li><a class="logout" href="login.html">Déconnceter</a></li>
</ul>
</div>
</header>
<!--header end-->
<!-- **********************************************************************************************************************************************************
MAIN SIDEBAR MENU
*********************************************************************************************************************************************************** -->
<!--sidebar start-->
<aside>
<div id="sidebar" class="nav-collapse ">
<!-- sidebar menu start-->
<ul class="sidebar-menu" id="nav-accordion">
<p class="centered"><a href="profile.html"><img src="img/ui-sam.jpg" class="img-circle" width="80"></a></p>
<h5 class="centered">Adel Arfaoui</h5>
<li class="mt">
<a class="active" href="Panier_back.php">
<i class="fa fa-dashboard"></i>
<span>Commandes</span>
</a>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-desktop"></i>
<span>Services</span>
</a>
<ul name="servicesBack" class="sub">
<li><a href="afficherTechnicien.php">Techniciens</a></li>
<li><a href="back_clim.php">Climatisation</a></li>
<li><a href="back_peint.php">peinture</a></li>
<li><a href="back_elect.php">électirictée</a></li>
<li><a href="back_resto.php">restaurant</a></li>
<li><a href="back_plomb.php">plomberie</a></li>
</ul>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-cogs"></i>
<span>Ingrédients</span>
</a>
<ul class="sub">
<li><a href="grids.html">Des grilles</a></li>
<li><a href="calendar.html">Calendrier</a></li>
<li><a href="gallery.html">Gallerie</a></li>
<li><a href="todo_list.html">Liste de choses à faire</a></li>
<li><a href="dropzone.html">Dropzone File Upload</a></li>
<li><a href="inline_editor.html">Éditeur en ligne</a></li>
<li><a href="file_upload.html">Téléchargement de fichiers multiples</a></li>
</ul>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-book"></i>
<span>Pages supplémentaires</span>
</a>
<ul class="sub">
<li><a href="blank.html">Pages blanches</a></li>
<li><a href="login.html">Connecter</a></li>
<li><a href="lock_screen.html">Écran verrouillé</a></li>
<li><a href="profile.html">Profile</a></li>
<li><a href="invoice.html">Facture d'achat</a></li>
<li><a href="pricing_table.html">Tableau de tarification</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-th"></i>
<span>Bade de donéées</span>
</a>
<ul class="sub">
<li><a href="basic_table.html"> Tableau Basique</a></li>
<li><a href="responsive_table.html">Tableau Responsive </a></li>
<li><a href="advanced_table.html">Tableau avancée</a></li>
</ul>
</li>
<li>
<a href="inbox.html">
<i class="fa fa-envelope"></i>
<span>Mail </span>
<span class="label label-theme pull-right mail-info">2</span>
</a>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-comments-o"></i>
<span>Conversation</span>
</a>
<ul class="sub">
<li><a href="lobby.html">Lobby</a></li>
<li><a href="chat_room.html"> Tchat</a></li>
</ul>
</li>
<li>
<a href="google_maps.html">
<i class="fa fa-map-marker"></i>
<span>Google Maps </span>
</a>
</li>
</ul>
<!-- sidebar menu end-->
</div>
</aside>
<!--sidebar end-->
<!-- **********************************************************************************************************************************************************
MAIN CONTENT
*********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<div class="row mt">
<div class="col-lg-6 col-md-6 col-sm-12">
<!-- BASIC PROGRESS BARS -->
<div class="adv-table">
<table cellpadding="0" cellspacing="0" border="0" class="display table table-bordered" id="hidden-table-info">
<thead>
<tr>
<th nom="ID" class="hidden-phone">ID</th>
<th nom="nom" class="hidden-phone">Nom</th>
<th nom="demande" class="hidden-phone">demande</th>
<th nom="lieu" class="hidden-phone">lieu</th>
<th nom="details" class="hidden-phone">details</th>
<th class="center hidden-phone"><span class="badge bg-success">etat</span></th>
<th class="center hidden-phone"><span class="badge bg-warning">Techniciens</span></th>
</tr>
<?PHP
foreach($listePlomb as $row){
?>
<tr class="gradeX">
<td class="hidden-phone"><?PHP echo $row['ID']; ?></td>
<td class="hidden-phone"><?PHP echo $row['nom']; ?></td>
<td class="center hidden-phone" ><?PHP echo $row['demande']; ?></td>
<td class="center hidden-phone" ><?PHP echo $row['lieu']; ?></td>
<td class="center hidden-phone"><?PHP echo $row['details']; ?></td>
<td>
<form class="pull-right hidden-phone" method="POST" action="validerPlomb.php">
<input type="hidden" name="ID" value="<?php echo$row['ID'] ?>">
<select class="badge bg-success" name="etat">
<option name="etat" class="badge bg-success" value="debut d'entretien">début d'entretien</option>
<option name="etat" class="badge bg-warning" value="Fin d'entretien">Fin d'entretien</option>
<option name="etat" class="badge bg-success" value="appreciation">appréciation</option>
</select></td>
<td> <select class="badge bg-warning" name="nomTech"> <?PHP
$sql="Select * from technicien ";
$db = config::getConnexion();
$result=$db->query($sql);
foreach ($result as $ligne) {
?>
<option name="nomTech" value="<?PHP echo $ligne['cin']; ?>"><?PHP echo $ligne['nom'].'-'.$ligne['prenom']; ?>
</option>
<?PHP } ?>
</select> </td>
<td><button class="btn btn-success btn-xs"><i class=" fa fa-check"></i></button> </td></form>
<td> <form class="pull-right hidden-phone" method="POST" action="supprimerPlomb.php">
<button class="btn btn-danger btn-xs" type="submit" name="supprimer" value="supprimer"><i class="fa fa-trash-o "></i></button>
<input type="hidden" value="<?PHP echo $row['ID']; ?>" name="ID"> </form>
<td>
<button><a class="btn btn-primary btn-xs" href="modifierServ.php?ID=<?PHP echo $row['ID']; ?>"><i class="fa fa-pencil"></i></a>
</button>
<?php } ?>
</form>
</tr>
</thead>
<tbody>
</li>
<!--/ row -->
</section>
<!-- /wrapper -->
</section>
<!-- js placed at the end of the document so the pages load faster -->
<script src="../lib/jquery/jquery.min.js"></script>
<script src="../lib/bootstrap/js/bootstrap.min.js"></script>
<script class="include" type="text/javascript" src="../lib/jquery.dcjqaccordion.2.7.js"></script>
<script src="../lib/jquery.scrollTo.min.js"></script>
<script src="../lib/jquery.nicescroll.js" type="text/javascript"></script>
<script src="../lib/jquery.sparkline.js"></script>
<!--common script for all pages-->
<script src="../lib/common-scripts.js"></script>
<script type="text/javascript" src="../lib/gritter/js/jquery.gritter.js"></script>
<script type="text/javascript" src="../lib/gritter-conf.js"></script>
<!--script for this page-->
<script src="../lib/sparkline-chart.js"></script>
<script src="../lib/zabuto_calendar.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var unique_id = $.gritter.add({
// (string | mandatory) the heading of the notification
title: 'Welcome to Dashio!',
// (string | mandatory) the text inside the notification
text: 'Hover me to enable the Close Button. You can hide the left sidebar clicking on the button next to the logo.',
// (string | optional) the image to display on the left
image: 'img/ui-sam.jpg',
// (bool | optional) if you want it to fade out on its own or just sit there
sticky: false,
// (int | optional) the time you want it to be alive for before fading out
time: 8000,
// (string | optional) the class name you want to apply to that specific message
class_name: 'my-sticky-class'
});
return false;
});
</script>
<script type="application/javascript">
$(document).ready(function() {
$("#date-popover").popover({
html: true,
trigger: "manual"
});
$("#date-popover").hide();
$("#date-popover").click(function(e) {
$(this).hide();
});
$("#my-calendar").zabuto_calendar({
action: function() {
return myDateFunction(this.id, false);
},
action_nav: function() {
return myNavFunction(this.id);
},
ajax: {
url: "show_data.php?action=1",
modal: true
},
legend: [{
type: "text",
label: "Special event",
badge: "00"
},
{
type: "block",
label: "Regular event",
}
]
});
});
function myNavFunction(id) {
$("#date-popover").hide();
var nav = $("#" + id).data("navigation");
var to = $("#" + id).data("to");
console.log('nav ' + nav + ' to: ' + to.month + '/' + to.year);
}
</script>
</body>
</html>