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.
 
 
 
 

54 rivejä
2.3 KiB

  1. <?php
  2. $xml = simplexml_load_file('../medias/'.$hash.'/enemy/'.$fichier);
  3. if (!isset($itemnb)) {
  4. $itemnb=0;
  5. } else {
  6. $itemnb++;
  7. }
  8. foreach($xml->entry as $entry) {
  9. ?>
  10. <!-- enemy -->
  11. <div class="col-lg-4">
  12. <div class="panel panel-default">
  13. <div class="panel-heading">
  14. <div class="row">
  15. <div class="enemy_name">
  16. <?php echo $entry->nom; ?>
  17. </div>
  18. <hr />
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-5">
  22. <a href="<?php echo $entry->url; ?>" target="_blank" /><img class="img-responsive img-rounded" style="height:90px" src="<?php echo $entry->img; ?>" alt="enemy" />
  23. </div>
  24. <div class="col-lg-2">
  25. <br />
  26. <?php button_modif_hp_enemy("hp_moins", $entry->nom, "-"); ?><?php button_modif_hp_enemy("hp_plus", $entry->nom, "+"); ?>
  27. <br /><br />
  28. <a href="del_enemy.php?enemy=<?php echo $fichier; ?>" class="btn btn-danger btn-sm"><i class="glyphicon glyphicon-remove-sign"></i></a>
  29. </div>
  30. <div class="col-lg-5">
  31. <br />
  32. <?php if($entry->hp == 0): ?>
  33. <p style="font-size:40px;"><i class="ionicons ion-heart-broken" style="color:grey;";></i>&nbsp;<i class="ionicons ion-heart-broken" style="color:grey;";></i>&nbsp;<i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
  34. <?php endif; ?>
  35. <?php if($entry->hp == 1): ?>
  36. <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<i class="ionicons ion-heart-broken" style="color:grey;";></i>&nbsp;<i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
  37. <?php endif; ?>
  38. <?php if($entry->hp == 2): ?>
  39. <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
  40. <?php endif; ?>
  41. <?php if($entry->hp == 3): ?>
  42. <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<i class="ionicons ion-heart" style="color:red;";></i>&nbsp;<i class="ionicons ion-heart" style="color:red;";></i></p>
  43. <?php endif; ?>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <!-- /enemy -->
  50. <?php } ?>