-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistvendeur.php
More file actions
36 lines (36 loc) · 2.04 KB
/
listvendeur.php
File metadata and controls
36 lines (36 loc) · 2.04 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
<div class="col-12 tm-block-col">
<div class="tm-bg-primary-dark tm-block tm-block-taller tm-block-scroll">
<h2 class="tm-block-title">Vendeurs List</h2>
<table class="table">
<thead>
<tr>
<th scope="col">Identification</th>
<th scope="col">Name</th>
<th scope="col">secon name</th>
<th scope="col">Email</th>
<th scope="col">phone number</th>
</tr>
</thead>
<tbody>
<?php
$rec = $db->query("SELECT * FROM vendeur ")->fetchAll(PDO::FETCH_OBJ);
$vendeursize = sizeof($rec);
for($z=0; $z<$vendeursize;$z++){
echo('
<tr>
<th scope="row"><b>'.$rec[$z]->Id.'</b></th>
<td>
<div class="tm-status-circle moving">
</div>'.$rec[$z]->nom.'
</td>
<td><b>'.$rec[$z]->prenom.'</b></td>
<td><b>'.$rec[$z]->email.'</b></td>
<td>'.$rec[$z]->telephone.'</td>
</tr>
');
}
?>
</tbody>
</table>
</div>
</div>