-
Notifications
You must be signed in to change notification settings - Fork 0
/
affecterLivreur.php
231 lines (224 loc) · 9.47 KB
/
affecterLivreur.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>STMG Admin</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>
</head>
<!-- =======================================================
body
======================================================= -->
<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"><img src="img/logo.png" width="120"></a>
<!--logo end-->
<div class="nav notify-row" id="top_menu"> </div>
<div class="top-menu">
<ul class="nav pull-right top-menu">
<li><a class="logout" href="login.html">Logout</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">
<li class="mt">
<a class="active" href="index.html">
<i class="fa fa-dashboard"></i>
<span>Tableau de bord</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-lightbulb-o"></i>
<span>Produits</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-bolt"></i>
<span>Services</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-shopping-cart"></i>
<span>Commandes</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-users"></i>
<span>Clients</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-tags"></i>
<span>Promotions</span>
</a>
</li>
<li class="sub-menu">
<a href="javascript:;">
<i class="fa fa-truck"></i>
<span>Livraisons</span>
</a>
<ul class="sub">
<li><a href="form_validation.html">Gestion Livreurs</a></li>
<li><a href="form_validation2.php">Gestion Livraisons</a></li>
<li><a href="afficherEvaluation.php">Gestion Evaluation</a></li>
<li><a href="statistique.php">Statistique des évaluatons pour les livreurs</a></li>
</ul>
</li>
<li>
<a href="index.html">
<i class="fa fa-map-marker"></i>
<span>Localisation</span>
</a>
</li>
<li>
<a href="index.html">
<i class="fa fa-wrench"></i>
<span>Paramétres</span>
</a>
</li>
</ul>
<!-- sidebar menu end-->
</div>
</aside>
<!--sidebar end-->
<!-- **********************************************************************************************************************************************************
MAIN CONTENT
*********************************************************************************************************************************************************** -->
<!--main content start-->
<body>
<?PHP
include "C:/wamp64/www/test/entities/livreur.php";
include "C:/wamp64/www/test/core/livreurC.php";
if (isset($_GET['Idlivreur'])){
$livreurC=new LivreurC();
$result=$livreurC->recupererLivreur($_GET['Idlivreur']);
foreach($result as $row){
$id=$row['Id'];
$nom=$row['Nom'];
$prenom=$row['Prenom'];
$adresse=$row['Adresse'];
$secteur=$row['Secteur'];
?>
<form method="POST" >
<section id="main-content">
<section class="wrapper">
<h3><i class="fa fa-angle-right"></i> Affecter Livreur</h3>
<!-- BASIC FORM VALIDATION -->
<!-- /row -->
<!-- FORM VALIDATION -->
<div class="row mt">
<div class="col-lg-12">
<div class="form-panel">
<div class="form">
<form class="cmxform form-horizontal style-form" id="signupForm">
<div class="form-group ">
<label for="Id" class="control-label col-lg-2">Id</label>
<div class="col-lg-10">
<input class=" form-control" id="Id" name="Id" type="number" value="<?PHP echo $id?>"/>
</div>
</div>
<div class="form-group ">
<label for="Nom" class="control-label col-lg-2">Nom</label>
<div class="col-lg-10">
<input class=" form-control" id="Nom" name="Nom" type="text" value="<?PHP echo $nom?>"/>
</div>
</div>
<div class="form-group ">
<label for="Prenom" class="control-label col-lg-2">Prenom</label>
<div class="col-lg-10">
<input class="form-control " id="Prenom" name="Prenom" type="text" value="<?PHP echo $prenom?>" />
</div>
</div>
<div class="form-group ">
<label for="Adresse" class="control-label col-lg-2">Adresse</label>
<div class="col-lg-10">
<input class="form-control " id="Adresse" name="Adresse" type="mail" value="<?PHP echo $adresse?>"/>
</div>
</div>
<div class="form-group ">
<label for="Secteur" class="control-label col-lg-2">Secteur</label>
<SELECT name="Secteur" id="Secteur" size="1">
<option value="Tunis">Tunis</option>
<option value="Ariana">Ariana</option>
<option value="Marsa">Marsa</option>
<option value="Autres">Autres</option>
</SELECT>
</div>
<input type="submit" name="modifier" value="modifier" href="afficherLivreur.php"></td>
<input type="hidden" name="Id" value="<?PHP echo $_GET['Idlivreur'];?>"></input>
<?PHP
}
}
if (isset($_POST['modifier'])){
$livreur=new livreur($_POST['Id'],$_POST['Nom'],$_POST['Prenom'],$_POST['Adresse'],$_POST['Secteur']);
$livreurC->affecterLivreur($livreur,$_POST['Id']);
echo $_POST['Id'];
}
?>
</body>
<footer class="site-footer">
<div class="text-center">
<p>
© Copyrights <strong>Dashio</strong>. All Rights Reserved
</p>
<div class="credits">
<!--
You are NOT allowed to delete the credit link to TemplateMag with free version.
You can delete the credit link only if you bought the pro version.
Buy the pro version with working PHP/AJAX contact form: https://templatemag.com/dashio-bootstrap-admin-template/
Licensing information: https://templatemag.com/license/
-->
Created with Dashio template by <a href="https://templatemag.com/">TemplateMag</a>
</div>
<a href="form_validation.html#" class="go-top">
<i class="fa fa-angle-up"></i>
</a>
</div>
</footer>
<!--footer end-->
</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>
<!--common script for all pages-->
<script src="lib/common-scripts.js"></script>
<!--script for this page-->
<script src="lib/form-validation-script.js"></script>
</body>
</HTMl>