|
- <?php
-
- $xml = simplexml_load_file('../medias/'.$hash.'/'.$fichier);
- if (!isset($itemnb)) {
- $itemnb=0;
- } else {
- $itemnb++;
- }
- foreach($xml->entry as $entry) {
- ?>
-
- <!-- gamers -->
- <div class="col-lg-4" id="content_<?php echo $entry->nom; ?>">
- <div class="panel panel-<?php echo $entry->trans; ?>">
- <div class="panel-heading">
- <div class="row">
- <div class="col-lg-3">
- <?php button_modif_level("level_down", $entry->nom, "<i class='ionicons ion-arrow-graph-down-left'></i>"); ?>
- <span class="level"><?php echo $entry->level; ?></span>
- <?php button_modif_level("level_up", $entry->nom, "<i class='ionicons ion-arrow-graph-up-right'></i>"); ?>
- </div>
- <div class="col-lg-5 player_name">
- <?php echo $entry->nom; ?>
- </div>
- <div class="col-lg-4">
- <?php
- if ($entry->level !=0) {
- trans("trans_dark", $entry->nom, "#8128B5"); ?><?php trans("trans_light", $entry->nom, "#ADDFFF"); ?><?php trans("trans_default", $entry->nom, "#AAA");
- }
- ?>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-4">
- <h3><i class="ionicons ion-egg" style="color:brown;";></i> <strong><?php echo $entry->money; ?></strong></h3>
- </div>
- <div class="col-lg-4">
- <?php
- $hp_max="10";
- switch ($entry->level)
- {
- case 0:
- $hp_max+=0;
- break;
- case 1:
- $hp_max+=2;
- break;
- case 2:
- $hp_max+=5;
- break;
- case 3:
- $hp_max+=10;
- break;
- default:
- echo "?";
- }
- ?>
- <h3><i class="ionicons ion-heart" style="color:red;";></i> <strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub></h3>
- </div>
- <div class="col-lg-4">
- <h3><i class="ionicons ion-flash" style="color:#FFD700;";></i> <strong><?php echo $entry->xp; ?></strong> </h3>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-4">
- <?php button_modif_money("money_reset", $entry->nom, "0"); ?><?php button_modif_money("money_moins", $entry->nom, "-"); ?><?php button_modif_money("money_plus", $entry->nom, "+"); ?>
- </div>
- <div class="col-lg-4">
- <?php button_modif_hp("hp_moins", $entry->nom, '<i class="ionicons ion-heart-broken"></i>'); ?><?php button_modif_hp("hp_plus", $entry->nom, '<i class="ionicons ion-heart"></i>'); ?><?php button_modif_hp("heal", $entry->nom, '<i class="ionicons ion-fireball" style="color:green;"></i>'); ?>
- </div>
- <div class="col-lg-4">
- <?php button_modif_xp("xp_reset", $entry->nom, '<i class="ionicons ion-flash-off"></i>'); ?><?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, "++"); ?>
- </div>
- </div>
- </div>
-
- <div class="panel-body">
-
- <div class="row">
-
- <div class="col-lg-3">
- <h4><strong>Attaque</strong></h4>
- <?php button_modif_attack("attack_down", $entry->nom, "<i class='ionicons ion-arrow-down-c'></i>"); ?>
- <span class="skill"><?php echo ($entry->attack+$entry->level); ?></span>
- <?php button_modif_attack("attack_up", $entry->nom, "<i class='ionicons ion-arrow-up-c'></i>"); ?>
- </div>
- <div class="col-lg-3">
- <h4><strong>Défense</strong></h4>
- <?php button_modif_defense("defense_down", $entry->nom, "<i class='ionicons ion-arrow-down-c'></i>"); ?>
- <span class="skill"><?php echo ($entry->defense+$entry->level); ?></span>
- <?php button_modif_defense("defense_up", $entry->nom, "<i class='ionicons ion-arrow-up-c'></i>"); ?>
- </div>
-
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_blanche_moins", $entry->nom, "<span style='color:#ADDFFF'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco blanche glow"><span style="width: <?php echo ($entry->ecos->blanche)*20; ?>%"><?php echo $entry->ecos->blanche; ?></span></div>
- </div>
- </div>
-
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_blanche_plus", $entry->nom, "<span style='color:#ADDFFF'>+</span>"); ?>
- </div>
- <br /><br />
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_noire_moins", $entry->nom, "<span style='color:#8128B5'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco noire glow"><span style="width: <?php echo ($entry->ecos->noire)*20; ?>%"><?php echo $entry->ecos->noire; ?></span></div>
- </div>
- </div>
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_noire_plus", $entry->nom, "<span style='color:#8128B5'>+</span>"); ?>
- </div>
-
- </div>
- <hr />
- <div class="row">
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_verte_moins", $entry->nom, "<span style='color:green'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco verte glow"><span style="width: <?php echo ($entry->ecos->verte)*20; ?>%""><?php echo $entry->ecos->verte; ?></span></div>
- </div>
- </div>
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_verte_plus", $entry->nom, "<span style='color:green'>+</span>"); ?>
- </div>
-
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_bleue_moins", $entry->nom, "<span style='color:blue'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco bleue glow"><span style="width: <?php echo ($entry->ecos->bleue)*20; ?>%"><?php echo $entry->ecos->bleue; ?></span></div>
- </div>
- </div>
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_bleue_plus", $entry->nom, "<span style='color:blue'>+</span>"); ?>
- </div>
- </div>
-
- <div class="row">
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_jaune_moins", $entry->nom, "<span style='color:#FFD700'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco jaune glow"><span style="width: <?php echo ($entry->ecos->jaune)*20; ?>%"><?php echo $entry->ecos->jaune; ?></span></div>
- </div>
- </div>
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_jaune_plus", $entry->nom, "<span style='color:#FFD700'>+</span>"); ?>
- </div>
-
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_rouge_moins", $entry->nom, "<span style='color:red'>-</span>"); ?>
- </div>
- <div class="col-lg-4">
- <div class="progress progress-striped active">
- <div class="progress-bar-eco rouge glow"><span style="width: <?php echo ($entry->ecos->rouge)*20; ?>%"><?php echo $entry->ecos->rouge; ?></span></div>
- </div>
- </div>
- <div class="col-lg-1">
- <?php button_modif_ecos("eco_rouge_plus", $entry->nom, "<span style='color:red'>+</span>"); ?>
- </div>
- </div>
- <hr />
-
- <div>
- <button class="btn btn-default btn-sm" data-toggle="modal" data-target="#stuff<?php echo $itemnb; ?>" style="float:right;"><i class="ionicons ion-edit"></i></button>
- <h3>Équipements</h3>
- </div>
- <div class="row">
- <div class="col-lg-4">
- <h4><img src="../img/item/offensif.png" class="img-rounded"> Offensif</h4>
- <div class="bs-component">
- <span class="label label-<?php echo $entry->stuff->stuff_1->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="Attaque +<?php echo $entry->stuff->stuff_1->spec;?>"><?php echo $entry->stuff->stuff_1->info;?></span>
- <span class="label label-<?php echo $entry->stuff->stuff_2->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="Attaque +<?php echo $entry->stuff->stuff_2->spec;?>"><?php echo $entry->stuff->stuff_2->info;?></span>
- </div>
- </div>
- <div class="col-lg-4">
- <h4><img src="../img/item/defensif.png" class="img-rounded"> Défensif</h4>
- <div class="bs-component">
- <span class="label label-<?php echo $entry->stuff->stuff_3->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="Défense +<?php echo $entry->stuff->stuff_3->spec;?>"><?php echo $entry->stuff->stuff_3->info;?></span>
- <span class="label label-<?php echo $entry->stuff->stuff_4->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="Défense +<?php echo $entry->stuff->stuff_4->spec;?>"><?php echo $entry->stuff->stuff_4->info;?></span>
- </div>
- </div>
- <div class="col-lg-4">
- <h4><img src="../img/item/objets.png" class="img-rounded"> Objets</h4>
- <div class="bs-component">
- <span class="label label-<?php echo $entry->stuff->stuff_5->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="<?php echo $entry->stuff->stuff_5->spec;?>"><?php echo $entry->stuff->stuff_5->info;?></span>
- <span class="label label-<?php echo $entry->stuff->stuff_6->enchant;?>" data-toggle="tooltip" data-placement="top" data-original-title="<?php echo $entry->stuff->stuff_6->spec;?>"><?php echo $entry->stuff->stuff_6->info;?></span>
- </div>
- </div>
- </div>
-
- <!-- notes -->
- <div class="modal fade" id="stuff<?php echo $itemnb;?>" tabindex="-1" role="dialog" aria-labelledby="stuff<?php echo $itemnb;?>" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-body">
- <div class="container-fluid">
- <div class="col-lg-12">
- <form action="action.php?edit_stuff&entry=<?php echo $entry->nom; ?>" method="post">
- <textarea name="notes" id="stuff<?php echo $itemnb; ?>" cols="80" rows="10"><?php echo $entry->stuff;?></textarea>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal" style="float:left;">Fermer</button>
- <input type="submit" class="btn btn-primary" value="Editer" />
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- <!-- /gamers -->
-
- <?php } ?>
|