This repository was archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
95 lines (93 loc) · 4.6 KB
/
index.php
File metadata and controls
95 lines (93 loc) · 4.6 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
<?php
require_once 'includes/_header.php';
$Auth->allow('member');
$title_for_layout = 'Accueil administration';
include 'includes/header.php'; // insertion du fichier header.php : entête, barre de navigation
?>
<div class="jumbotron">
<h1>Administration</h1> <!--titre en haut -->
<p>Bienvenue <?= ($Auth->isAdmin())?$Auth->user('prenom'):'Inconnu !' //Ecrire bienvenue + prénom de la personne connecté?> !</p>
<?php if ($Auth->isAdmin()): ?>
<p>
<a href="logout.php" class="btn btn-primary btn-lg">
Se déconnecter !
</a>
</p>
<?php endif ?>
</div>
<div class="row clearfix">
<div class="col-md-8">
<div class="well board">
<h1 class="page-header">Tableau de Bord</h1>
<div class="row">
<div class="col-sm-4 board-item">
<div class="board-links">
<ul class="list-unstyled">
<li><a href="admin_liste_members.php" title="Liste des membres"><span class="glyphicon glyphicon-list-alt"></span></a></li>
<li><a href="admin_edit_member.php" title="Ajouter un membre"><span class="glyphicon glyphicon-plus"></span></a></li>
</ul>
</div>
<a href="admin_liste_members.php" class="board-thumbnail thumbnail" title="Liste des membres">
<span class="glyphicon glyphicon-user" style="font-size: 40px;"></span>
<h5>Membres PayIcam</h5>
</a>
</div>
<?php if ($Auth->isAdmin()){ ?>
<div class="col-sm-4 board-item">
<div class="board-links">
<ul class="list-unstyled">
<li><a href="admin_liste_admins.php" title="Liste des Administrateurs"><span class="glyphicon glyphicon-list-alt"></span></a></li>
<li><a href="admin_edit_admin.php" title="Ajouter un Administrateurs"><span class="glyphicon glyphicon-plus"></span></a></li>
</ul>
</div>
<a href="admin_liste_admins.php" class="board-thumbnail thumbnail" title="Liste des Administrateurs">
<span class="glyphicon glyphicon-tower" style="font-size: 40px;"></span>
<h5>Admins</h5>
</a>
</div>
<div class="col-sm-4 board-item">
<a href="admin_upload_update_membres.php" class="board-thumbnail thumbnail" title="Mettre à jour les membres ginger">
<span class="glyphicon glyphicon-cloud-upload" style="font-size: 40px;"></span>
<h5>Upload nouveau membres</h5>
</a>
</div>
<div class="col-sm-4 board-item">
<a href="admin_parametres.php" class="board-thumbnail thumbnail" title="Paramètres du site (maintenance, inscriptions, ...">
<span class="glyphicon glyphicon-cog" style="font-size: 40px;"></span>
<h5>Paramêtres du Site</h5>
</a>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="well">
<h2 class="page-header">Quelques chiffres</h2>
<table class="table">
<tbody>
<tr>
<td><strong><?= $DB->findCount('users',[],'login'); ?></strong></td>
<td> </td>
<td>Membres PayIcam</td>
</tr>
<tr>
<td><strong><?= $DB->findCount('administrateurs'); ?></strong></td>
<td> </td>
<td>Administrateurs</td>
</tr>
</tbody>
</table>
<?php //echo Functions::getProgressBar(25, 'info') ?>
<?php /* echo Functions::getMultipleProgressBar(
array('sum'=>100, 'all'=>array(
array('pourcent'=>1,'class'=>'info','title'=>'Promues : '.(1).'/'.(100)),
array('pourcent'=>25,'class'=>'warning','title'=>'Promues : '.(25).'/'.(100)),
array('pourcent'=>45,'class'=>'success','title'=>'Normales : '.(45).'/'.(100)),
array('pourcent'=>25,'class'=>'danger','title'=>'Promues : '.(25).'/'.(100))
))
); //*/ ?>
</div>
</div>
</div>
<?php include 'includes/footer.php';?>