Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

183 строки
8.0 KiB

  1. <?php
  2. $xml = simplexml_load_file('../medias/'.$hash.'/'.$fichier);
  3. if (!isset($itemnb)) {
  4. $itemnb=0;
  5. } else {
  6. $itemnb++;
  7. }
  8. foreach($xml->entry as $entry) {
  9. ?>
  10. <!-- gamers -->
  11. <div class="col-lg-4" id="content_<?php echo $entry->nom; ?>">
  12. <div class="panel panel-<?php echo $entry->trans; ?>">
  13. <div class="panel-heading">
  14. <div class="row">
  15. <div class="col-lg-3">
  16. <?php button_modif_level("level_down", $entry->nom, "<i class='ionicons ion-arrow-graph-down-left'></i>"); ?>
  17. <span class="level"><?php echo $entry->level; ?></span>
  18. <?php button_modif_level("level_up", $entry->nom, "<i class='ionicons ion-arrow-graph-up-right'></i>"); ?>
  19. </div>
  20. <div class="col-lg-5 player_name">
  21. <?php echo $entry->nom; ?>
  22. </div>
  23. <div class="col-lg-4">
  24. <?php
  25. if ($entry->level !=0) {
  26. trans("trans_dark", $entry->nom, "#8128B5"); ?><?php trans("trans_light", $entry->nom, "#ADDFFF"); ?><?php trans("trans_default", $entry->nom, "#AAA");
  27. }
  28. ?>
  29. </div>
  30. </div>
  31. <div class="row">
  32. <div class="col-lg-4">
  33. <h3><i class="ionicons ion-egg" style="color:brown;";></i>&nbsp;<strong><?php echo $entry->money; ?></strong></h3>
  34. </div>
  35. <div class="col-lg-4">
  36. <?php
  37. $hp_max="10";
  38. switch ($entry->level)
  39. {
  40. case 0:
  41. $hp_max+=0;
  42. break;
  43. case 1:
  44. $hp_max+=2;
  45. break;
  46. case 2:
  47. $hp_max+=5;
  48. break;
  49. case 3:
  50. $hp_max+=10;
  51. break;
  52. default:
  53. echo "?";
  54. }
  55. ?>
  56. <h3><i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub></h3>
  57. </div>
  58. <div class="col-lg-4">
  59. <h3><i class="ionicons ion-flash" style="color:#FFD700;";></i>&nbsp;<strong><?php echo $entry->xp; ?></strong>&nbsp;</h3>
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="col-lg-4">
  64. <?php button_modif_money("money_reset", $entry->nom, "0"); ?><?php button_modif_money("money_moins", $entry->nom, "-"); ?><?php button_modif_money("money_plus", $entry->nom, "+"); ?>
  65. </div>
  66. <div class="col-lg-4">
  67. <?php button_modif_hp("hp_moins", $entry->nom, '<i class="ionicons ion-heart-broken"></i>'); ?><?php button_modif_hp("hp_plus", $entry->nom, '<i class="ionicons ion-heart"></i>'); ?>
  68. </div>
  69. <div class="col-lg-4">
  70. <?php button_modif_xp("xp_reset", $entry->nom, '<i class="ionicons ion-flash-off"></i>'); ?><?php button_modif_xp("xp_moinsmoins", $entry->nom, "--"); ?><?php button_modif_xp("xp_moins", $entry->nom, "-"); ?><?php button_modif_xp("xp_plus", $entry->nom, "+"); ?><?php button_modif_xp("xp_plusplus", $entry->nom, "++"); ?>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="panel-body">
  75. <div class="row">
  76. <div class="col-lg-3">
  77. <h4><strong>Attaque</strong></h4>
  78. <?php button_modif_attack("attack_down", $entry->nom, "<i class='ionicons ion-arrow-down-c'></i>"); ?>
  79. <span class="skill"><?php echo ($entry->attack+$entry->level); ?></span>
  80. <?php button_modif_attack("attack_up", $entry->nom, "<i class='ionicons ion-arrow-up-c'></i>"); ?>
  81. </div>
  82. <div class="col-lg-3">
  83. <h4><strong>Défense</strong></h4>
  84. <?php button_modif_defense("defense_down", $entry->nom, "<i class='ionicons ion-arrow-down-c'></i>"); ?>
  85. <span class="skill"><?php echo ($entry->defense+$entry->level); ?></span>
  86. <?php button_modif_defense("defense_up", $entry->nom, "<i class='ionicons ion-arrow-up-c'></i>"); ?>
  87. </div>
  88. <div class="col-lg-1">
  89. <?php button_modif_ecos("eco_blanche_moins", $entry->nom, "<span style='color:#ADDFFF'>-</span>"); ?>
  90. </div>
  91. <div class="col-lg-4">
  92. <div class="progress progress-striped active">
  93. <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
  94. </div>
  95. </div>
  96. <div class="col-lg-1">
  97. <?php button_modif_ecos("eco_blanche_plus", $entry->nom, "<span style='color:#ADDFFF'>+</span>"); ?>
  98. </div>
  99. <br /><br />
  100. <div class="col-lg-1">
  101. <?php button_modif_ecos("eco_noire_moins", $entry->nom, "<span style='color:#8128B5'>-</span>"); ?>
  102. </div>
  103. <div class="col-lg-4">
  104. <div class="progress progress-striped active">
  105. <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
  106. </div>
  107. </div>
  108. <div class="col-lg-1">
  109. <?php button_modif_ecos("eco_noire_plus", $entry->nom, "<span style='color:#8128B5'>+</span>"); ?>
  110. </div>
  111. </div>
  112. <hr />
  113. <div class="row">
  114. <div class="col-lg-1">
  115. <?php button_modif_ecos("eco_verte_moins", $entry->nom, "<span style='color:green'>-</span>"); ?>
  116. </div>
  117. <div class="col-lg-4">
  118. <div class="progress progress-striped active">
  119. <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%""><?php echo $entry->ecos->verte; ?></span></div>
  120. </div>
  121. </div>
  122. <div class="col-lg-1">
  123. <?php button_modif_ecos("eco_verte_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
  124. </div>
  125. <div class="col-lg-1">
  126. <?php button_modif_ecos("eco_bleue_moins", $entry->nom, "<span style='color:blue'>-</span>"); ?>
  127. </div>
  128. <div class="col-lg-4">
  129. <div class="progress progress-striped active">
  130. <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
  131. </div>
  132. </div>
  133. <div class="col-lg-1">
  134. <?php button_modif_ecos("eco_bleue_plus", $entry->nom, "<span style='color:blue'>+</span>"); ?>
  135. </div>
  136. </div>
  137. <div class="row">
  138. <div class="col-lg-1">
  139. <?php button_modif_ecos("eco_jaune_moins", $entry->nom, "<span style='color:#FFD700'>-</span>"); ?>
  140. </div>
  141. <div class="col-lg-4">
  142. <div class="progress progress-striped active">
  143. <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
  144. </div>
  145. </div>
  146. <div class="col-lg-1">
  147. <?php button_modif_ecos("eco_jaune_plus", $entry->nom, "<span style='color:#FFD700'>+</span>"); ?>
  148. </div>
  149. <div class="col-lg-1">
  150. <?php button_modif_ecos("eco_rouge_moins", $entry->nom, "<span style='color:red'>-</span>"); ?>
  151. </div>
  152. <div class="col-lg-4">
  153. <div class="progress progress-striped active">
  154. <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
  155. </div>
  156. </div>
  157. <div class="col-lg-1">
  158. <?php button_modif_ecos("eco_rouge_plus", $entry->nom, "<span style='color:red'>+</span>"); ?>
  159. </div>
  160. </div>
  161. <hr />
  162. <div class="bs-component">
  163. <button type="button" class="btn btn-default btn-lg" data-container="body" data-toggle="popover" data-placement="top" data-content="Vivamus
  164. sagittis lacus vel augue laoreet rutrum faucibus." data-original-title="This is sparta !">Top</button>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. <!-- /gamers -->
  170. <?php } ?>