|
- <?php
-
- $xml = simplexml_load_file('../medias/'.$hash.'/enemy/'.$fichier);
- if (!isset($itemnb)) {
- $itemnb=0;
- } else {
- $itemnb++;
- }
- foreach($xml->entry as $entry) {
- ?>
-
- <!-- enemy -->
- <div class="col-lg-4">
- <div class="panel panel-default">
- <div class="panel-heading">
- <div class="row">
- <div class="enemy_name">
- <?php echo $entry->nom; ?>
- </div>
- <hr />
- </div>
- <div class="row">
- <div class="col-lg-5">
- <a href="<?php echo $entry->url; ?>" target="_blank" /><img class="img-responsive img-rounded" src="<?php echo $entry->img; ?>" alt="enemy" />
- </div>
- <div class="col-lg-2">
- <br />
- <?php button_modif_hp_enemy("hp_moins", $entry->nom, "-"); ?><?php button_modif_hp_enemy("hp_plus", $entry->nom, "+"); ?>
- <br /><br />
- <a href="del_enemy.php?enemy=<?php echo $fichier; ?>" class="btn btn-danger btn-sm"><i class="glyphicon glyphicon-remove-sign"></i></a>
- </div>
- <div class="col-lg-5">
- <br />
- <?php if($entry->hp == 0): ?>
- <p style="font-size:40px;"><i class="ionicons ion-heart-broken" style="color:grey;";></i> <i class="ionicons ion-heart-broken" style="color:grey;";></i> <i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
- <?php endif; ?>
- <?php if($entry->hp == 1): ?>
- <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i> <i class="ionicons ion-heart-broken" style="color:grey;";></i> <i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
- <?php endif; ?>
- <?php if($entry->hp == 2): ?>
- <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i> <i class="ionicons ion-heart" style="color:red;";></i> <i class="ionicons ion-heart-broken" style="color:grey;";></i></p>
- <?php endif; ?>
- <?php if($entry->hp == 3): ?>
- <p style="font-size:40px;"><i class="ionicons ion-heart" style="color:red;";></i> <i class="ionicons ion-heart" style="color:red;";></i> <i class="ionicons ion-heart" style="color:red;";></i></p>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- /enemy -->
-
- <?php } ?>
|