Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

160 righe
6.7 KiB

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