fusion.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <!DOCTYPE html>
  2. <html lang='en'>
  3. <head>
  4. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  5. <meta charset='utf-8'/>
  6. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  7. <title><?=$page->title?></title>
  8. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  9. <!-- CSS files -->
  10. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>fusion.css'/>
  12. <!-- Script files -->
  13. <script type="text/javascript" src="<?=$path["js"]?>ui.js"></script>
  14. <!-- Meta tags -->
  15. <link rel='canonical' href='<?=$page->canonical?>'/>
  16. <link rel='author' href='<?=$page->author?>'/>
  17. <link rel='publisher' href='<?=$page->author?>'/>
  18. <meta name='description' content='<?=$page->description?>'/>
  19. <meta property='og:title' content='<?=$page->title?>'/>
  20. <meta property='og:url' content='<?=$page->canonical?>'/>
  21. <meta property='og:description' content='<?=$page->description?>'/>
  22. <meta property='og:image' content='<?=$page->icon?>'/>
  23. <meta property='og:site_name' content='<?=$page->name?>'/>
  24. <meta property='og:type' content='website'/>
  25. <meta property='og:locale' content='en'/>
  26. <meta name='twitter:card' content='summary'/>
  27. <meta name='twitter:title' content='<?=$page->title?>'/>
  28. <meta name='twitter:description' content='<?=$page->description?>'/>
  29. <meta name='twitter:image' content='<?=$page->icon?>'/>
  30. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  31. <meta name='robots' content='index follow'/>
  32. </head>
  33. <body>
  34. <?php
  35. include __DIR__ . "/inc/header.php";
  36. ?>
  37. <div id='content'>
  38. <div class='section'>
  39. <h3 class='section_title'>
  40. Fusion
  41. </h3>
  42. <?php
  43. foreach ($page->fusion as $fusion){
  44. ?>
  45. <table class='fusion level_1'>
  46. <tr>
  47. <td class='level_1'>
  48. <h4 class='name_aw color_<?=$fusion->target->element?>'><?=$fusion->target->name_aw?></h4>
  49. <h5 class='name italic'><?=$fusion->target->element?> <?=$fusion->target->name?></h5>
  50. <img class='monster border_<?=$fusion->target->element?> desktop' src='<?=$fusion->target->image?>'/>
  51. <img class='monster border_<?=$fusion->target->element?>' src='<?=$fusion->target->image_aw?>'/>
  52. <br/>
  53. <?php
  54. for ($i = 0; $i < $fusion->target_stars; $i ++){
  55. ?>
  56. <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star.png";?>'/>
  57. <?php
  58. }
  59. ?>
  60. </td>
  61. <td>
  62. <?php
  63. foreach ($fusion->source as $source){
  64. ?>
  65. <table class='fusion level_2'>
  66. <tr>
  67. <td>
  68. <h4 class='name_aw color_<?=$source->element?>'><?=$source->name_aw?></h4>
  69. <h5 class='name italic'><?=$source->element?> <?=$source->name?></h5>
  70. <img class='monster border_<?=$source->element?> desktop' src='<?=$source->image?>'/>
  71. <img class='monster border_<?=$source->element?>' src='<?=$source->image_aw?>'/>
  72. <br/>
  73. <?php
  74. for ($i = 0; $i < $fusion->source_stars; $i ++){
  75. ?>
  76. <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star_aw.png";?>'/>
  77. <?php
  78. }
  79. ?>
  80. <span class='monster_level'>Lv. <?=$fusion->source_level?></span>
  81. <?php
  82. $owned = null;
  83. foreach ($page->collection as $col){
  84. if ($col->monster->id == $source->id){
  85. $owned = $col;
  86. }
  87. }
  88. if (isset($owned)){
  89. $owned_src = $owned->monster->image;
  90. $star_src = $path["img"]["layout"] . "icon/star.png";
  91. if ($owned->awake == 1){
  92. $owned_src = $owned->monster->image_aw;
  93. $star_src = $path["img"]["layout"] . "icon/star_aw.png";
  94. }
  95. ?>
  96. <hr class='owned_separator'/>
  97. <table class='owned'>
  98. <tr>
  99. <td>
  100. <img class='owned_monster border_<?=$owned->monster->element?>' src='<?=$owned_src?>'/>
  101. </td>
  102. <td>
  103. <?php
  104. for ($i = 0; $i < $owned->stars; $i ++){
  105. ?>
  106. <img class='owned_star' src='<?=$star_src?>'/>
  107. <?php
  108. }
  109. ?>
  110. <span class='owned_level'>Lv. <?=$owned->level?></span>
  111. </td>
  112. <?php
  113. if ($owned->level == $fusion->source_level && $owned->stars == $fusion->source_stars && $owned->awaken){
  114. ?>
  115. <td>
  116. <img class='owned_check' src='<?=$path["img"]["layout"]?>icon/check.png'/>
  117. </td>
  118. <?php
  119. }
  120. ?>
  121. </tr>
  122. </table>
  123. <?php
  124. }
  125. ?>
  126. </td>
  127. <td>
  128. <?php
  129. foreach ($page->fusion as $f){
  130. if ($f->target->id == $source->id){
  131. foreach($f->source as $s){
  132. ?>
  133. <table class='fusion level_3'>
  134. <tr>
  135. <td class='left'>
  136. <h4 class='name_aw color_<?=$s->element?>'><?=$s->name_aw?></h4>
  137. <h5 class='name italic'><?=$s->element?> <?=$s->name?></h5>
  138. <br/>
  139. <?php
  140. for ($i = 0; $i < $f->source_stars; $i ++){
  141. ?>
  142. <img class='monster_star' src='<?=$path["img"]["layout"] . "icon/star_aw.png";?>'/>
  143. <?php
  144. }
  145. ?>
  146. <span class='monster_level'>Lv. <?=$f->source_level?></span>
  147. </td>
  148. <td class='right'>
  149. <img class='monster border_<?=$s->element?> desktop' src='<?=$s->image?>'/>
  150. <img class='monster border_<?=$s->element?>' src='<?=$s->image_aw?>'/>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td colspan='2'>
  155. <?php
  156. $owned = null;
  157. foreach ($page->collection as $col){
  158. if ($col->monster->id == $s->id){
  159. $owned = $col;
  160. }
  161. }
  162. if (isset($owned)){
  163. $owned_src = $owned->monster->image;
  164. $star_src = $path["img"]["layout"] . "icon/star.png";
  165. if ($owned->awaken == 1){
  166. $owned_src = $owned->monster->image_aw;
  167. $star_src = $path["img"]["layout"] . "icon/star_aw.png";
  168. }
  169. ?>
  170. <hr class='owned_separator'/>
  171. <table class='owned'>
  172. <tr>
  173. <td>
  174. <img class='owned_monster border_<?=$owned->monster->element?>' src='<?=$owned_src?>'/>
  175. </td>
  176. <td>
  177. <?php
  178. for ($i = 0; $i < $owned->stars; $i ++){
  179. ?>
  180. <img class='owned_star' src='<?=$star_src?>'/>
  181. <?php
  182. }
  183. ?>
  184. <span class='owned_level'>Lv. <?=$owned->level?></span>
  185. </td>
  186. <?php
  187. if ($owned->level == $f->source_level && $owned->stars == $f->source_stars && $owned->awaken){
  188. ?>
  189. <td>
  190. <img class='owned_check' src='<?=$path["img"]["layout"]?>icon/check.png'/>
  191. </td>
  192. <?php
  193. }
  194. ?>
  195. </tr>
  196. </table>
  197. <?php
  198. }
  199. ?>
  200. </td>
  201. </tr>
  202. </table>
  203. <?php
  204. }
  205. }
  206. }
  207. ?>
  208. </td>
  209. </tr>
  210. </table>
  211. <?php
  212. }
  213. ?>
  214. </td>
  215. </tr>
  216. </table>
  217. <?php
  218. } // foreach ($page->fusion as $fusion)
  219. ?>
  220. </div> <!-- .section -->
  221. </div> <!-- .content -->
  222. <?php
  223. include __DIR__ . "/inc/footer.php";
  224. ?>
  225. </body>
  226. </html>