Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

170 рядки
7.3 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">
  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-7">
  21. <h2><strong><?php echo $entry->nom; ?></strong></h2>
  22. </div>
  23. <div class="col-lg-1">
  24. <?php trans("trans_dark", $entry->nom, "#8128B5"); ?><?php trans("trans_light", $entry->nom, "#ADDFFF"); ?><?php trans("trans_default", $entry->nom, "#AAA"); ?>
  25. </div>
  26. </div>
  27. <div class="row">
  28. <div class="col-lg-4">
  29. <h3><i class="ionicons ion-egg" style="color:brown;";></i>&nbsp;<strong><?php echo $entry->money; ?></strong></h3>
  30. </div>
  31. <div class="col-lg-4">
  32. <h3><i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<strong><?php echo $entry->hp; ?></strong></h3>
  33. </div>
  34. <div class="col-lg-4">
  35. <h3><i class="ionicons ion-flash" style="color:#FFD700;";></i>&nbsp;<strong><?php echo $entry->xp; ?></strong></h3>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="col-lg-4">
  40. <?php button_modif_money("money_moins", $entry->nom, "-"); ?><?php button_modif_money("money_plus", $entry->nom, "+"); ?>
  41. </div>
  42. <div class="col-lg-4">
  43. <?php button_modif_hp("hp_moins", $entry->nom, "-"); ?><?php button_modif_hp("hp_plus", $entry->nom, "+"); ?>
  44. </div>
  45. <div class="col-lg-4">
  46. <?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, "++"); ?>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="panel-body">
  51. <div class="row">
  52. <div class="col-lg-1">
  53. <?php button_modif_ecos("eco_verte_moins", $entry->nom, "-"); ?>
  54. </div>
  55. <div class="col-lg-9">
  56. <div class="progress progress-striped active">
  57. <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div>
  58. </div>
  59. </div>
  60. <div class="col-lg-2">
  61. <?php button_modif_ecos("eco_verte_plus", $entry->nom, "+"); ?>
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col-lg-1">
  66. <?php button_modif_ecos("eco_bleue_moins", $entry->nom, "-"); ?>
  67. </div>
  68. <div class="col-lg-9">
  69. <div class="progress progress-striped active">
  70. <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
  71. </div>
  72. </div>
  73. <div class="col-lg-2">
  74. <?php button_modif_ecos("eco_bleue_plus", $entry->nom, "+"); ?>
  75. </div>
  76. </div>
  77. <div class="row">
  78. <div class="col-lg-1">
  79. <?php button_modif_ecos("eco_jaune_moins", $entry->nom, "-"); ?>
  80. </div>
  81. <div class="col-lg-9">
  82. <div class="progress progress-striped active">
  83. <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
  84. </div>
  85. </div>
  86. <div class="col-lg-2">
  87. <?php button_modif_ecos("eco_jaune_plus", $entry->nom, "+"); ?>
  88. </div>
  89. </div>
  90. <div class="row">
  91. <div class="col-lg-1">
  92. <?php button_modif_ecos("eco_rouge_moins", $entry->nom, "-"); ?>
  93. </div>
  94. <div class="col-lg-9">
  95. <div class="progress progress-striped active">
  96. <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
  97. </div>
  98. </div>
  99. <div class="col-lg-2">
  100. <?php button_modif_ecos("eco_rouge_plus", $entry->nom, "+"); ?>
  101. </div>
  102. </div>
  103. <hr />
  104. <div class="row">
  105. <div class="col-lg-1">
  106. <?php button_modif_ecos("eco_blanche_moins", $entry->nom, "-"); ?>
  107. </div>
  108. <div class="col-lg-9">
  109. <div class="progress progress-striped active">
  110. <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
  111. </div>
  112. </div>
  113. <div class="col-lg-2">
  114. <?php button_modif_ecos("eco_blanche_plus", $entry->nom, "+"); ?>
  115. </div>
  116. </div>
  117. <div class="row">
  118. <div class="col-lg-1">
  119. <?php button_modif_ecos("eco_noire_moins", $entry->nom, "-"); ?>
  120. </div>
  121. <div class="col-lg-9">
  122. <div class="progress progress-striped active">
  123. <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
  124. </div>
  125. </div>
  126. <div class="col-lg-2">
  127. <?php button_modif_ecos("eco_noire_plus", $entry->nom, "+"); ?>
  128. </div>
  129. </div>
  130. <hr />
  131. <div class="list-group">
  132. <a class="list-group-item">
  133. <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>
  134. <h4>Notes :</h4>
  135. <p class="list-group-item-text"><?php echo $entry->notes ?></p>
  136. </a>
  137. </div>
  138. <!-- notes -->
  139. <div class="modal fade" id="notes<?php echo $itemnb;?>" tabindex="-1" role="dialog" aria-labelledby="notes<?php echo $itemnb;?>" aria-hidden="true">
  140. <div class="modal-dialog">
  141. <div class="modal-content">
  142. <div class="modal-body">
  143. <div class="container-fluid">
  144. <div class="col-lg-12">
  145. <form action="action.php?edit_notes&amp;entry=<?php echo $entry->nom; ?>" method="post">
  146. <textarea name="notes" id="notes<?php echo $itemnb; ?>" cols="60" rows="10"><?php echo $entry->notes;?></textarea>
  147. <div class="modal-footer">
  148. <button type="button" class="btn btn-default" data-dismiss="modal" style="float:left;">Fermer</button>
  149. <input type="submit" class="btn btn-primary" value="Editer" />
  150. </div>
  151. </form>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <!-- /gamers -->
  162. <?php } ?>