-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdisplaycotm.php
More file actions
346 lines (306 loc) · 18 KB
/
Copy pathdisplaycotm.php
File metadata and controls
346 lines (306 loc) · 18 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
<?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($_SESSION['id']))
{
$userid=$_SESSION['id'];
}
$cc=new crud();
$liste=$cc->displayClient($cc->conn,$_SESSION['id']);
$list=$cc->displayTicketId_user($cc->conn,$_SESSION['id']);
$list2=$cc->CountTicketId_user($cc->conn,$_SESSION['id']);
$list3=$cc->CountTicketId_user0($cc->conn,$_SESSION['id']);
////////**********************/////////
foreach ($list2 as $l2){
$nombret= $l2[0];
}
foreach ($list3 as $l3){
$nombretx= $l3[0];
}
$listc=$cc->display_CotM_byuser_id_All($cc->conn,$_SESSION['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[9];?>, <?php echo $le[8];?>
</td>
</tr>
<tr>
<td>City</td>
<td>
<a href="#" data-pk="1" class="editable" data-title="Edit City"> <?php echo $le[16];?></a>
</td>
</tr>
</table> <?php } ?>
</div>
</div>
<div class="col-md-8">
<ul class="nav nav-tabs ul-edit responsive">
<li class="active" >
<a href="#tab-activity" data-toggle="tab">
<i class="livicon" data-name="comments" data-size="16" data-c="#01BC8C" data-hc="#01BC8C" data-loop="true"></i> Cotations
</a>
</li>
<li >
<a href="#tab-messages" data-toggle="tab">
<i class="livicon" data-name="mail" data-size="16" data-c="#01BC8C" data-hc="#01BC8C" data-loop="true"></i> Tickets <span class="badge"><?php echo $nombretx;?></span>
</a>
</li>
<li>
<a href="#tab-change-pwd" data-toggle="tab">
<i class="livicon" data-name="key" data-size="16" data-c="#01BC8C" data-hc="#01BC8C" data-loop="true"></i> Change Password
</a>
</li>
</ul>
<div class="tab-content">
<div id="tab-activity" class="tab-pane fade in active ">
<table class="table table-striped table-advance table-hover web-mail" id="inbox-check" >
<thead>
<tr ><p><span class="label label-info">Notez Bien</span>-
<i class="livicon" data-s="15" data-c="green" data-n="check"></i> Lù-
<i class="livicon" data-s="15" data-c="orange" data-n="question"></i> Non Lù-
<i class="livicon" data-s="15" data-c="red" data-n="ban"></i>Refusé
</tr>
</thead>
<tbody>
<?php foreach ($listc as $lc){?>
<tr data-messageid="1" class="unread">
<td style="width:4%;" class="inbox-small-cells">
<div class="checker">
<a href="displaycotmview.php?id=<?php echo $lc[0];?>&typez=<?php echo $lc[2];?>"><button type="button" class="btn btn-info btn-xs" ><i class="icon-circle-arrow-right icon-small"></i><span class="fa fa-eye "></span></button></a>
</div>
</td>
<td class="inbox-small-cells">
<i class="livicon" data-s="15" <?php if ($lc[15]==1) echo 'data-c="orange" data-n="question"'; elseif ($lc[15]==0) echo 'data-c="green" data-n="check"'; else echo 'data-c="red" data-n="ban"'; ?> ></i>
</td>
<td class="view-message hidden-xs">
<a href="displaycotmview.php?id=<?php echo $lc[0];?>&typez=<?php echo $lc[2];?>">
<p><?php if( $lc[2]=='1') echo 'Unité Complète';
elseif( $lc[2]=='2') echo 'Conventionnel';
elseif( $lc[2]=='3') echo 'Groupage';
elseif( $lc[2]=='4') echo 'Affretement';
?></p></a>
</td>
<td class="view-message ">
<a href="displaycotmview.php?id=<?php echo $lc[0];?>&typez=<?php echo $lc[2];?>">
</a>
</td>
<td class="view-message inbox-small-cells">
<a href="displaycotmview.php?id=<?php echo $lc[0];?>&typez=<?php echo $lc[2];?>"><?php echo shortText($lc[6] , 30);?></a>
</td>
<td class="view-message text-right">
<a href="displaycotmview.php?id=<?php echo $lc[0];?>&typez=<?php echo $lc[2];?>"><?php echo $lc[8] ; }?></a>
</td>
</tr>
</tbody>
</table>
</div>
<div id="tab-change-pwd" class="tab-pane fade">
<div class="row">
<div class="col-md-12 pd-top">
<form action="#" class="form-horizontal">
<div class="form-body">
<div class="form-group">
<label for="inputpassword" class="col-md-3 control-label">
Password
<span class='require'>*</span>
</label>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-addon">
<i class="livicon" data-name="key" data-size="16" data-loop="true" data-c="#000" data-hc="#000"></i>
</span>
<input type="password" placeholder="Password" class="form-control"/>
</div>
</div>
</div>
<div class="form-group">
<label for="inputnumber" class="col-md-3 control-label">
Confirm Password
<span class='require'>*</span>
</label>
<div class="col-md-9">
<div class="input-group">
<span class="input-group-addon">
<i class="livicon" data-name="key" data-size="16" data-loop="true" data-c="#000" data-hc="#000"></i>
</span>
<input type="password" placeholder="Password" class="form-control"/>
</div>
</div>
</div>
</div>
<div class="form-actions">
<div class="col-md-offset-3 col-md-9">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" class="btn btn-danger">Cancel</button>
<input type="reset" class="btn btn-default hidden-xs" value="Reset"></div>
</div>
</form>
</div>
</div>
</div>
<div id="tab-messages" class="tab-pane fade in " style="margin-top:12px;">
<table class="table table-striped table-advance table-hover web-mail" id="inbox-check" >
<thead>
<tr ><p><span class="label label-info">Notez Bien</span>-
<i class="livicon" data-s="15" data-c="green" data-n="check"></i> Lù-
<i class="livicon" data-s="15" data-c="orange" data-n="question"></i> Non Lù-
<i class="livicon" data-s="15" data-c="red" data-n="ban"></i>Sanctionné ( En Cas de répétitions de sanctions votre compte ne sera plus actif)
</tr>
</thead>
<tbody>
<?php foreach ($list as $l){?>
<tr data-messageid="1" class="unread">
<td style="width:4%;" class="inbox-small-cells">
<div class="checker">
<a href="user_ticket.php?id=<?php echo $l[0];?>"><button type="button" class="btn btn-info btn-xs" ><i class="icon-circle-arrow-right icon-small"></i><span class="fa fa-eye "></span></button></a>
</div>
</td>
<td class="inbox-small-cells">
<i class="livicon" data-s="15" <?php if ($l[4]==1) echo 'data-c="orange" data-n="question"'; elseif ($l[4]==0) echo 'data-c="green" data-n="check"'; else echo 'data-c="red" data-n="ban"'; ?> ></i>
</td>
<td class="view-message hidden-xs">
<a href="user_ticket.php?id=<?php echo $l[0];?>">
<?php echo $l[1] ; ?></a>
</td>
<td class="view-message ">
<a href="user_ticket.php?id=<?php echo $l[0];?>">
</a>
</td>
<td class="view-message inbox-small-cells">
<a href="user_ticket.php?id=<?php echo $l[0];?>"><?php echo shortText($l[3] , 30);?></a>
</td>
<td class="view-message text-right">
<a href="user_ticket.php?id=<?php echo $l[0];?>"><?php echo $l[6] ; }?></a>
</td>
</tr>
</tbody>
</table>
</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>