-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrafic.php
More file actions
64 lines (58 loc) · 2.02 KB
/
trafic.php
File metadata and controls
64 lines (58 loc) · 2.02 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
<?php
$thisFileName = basename(__FILE__);
require_once (dirname(__FILE__) . '/Pages/header.php');
?>
<!-- Main content -->
<section class="content mt-3">
<div class="container-fluid">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title"><b>Flux de trafic</b></h3>
</div>
<div class="card-body">
<!-- Check if there are no recours -->
<?php if (empty($recs)): ?>
<div class="callout callout-info">
<h5>Aucun Recours!</h5>
<p>Aucun recours n'a été soumis par les étudiants.</p>
</div>
<?php else: ?>
<table id="trafficDataTable" class="table table-sm table-striped table-bordered projects">
<thead>
<tr>
<th class="text-center" style="width: 1%">#</th>
<th class="text-center" style="width: 18%">Module</th>
<th class="text-center" style="width: 18%">Etudiant</th>
<th class="text-center" style="width: 18%">Enseignant</th>
<th class="text-center" style="width: 18%">Status</th>
</tr>
</thead>
<tbody>
<?php foreach ($recs as $rec):?>
<tr>
<?php
$ET = new etudiant($rec['idet']);
$ENS = new enseignant($rec['idens']);
$ET = $ET->getInfo();
$ENS = $ENS->getInfo();
?>
<td class="text-center"><?=$rec['id']?></td>
<td class="text-center"><?=$rec['module']?></td>
<td class="text-center"><?=$ET['nom']?></td>
<td class="text-center"><?=$ENS['nom']?></td>
<td class="project-state">
<span class="badge badge-<?php if ($rec['status'] == 'En Cours') echo 'warning'; elseif ($rec['status'] == 'Refusé') echo 'danger'; elseif ($rec['status'] == 'Validé') echo 'success'; ?>"><?=$rec['status']?></span>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div> <!-- card-body -->
</div> <!-- card -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
<?php
require './Pages/footer.php';
?>