-
Notifications
You must be signed in to change notification settings - Fork 1
/
widgets.php
71 lines (61 loc) · 2.67 KB
/
widgets.php
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
<button type="button" class="btn btn-primary btn-lg btn-widgets" data-toggle="modal" data-target="#widgetsModal">
Widgets
</button>
<div class="modal fade" id="widgetsModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Widgets</h4>
</div>
<div class="modal-body">
<section>
<?php for($i = 0; $i < count($_Widgets_['Widgets']); $i++) {
if((
$_Widgets_['Widgets'][$i]['type'] != 0 OR isset($_Joueur_) )
AND $_Widgets_['Widgets'][$i]['type'] != 2
AND ( $_Widgets_['Widgets'][$i]['type'] != 1 ) ){ ?>
<div class="panel panel-primary">
<div class="panel-heading">
<h4 class="panel-title"><?php echo $_Widgets_['Widgets'][$i]['titre']; ?></h4>
</div>
<div class="panel-body <?php if($_Widgets_['Widgets'][$i]['type'] == 1) echo 'players'; ?>">
<?php if($_Widgets_['Widgets'][$i]['type'] == 0) { ?>
<ul class="nav nav-pills nav-stacked">
<?php
if($_Joueur_['rang'] == 1)
echo '<li class="active"><a href="admin.php"><span class="glyphicon glyphicon-cog"></span> Administration </a></li>';
?>
<li><a href="?&page=profil&profil=<?php echo $_Joueur_['pseudo']; ?>"><span class="glyphicon glyphicon-pencil"></span> Mon Profil</a></li>
<li><a href="?&page=token"><span class="glyphicon glyphicon-euro"></span> Acheter des <?php echo $_Theme_['All']['money']; ?>s</a></li>
<li><a href="?&action=deco"><span class="glyphicon glyphicon-off"></span> Déconnexion</a></li>
</ul>
<label class="label label-info label-sm">J'ai <?php echo $_Joueur_['tokens']; echo $_Theme_['All']['money']; ?>s</label>
<?php } elseif($_Widgets_['Widgets'][$i]['type'] == 1){
if(isset($jsonCon))
{
for($j = 0; $j < count($jsonCon); $j++) {
if(isset($serveurStats)) {
foreach ($serveurStats[$j]['joueurs'] as $cle => $element) {
?>
<a href="?&page=profil&profil=<?php echo $serveurStats[$j]['joueurs'][$cle]; ?>" class="icon-player">
<?php echo '<img src="http://cravatar.eu/helmhead/' .$serveurStats[$j]['joueurs'][$cle]. '/56.png" title="Voir le profil de ' .$serveurStats[$j]['joueurs'][$cle]. '">'; ?>
</a>
<?php
}
}
}
}
} ?>
</div>
</div>
<?php }
} ?>
</section>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>