Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

gamers.php 9.5 KiB

il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
il y a 10 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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="list-group col-lg-9">
  163. <a class="list-group-item">
  164. <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#notes<?php echo $itemnb; ?>" style="float:right;"><i class="ionicons ion-edit"></i></button>
  165. <h4>Notes :</h4>
  166. <p class="list-group-item-text"><?php echo $entry->notes ?></p>
  167. </a>
  168. </div>
  169. <div class="col-lg-3">
  170. <h4><i class="glyphicon glyphicon-gift" style="color:blue;";></i>&nbsp;<strong><?php echo $entry->gift; ?></strong></h4>
  171. <?php button_modif_gift("gift_reset", $entry->nom, "0"); ?><?php button_modif_gift("gift_moins", $entry->nom, "-"); ?><?php button_modif_gift("gift_plus", $entry->nom, "+"); ?>
  172. </div>
  173. <!-- notes -->
  174. <div class="modal fade" id="notes<?php echo $itemnb;?>" tabindex="-1" role="dialog" aria-labelledby="notes<?php echo $itemnb;?>" aria-hidden="true">
  175. <div class="modal-dialog">
  176. <div class="modal-content">
  177. <div class="modal-body">
  178. <div class="container-fluid">
  179. <div class="col-lg-12">
  180. <form action="action.php?edit_notes&amp;entry=<?php echo $entry->nom; ?>" method="post">
  181. <textarea name="notes" id="notes<?php echo $itemnb; ?>" cols="80" rows="10"><?php echo $entry->notes;?></textarea>
  182. <div class="modal-footer">
  183. <button type="button" class="btn btn-default" data-dismiss="modal" style="float:left;">Fermer</button>
  184. <input type="submit" class="btn btn-primary" value="Editer" />
  185. </div>
  186. </form>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <!-- /gamers -->
  197. <?php } ?>