|
|
@@ -2,7 +2,7 @@ |
|
|
|
<html lang="fr"> |
|
|
|
<head> |
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
|
|
<title>Ecomonde</title> |
|
|
|
<title>EcoMonde</title> |
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
|
|
<link rel="stylesheet" href="./css/bootstrap.css" media="screen"> |
|
|
|
<link rel="stylesheet" href="./css/bootswatch.min.css"> |
|
|
@@ -30,6 +30,7 @@ |
|
|
|
<li><a href="https://github.com/heuzef/ecomonde"><i class="glyphicon glyphicon-new-window"></i> GITHUB</a></li> |
|
|
|
</ul> |
|
|
|
<ul class="nav navbar-nav navbar-right"> |
|
|
|
<li><?php echo '<img src="http://gravatar.com/avatar/'.md5("contact@heuzef.com").'?s=50" alt="gravatar" />'; ?> <strong>HEUZEF</strong></li> |
|
|
|
<li><a href="#"><i class="glyphicon glyphicon-log-out"></i> DECONNEXION</a></li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
@@ -89,7 +90,7 @@ |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-cog"></i> <strong>Configurer votre partie</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
|
<p> |
|
|
|
<a href="play" class="btn btn-info btn-lg"><i class="glyphicon glyphicon-play"></i> Lancer votre partie</a> |
|
|
|
<a href="play" class="btn btn-info btn-lg" target="_blank"><i class="glyphicon glyphicon-play"></i> Lancer votre partie</a> |
|
|
|
<p> |
|
|
|
<hr /> |
|
|
|
<p> |
|
|
@@ -106,88 +107,87 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-lg-6 well"> |
|
|
|
<h2>Bienvenue Heuzef !</h2> |
|
|
|
<p>Voici les joueurs présent dans votre partie :</p> |
|
|
|
<table class="table table-striped table-hover "> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th></th> |
|
|
|
<th>Nom</th> |
|
|
|
<th><i class="glyphicon glyphicon-heart" style="color:red;"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-flash" style="color:#FFD700;"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire"></i></th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>Pseudonyme</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
</tr> |
|
|
|
<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>Pseudonyme</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
</tr> |
|
|
|
<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>Pseudonyme</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
</tr> |
|
|
|
<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>Pseudonyme</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
<td>0</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
<div class="col-lg-6"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-user"></i> <strong>Joueurs présents dans votre partie :</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
|
<table class="table table-striped table-hover "> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th></th> |
|
|
|
<th>Nom</th> |
|
|
|
<th><i class="glyphicon glyphicon-heart" style="color:red;"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-flash" style="color:#FFD700;"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#28b62c"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#158cba"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#ffd000"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#ff4136"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#ADDFFF"></i></th> |
|
|
|
<th><i class="glyphicon glyphicon-fire" style="color:#8128B5"></i></th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<?php |
|
|
|
// nombre de gamers |
|
|
|
$f = 0; |
|
|
|
foreach(glob('*.xml') as $f) {$f+=1;} |
|
|
|
$nb_membres = count(glob('./gamers/*.xml')); |
|
|
|
|
|
|
|
// liste des gamers |
|
|
|
$folder = "./gamers"; |
|
|
|
$dossier = opendir($folder); |
|
|
|
while ($fichier = readdir($dossier)) |
|
|
|
{ |
|
|
|
if ($fichier != "." && $fichier != ".." ) |
|
|
|
{ |
|
|
|
$gamers = explode(".xml", $fichier); |
|
|
|
|
|
|
|
$xml = simplexml_load_file('./gamers/'.$fichier); |
|
|
|
if (!isset($itemnb)) { |
|
|
|
$itemnb=0; |
|
|
|
} else { |
|
|
|
$itemnb++; |
|
|
|
} |
|
|
|
foreach($xml->entry as $entry) { |
|
|
|
echo '<tr class="active"> |
|
|
|
<td><a href="#" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> <a href="#" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td> |
|
|
|
<td>'.$entry->nom.'</td> |
|
|
|
<td>'.$entry->hp.'</td> |
|
|
|
<td>'.$entry->xp.'</td> |
|
|
|
<td>'.$entry->ecos->verte.'</td> |
|
|
|
<td>'.$entry->ecos->bleue.'</td> |
|
|
|
<td>'.$entry->ecos->jaune.'</td> |
|
|
|
<td>'.$entry->ecos->rouge.'</td> |
|
|
|
<td>'.$entry->ecos->blanche.'</td> |
|
|
|
<td>'.$entry->ecos->noire.'</td> |
|
|
|
</tr>'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
closedir($dossier); |
|
|
|
?> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
<div class="col-lg-10"> |
|
|
|
<div class="panel panel-default"> |
|
|
|
<div class="panel-heading"><i class="glyphicon glyphicon-headphones"></i> <strong>Medias</strong></div> |
|
|
|
<div class="panel-body"> |
|
|
|
<p>Lorem ipsum dolor sit amet.</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-lg-1"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<script src="./js/jquery-1.10.2.min.js"></script> |
|
|
|
<script src="./js/bootstrap.min.js"></script> |
|
|
|
<script src="./js/bootswatch.js"></script> |
|
|
|