Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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>
  32. <br />
  33. <?php
  34. $hp_max="10";
  35. switch ($entry->level)
  36. {
  37. case 0:
  38. $hp_max+=0;
  39. break;
  40. case 1:
  41. $hp_max+=2;
  42. break;
  43. case 2:
  44. $hp_max+=5;
  45. break;
  46. case 3:
  47. $hp_max+=10;
  48. break;
  49. default:
  50. echo "?";
  51. }
  52. ?>
  53. <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;
  54. <i class="ionicons ion-egg" style="color:brown;";></i>&nbsp;<strong><?php echo $entry->money; ?></strong>&nbsp;&nbsp;&nbsp;
  55. <i class="ionicons ion-flash" style="color:#FFD700;";></i>&nbsp;<strong><?php echo $entry->xp; ?></strong>&nbsp;&nbsp;&nbsp;
  56. <i class="glyphicon glyphicon-gift" style="color:blue;";></i>&nbsp;<strong><?php echo $entry->gift; ?></strong>&nbsp;&nbsp;&nbsp;
  57. </div>
  58. <div class="panel-body">
  59. <div class="container-fluid">
  60. <div class="progress progress-striped active">
  61. <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div>
  62. </div>
  63. <div class="progress progress-striped active">
  64. <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
  65. </div>
  66. <div class="progress progress-striped active">
  67. <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
  68. </div>
  69. <div class="progress progress-striped active">
  70. <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
  71. </div>
  72. <div class="progress progress-striped active">
  73. <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
  74. </div>
  75. <div class="progress progress-striped active">
  76. <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
  77. </div>
  78. </div>
  79. <hr />
  80. <div class="list-group col-lg-9">
  81. <a class="list-group-item">
  82. <h4>Notes :</h4>
  83. <p class="list-group-item-text"><?php echo $entry->notes ?></p>
  84. </a>
  85. </div>
  86. </div>
  87. </div>
  88. <!-- /phoneview -->
  89. <?php }
  90. }
  91. else { ?>
  92. <div class="container-fluid">
  93. <img class="img-responsive" src="../../img/logo_0.png" alt="logo" />
  94. <hr />
  95. <div class="panel panel-default">
  96. <div class="panel-heading"><i class="ionicons ion-person"></i>&nbsp;&nbsp;<strong>Joueurs :</strong></div>
  97. <div class="panel-body">
  98. <table class="table table-striped table-hover ">
  99. <tbody>
  100. <?php
  101. // liste des gamers
  102. $folder = ".";
  103. $dossier = opendir($folder);
  104. while ($fichier = readdir($dossier))
  105. {
  106. if ($fichier != "." && $fichier != ".." && $fichier != "map.jpg" && $fichier != "soft.mp3" && $fichier != "tonic.mp3" && $fichier != "hard.mp3" && $fichier != "light.mp3" && $fichier != "dark.mp3" && $fichier != "enemy")
  107. {
  108. $gamers = explode(".xml", $fichier);
  109. $xml = simplexml_load_file($fichier);
  110. if (!isset($itemnb))
  111. {
  112. $itemnb=0;
  113. }
  114. else
  115. {
  116. $itemnb++;
  117. }
  118. foreach($xml->entry as $entry)
  119. {
  120. $hp_max="10";
  121. switch ($entry->level)
  122. {
  123. case 0:
  124. $hp_max+=0;
  125. break;
  126. case 1:
  127. $hp_max+=2;
  128. break;
  129. case 2:
  130. $hp_max+=5;
  131. break;
  132. case 3:
  133. $hp_max+=10;
  134. break;
  135. default:
  136. echo "?";
  137. }
  138. $somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
  139. echo '<tr class="active">
  140. <td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
  141. <td><i class="ionicons ion-heart" style="color:red;"></i>&nbsp;'.$entry->hp.'/'.$hp_max.'</td>
  142. <td><a href="index.php?view='.$entry->nom.'" class="btn btn-info btn-sm"><i class="ionicons ion-eye">&nbsp;VOIR</i></a></td>
  143. </tr>';
  144. }
  145. }
  146. }
  147. closedir($dossier);
  148. ?>
  149. </tbody>
  150. </table>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <?php } ?>
  156. </body>
  157. </html>