|
|
@@ -1,31 +1,31 @@ |
|
|
|
<?php |
|
|
|
function button_modif_level($nom_parametre, $nom_perso, $texte_bouton) |
|
|
|
{ |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:right;"><i class="ionicons ion-fireball" style="color:'.$couleur.'";></i></button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&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.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>'; |
|
|
|
} |
|
|
|
function button_modif_ecos($nom_parametre, $nom_perso, $texte_bouton) |
|
|
|
{ |
|
|
@@ -33,7 +33,7 @@ |
|
|
|
} |
|
|
|
function button_modif_gift($nom_parametre, $nom_perso, $texte_bouton) |
|
|
|
{ |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs" style="float:left;">'.$texte_bouton.'</button></form>'; |
|
|
|
echo '<form action="../../play/action_phone.php?'.$nom_parametre.'&entry='.$nom_perso.'" method="post"><button type="submit" class="btn btn-default btn-xs">'.$texte_bouton.'</button></form>'; |
|
|
|
} |
|
|
|
?> |
|
|
|
|
|
|
@@ -59,17 +59,19 @@ if(!empty($_GET["view"])) |
|
|
|
|
|
|
|
<!-- phoneview --> |
|
|
|
<div class="well"> |
|
|
|
<a href="index.php" class="btn btn-default btn-lg"><i class="ionicons ion-arrow-left-a"></i></a> |
|
|
|
<a href="index.php?view=<?php echo $entry->nom; ?>" class="btn btn-info btn-lg"><i class="ionicons ion-refresh"></i> Recharger</a> |
|
|
|
<a href="http://wiki.ecomonde.land/doku.php?id=wiki:equipements" class="btn btn-default btn-lg" target="_blank"><i class="ionicons ion-android-book"></i> Wiki:Equipements</a> |
|
|
|
<a href="index.php" class="btn btn-default"><i class="ionicons ion-arrow-left-a"></i></a> |
|
|
|
<a href="index.php?view=<?php echo $entry->nom; ?>" class="btn btn-info"><i class="ionicons ion-refresh"></i></a> |
|
|
|
<a href="http://wiki.ecomonde.land/doku.php?id=wiki:equipements" class="btn btn-default" target="_blank"><i class="ionicons ion-android-book"></i> Équipements</a> |
|
|
|
<a href="http://wiki.ecomonde.land/doku.php?id=wiki:enchantements" class="btn btn-default" target="_blank"><i class="ionicons ion-android-book"></i> Enchantements</a> |
|
|
|
</div> |
|
|
|
<hr /> |
|
|
|
<div class="panel panel-<?php echo $entry->trans; ?>"> |
|
|
|
<div class="panel-heading"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<span class="level_phone"><?php echo $entry->level; ?></span> |
|
|
|
<span class="player_name_phone"><?php echo $entry->nom; ?></span> |
|
|
|
|
|
|
|
<span class="player_name_phone"><?php echo $entry->nom; ?></span> |
|
|
|
<strong>Attaque</strong> <span class="skill_phone">+ <?php echo $entry->attack+$entry->level+$entry->stuff->stuff_1->spec; ?></span> |
|
|
|
<strong>Défense</strong> <span class="skill_phone">+ <?php echo $entry->defense+$entry->level+$entry->stuff->stuff_2->spec; ?></span> |
|
|
|
<?php |
|
|
|
$hp_max="10"; |
|
|
|
switch ($entry->level) |
|
|
@@ -90,10 +92,12 @@ if(!empty($_GET["view"])) |
|
|
|
echo "?"; |
|
|
|
} |
|
|
|
?> |
|
|
|
<i class="ionicons ion-heart" style="color:red;";></i> <strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub> |
|
|
|
<i class="ionicons ion-egg" style="color:brown;";></i> <strong><?php echo $entry->money; ?></strong> |
|
|
|
<i class="ionicons ion-flash" style="color:#FFD700;";></i> <strong><?php echo $entry->xp; ?></strong> |
|
|
|
<i class="glyphicon glyphicon-gift" style="color:blue;";></i> <strong><?php echo $entry->gift; ?></strong> |
|
|
|
<h3> |
|
|
|
<?php button_modif_hp("heal", $entry->nom, "<strong style='color:green;'>-1</strong> <i class='ionicons ion-fireball' style='color:green;'></i>"); ?> |
|
|
|
<i class="ionicons ion-heart" style="color:red;";></i> <strong><?php echo $entry->hp; ?></strong><sub>/<?php echo $hp_max; ?></sub> |
|
|
|
<i class="ionicons ion-egg" style="color:brown;";></i> <strong><?php echo $entry->money; ?></strong> |
|
|
|
<i class="ionicons ion-flash" style="color:#FFD700;";></i> <strong><?php echo $entry->xp; ?></strong> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
<hr /> |
|
|
|
<div class="panel-body"> |
|
|
@@ -186,12 +190,23 @@ if(!empty($_GET["view"])) |
|
|
|
|
|
|
|
</div> |
|
|
|
<hr /> |
|
|
|
<h3>Prise de note</h3> |
|
|
|
<h3>Équipements</h3> |
|
|
|
<div class="col-lg-9"> |
|
|
|
<form action="../../play/action_phone.php?edit_notes&entry=<?php echo $entry->nom; ?>" method="post"> |
|
|
|
<textarea class="form-control" name="notes" id="notes<?php echo $itemnb; ?>" rows="6"><?php echo $entry->notes;?></textarea> |
|
|
|
<input type="submit" class="btn-lg btn-info" style="float:right;" value="OK" /> |
|
|
|
</form> |
|
|
|
<h4><img src="../../img/item/offensif.png" class="img-rounded"> |
|
|
|
Offensif <strong>➤</strong> |
|
|
|
<span class="label enchant-<?php echo $entry->stuff->stuff_1->enchant;?>"><?php echo $entry->stuff->stuff_1->info;?></span> <span class="badge">Attaque +<?php echo $entry->stuff->stuff_1->spec;?></span> |
|
|
|
</h4> |
|
|
|
<h4><img src="../../img/item/defensif.png" class="img-rounded"> |
|
|
|
Défensif <strong>➤</strong> |
|
|
|
<span class="label enchant-<?php echo $entry->stuff->stuff_2->enchant;?>"><?php echo $entry->stuff->stuff_2->info;?></span> <span class="badge">Défense +<?php echo $entry->stuff->stuff_2->spec;?></span> |
|
|
|
</h4> |
|
|
|
<h4><img src="../../img/item/objets.png" class="img-rounded"> |
|
|
|
Objets |
|
|
|
<br /><br /><strong>➤</strong> <span class="label enchant-<?php echo $entry->stuff->stuff_3->enchant;?>"><?php echo $entry->stuff->stuff_3->info;?></span> <span class="badge"><?php echo $entry->stuff->stuff_3->spec;?></span> |
|
|
|
<br /><br /><strong>➤</strong> <span class="label enchant-<?php echo $entry->stuff->stuff_4->enchant;?>"><?php echo $entry->stuff->stuff_4->info;?></span> <span class="badge"><?php echo $entry->stuff->stuff_4->spec;?></span> |
|
|
|
<br /><br /><strong>➤</strong> <span class="label enchant-<?php echo $entry->stuff->stuff_5->enchant;?>"><?php echo $entry->stuff->stuff_5->info;?></span> <span class="badge"><?php echo $entry->stuff->stuff_5->spec;?></span> |
|
|
|
<br /><br /><strong>➤</strong> <span class="label enchant-<?php echo $entry->stuff->stuff_6->enchant;?>"><?php echo $entry->stuff->stuff_6->info;?></span> <span class="badge"><?php echo $entry->stuff->stuff_6->spec;?></span> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|