forked from Sky/Dragon-Knight
42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<section>
|
|
<div class="title"><img src="/img/button_character.gif" alt="Character" title="Character"></div>
|
|
<b><?php echo DragonKnight\user()->username ?></b><br>
|
|
Level: <?php echo DragonKnight\user()->level ?><br>
|
|
Exp: <?php echo number_format(DragonKnight\user()->experience) ?><br>
|
|
Gold: <?php echo number_format(DragonKnight\user()->gold) ?><br>
|
|
HP: <?php echo $hp ?><br>
|
|
MP: <?php echo $mp ?><br>
|
|
TP: <?php echo DragonKnight\user()->currenttp ?><br><br>
|
|
<?php echo DragonKnight\create_stat_table() ?><br>
|
|
<a href="javascript:opencharpopup()">Extended Stats</a>
|
|
</section>
|
|
|
|
<section>
|
|
<div class="title"><img src="/img/button_inventory.gif" alt="Inventory" title="Inventory"></div>
|
|
<img src="/img/icon_weapon.gif" alt="Weapon" title="Weapon"> <?php echo DragonKnight\user()->weaponname ?><br>
|
|
<img src="/img/icon_armor.gif" alt="Armor" title="Armor"> <?php echo DragonKnight\user()->armorname ?><br>
|
|
<img src="/img/icon_shield.gif" alt="Shield" title="Shield"> <?php echo DragonKnight\user()->shieldname ?><br>
|
|
Slot 1: <?php echo DragonKnight\user()->slot1name ?><br>
|
|
Slot 2: <?php echo DragonKnight\user()->slot2name ?><br>
|
|
Slot 3: <?php echo DragonKnight\user()->slot3name ?>
|
|
</section>
|
|
|
|
<section>
|
|
<div class="title"><img src="/img/button_fastspells.gif" alt="Fast Spells" title="Fast Spells"></div>
|
|
<?php
|
|
$user_spells = DragonKnight\user()->spells();
|
|
if ($user_spells !== false) {
|
|
foreach ($user_spells as $spell) {
|
|
// list only healing spells for now
|
|
if ($spell['type'] === 1) {
|
|
echo <<<HTML
|
|
<a href="/spell/{$spell['id']}" hx-get="/spell/{$spell['id']}" hx-target="#middle">{$spell['name']}</a><br>
|
|
HTML;
|
|
}
|
|
}
|
|
} else {
|
|
echo 'None';
|
|
}
|
|
?>
|
|
</section>
|