|
|
@@ -93,125 +93,44 @@
|
|
|
<span>Slot:</span>
|
|
|
<select multiple name='rune_slot[]' id='filter_slot'>
|
|
|
<?php
|
|
|
- if (in_array(1, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
- }
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
-?>
|
|
|
- <option value='1' <?=$selected?>>1</option>
|
|
|
-<?php
|
|
|
- if (in_array(2, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
- }
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
-?>
|
|
|
- <option value='2' <?=$selected?>>2</option>
|
|
|
-<?php
|
|
|
- if (in_array(3, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
- }
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
-?>
|
|
|
- <option value='3' <?=$selected?>>3</option>
|
|
|
-<?php
|
|
|
- if (in_array(4, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
- }
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
-?>
|
|
|
- <option value='4' <?=$selected?>>4</option>
|
|
|
-<?php
|
|
|
- if (in_array(5, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
- }
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
+ for ($i = 0; $i < 6; $i ++){
|
|
|
+ if (in_array($i, $page->filters["rune_slot"])){
|
|
|
+ $selected = "selected='selected'";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ $selected = "";
|
|
|
+ }
|
|
|
?>
|
|
|
- <option value='5' <?=$selected?>>5</option>
|
|
|
+ <option value='$i' <?=$selected?>>%i</option>
|
|
|
<?php
|
|
|
- if (in_array(6, $page->filters["rune_slot"])){
|
|
|
- $selected = "selected='selected'";
|
|
|
}
|
|
|
- else{
|
|
|
- $selected = "";
|
|
|
- }
|
|
|
-?>
|
|
|
- <option value='6' <?=$selected?>>6</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
<td class='filter' colspan='3'>
|
|
|
<span>Quality:</span>
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- switch (strtoupper($page->filters["rune_min_quality"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["rune_min_quality"]] = "selected";
|
|
|
?>
|
|
|
<select name='rune_min_quality' id='filter_quality_min'>
|
|
|
- <option value='0' <?=$selected_0?>>Normal</option>
|
|
|
- <option value='1' <?=$selected_1?>>Magic</option>
|
|
|
- <option value='2' <?=$selected_2?>>Rare</option>
|
|
|
- <option value='3' <?=$selected_3?>>Hero</option>
|
|
|
- <option value='4' <?=$selected_4?>>Legend</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Normal</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Magic</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Rare</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Hero</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Legend</option>
|
|
|
</select>
|
|
|
-
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- switch (strtoupper($page->filters["rune_max_quality"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["rune_max_quality"]] = "selected";
|
|
|
?>
|
|
|
<select name='rune_max_quality' id='filter_quality_max'>
|
|
|
- <option value='0' <?=$selected_0?>>Normal</option>
|
|
|
- <option value='1' <?=$selected_1?>>Magic</option>
|
|
|
- <option value='2' <?=$selected_2?>>Rare</option>
|
|
|
- <option value='3' <?=$selected_3?>>Hero</option>
|
|
|
- <option value='4' <?=$selected_4?>>Legend</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Normal</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Magic</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Rare</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Hero</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Legend</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -219,67 +138,27 @@
|
|
|
<td class='filter' colspan='3'>
|
|
|
<span>Original quality:</span>
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- switch (strtoupper($page->filters["rune_min_original_quality"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["rune_min_original_quality"]] = "selected";
|
|
|
?>
|
|
|
<select name='rune_min_original_quality' id='filter_original_quality_min'>
|
|
|
- <option value='0' <?=$selected_0?>>Normal</option>
|
|
|
- <option value='1' <?=$selected_1?>>Magic</option>
|
|
|
- <option value='2' <?=$selected_2?>>Rare</option>
|
|
|
- <option value='3' <?=$selected_3?>>Hero</option>
|
|
|
- <option value='4' <?=$selected_4?>>Legend</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Normal</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Magic</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Rare</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Hero</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Legend</option>
|
|
|
</select>
|
|
|
-
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- switch (strtoupper($page->filters["rune_max_quality"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["rune_max_original_quality"]] = "selected";
|
|
|
?>
|
|
|
<select name='rune_max_original_quality' id='filter_original_quality_max'>
|
|
|
- <option value='0' <?=$selected_0?>>Normal</option>
|
|
|
- <option value='1' <?=$selected_1?>>Magic</option>
|
|
|
- <option value='2' <?=$selected_2?>>Rare</option>
|
|
|
- <option value='3' <?=$selected_3?>>Hero</option>
|
|
|
- <option value='4' <?=$selected_4?>>Legend</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Normal</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Magic</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Rare</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Hero</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Legend</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -312,35 +191,15 @@
|
|
|
<td class='filter filter_separator' colspan='2'>
|
|
|
<span>Min. O. quality:</span>
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- switch (strtoupper($page->filters["alternative_min_original_quality"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["alternative_min_original_quality"]] = "selected";
|
|
|
?>
|
|
|
<select name='alternative_min_original_quality' id='filter_original_quality_min'>
|
|
|
- <option value='0' <?=$selected_0?>>Normal</option>
|
|
|
- <option value='1' <?=$selected_1?>>Magic</option>
|
|
|
- <option value='2' <?=$selected_2?>>Rare</option>
|
|
|
- <option value='3' <?=$selected_3?>>Hero</option>
|
|
|
- <option value='4' <?=$selected_4?>>Legend</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Normal</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Magic</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Rare</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Hero</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Legend</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
<td class='filter filter_separator'>
|
|
|
@@ -352,40 +211,17 @@
|
|
|
<td class='filter' colspan='4'>
|
|
|
<span>Condition:</span>
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- $selected_4 = "";
|
|
|
- $selected_5 = "";
|
|
|
- switch (strtoupper($page->filters["alternative_condition"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- $selected_4 = "selected";
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- $selected_5 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "", "");
|
|
|
+ $selected[$page->filters["alternative_condition"]] = "selected";
|
|
|
+
|
|
|
?>
|
|
|
<select name='alternative_condition'>
|
|
|
- <option value='0' <?=$selected_0?>>Higher grade, any quality
|
|
|
- <option value='1' <?=$selected_1?>>Higher grade or higher quality
|
|
|
- <option value='2' <?=$selected_2?>>Equal or higher grade and equal or higher quality</option>
|
|
|
- <option value='3' <?=$selected_3?>>Equal or higher grade and higher quality</option>
|
|
|
- <option value='4' <?=$selected_4?>>Equal grade and equal or higher quality</option>
|
|
|
- <option value='5' <?=$selected_5?>>Higher grade and higher quality</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Higher grade, any quality
|
|
|
+ <option value='1' <?=$selected[1]?>>Higher grade or higher quality
|
|
|
+ <option value='2' <?=$selected[2]?>>Equal or higher grade and equal or higher quality</option>
|
|
|
+ <option value='3' <?=$selected[3]?>>Equal or higher grade and higher quality</option>
|
|
|
+ <option value='4' <?=$selected[4]?>>Equal grade and equal or higher quality</option>
|
|
|
+ <option value='5' <?=$selected[5]?>>Higher grade and higher quality</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -393,29 +229,13 @@
|
|
|
<td class='filter' colspan='4'>
|
|
|
<span>Source:</span>
|
|
|
<?php
|
|
|
- $selected_0 = "";
|
|
|
- $selected_1 = "";
|
|
|
- $selected_2 = "";
|
|
|
- $selected_3 = "";
|
|
|
- switch (strtoupper($page->filters["alternative_source"])){
|
|
|
- case 0:
|
|
|
- $selected_0 = "selected";
|
|
|
- break;
|
|
|
- case 1:
|
|
|
- $selected_1 = "selected";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- $selected_2 = "selected";
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- $selected_3 = "selected";
|
|
|
- break;
|
|
|
- }
|
|
|
+ $selected = Array("", "", "", "");
|
|
|
+ $selected[$page->filters["alternative_source"]] = "selected";
|
|
|
?>
|
|
|
<select name='alternative_source'>
|
|
|
- <option value='0' <?=$selected_0?>>Inventory only</option>
|
|
|
- <option value='1' <?=$selected_1?>>Inventory or assigned to a lower grade monster</option>
|
|
|
- <option value='2' <?=$selected_2?>>Any</option>
|
|
|
+ <option value='0' <?=$selected[0]?>>Inventory only</option>
|
|
|
+ <option value='1' <?=$selected[1]?>>Inventory or assigned to a lower grade monster</option>
|
|
|
+ <option value='2' <?=$selected[2]?>>Any</option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -427,52 +247,18 @@
|
|
|
</section> <!-- #filters -->
|
|
|
<?php
|
|
|
foreach ($page->upgrades as $upgrade){
|
|
|
- if ($upgrade["unit"]->unit->awakens_from == "" && $upgrade["unit"]->unit->awakens_to == ""){
|
|
|
- // No to, no from, silver monster.
|
|
|
- $star_class ="star_silver";
|
|
|
- $mon_title = $upgrade["unit"]->unit->element_name . " " . $upgrade["unit"]->unit->name;
|
|
|
- }
|
|
|
- elseif ($upgrade["unit"]->unit->awakens_from =! "" && $upgrade["unit"]->unit->awakens_to == ""){
|
|
|
- // Already awakened
|
|
|
- if ($upgrade["unit"]->unit->base_stars - $upgrade["unit"]->unit->natural_stars == 1){
|
|
|
- // Normal awaken.
|
|
|
- $star_class ="star_purple";
|
|
|
- }
|
|
|
- else{
|
|
|
- // Second awaken.
|
|
|
- $star_class ="star_red";
|
|
|
- }
|
|
|
- $mon_title = $upgrade["unit"]->unit->name;
|
|
|
- }
|
|
|
- elseif ($upgrade["unit"]->unit->awakens_to =! ""){
|
|
|
- // Awakeable.
|
|
|
- $star_class ="star_gold";
|
|
|
- $mon_title = $upgrade["unit"]->unit->element . " " . $upgrade["unit"]->unit->name;
|
|
|
- }
|
|
|
?>
|
|
|
<section class='content'>
|
|
|
<h2>
|
|
|
<span>
|
|
|
- <?=$mon_title?>
|
|
|
+ <?=$upgrade["unit"]->title?>
|
|
|
</span>
|
|
|
</h2>
|
|
|
<article>
|
|
|
<div class='monster'>
|
|
|
<div class='profile'>
|
|
|
<div class='monster_panel'>
|
|
|
- <span class='stars'>
|
|
|
-<?php
|
|
|
- for ($i = 0; $i < $upgrade["unit"]->stars; $i ++){
|
|
|
-?>
|
|
|
- <img class='star <?=$star_class?>' src='<?=$path["img"]["layout"] . "icon/star.png"?>'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </span>
|
|
|
- <img title='<?=$mon_title?>' class='monster border_<?=$upgrade["unit"]->unit->element_name?>' src='<?=$upgrade["unit"]->unit->get_image()?>'/>
|
|
|
- <span class='level'>
|
|
|
- Lv. <?=$upgrade["unit"]->level?>
|
|
|
- </span>
|
|
|
+ <?=html_unit_panel($upgrade["unit"])?>
|
|
|
</div>
|
|
|
</div> <!-- .profile -->
|
|
|
</div>
|
|
|
@@ -480,581 +266,16 @@
|
|
|
<?php
|
|
|
foreach ($upgrade["upgrade"] as $rupgrade){
|
|
|
?>
|
|
|
- <table class='rune'>
|
|
|
- <tr>
|
|
|
- <td class='icon'>
|
|
|
- <div class='rune_panel rune_slot_<?=$rupgrade["rune"]->slot?> rune_level_<?=$rupgrade["rune"]->level?> rune_quality_<?=strtolower($rupgrade["rune"]->quality_name)?> rune_original_quality_<?=strtolower($rupgrade["rune"]->original_quality_name)?> rune_ancient_<?=$rupgrade["rune"]->ancient?>'>
|
|
|
- <img class='rune_base' src='<?=$path["img"]["layout"]?>rune/base.png'/>
|
|
|
- <img class='rune_icon' src='<?=$rupgrade["rune"]->type->get_image()?>'/>
|
|
|
- <span class='rune_stars'>
|
|
|
-<?php
|
|
|
- for ($i = 0; $i < $rupgrade["rune"]->stars; $i ++){
|
|
|
-?>
|
|
|
- <img class='star' src='<?=$path["img"]["layout"] . "icon/star.png"?>'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </span>
|
|
|
- <span class='rune_level'>
|
|
|
- <?=$rupgrade["rune"]->level?>
|
|
|
- </span>
|
|
|
- </div> <!-- .rune_panel -->
|
|
|
- </td>
|
|
|
- <td class='stats'>
|
|
|
- <table>
|
|
|
- <tr class='main_stat'>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (in_array($rupgrade["rune"]->main_stat_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->main_stat_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->main_stat_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->main_stat_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->main_stat_value;
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class='innate_stat'>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($rupgrade["rune"]->innate_stat_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($rupgrade["rune"]->innate_stat_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->innate_stat_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->innate_stat_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->innate_stat_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->innate_stat_value;
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($rupgrade["rune"]->substat_1_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($rupgrade["rune"]->substat_1_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->substat_1_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_1_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->substat_1_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_1_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($rupgrade["rune"]->substat_1_grind > 0){
|
|
|
- $grind = "+" . $rupgrade["rune"]->substat_1_grind;
|
|
|
- if (in_array($rupgrade["rune"]->substat_1_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($rupgrade["rune"]->substat_1_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($rupgrade["rune"]->substat_2_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($rupgrade["rune"]->substat_2_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->substat_2_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_2_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->substat_2_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_2_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($rupgrade["rune"]->substat_2_grind > 0){
|
|
|
- $grind = "+" . $rupgrade["rune"]->substat_2_grind;
|
|
|
- if (in_array($rupgrade["rune"]->substat_2_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($rupgrade["rune"]->substat_2_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($rupgrade["rune"]->substat_3_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($rupgrade["rune"]->substat_3_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->substat_3_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_3_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->substat_3_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_3_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($rupgrade["rune"]->substat_3_grind > 0){
|
|
|
- $grind = "+" . $rupgrade["rune"]->substat_3_grind;
|
|
|
- if (in_array($rupgrade["rune"]->substat_3_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($rupgrade["rune"]->substat_3_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($rupgrade["rune"]->substat_4_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($rupgrade["rune"]->substat_4_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $rupgrade["rune"]->substat_4_name);
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_4_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $rupgrade["rune"]->substat_4_name;
|
|
|
- $stat_value = "+ " . $rupgrade["rune"]->substat_4_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($rupgrade["rune"]->substat_4_grind > 0){
|
|
|
- $grind = "+" . $rupgrade["rune"]->substat_4_grind;
|
|
|
- if (in_array($rupgrade["rune"]->substat_4_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
- ?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($rupgrade["rune"]->substat_4_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- <td class='details'>
|
|
|
- <table class='table_details'>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Quality:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <span class='quality quality_<?=strtolower($rupgrade["rune"]->quality_name)?>'>
|
|
|
- <?=$rupgrade["rune"]->quality_name?>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Original quality:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <span class='quality quality_<?=strtolower($rupgrade["rune"]->original_quality_name)?>'>
|
|
|
- <?=$rupgrade["rune"]->original_quality_name?>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Value:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$rupgrade["rune"]->value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($rupgrade["rune"]->efficiency, 2)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Max. efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($rupgrade["rune"]->max_efficiency, 2)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Reached efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($rupgrade["rune"]->efficiency * 100 / $rupgrade["rune"]->max_efficiency)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table> <!-- .rune -->
|
|
|
- <div class='alternatives'>
|
|
|
+ <?=html_rune_table($rupgrade["rune"])?>
|
|
|
+ <div class='alternatives'>
|
|
|
<?php
|
|
|
foreach ($rupgrade["alternative"] as $alternative){
|
|
|
?>
|
|
|
- <table class='rune alternative'>
|
|
|
- <tr>
|
|
|
- <td class='icon'>
|
|
|
- <div class='rune_panel rune_slot_<?=$alternative->slot?> rune_level_<?=$alternative->level?> rune_quality_<?=strtolower($alternative->quality_name)?> rune_original_quality_<?=strtolower($alternative->original_quality_name)?> rune_ancient_<?=$alternative->ancient?>'>
|
|
|
- <img class='rune_base' src='<?=$path["img"]["layout"]?>rune/base.png'/>
|
|
|
- <img class='rune_icon' src='<?=$alternative->type->get_image()?>'/>
|
|
|
- <span class='rune_stars'>
|
|
|
-<?php
|
|
|
- for ($i = 0; $i < $alternative->stars; $i ++){
|
|
|
-?>
|
|
|
- <img class='star' src='<?=$path["img"]["layout"] . "icon/star.png"?>'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </span>
|
|
|
- <span class='rune_level'>
|
|
|
- <?=$alternative->level?>
|
|
|
- </span>
|
|
|
- </div> <!-- .rune_panel -->
|
|
|
-<?php
|
|
|
- if ($page->filters["alternative_source"] > 0 && null != $alternative->assigned_to){
|
|
|
-?>
|
|
|
- <div class='assigned'>
|
|
|
- <a target='blank' href='/monsters/<?=$alternative->assigned_to->id?>'>
|
|
|
- <img title='<?=$alternative->assigned_to->unit->name?>' class='monster_image border_<?=$alternative->assigned_to->unit->element?>' src='<?=$alternative->assigned_to->unit->get_image()?>'/>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- <td class='stats'>
|
|
|
- <table>
|
|
|
- <tr class='main_stat'>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (in_array($alternative->main_stat_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->main_stat_name);
|
|
|
- $stat_value = "+ " . $alternative->main_stat_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->main_stat_name;
|
|
|
- $stat_value = "+ " . $alternative->main_stat_value;
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class='innate_stat'>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($alternative->innate_stat_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($alternative->innate_stat_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->innate_stat_name);
|
|
|
- $stat_value = "+ " . $alternative->innate_stat_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->innate_stat_name;
|
|
|
- $stat_value = "+ " . $alternative->innate_stat_value;
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($alternative->substat_1_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($alternative->substat_1_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->substat_1_name);
|
|
|
- $stat_value = "+ " . $alternative->substat_1_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->substat_1_name;
|
|
|
- $stat_value = "+ " . $alternative->substat_1_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($alternative->substat_1_grind > 0){
|
|
|
- $grind = "+" . $alternative->substat_1_grind;
|
|
|
- if (in_array($alternative->substat_1_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
-?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($alternative->substat_1_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($alternative->substat_2_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($alternative->substat_2_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->substat_2_name);
|
|
|
- $stat_value = "+ " . $alternative->substat_2_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->substat_2_name;
|
|
|
- $stat_value = "+ " . $alternative->substat_2_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($alternative->substat_2_grind > 0){
|
|
|
- $grind = "+" . $alternative->substat_2_grind;
|
|
|
- if (in_array($alternative->substat_2_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
- ?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($alternative->substat_2_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($alternative->substat_3_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($alternative->substat_3_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->substat_3_name);
|
|
|
- $stat_value = "+ " . $alternative->substat_3_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->substat_3_name;
|
|
|
- $stat_value = "+ " . $alternative->substat_3_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($alternative->substat_3_grind > 0){
|
|
|
- $grind = "+" . $alternative->substat_3_grind;
|
|
|
- if (in_array($alternative->substat_3_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
- ?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($alternative->substat_3_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr class=substat>
|
|
|
- <td class='stat'>
|
|
|
-<?php
|
|
|
- if (strlen($alternative->substat_4_name) == 0){
|
|
|
- $stat_name = " ";
|
|
|
- $stat_value = "";
|
|
|
- }
|
|
|
- elseif (in_array($alternative->substat_4_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $stat_name = str_replace("%", "", $alternative->substat_4_name);
|
|
|
- $stat_value = "+ " . $alternative->substat_4_value . "%";
|
|
|
- }
|
|
|
- else{
|
|
|
- $stat_name = $alternative->substat_4_name;
|
|
|
- $stat_value = "+ " . $alternative->substat_4_value;
|
|
|
- }
|
|
|
- $grind = "";
|
|
|
- if ($alternative->substat_4_grind > 0){
|
|
|
- $grind = "+" . $alternative->substat_4_grind;
|
|
|
- if (in_array($alternative->substat_4_name, array("CRR", "CRD", "RES", "ACC", "HP%", "ATK%", "DEF%"))){
|
|
|
- $grind = $grind . "%";
|
|
|
- }
|
|
|
- }
|
|
|
- ?>
|
|
|
- <?=$stat_name?>
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$stat_value?>
|
|
|
- <span class='grind grind_<?=$grind?>'>
|
|
|
- <?=$grind?>
|
|
|
- </span>
|
|
|
-<?php
|
|
|
- if ($alternative->substat_4_enchant == 1){
|
|
|
-?>
|
|
|
- <img title='Enchanted' src='<?=$path["img"]["layout"]?>rune/enchanted.png'/>
|
|
|
-<?php
|
|
|
- }
|
|
|
-?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- <td class='details'>
|
|
|
- <table class='table_details'>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Quality:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <span class='quality quality_<?=strtolower($alternative->quality_name)?>'>
|
|
|
- <?=$alternative->quality_name?>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Original quality:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <span class='quality quality_<?=strtolower($alternative->original_quality_name)?>'>
|
|
|
- <?=$alternative->original_quality_name?>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Value:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=$alternative->value?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($alternative->efficiency, 2)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Max. efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($alternative->max_efficiency, 2)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td class='title'>
|
|
|
- Reached efficiency:
|
|
|
- </td>
|
|
|
- <td class='value'>
|
|
|
- <?=number_format($alternative->efficiency * 100 / $alternative->max_efficiency)?>%
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table> <!-- .alternative -->
|
|
|
+ <?=html_rune_table($alternative, $alternative->assigned_to)?>
|
|
|
<?php
|
|
|
}
|
|
|
?>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
}
|
|
|
?>
|