-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdisplaycotmview.php
More file actions
406 lines (332 loc) · 17.8 KB
/
Copy pathdisplaycotmview.php
File metadata and controls
406 lines (332 loc) · 17.8 KB
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
<?php include 'class/crud.php' ;?>
<?php include 'class/function.php' ;?>
<?php include 'class/ticket.php' ;?>
<?php include 'class/cot_mar.php' ;?>
<?php
if(!isset($_SESSION))
{
session_start();
}
if(!isset($_GET["id"]))
{
header('Location: ins.php');
}
if(isset($_SESSION['id']))
{
$userid=$_SESSION['id'];
}
$cc=new crud();
$liste=$cc->displayClient($cc->conn,$_SESSION['id']);
$list=$cc->display_CotM_by_idcm($cc->conn,$_GET['id']);
$list2=$cc->CountTicketId_user0($cc->conn,$_SESSION['id']);
$list3=$cc->display_CotM_Trans_M($cc->conn,$_GET['id']);
$list4=$cc->display_CotM_Col_M($cc->conn,$_GET['id']);
////////**********************/////////
foreach ($list2 as $l2){
$nombret= $l2[0];
}
if (isset($_GET['id'])){
$tickID=$cc->afficherTicket($cc->conn,$_GET['id']);}
?>
<!--end of page level css-->
<?php
require_once 'header.php';
?>
<div class="breadcum">
<div class="container">
<ol class="breadcrumb">
<li>
<a href="index.php"> <i class="livicon icon3 icon4" data-name="home" data-size="18" data-loop="true" data-c="#3d3d3d" data-hc="#3d3d3d"></i>Dashboard
</a>
</li>
<li class="hidden-xs">
<i class="livicon icon3" data-name="angle-double-right" data-size="18" data-loop="true" data-c="#01bc8c" data-hc="#01bc8c"></i>
<a href="#">Profile </a>
</li>
</ol>
<div class="pull-right">
<i class="livicon icon3" data-name="user" data-size="20" data-loop="true" data-c="#3d3d3d" data-hc="#3d3d3d"></i> Profile
</div>
</div>
</div>
<div class="container" style="margin-top:50px;">
<div class="row ">
<div class="col-md-12">
<div class="row ">
<div class="col-md-4">
<div class="form-group">
<div class="text-center">
<div class="fileinput-new thumbnail"> <?php foreach ($liste as $le){
if (($le[7]=="Khaled" && $le[6]=="Ouertani")||($le[7]=="Mélik" && $le[6]=="Zarkouna" )){ echo ' <img src="images/profile/gangsta.png" class="img-rounded" alt="Cinque Terre" width="218px" height="103px">'; }
else echo '<img src="images/profile/société.png" class="img-rounded" alt="Cinque Terre" width="218px" height="103px">' ;?>
<!--img src="images/profile/société.png" class="img-rounded" alt="Cinque Terre" width="218px" height="103px"-->
<!--img src="images/profile/simple_user.png" class="img-rounded" alt="Cinque Terre" width="218px" height="103px"-->
<?php }?>
</div>
</div>
</div>
<div class="table-responsive"> <?php foreach ($liste as $le){?>
<table class="table table-striped" id="users">
<tr>
<td>Utilisateur</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit User Name"><?php echo $le[7].' '.$le[6] ;?></a>
</td>
</tr>
<tr>
<td>Email</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit E-mail">
<?php echo $le[1];?>
</a>
</td>
</tr>
<tr>
<td>
Téléphone Mobile
</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit Phone Number">
(+216) <?php echo $le[14];?>
</a>
</td>
</tr>
<tr>
<td>
Téléphone Fix
</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit Phone Number">
<?php echo $le[13];?>
</a>
</td>
</tr>
<tr>
<td>
Fax
</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit Phone Number">
<?php echo $le[13];?>
</a>
</td>
</tr>
<tr>
<td>Address</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit Address">
<?php echo $le[10];?>, <?php echo $le[11];?> .
</a>
</td>
</tr>
<tr>
<td>Status</td>
<td>
<p style="color:green;"><strong>Actif--</strong></p>
</td>
</tr>
<tr>
<td>Created At</td>
<td>
<?php echo $le[16];?>
</td>
</tr>
<tr>
<td>City</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit City"> <?php echo $le[9];?>, <?php echo $le[8];?></a>
</td>
</tr>
</table> <?php } ?>
</div>
</div>
<div class="col-md-8"><?php foreach ($list as $l){?>
<ul class="nav nav-tabs ul-edit responsive">
<li class="active">
<a href="#tab-activity" data-toggle="tab">
<i class="livicon" data-name="mail" data-size="16" data-c="#01BC8C" data-hc="#01BC8C" data-loop="true"></i> Cotation Maritime <?php if( $_GET['typez']=='1') echo 'Unité Complète';
elseif( $_GET['typez']=='2') echo 'Conventionnel';
elseif( $_GET['typez']=='3') echo 'Groupage';
elseif( $_GET['typez']=='4') echo 'Affretement';
?><span class="badge"><?php echo $nombret;?></span>
</a>
</li>
</ul>
<div class="tab-content">
<div id="tab-activity" class="tab-pane fade in active" style="margin-top:12px;">
<div class="text-center">
<h3> Cotation- Port Maritime (<?php if( $_GET['typez']=='1') echo 'Unité Complète';
elseif( $_GET['typez']=='2') echo 'Conventionnel';
elseif( $_GET['typez']=='3') echo 'Groupage';
elseif( $_GET['typez']=='4') echo 'Affretement';
?>)<?php echo $l[0];?> </h3>
</div>
<fieldset style="margin-top:50px;"><legend for="input-text-2"><strong><h3> Informations de Danger </h3></strong></legend>
<div class="row">
<div class="col-md-7 display-no" >
<lable><strong> Ce produit n'est pas dangereux.</strong></lable>
<p> <?php if ($l[3]==0) echo "Oui"; else echo "Non";?> </p>
</div>
<div class="col-md-5 display-no" >
<div class="col-md-2 display-no" >
<div class="form-group" style="position: static;">
<label ><strong>Unité</strong></label>
<p > <?php echo $l[4] ;?></p>
</div>
</div>
<div class="col-md-1 display-no" ></div>
<div class="col-md-2 display-no" >
<div class="form-group" style="position: static;">
<label ><strong>Classe </strong></label>
<p > <?php echo $l[5] ; ?></p>
</div></div>
</div>
</div></fieldset>
<fieldset><div class="row">
<legend for="input-text-2"><strong><h3> Informations de Transport & Incoterm</h3></strong></legend>
<div class='col-md-6'><div class="form-group" style="position: static;">
<label ><strong>Type de Transport</strong></label>
<p > <?php if($l[7]=='0' ) echo "Dépandant !";
else echo $l[7] ;}?></p>
</div></div>
<div class='col-md-6'>
<div class="form-group" style="position: static;">
<label ><strong>Incoterm</strong></label>
<p> <?php
echo $l[6] ;?></p>
</div>
</div>
</div>
<?php if( $_GET['typez']=='1') {
foreach ($list3 as $l3){
echo '<div class="row">
<div class="text-center">
<table class="table">
<thead>
<tr>
<th>Nombre</th>
<th>Poids</th>
<th>Type</th>
<th>Température</th>
</tr>
</thead>
<tbody>
<tr>';
?>
<?php echo '<td><p>'?><?php echo $l3[2];?><?php echo '</td></p>'?>
<?php echo '<td><p>'?><?php echo $l3[3];?><?php echo '</td></p>'?>
<?php echo '<td><p>'?><?php echo $l3[4];?><?php echo '</td></p>'?>
<?php echo '<td><p>'?><?php echo $l3[5];?><?php echo '</td></p>'?>
<?php echo '</tr>
</tbody>
</table>
</div></div>' ; ?>
<?php }}?>
</fieldset>
<fieldset>
<div class="row">
<legend for="input-text-2"><strong><h3>Informations Des Colis</h3></strong></legend>
<?php foreach ($list4 as $l4){ ?><div class="text-center">
<table class="table">
<thead>
<tr>
<th class='col-md-1'>Nombre</th>
<th class='col-md-2'>Type</th>
<th class='col-md-2'>Poids</th>
<th class='col-md-2'>Dimension</th>
<th class='col-md-2'>Gerbable</th>
</tr>
</thead>
<tbody>
<tr>
<td class='col-md-1'><p><?php echo $l4[2];?></p></td>
<td class='col-md-2'><p><?php echo $l4[5];?></p></td>
<td class='col-md-2'><p><?php echo $l4[3];?></p></td>
<td class='col-md-2'><p><?php echo $l4[4];?></p></td>
<td class='col-md-2'><p><?php if ($l4[6]=0) echo 'Non' ; else echo ' Oui';?></p></td>
</tr>
</tbody>
</table>
</div></div>
<?php }?>
</fieldset>
<!----->
<!------>
<fieldset>
<div class="row"><?php foreach ($list as $l5){?>
<legend for="input-text-2"><strong><h3>Informations De Prise en charge</h3></strong></legend>
<div class="col-md-6 display-no" >
<div class="form-group">
<label ><strong>Adresse de Prise en charge</strong></label>
<p > <?php echo $l5[11];?></p>
</div>
</div>
<div class="col-md-6 display-no" >
<div class="form-group">
<label for="input-text-2"><strong>Code Postal</strong></label>
<p > <?php echo $l5[12]; ?></p>
</div>
</div>
</div>
</fieldset>
<fieldset><div class="row">
<legend for="input-text-2"><strong><h3>Détails de Prise en charge & Livraison</h3></strong></legend>
<div class="col-md-6 display-no" >
<div class="form-group">
<label ><strong>Date précise de Prise en charge</strong></label>
<p > <?php echo $l5[8]; ?></p>
</div>
</div>
<div class="col-md-6 display-no" >
<div class="form-group">
<label ><strong>Date précise de Livraison</strong></label>
<p > <?php echo $l5[9]; ?></p>
</div>
</div>
</fieldset>
<fieldset>
<div class="row">
<legend for="input-text-2"><strong><h3>Informations De Livraison</h3></strong></legend>
<div class="col-md-6 display-no" >
<div class="form-group">
<label ><strong>Adresse de Livraision</strong></label>
<p > <?php echo $l5[13]; ?></p>
</div>
</div>
<div class="col-md-6 display-no" >
<div class="form-group">
<label for="input-text-2"><strong>Code Postal</strong></label>
<p > <?php echo $l5[14]; ?></p>
</div>
</div>
</div>
</fieldset>
<div class="row" style="margin-bottom:50px;"><fieldset>
<legend for="input-text-2"><strong><h3>Informations supplémentaires</h3></strong></legend>
<p > <?php echo $l5[10];} ?></p>
</fieldset>
</div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
require_once('footer.php');
?>
<script src="back/js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="back/js/bootstrap.min.js" type="text/javascript"></script>
<script src="back/vendors/jasny-bootstrap/js/jasny-bootstrap.js" type="text/javascript"></script>
<script src="back/vendors/x-editable/jquery.mockjax.js" type="text/javascript"></script>
<script src=".back/vendors/x-editable/bootstrap-editable.js" type="text/javascript"></script>
<script type="text/javascript" src="back/vendors/magnifier/imgmagnify.js"></script>
<script src="back/vendors/iCheck/icheck.js"></script>
<script src="back/js/pages/user_profile.js" type="text/javascript"></script>
<script src="back/vendors/livicons/minified/raphael-min.js" type="text/javascript"></script>
<script src="back/vendors/livicons/minified/livicons-1.4.min.js" type="text/javascript"></script>
<script src="back/js/josh.js" type="text/javascript"></script>
<script src="back/js/metisMenu.js" type="text/javascript"></script>
<script src="back/vendors/holder-master/holder.js" type="text/javascript"></script>