report_runeupgrade.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. global $RUNE_STAT;
  3. global $QUALITY;
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang='en'>
  7. <head>
  8. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  9. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  10. <title><?=$page->title?></title>
  11. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  12. <!-- CSS files -->
  13. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
  14. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>report_runeupgrade.css'/>
  15. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
  16. <!-- Meta tags -->
  17. <link rel='canonical' href='<?=$page->canonical?>'/>
  18. <link rel='author' href='<?=$page->author?>'/>
  19. <link rel='publisher' href='<?=$page->author?>'/>
  20. <meta name='description' content='<?=$page->description?>'/>
  21. <meta property='og:title' content='<?=$page->title?>'/>
  22. <meta property='og:url' content='<?=$page->canonical?>'/>
  23. <meta property='og:description' content='<?=$page->description?>'/>
  24. <meta property='og:image' content='<?=$page->icon?>'/>
  25. <meta property='og:site_name' content='<?=$page->name?>'/>
  26. <meta property='og:type' content='website'/>
  27. <meta property='og:locale' content='en'/>
  28. <meta name='twitter:card' content='summary'/>
  29. <meta name='twitter:title' content='<?=$page->title?>'/>
  30. <meta name='twitter:description' content='<?=$page->description?>'/>
  31. <meta name='twitter:image' content='<?=$page->icon?>'/>
  32. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  33. <meta name='robots' content='index follow'/>
  34. <script>
  35. /**
  36. * Shows or hiddes the filters panel.
  37. */
  38. function toggleFilters(){
  39. var content = document.getElementById('filters_content');
  40. var slid = document.getElementById('filters_slid');
  41. if (content.style.maxHeight != '30em'){
  42. content.style.maxHeight = '30em';
  43. slid.style.transform = 'rotate(90deg)';
  44. }
  45. else{
  46. content.style.maxHeight = '0px';
  47. slid.style.transform = 'rotate(0deg)';
  48. }
  49. };
  50. </script>
  51. </head>
  52. <body id='body_report_runeupgrade'>
  53. <?php
  54. include __DIR__ . "/inc/header.php";
  55. ?>
  56. <section class='filters'>
  57. <h2 id='filters_title' onClick='toggleFilters();'>
  58. <img id='filters_slid' id='filters_slid' alt=' ' src='<?=$path["img"]["icon"]?>slid.png'/>
  59. Upgrade filters
  60. </h2>
  61. <article id='filters_content'>
  62. <?php
  63. $filters = $page->filters;
  64. $custom_filters = $page->custom_filters;
  65. include __DIR__ . "/inc/filter_report_runeupgrade.php";
  66. ?>
  67. </article>
  68. </section> <!-- #filters -->
  69. <?php
  70. foreach ($page->upgrades as $upgrade){
  71. ?>
  72. <section class='content'>
  73. <h2>
  74. <span>
  75. <?=$upgrade["unit"]->title?>
  76. </span>
  77. </h2>
  78. <article>
  79. <div class='monster'>
  80. <div class='profile'>
  81. <div class='monster_panel'>
  82. <?=html_unit_panel($upgrade["unit"])?>
  83. </div>
  84. </div> <!-- .profile -->
  85. </div>
  86. <div class='monster_runes'>
  87. <?php
  88. foreach ($upgrade["upgrade"] as $rupgrade){
  89. ?>
  90. <?=html_rune_table($rupgrade["rune"])?>
  91. <div class='alternatives'>
  92. <?php
  93. foreach ($rupgrade["alternative"] as $alternative){
  94. ?>
  95. <?=html_rune_table($alternative, $alternative->assigned_to)?>
  96. <?php
  97. }
  98. ?>
  99. </div>
  100. <?php
  101. }
  102. ?>
  103. </div> <!-- .monster_runes -->
  104. </article>
  105. </section>
  106. <?php
  107. }
  108. include __DIR__ . "/inc/footer.php";
  109. ?>
  110. </body>
  111. </html>