You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gamers.php 6.4 KiB

10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <?php
  2. $xml = simplexml_load_file('./gamers/'.$fichier);
  3. foreach($xml->entry as $entry) {
  4. ?>
  5. <!-- gamers -->
  6. <div class="col-lg-4">
  7. <div class="panel panel-<?php echo $entry->trans; ?>">
  8. <div class="panel-heading">
  9. <div class="row">
  10. <div class="col-lg-4">
  11. <h2><strong><?php echo $entry->nom; ?></strong></h2>
  12. </div>
  13. <div class="col-lg-4">
  14. <h3><i class="glyphicon glyphicon-heart" style="color:red;";></i>&nbsp;<strong><?php echo $entry->hp; ?></strong></h3>
  15. </div>
  16. <div class="col-lg-4">
  17. <h3><i class="glyphicon glyphicon-flash" style="color:#FFD700;";></i>&nbsp;<strong><?php echo $entry->xp; ?></strong></h3>
  18. </div>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-4">
  22. <a href="index.php"><div id="des"><?php echo rand(1, 6); ?></div></a>
  23. <?php trans("trans_dark", $entry->nom, "#8128B5"); ?>
  24. <?php trans("trans_light", $entry->nom, "#ADDFFF"); ?>
  25. <?php trans("trans_default", $entry->nom, "#AAA"); ?>
  26. </div>
  27. <div class="col-lg-4">
  28. <?php button_modif_hp("hp_moins", $entry->nom, "-"); ?><?php button_modif_hp("hp_plus", $entry->nom, "+"); ?>
  29. </div>
  30. <div class="col-lg-4">
  31. <?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, "++"); ?>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="panel-body">
  36. <div class="row">
  37. <div class="col-lg-1">
  38. <?php button_modif_ecos("eco_verte_moins", $entry->nom, "-"); ?>
  39. </div>
  40. <div class="col-lg-9">
  41. <div class="progress progress-striped active">
  42. <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%"><?php echo $entry->ecos->verte; ?></span></div>
  43. </div>
  44. </div>
  45. <div class="col-lg-2">
  46. <?php button_modif_ecos("eco_verte_plus", $entry->nom, "+"); ?>
  47. </div>
  48. </div>
  49. <div class="row">
  50. <div class="col-lg-1">
  51. <?php button_modif_ecos("eco_bleue_moins", $entry->nom, "-"); ?>
  52. </div>
  53. <div class="col-lg-9">
  54. <div class="progress progress-striped active">
  55. <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
  56. </div>
  57. </div>
  58. <div class="col-lg-2">
  59. <?php button_modif_ecos("eco_bleue_plus", $entry->nom, "+"); ?>
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="col-lg-1">
  64. <?php button_modif_ecos("eco_jaune_moins", $entry->nom, "-"); ?>
  65. </div>
  66. <div class="col-lg-9">
  67. <div class="progress progress-striped active">
  68. <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
  69. </div>
  70. </div>
  71. <div class="col-lg-2">
  72. <?php button_modif_ecos("eco_jaune_plus", $entry->nom, "+"); ?>
  73. </div>
  74. </div>
  75. <div class="row">
  76. <div class="col-lg-1">
  77. <?php button_modif_ecos("eco_rouge_moins", $entry->nom, "-"); ?>
  78. </div>
  79. <div class="col-lg-9">
  80. <div class="progress progress-striped active">
  81. <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
  82. </div>
  83. </div>
  84. <div class="col-lg-2">
  85. <?php button_modif_ecos("eco_rouge_plus", $entry->nom, "+"); ?>
  86. </div>
  87. </div>
  88. <hr />
  89. <div class="row">
  90. <div class="col-lg-1">
  91. <?php button_modif_ecos("eco_blanche_moins", $entry->nom, "-"); ?>
  92. </div>
  93. <div class="col-lg-9">
  94. <div class="progress progress-striped active">
  95. <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
  96. </div>
  97. </div>
  98. <div class="col-lg-2">
  99. <?php button_modif_ecos("eco_blanche_plus", $entry->nom, "+"); ?>
  100. </div>
  101. </div>
  102. <div class="row">
  103. <div class="col-lg-1">
  104. <?php button_modif_ecos("eco_noire_moins", $entry->nom, "-"); ?>
  105. </div>
  106. <div class="col-lg-9">
  107. <div class="progress progress-striped active">
  108. <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
  109. </div>
  110. </div>
  111. <div class="col-lg-2">
  112. <?php button_modif_ecos("eco_noire_plus", $entry->nom, "+"); ?>
  113. </div>
  114. </div>
  115. <hr />
  116. <div class="list-group">
  117. <a class="list-group-item">
  118. <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#notes" style="float:right;"><i class="glyphicon glyphicon-pencil"></i></button>
  119. <h4>Notes :</h4>
  120. <p class="list-group-item-text"><?php echo $entry->notes ?></p>
  121. </a>
  122. </div>
  123. <!-- notes -->
  124. <div class="modal fade" id="notes" tabindex="-1" role="dialog" aria-labelledby="notes" aria-hidden="true">
  125. <div class="modal-dialog">
  126. <div class="modal-content">
  127. <div class="modal-body">
  128. <div class="container-fluid">
  129. <div class="col-lg-12">
  130. <form action="action.php?edit_notes&amp;entry=<?php echo $entry->nom; ?>" method="post">
  131. <textarea name="notes" id="notes" cols="68" rows="10"></textarea>
  132. </div>
  133. </div>
  134. </div>
  135. <div class="modal-footer">
  136. <button type="button" class="btn btn-default" data-dismiss="modal" style="float:left;">Fermer</button>
  137. <button type="button" class="btn btn-primary" data-dismiss="modal">Editer</button></form>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <!-- /gamers -->
  146. <?php } ?>