Browse Source

Mise à jour Tableau joueur

master
heuzef 9 years ago
parent
commit
989d27374d
3 changed files with 38 additions and 52 deletions
  1. +16
    -7
      index.php
  2. +14
    -14
      medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml
  3. +8
    -31
      medias/default/index.php

+ 16
- 7
index.php View File

@@ -188,9 +188,9 @@ $message[11]='
<th><i class="ionicons ion-flash" style="color:#FFD700;"></i></th>
<th><i class="ionicons ion-egg" style="color:brown"></i></th>
<th><i class="ionicons ion-fireball" style="color:grey"></i></th>
<th><i class="ionicons ion-fireball" style="color:#ADDFFF"></i></th>
<th><i class="ionicons ion-fireball" style="color:#8128B5"></i></th>
<th><i class="ionicons ion-android-note" style="color:#000"></i></th>
<th>Att</th>
<th>D&eacute;f</th>
<th>&Eacute;quipements</th>
</tr>
</thead>
<tbody>
@@ -217,7 +217,9 @@ $message[11]='
$itemnb++;
}
foreach($xml->entry as $entry) {
$somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge;
$somme_ecos=$entry->ecos->verte+$entry->ecos->bleue+$entry->ecos->jaune+$entry->ecos->rouge+$entry->ecos->blanche+$entry->ecos->noire;
$somme_att=$entry->attack+$entry->stuff->stuff_1->spec+$entry->level;
$somme_def=$entry->defense+$entry->stuff->stuff_2->spec+$entry->level;
echo '<tr class="active">
<td><a href="del.php?player='.$fichier.'" class="btn btn-danger btn-xs"><i class="ionicons ion-trash-b"></i></a>&nbsp;&nbsp;<a href="./medias/'.$hash.'/'.$fichier.'" target="_blank" class="btn btn-success btn-xs"><i class="glyphicon glyphicon-export"></i></a></td>
<td><strong>['.$entry->level.']</strong>&nbsp;'.$entry->nom.'</td>
@@ -225,9 +227,16 @@ $message[11]='
<td>'.$entry->xp.'</td>
<td>'.$entry->money.'</td>
<td>'.$somme_ecos.'</td>
<td>'.$entry->ecos->blanche.'</td>
<td>'.$entry->ecos->noire.'</td>
<td>'.substr($entry->notes, 0, 40).'...</td>
<td>'.$somme_att.'</td>
<td>'.$somme_def.'</td>
<td>
<span class="label enchant-'.$entry->stuff->stuff_1->enchant.'">'.$entry->stuff->stuff_1->info.'</span>
<span class="label enchant-'.$entry->stuff->stuff_2->enchant.'">'.$entry->stuff->stuff_2->info.'</span>
<span class="label enchant-'.$entry->stuff->stuff_3->enchant.'">'.$entry->stuff->stuff_3->info.'</span>
<span class="label enchant-'.$entry->stuff->stuff_4->enchant.'">'.$entry->stuff->stuff_4->info.'</span>
<span class="label enchant-'.$entry->stuff->stuff_5->enchant.'">'.$entry->stuff->stuff_5->info.'</span>
<span class="label enchant-'.$entry->stuff->stuff_6->enchant.'">'.$entry->stuff->stuff_6->info.'</span>
</td>
</tr>';
}
}


+ 14
- 14
medias/c0f08ae603e364cb554fe71c9fc94ffd/derpy.xml View File

@@ -2,14 +2,14 @@
<response>
<entry>
<nom>derpy</nom>
<level>2</level>
<hp>23</hp>
<xp>50</xp>
<money>5</money>
<level>0</level>
<hp>10</hp>
<xp>0</xp>
<money>0</money>
<attack>0</attack>
<defense>0</defense>
<ecos>
<verte>1</verte>
<verte>0</verte>
<bleue>0</bleue>
<jaune>0</jaune>
<rouge>0</rouge>
@@ -18,19 +18,19 @@
</ecos>
<stuff>
<stuff_1>
<info>Épée de mort</info>
<enchant>rouge</enchant>
<spec>2</spec>
<info>Vide</info>
<enchant>default</enchant>
<spec>0</spec>
</stuff_1>
<stuff_2>
<info>Armure métalique</info>
<enchant>bleue</enchant>
<spec>1</spec>
<info>Vide</info>
<enchant>default</enchant>
<spec>0</spec>
</stuff_2>
<stuff_3>
<info>Pot. soin</info>
<enchant>verte</enchant>
<spec>Une potion de soin rétablissant 2 PV</spec>
<info>Vide</info>
<enchant>default</enchant>
<spec>Emplacement vide</spec>
</stuff_3>
<stuff_4>
<info>Vide</info>


+ 8
- 31
medias/default/index.php View File

@@ -1,39 +1,15 @@
<?php
function button_modif_level($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_hp($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-sm" style="float:left">'.$texte_bouton.'</button></form>';
}
function button_modif_xp($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_money($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function trans($nom_parametre, $nom_perso, $couleur)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs"><i class="ionicons ion-fireball" style="color:'.$couleur.'";></i></button></form>';
}
function button_modif_attack($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
}
function button_modif_defense($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
$currentpath = explode("/", dirname(__FILE__));
$hash=$currentpath[6];
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'&amp;hash='.$hash.'" method="post"><button type="submit" class="btn btn-default btn-sm" style="float:left">'.$texte_bouton.'</button></form>';
}
function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-sm">'.$texte_bouton.'</button></form>';
}
function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
{
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>';
$currentpath = explode("/", dirname(__FILE__));
$hash=$currentpath[6];
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&amp;entry='.$nom_perso.'&amp;hash='.$hash.'" method="post"><button type="submit" class="btn btn-default btn-sm">'.$texte_bouton.'</button></form>';
}
?>

@@ -69,7 +45,7 @@ function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
<div class="panel-heading">
<div class="container-fluid">
<span class="level_phone"><?php echo $entry->level; ?></span>&nbsp;&nbsp;&nbsp;
<span class="player_name_phone"><?php echo $entry->nom; ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="player_name_phone"><?php echo $entry->nom; ?></span>&nbsp;&nbsp;&nbsp;&nbsp;
<strong>Attaque</strong> <span class="skill_phone">+ <?php echo $entry->attack+$entry->level+$entry->stuff->stuff_1->spec; ?></span>&nbsp;&nbsp;&nbsp;
<strong>D&eacute;fense</strong> <span class="skill_phone">+ <?php echo $entry->defense+$entry->level+$entry->stuff->stuff_2->spec; ?></span>
<?php
@@ -283,3 +259,4 @@ function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton)
<?php } ?>
</body>
</html>

Loading…
Cancel
Save