|
|
@@ -48,234 +48,479 @@
|
|
|
</span>
|
|
|
</h2>
|
|
|
<article id='profile'>
|
|
|
- <h3>
|
|
|
- <span id='user_name'>
|
|
|
- <?=$page->name?>
|
|
|
- </span>
|
|
|
- <span id='user_level'>
|
|
|
- Lv. <?=$page->level?>
|
|
|
- <span id='user_exp'>
|
|
|
- (exp: <?=$page->experience?>)
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- </h3>
|
|
|
-<?php
|
|
|
- if (isset($page->rep)){
|
|
|
-?>
|
|
|
- <div id='rep' class='profile_section'>
|
|
|
+ <div class='panel' id='panel_left'>
|
|
|
+ <div id='player' class='profile_section'>
|
|
|
<h4>
|
|
|
- Rep. Monster
|
|
|
+ <?=$page->player->name?>
|
|
|
</h4>
|
|
|
- <div class='monster_panel'>
|
|
|
- <?=HTML::unit_panel($page->rep)?>
|
|
|
- </div> <!-- .monster_panel -->
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Lv.
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=$page->player->level?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Exp.
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=$page->player->experience?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Country
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=$page->player->country?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Since
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=date('Y-m-d', $page->player->joined)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Days
|
|
|
+ </td>
|
|
|
+ <td class='value'>
|
|
|
+ <?=round((time() - $page->player->joined) / (60 * 60 * 24))?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
+ <div id='placements' class='profile_section'>
|
|
|
+ <h4>
|
|
|
+ Placements
|
|
|
+ </h4>
|
|
|
+ <div id='placements_rep'>
|
|
|
+ <h5>
|
|
|
+ Rep monster:
|
|
|
+ </h5>
|
|
|
+ <div class='monster_panel'>
|
|
|
+ <?=HTML::unit_panel($page->player->rep)?>
|
|
|
+ </div> <!-- .monster_panel -->
|
|
|
+ </div>
|
|
|
+ <div id='placements_arena'>
|
|
|
+ <h5>
|
|
|
+ Arena defense:
|
|
|
+ </h5>
|
|
|
<?php
|
|
|
- } // if (isset($page->rep))
|
|
|
+ $first = true;
|
|
|
+ foreach ($page->player->defense as $defense){
|
|
|
?>
|
|
|
- <div id='defense' class='profile_section'>
|
|
|
- <h4>
|
|
|
- Arena defense
|
|
|
- </h4>
|
|
|
+ <div class='monster_panel'>
|
|
|
+ <?=HTML::unit_panel($defense)?>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- $first = true;
|
|
|
- foreach ($page->defense as $defense){
|
|
|
+ if ($first && isset($defense->unit->leader_skill) && ($defense->unit->leader_skill->area == $EFFECT_AREA["GENERAL"] || $defense->unit->leader_skill->area == $EFFECT_AREA["ARENA"])){
|
|
|
+?>
|
|
|
+ <div class='skill'>
|
|
|
+ <img class='skill_img' title='<?=$defense->unit->leader_skill->create_description()?>' src='<?=$defense->unit->leader_skill->get_image()?>'/>
|
|
|
+ </div>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ $first = false;
|
|
|
+ }
|
|
|
?>
|
|
|
- <div class='monster_panel'>
|
|
|
- <?=HTML::unit_panel($defense)?>
|
|
|
</div>
|
|
|
+ <div id='placements_gw'>
|
|
|
+ <h5>
|
|
|
+ Guild War defense:
|
|
|
+ </h5>
|
|
|
<?php
|
|
|
- if ($first && isset($defense->unit->leader_skill) && ($defense->unit->leader_skill->area == $EFFECT_AREA["GENERAL"] || $defense->unit->leader_skill->area == $EFFECT_AREA["ARENA"])){
|
|
|
+ $first = true;
|
|
|
+ foreach ($page->player->gw_defense[0] as $defense){
|
|
|
?>
|
|
|
- <div class='skill'>
|
|
|
- <img class='skill_img' title='<?=$defense->unit->leader_skill->create_description()?>' src='<?=$defense->unit->leader_skill->get_image()?>'/>
|
|
|
- </div>
|
|
|
+ <div class='monster_panel'>
|
|
|
+ <?=HTML::unit_panel($defense)?>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- }
|
|
|
- $first = false;
|
|
|
- }
|
|
|
+ if ($first && isset($defense->unit->leader_skill) && ($defense->unit->leader_skill->area == $EFFECT_AREA["GENERAL"] || $defense->unit->leader_skill->area == $EFFECT_AREA["ARENA"])){
|
|
|
+?>
|
|
|
+ <div class='skill'>
|
|
|
+ <img class='skill_img' title='<?=$defense->unit->leader_skill->create_description()?>' src='<?=$defense->unit->leader_skill->get_image()?>'/>
|
|
|
+ </div>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ $first = false;
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <hr/>
|
|
|
+ <?php
|
|
|
+ $first = true;
|
|
|
+ foreach ($page->player->gw_defense[1] as $defense){
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div id='building' class='profile_section'>
|
|
|
- <h4>
|
|
|
- Buildings
|
|
|
- </h4>
|
|
|
+ <div class='monster_panel'>
|
|
|
+ <?=HTML::unit_panel($defense)?>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- $half = sizeof($page->building) / 2;
|
|
|
- $i = 0;
|
|
|
- foreach ($page->building as $building){
|
|
|
- if ($i == $half){
|
|
|
+ if ($first && isset($defense->unit->leader_skill) && ($defense->unit->leader_skill->area == $EFFECT_AREA["GENERAL"] || $defense->unit->leader_skill->area == $EFFECT_AREA["ARENA"])){
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <div class='skill'>
|
|
|
+ <img class='skill_img' title='<?=$defense->unit->leader_skill->create_description()?>' src='<?=$defense->unit->leader_skill->get_image()?>'/>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- }
|
|
|
+ }
|
|
|
+ $first = false;
|
|
|
+ }
|
|
|
?>
|
|
|
- <?=HTML::building_panel($building)?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div id='building' class='profile_section'>
|
|
|
+ <h4>
|
|
|
+ Buildings
|
|
|
+ </h4>
|
|
|
<?php
|
|
|
- $i ++;
|
|
|
- }$i ++;
|
|
|
+ // Buildings
|
|
|
+ $half = sizeof($page->player->building) / 2;
|
|
|
+ $i = 0;
|
|
|
+ foreach ($page->player->building as $building){
|
|
|
+ if ($i == $half){
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div id='decoration' class='profile_section'>
|
|
|
- <h4>
|
|
|
- Decorations
|
|
|
- </h4>
|
|
|
+ <br class='desktop'/>
|
|
|
<?php
|
|
|
- $half = sizeof($page->decoration) / 2;
|
|
|
- $i = 0;
|
|
|
- foreach ($page->decoration as $decoration){
|
|
|
- if ($i == $half){
|
|
|
+ }
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <?=HTML::building_panel($building)?>
|
|
|
<?php
|
|
|
+ $i ++;
|
|
|
}
|
|
|
?>
|
|
|
- <?=HTML::building_panel($decoration)?>
|
|
|
+ <br/>
|
|
|
<?php
|
|
|
- $i ++;
|
|
|
- }
|
|
|
+ // Decorations
|
|
|
+ $half = sizeof($page->player->decoration) / 2;
|
|
|
+ $i = 0;
|
|
|
+ foreach ($page->player->decoration as $decoration){
|
|
|
+ if ($i == $half){
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div class='inventory profile_section' id='inventory_scroll'>
|
|
|
- <h4>
|
|
|
- Scrolls
|
|
|
- </h4>
|
|
|
+ <br class='desktop'/>
|
|
|
<?php
|
|
|
- $half = sizeof($page->building) / 2;
|
|
|
- $i = 0;
|
|
|
- foreach ($page->inventory_scroll as $item){
|
|
|
- if ($half > 6 && $i == $half){
|
|
|
+ }
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <?=HTML::building_panel($decoration)?>
|
|
|
<?php
|
|
|
+ $i ++;
|
|
|
}
|
|
|
?>
|
|
|
- <?=HTML::item_panel($item)?>
|
|
|
+ </div>
|
|
|
+ <div class='inventory profile_section' id='inventory'>
|
|
|
+ <h4>
|
|
|
+ Inventory
|
|
|
+ </h4>
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ <img title='Energy' src='<?=URL::IMG["CURRENCY"]?>energy.png'/>
|
|
|
+ <?=$page->player->currency["energy"]?> / <?=$page->player->currency["energy_max"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Arena Invitations' src='<?=URL::IMG["CURRENCY"]?>arenaenergy.png'/>
|
|
|
+ <?=$page->player->currency["arena_energy"]?> / <?=$page->player->currency["arena_energy_max"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Dimensional Energy' src='<?=URL::IMG["CURRENCY"]?>dimensionenergy.png'/>
|
|
|
+ <?=$page->player->currency["dimension_energy"]?> / <?=$page->player->currency["dimension_energy_max"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Dimensional Crystal' src='<?=URL::IMG["CURRENCY"]?>darkportalenergy.png'/>
|
|
|
+ <?=$page->player->currency["darkportal_energy"]?> / <?=$page->player->currency["darkportal_energy_max"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Mana' src='<?=URL::IMG["CURRENCY"]?>mana.png'/>
|
|
|
+ <?=$page->player->currency["mana"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Crystal' src='<?=URL::IMG["CURRENCY"]?>crystal.png'/>
|
|
|
+ <?=$page->player->currency["crystal"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Social Points' src='<?=URL::IMG["CURRENCY"]?>socialpoint.png'/>
|
|
|
+ <?=$page->player->currency["social_point"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Honor Points' src='<?=URL::IMG["CURRENCY"]?>honor.png'/>
|
|
|
+ <?=$page->player->currency["honor_point"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Guild Points' src='<?=URL::IMG["CURRENCY"]?>guildpoint.png'/>
|
|
|
+ <?=$page->player->currency["guild_point"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Honor Medals' src='<?=URL::IMG["CURRENCY"]?>badge.png'/>
|
|
|
+ <?=$page->player->currency["honor_medal"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img src='<?=URL::IMG["CURRENCY"]?>mark.png'/>
|
|
|
+ <?=$page->player->currency["honor_mark"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Ancient Coins' src='<?=URL::IMG["CURRENCY"]?>ancientcoin.png'/>
|
|
|
+ <?=$page->player->currency["event_coin"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Ancient Crystal' src='<?=URL::IMG["CURRENCY"]?>ancientstone.png'/>
|
|
|
+ <?=$page->player->currency["ancient_stone"]?>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <img title='Shapeshifting Stones' src='<?=URL::IMG["CURRENCY"]?>costumestone.png'/>
|
|
|
+ <?=$page->player->currency["costume_point"]?>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+<?php
|
|
|
+ // Scrolls
|
|
|
+ $half = sizeof($page->player->building) / 2;
|
|
|
+ $i = 0;
|
|
|
+ foreach ($page->player->inventory_scroll as $item){
|
|
|
+ if ($half > 6 && $i == $half){
|
|
|
+?>
|
|
|
+ <br class='desktop'/>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <?=HTML::item_panel($item)?>
|
|
|
<?php
|
|
|
- $i ++;
|
|
|
- }
|
|
|
+ $i ++;
|
|
|
+ }
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div class='inventory profile_section' id='inventory_craft_rune'>
|
|
|
- <h4>
|
|
|
- Rune crafting items
|
|
|
- </h4>
|
|
|
+ <br/>
|
|
|
<?php
|
|
|
- $prev = 0;
|
|
|
- foreach ($page->inventory_craft_rune as $item){
|
|
|
- if ($prev != 0 && $prev + 2000 < $item->id){
|
|
|
+ // Rune craft materials
|
|
|
+ $prev = 0;
|
|
|
+ foreach ($page->player->inventory_craft_rune as $item){
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <?=HTML::item_panel($item)?>
|
|
|
<?php
|
|
|
+ $prev = $item->id;
|
|
|
}
|
|
|
?>
|
|
|
- <?=HTML::item_panel($item)?>
|
|
|
+ <br/>
|
|
|
<?php
|
|
|
- $prev = $item->id;
|
|
|
- }
|
|
|
+ // Other craft materials
|
|
|
+ $prev = 0;
|
|
|
+ foreach ($page->player->inventory_craft as $item){
|
|
|
+ if ($prev != 0 && $prev < 5000 && $item->id > 5000){
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div class='inventory profile_section' id='inventory_craft'>
|
|
|
- <h4>
|
|
|
- Other crafting items
|
|
|
- </h4>
|
|
|
+ <br class='desktop'/>
|
|
|
<?php
|
|
|
- $prev = 0;
|
|
|
- foreach ($page->inventory_craft as $item){
|
|
|
- if ($prev != 0 && $prev < 5000 && $item->id > 5000){
|
|
|
+ }
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <?=HTML::item_panel($item)?>
|
|
|
<?php
|
|
|
+ $prev = $item->id;
|
|
|
}
|
|
|
?>
|
|
|
- <?=HTML::item_panel($item)?>
|
|
|
+ <br/>
|
|
|
<?php
|
|
|
- $prev = $item->id;
|
|
|
- }
|
|
|
+ // Essences
|
|
|
+ $prev = "";
|
|
|
+ $i = 0;
|
|
|
+ foreach ($page->player->inventory_essence as $item){
|
|
|
+ //if ($prev != "" && $prev != preg_split('/\s+/', $item->name)[2]){
|
|
|
+ if ($i > 0 && $i % 6 == 0){
|
|
|
?>
|
|
|
- </div>
|
|
|
- <div class='inventory profile_section' id='inventory_essence'>
|
|
|
- <h4>
|
|
|
- Essences
|
|
|
- </h4>
|
|
|
+ <br class='desktop'/>
|
|
|
<?php
|
|
|
- $prev = "";
|
|
|
- foreach ($page->inventory_essence as $item){
|
|
|
- if ($prev != "" && $prev != preg_split('/\s+/', $item->name)[2]){
|
|
|
+ }
|
|
|
?>
|
|
|
- <br class='desktop'/>
|
|
|
+ <?=HTML::item_panel($item)?>
|
|
|
<?php
|
|
|
+ $prev = preg_split('/\s+/', $item->name)[2];
|
|
|
+ $i ++;
|
|
|
}
|
|
|
?>
|
|
|
- <?=HTML::item_panel($item)?>
|
|
|
-<?php
|
|
|
- $prev = preg_split('/\s+/', $item->name)[2];
|
|
|
- }
|
|
|
-?>
|
|
|
- </div>
|
|
|
- <div id='currency' class='profile_section'>
|
|
|
- <h4>
|
|
|
- Currency
|
|
|
- </h4>
|
|
|
- <ul>
|
|
|
- <li>
|
|
|
- <img title='Energy' src='<?=URL::IMG["CURRENCY"]?>energy.png'/>
|
|
|
- <?=$page->currency["energy"]?> / <?=$page->currency["energy_max"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Arena Invitations' src='<?=URL::IMG["CURRENCY"]?>arenaenergy.png'/>
|
|
|
- <?=$page->currency["arena_energy"]?> / <?=$page->currency["arena_energy_max"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Dimensional Energy' src='<?=URL::IMG["CURRENCY"]?>dimensionenergy.png'/>
|
|
|
- <?=$page->currency["dimension_energy"]?> / <?=$page->currency["dimension_energy_max"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Dimensional Crystal' src='<?=URL::IMG["CURRENCY"]?>darkportalenergy.png'/>
|
|
|
- <?=$page->currency["darkportal_energy"]?> / <?=$page->currency["darkportal_energy_max"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Mana' src='<?=URL::IMG["CURRENCY"]?>mana.png'/>
|
|
|
- <?=$page->currency["mana"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Crystal' src='<?=URL::IMG["CURRENCY"]?>crystal.png'/>
|
|
|
- <?=$page->currency["crystal"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Social Points' src='<?=URL::IMG["CURRENCY"]?>socialpoint.png'/>
|
|
|
- <?=$page->currency["social_point"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Honor Points' src='<?=URL::IMG["CURRENCY"]?>honor.png'/>
|
|
|
- <?=$page->currency["honor_point"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Guild Points' src='<?=URL::IMG["CURRENCY"]?>guildpoint.png'/>
|
|
|
- <?=$page->currency["guild_point"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Honor Medals' src='<?=URL::IMG["CURRENCY"]?>badge.png'/>
|
|
|
- <?=$page->currency["honor_medal"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img src='<?=URL::IMG["CURRENCY"]?>mark.png'/>
|
|
|
- <?=$page->currency["honor_mark"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Ancient Coins' src='<?=URL::IMG["CURRENCY"]?>ancientcoin.png'/>
|
|
|
- <?=$page->currency["event_coin"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Ancient Crystal' src='<?=URL::IMG["CURRENCY"]?>ancientstone.png'/>
|
|
|
- <?=$page->currency["ancient_stone"]?>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <img title='Shapeshifting Stones' src='<?=URL::IMG["CURRENCY"]?>costumestone.png'/>
|
|
|
- <?=$page->currency["costume_point"]?>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div> <!-- #panel_left -->
|
|
|
+ <div class='panel' id='panel_right'>
|
|
|
+ <div class='profile_section' id='records'>
|
|
|
+ <h4>
|
|
|
+ Records
|
|
|
+ </h4>
|
|
|
+ <div class='record'>
|
|
|
+ <table id='rank_records'>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Arena
|
|
|
+ </td>
|
|
|
+ <td class='value rank'>
|
|
|
+ <?=HTML::arena_rank_icon($page->player->top_rank_arena)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ World Arena
|
|
|
+ </td>
|
|
|
+ <td class='value rank'>
|
|
|
+ <?=HTML::arena_rank_icon($page->player->top_rank_world_arena)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Special League
|
|
|
+ </td>
|
|
|
+ <td class='value rank'>
|
|
|
+ <?=HTML::arena_rank_icon($page->player->top_rank_special_league)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Guild War
|
|
|
+ </td>
|
|
|
+ <td class='value rank'>
|
|
|
+ <?=HTML::arena_rank_icon($page->player->top_rank_gw - 10)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Siege Battle
|
|
|
+ </td>
|
|
|
+ <td class='value rank'>
|
|
|
+ <?=HTML::arena_rank_icon($page->player->top_rank_siege)?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ World Boss
|
|
|
+ </td>
|
|
|
+ <td class='value wboss'>
|
|
|
+ <?=WORLD_BOSS_RANK_ID::RANK[$page->player->top_rank_wboss]?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Trial of Ascension (N)
|
|
|
+ </td>
|
|
|
+ <td class='value toa'>
|
|
|
+ <?=$page->player->top_rank_toan?>F
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class='label'>
|
|
|
+ Trial of Ascension (N)
|
|
|
+ </td>
|
|
|
+ <td class='value toa'>
|
|
|
+ <?=$page->player->top_rank_toah?>F
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table id='battle_records'>
|
|
|
+<?php
|
|
|
+ foreach ($page->player->record as $record){
|
|
|
+?>
|
|
|
+ <tr>
|
|
|
+ <td class='record_dungeon'>
|
|
|
+ <img title='<?=$record->area->name?>' class='area' src='<?=$record->area->get_image()?>'/>
|
|
|
+ </td>
|
|
|
+ <td class='record_info'>
|
|
|
+ <span class='title'>
|
|
|
+<?php
|
|
|
+ $title = "";
|
|
|
+ switch ($record->area->type){
|
|
|
+ case AREA_TYPE_ID::CAIROS_DUNGEON:
|
|
|
+ $title = $record->area->name . " " . $record->stage . "F";
|
|
|
+ break;
|
|
|
+ case AREA_TYPE_ID::RIFT_DUNGEON:
|
|
|
+ $title = $record->area->name;
|
|
|
+ break;
|
|
|
+ case AREA_TYPE_ID::RIFT_RAID:
|
|
|
+ $title = $record->area->name;
|
|
|
+
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <?=$title?>
|
|
|
+ </span>
|
|
|
+<?php
|
|
|
+ if ($record->area->type == AREA_TYPE_ID::RIFT_DUNGEON){
|
|
|
+?>
|
|
|
+ <span class='score'>
|
|
|
+ <?=$record->score?>
|
|
|
+ </span>
|
|
|
+ <span class='rank'>
|
|
|
+ <?=$record->rank?>
|
|
|
+ </span>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $s = floor($record->time / 1000);
|
|
|
+ $m = floor($s / 60);
|
|
|
+ $s = floor($s % 60);
|
|
|
+ $ms = ($record-> time - (1000 * 60 * $m) - (1000 * 60 * $s) / 100);
|
|
|
+ $s = str_pad($s, 2, '0', STR_PAD_LEFT);
|
|
|
+ $ms = str_pad($ms, 2, '0', STR_PAD_LEFT);
|
|
|
+?>
|
|
|
+ <span class='time'>
|
|
|
+ <?=$m?>:<?=$s?><span class='ms'>.<?=$ms?></span>
|
|
|
+ </span>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ </td>
|
|
|
+<?php
|
|
|
+ $class_frontline = "";
|
|
|
+ if ($record->area->type == AREA_TYPE_ID::RIFT_DUNGEON || $record->area->type == AREA_TYPE_ID::RIFT_RAID){
|
|
|
+ $class_frontline = "frontlines";
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <td class='record_party <?=$class_frontline?>'>
|
|
|
+<?php
|
|
|
+ $prev_front = false;
|
|
|
+ $front = "undefined";
|
|
|
+ foreach ($record->party as $party){
|
|
|
+ $front = in_array($party->id, $record->frontline);
|
|
|
+ if ($front != "undefined" && $prev_front != $front){
|
|
|
+?>
|
|
|
+ <hr class='frontline'/>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ if ($party instanceof K_Unit){
|
|
|
+ $enable_save = false;
|
|
|
+ $disabled = "disabled";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $disabled = "";
|
|
|
+ }
|
|
|
+ if ($disabled == ""){
|
|
|
+?>
|
|
|
+ <a target='_blank' href='/<?=$UID?>>/monster/<?=$party->id?>'>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ <div class='monster_panel <?=$disabled?>'>
|
|
|
+ <?=HTML::unit_panel($party)?>
|
|
|
+<?php
|
|
|
+ if ($party->id == $record->leader){
|
|
|
+?>
|
|
|
+ <img alt='Leader' class='leader' src='<?=URL::IMG["ICON"]?>leader.png'/>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ </div>
|
|
|
+<?php
|
|
|
+ if ($disabled == ""){
|
|
|
+?>
|
|
|
+ </a>
|
|
|
+<?php
|
|
|
+ }
|
|
|
+ $prev_front = $front;
|
|
|
+ }
|
|
|
+?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+<?php
|
|
|
+ }
|
|
|
+?>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div> <!-- #panel_right -->
|
|
|
</article>
|
|
|
</section>
|
|
|
<?php
|