No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

163 líneas
7.4 KiB

  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>EcoMonde</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="shortcut icon" href="../../img/favicon.png" type="image/x-icon" />
  8. <link rel="stylesheet" href="../../css/bootstrap.css" media="screen">
  9. <link rel="stylesheet" href="../../css/bootswatch.min.css">
  10. <link rel="stylesheet" href="../../css/ionicons.min.css">
  11. <link rel="stylesheet" href="../../css/ecomonde.css">
  12. </head>
  13. <body>
  14. <?php
  15. if(!empty($_GET["view"]))
  16. {
  17. $xml = simplexml_load_file($_GET["view"].'.xml');
  18. foreach($xml->entry as $entry)
  19. { ?>
  20. <!-- phoneview -->
  21. <div class="well">
  22. <a href="index.php" class="btn btn-default btn-lg"><i class="ionicons ion-arrow-left-a"></i></a>
  23. <a href="index.php?view=<?php echo $entry->nom; ?>" class="btn btn-info btn-lg"><i class="ionicons ion-refresh"></i>&nbsp;Recharger</a>
  24. <a href="http://wiki.ecomonde.land/doku.php?id=wiki:equipements" class="btn btn-default btn-lg" target="_blank"><i class="ionicons ion-android-book"></i>&nbsp;&nbsp;Wiki:Equipements</a>
  25. </div>
  26. <hr />
  27. <div class="panel panel-<?php echo $entry->trans; ?>">
  28. <div class="panel-heading">
  29. <div class="container-fluid">
  30. <span class="level_phone"><?php echo $entry->level; ?></span>&nbsp;&nbsp;&nbsp;
  31. <span class="player_name_phone"><?php echo $entry->nom; ?></span>&nbsp;&nbsp;&nbsp;
  32. <span class="skill_phone">Att : <?php echo ($entry->attack+$entry->level); ?></span>&nbsp;&nbsp;&nbsp;
  33. <span class="skill_phone">Def : <?php echo ($entry->defense+$entry->level); ?></span>&nbsp;&nbsp;&nbsp;
  34. <br />
  35. <?php
  36. $hp_max="10";
  37. switch ($entry->level)
  38. {
  39. case 0:
  40. $hp_max+=0;
  41. break;
  42. case 1:
  43. $hp_max+=2;
  44. break;
  45. case 2:
  46. $hp_max+=5;
  47. break;
  48. case 3:
  49. $hp_max+=10;
  50. break;
  51. default:
  52. echo "?";
  53. }
  54. ?>
  55. <i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub>&nbsp;&nbsp;&nbsp;
  56. <i class="ionicons ion-egg" style="color:brown;";></i>&nbsp;<strong><?php echo $entry->money; ?></strong>&nbsp;&nbsp;&nbsp;
  57. <i class="ionicons ion-flash" style="color:#FFD700;";></i>&nbsp;<strong><?php echo $entry->xp; ?></strong>&nbsp;&nbsp;&nbsp;
  58. <i class="glyphicon glyphicon-gift" style="color:blue;";></i>&nbsp;<strong><?php echo $entry->gift; ?></strong>&nbsp;&nbsp;&nbsp;
  59. </div>
  60. <div class="panel-body">
  61. <div class="container-fluid">
  62. <div class="progress progress-striped active">
  63. <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div>
  64. </div>
  65. <div class="progress progress-striped active">
  66. <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
  67. </div>
  68. <div class="progress progress-striped active">
  69. <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
  70. </div>
  71. <div class="progress progress-striped active">
  72. <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
  73. </div>
  74. <div class="progress progress-striped active">
  75. <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
  76. </div>
  77. <div class="progress progress-striped active">
  78. <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
  79. </div>
  80. </div>
  81. <hr />
  82. <div class="list-group col-lg-9">
  83. <a class="list-group-item">
  84. <h4>Notes :</h4>
  85. <p class="list-group-item-text"><?php echo $entry->notes ?></p>
  86. </a>
  87. </div>
  88. </div>
  89. </div>
  90. <!-- /phoneview -->
  91. <?php }
  92. }
  93. else { ?>
  94. <div class="container-fluid">
  95. <img class="img-responsive" src="../../img/logo_0.png" alt="logo" />
  96. <hr />
  97. <div class="panel panel-default">
  98. <div class="panel-heading"><i class="ionicons ion-person"></i>&nbsp;&nbsp;<strong>Joueurs :</strong></div>
  99. <div class="panel-body">
  100. <table class="table table-striped table-hover ">
  101. <tbody>
  102. <?php
  103. // liste des gamers
  104. $folder = ".";
  105. $dossier = opendir($folder);
  106. while ($fichier = readdir($dossier))
  107. {
  108. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  109. {
  110. $gamers = explode(".xml", $fichier);
  111. $xml = simplexml_load_file($fichier);
  112. if (!isset($itemnb))
  113. {
  114. $itemnb=0;
  115. }
  116. else
  117. {
  118. $itemnb++;
  119. }
  120. foreach($xml->entry as $entry)
  121. {
  122. $hp_max="10";
  123. switch ($entry->level)
  124. {
  125. case 0:
  126. $hp_max+=0;
  127. break;
  128. case 1:
  129. $hp_max+=2;
  130. break;
  131. case 2:
  132. $hp_max+=5;
  133. break;
  134. case 3:
  135. $hp_max+=10;
  136. break;
  137. default:
  138. echo "?";
  139. }
  140. $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
  141. echo '<tr class="active">
  142. <td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
  143. <td><i class="ionicons ion-heart" style="color:red;"></i>&nbsp;'.$entry->hp.'/'.$hp_max.'</td>
  144. <td><a href="index.php?view='.$entry->nom.'" class="btn btn-info btn-sm"><i class="ionicons ion-eye">&nbsp;VOIR</i></a></td>
  145. </tr>';
  146. }
  147. }
  148. }
  149. closedir($dossier);
  150. ?>
  151. </tbody>
  152. </table>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. <?php } ?>
  158. </body>
  159. </html>