| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426 |
- <?php
- global $AREA_TYPE;
- global $SCENARIO;
- global $DUNGEON;
- global $LABYRINTH_STAGES;
- global $DIFFICULTY;
- global $ELEMENTAL_RIFT_DUNGEON;
- ?>
- <!DOCTYPE html>
- <html lang='en'>
- <head>
- <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
- <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
- <title><?=$page->title?></title>
- <link rel='shortcut icon' href='<?=$page->favicon?>'/>
- <!-- CSS files -->
- <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
- <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>teams.css'/>
- <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>filters.css'/>
- <!-- Script files -->
- <script src="<?=$path["js"]?>ui.js"></script>
- <script src="<?=$path["js"]?>teams.js"></script>
- <!-- Meta tags -->
- <link rel='canonical' href='<?=$page->canonical?>'/>
- <link rel='author' href='<?=$page->author?>'/>
- <link rel='publisher' href='<?=$page->author?>'/>
- <meta name='description' content='<?=$page->description?>'/>
- <meta property='og:title' content='<?=$page->title?>'/>
- <meta property='og:url' content='<?=$page->canonical?>'/>
- <meta property='og:description' content='<?=$page->description?>'/>
- <meta property='og:image' content='<?=$page->icon?>'/>
- <meta property='og:site_name' content='<?=$page->name?>'/>
- <meta property='og:type' content='website'/>
- <meta property='og:locale' content='en'/>
- <meta name='twitter:card' content='summary'/>
- <meta name='twitter:title' content='<?=$page->title?>'/>
- <meta name='twitter:description' content='<?=$page->description?>'/>
- <meta name='twitter:image' content='<?=$page->icon?>'/>
- <meta name='twitter:url' content='<?=$page->canonical?>'/>
- <meta name='robots' content='index follow'/>
- <script>
- function populateUnits(total){
- for (var i = 0; i < 6; i ++){
- if (i < total){
- document.getElementById('new_unit_' + i).style.display = 'inline-block';
- }
- else{
- document.getElementById('new_unit_' + i).style.display = 'none';
- }
- }
- }
- function populateStage(total){
- var sel = document.getElementById('new_area_stage');
- while (sel.firstChild) {
- sel.removeChild(sel.firstChild);
- }
- var opt;
- var att;
- for (var i = 1; i <= total; i ++){
- opt = document.createElement('option');
- tex = document.createTextNode(i);
- att = document.createAttribute('value');
- att.value = i;
- opt.setAttributeNode(att);
- opt.appendChild(tex);
- sel.appendChild(opt);
- }
- }
- function populateDifficulty(labyrinth = false, toa = false){
- var sel = document.getElementById('new_area_difficulty');
- while (sel.firstChild) {
- sel.removeChild(sel.firstChild);
- }
- var opt;
- var att;
- var tex;
- // Empty
- opt = document.createElement('option');
- tex = document.createTextNode('');
- opt.appendChild(tex);
- sel.appendChild(opt);
- // Easy (Labyrinth only)
- if (labyrinth){
- opt = document.createElement('option');
- tex = document.createTextNode('Normal');
- att = document.createAttribute('value');
- att.value = '<?=$DIFFICULTY["EASY"]?>';
- opt.setAttributeNode(att);
- opt.appendChild(tex);
- sel.appendChild(opt);
- }
- // Normal
- opt = document.createElement('option');
- tex = document.createTextNode('Normal');
- att = document.createAttribute('value');
- att.value = '<?=$DIFFICULTY["NORMAL"]?>';
- opt.setAttributeNode(att);
- opt.appendChild(tex);
- sel.appendChild(opt);
- // Hard
- opt = document.createElement('option');
- tex = document.createTextNode('Hard');
- att = document.createAttribute('value');
- att.value = '<?=$DIFFICULTY["HARD"]?>';
- opt.setAttributeNode(att);
- opt.appendChild(tex);
- sel.appendChild(opt);
- // Hell
- if (!toa){
- opt = document.createElement('option');
- tex = document.createTextNode('Hell');
- att = document.createAttribute('value');
- att.value = '<?=$DIFFICULTY["HELL"]?>';
- opt.setAttributeNode(att);
- opt.appendChild(tex);
- sel.appendChild(opt);
- }
- }
- function selectNewAreaType(){
- var type = document.getElementById('new_area_type').options[document.getElementById('new_area_type').selectedIndex].value;
- document.getElementById('new_area_scenario').style.display = 'none';
- document.getElementById('new_area_scenario').selectedIndex = 0;
- document.getElementById('new_area_cairos_dungeon').style.display = 'none';
- document.getElementById('new_area_cairos_dungeon').selectedIndex = 0;
- document.getElementById('new_area_rift_dungeon').style.display = 'none';
- document.getElementById('new_area_rift_dungeon').selectedIndex = 0;
- //document.getElementById('new_area_arena').style.display = 'none';
- document.getElementById('new_area_tartarus_labyrinth').style.display = 'none';
- document.getElementById('new_area_tartarus_labyrinth').selectedIndex = 0;
- //document.getElementById('new_area_trial_of_ascension').style.display = 'none';
- //document.getElementById('new_area_world_boss').style.display = 'none';
- document.getElementById('new_area_dimensional_hole').style.display = 'none';
- document.getElementById('new_area_dimensional_hole').selectedIndex = 0;
- //document.getElementById('new_area_dimensional_rift').style.display = 'none';
- document.getElementById('new_area_difficulty').style.display = 'none';
- document.getElementById('new_area_difficulty').selectedIndex = 0;
- document.getElementById('new_area_stage').style.display = 'none';
- document.getElementById('new_area_stage').selectedIndex = 0;
- switch (type){
- case '<?=$AREA_TYPE["SCENARIO"]?>':
- document.getElementById('new_area_scenario').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["CAIROS_DUNGEON"]?>':
- document.getElementById('new_area_cairos_dungeon').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["RIFT_DUNGEON"]?>':
- document.getElementById('new_area_rift_dungeon').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["RIFT_RAID"]?>':
- document.getElementById('new_area_rift_raid').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["ARENA"]?>':
- //document.getElementById('new_area_arena').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["GUILD_WAR"]?>':
- document.getElementById('new_area_guild_war').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["GUILD_SIEGE"]?>':
- document.getElementById('new_area_guild_siege').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["TARTARUS_LABYRINTH"]?>':
- document.getElementById('new_area_tartarus_labyrinth').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["TRIAL_OF_ASCENSION"]?>':
- //document.getElementById('new_area_trial_of_ascension').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["WORLD_BOSS"]?>':
- //document.getElementById('new_area_world_boss').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["DIMENSIONAL_HOLE"]?>':
- document.getElementById('new_area_dimensional_hole').style.display = 'inline';
- break;
- case '<?=$AREA_TYPE["DIMENSIONAL_RIFT"]?>':
- //document.getElementById('new_area_dimensional_rift').style.display = 'inline';
- break;
- }
- }
- function selectNewArea(){
- var type = document.getElementById('new_area_type').options[document.getElementById('new_area_type').selectedIndex].value;
- document.getElementById('new_area_stage').selectedIndex = 0;
- document.getElementById('new_area_difficulty').selectedIndex = 0;
- switch (type){
- case '<?=$AREA_TYPE["SCENARIO"]?>':
- document.getElementById('new_area_stage').style.display = 'inline';
- document.getElementById('new_area_difficulty').style.display = 'inline';
- populateStage(7);
- pupulateDifficulty();
- break;
- case '<?=$AREA_TYPE["CAIROS_DUNGEON"]?>':
- document.getElementById('new_area_stage').style.display = 'inline';
- document.getElementById('new_area_difficulty').style.display = 'inline';
- populateStage(10);
- pupulateDifficulty();
- break;
- case '<?=$AREA_TYPE["RIFT_DUNGEON"]?>':
- break;
- case '<?=$AREA_TYPE["RIFT_RAID"]?>':
- document.getElementById('new_area_stage').style.display = 'inline';
- populateStage(5);
- break;
- case '<?=$AREA_TYPE["ARENA"]?>':
- break;
- case '<?=$AREA_TYPE["GUILD_WAR"]?>':
- break;
- case '<?=$AREA_TYPE["GUILD_SIEGE"]?>':
- break;
- case '<?=$AREA_TYPE["TARTARUS_LABYRINTH"]?>':
- document.getElementById('new_area_difficulty').style.display = 'inline';
- pupulateDifficulty(true, false);
- break;
- case '<?=$AREA_TYPE["TRIAL_OF_ASCENSION"]?>':
- document.getElementById('new_area_difficulty').style.display = 'inline';
- pupulateDifficulty(false, true);
- break;
- case '<?=$AREA_TYPE["WORLD_BOSS"]?>':
- break;
- case '<?=$AREA_TYPE["DIMENSIONAL_HOLE"]?>':
- document.getElementById('new_area_stage').style.display = 'inline';
- populateStage(5);
- break;
- case '<?=$AREA_TYPE["DIMENSIONAL_RIFT"]?>':
- break;
- }
- }
- </script>
- </head>
- <body>
- <?php
- include __DIR__ . "/inc/header.php";
- ?>
- <section class='filters'>
- <h2>
- Team filters
- </h2>
- <?php
- $filters = $page->filters;
- include __DIR__ . "/inc/filter_team.php";
- ?>
- </section> <!-- #filters -->
- <section class='list'>
- <h2>
- Teams
- </h2>
- <article>
- <table>
- <?php
- foreach ($page->teams as $team){
- ?>
- <tr>
- <td>
- <h4>
- <?=$team->name?>
- </h4>
- <?php
- $area = $team->area->name;
- if (intval($team->stage) > 0){
- $area = $area . " - " . $team->stage;
- }
- ?>
- <h5>
- <?=$area?>
- </h5>
- </td>
- <td>
- <?=$team->description?>
- </td>
- <td>
- <?php
- foreach ($team->units as $unit){
- ?>
- <a href='/<?=$UID?>/monsters/<?=$unit->id?>'>
- <div class='monster_panel'>
- <?=html_unit_panel($unit)?>
- </div>
- </a>
- <?php
- }
- ?>
- </td>
- </tr>
- <?php
- }
- ?>
- </table>
- </article>
- </section> <!-- .list -->
- <?php
- include __DIR__ . "/inc/footer.php";
- ?>
- <section id='new_team' class='content'>
- <h2>
- New team
- </h2>
- <article>
- <table>
- <tr>
- <td>
- Area
- </td>
- <td>
- <select id='new_area_type' name='new_area_type' onChange='selectNewAreaType();'>
- <option value=''> </option>
- <option value='<?=$AREA_TYPE["SCENARIO"]?>'>Scenario</option>
- <option value='<?=$AREA_TYPE["CAIROS_DUNGEON"]?>'>Cairos Dungeon</option>
- <option value='<?=$AREA_TYPE["RIFT_DUNGEON"]?>'>Rift Dungeon</option>
- <option value='<?=$AREA_TYPE["RIFT_RAID"]?>'>Rift Raid</option>
- <option value='<?=$AREA_TYPE["DIMENSIONAL_HOLE"]?>'>Dimensional Hole</option>
- <option value='<?=$AREA_TYPE["ARENA"]?>'>Arena</option>
- <option value='<?=$AREA_TYPE["GUILD_WAR"]?>'>Guild War</option>
- <option value='<?=$AREA_TYPE["GUILD_SIEGE"]?>'>Guild Siege</option>
- <option value='<?=$AREA_TYPE["TARTARUS_LABYRINTH"]?>'>Tartarus Labyrinth</option>
- <option value='<?=$AREA_TYPE["TRIAL_OF_ASCENSION"]?>'>Trial of Ascension</option>
- <option value='<?=$AREA_TYPE["WORLD_BOSS"]?>'>World Boss</option>
- <option value='<?=$AREA_TYPE["DIMENSIONAL_RIFT"]?>'>Dimensinal Rift</option>
- </select>
- <select id='new_area_scenario' class='new_area' onChange='selectNewArea();'>
- <option value=''> </option>
- <option value='<?=$SCENARIO['GAREN_FOREST']?>'>Garen Forest</option>
- <option value='<?=$SCENARIO['MT_SIZ']?>'>Mt. Siz</option>
- <option value='<?=$SCENARIO['KABIR_RUINS']?>'>Kabir Ruins</option>
- <option value='<?=$SCENARIO['MT_WHITE_RAGON']?>'>Mt. White Ragon</option>
- <option value='<?=$SCENARIO['TELAIN_FOREST']?>'>Telain Forest</option>
- <option value='<?=$SCENARIO['HYDENI_RUINS']?>'>Hydeni Ruins</option>
- <option value='<?=$SCENARIO['TAMOR_DESERT']?>'>Tamor Desert</option>
- <option value='<?=$SCENARIO['VROFAGUS_RUINS']?>'>Vrofagus Ruins</option>
- <option value='<?=$SCENARIO['FAIMON_VOLCANO']?>'>Faimon Volcano</option>
- <option value='<?=$SCENARIO['AIDEN_FOREST']?>'>Aiden Forest</option>
- <option value='<?=$SCENARIO['FERUN_CASTLE']?>'>Ferun Castle</option>
- <option value='<?=$SCENARIO['MT_RUNAR']?>'>Mt. Runar</option>
- <option value='<?=$SCENARIO['CHIRUKA_REMAINS']?>'>Charuca Remains</option>
- </select>
- <select id='new_area_cairos_dungeon' class='new_area' onChange='selectNewArea();'>
- <option value=''> </option>
- <option value='<?=$DUNGEON['GIANTS_KEEP']?>'>Giant's Keep</option>
- <option value='<?=$DUNGEON['DRAGONS_LAIR']?>'>Dragon's Lair</option>
- <option value='<?=$DUNGEON['NECROPOLIS']?>'>Necropolis</option>
- <option value='<?=$DUNGEON['HALL_OF_MAGIC']?>'>Hall of Magic</option>
- <option value='<?=$DUNGEON['HALL_OF_FIRE']?>'>Hall of Fire</option>
- <option value='<?=$DUNGEON['HALL_OF_WATER']?>'>Hall of Water</option>
- <option value='<?=$DUNGEON['HALL_OF_WIND']?>'>Hall of Wind</option>
- <option value='<?=$DUNGEON['HALL_OF_LIGHT']?>'>Hall of Light</option>
- <option value='<?=$DUNGEON['HALL_OF_DARK']?>'>Hall of Dark</option>
- </select>
- <select id='new_area_rift_dungeon' class='new_area' onChange='selectNewArea();'>
- <option value=''> </option>
- <option value='<?=$ELEMENTAL_RIFT_DUNGEON['FIRE_BEAST']?>'>Fire Beast</option>
- <option value='<?=$ELEMENTAL_RIFT_DUNGEON['ICE_BEAST']?>'>Ice Beast</option>
- <option value='<?=$ELEMENTAL_RIFT_DUNGEON['WIND_BEAST']?>'>Wind Beast</option>
- <option value='<?=$ELEMENTAL_RIFT_DUNGEON['LIGHT_BEAST']?>'>Light Beast</option>
- <option value='<?=$ELEMENTAL_RIFT_DUNGEON['DARK_BEAST']?>'>Dark Beast</option>
- </select>
- <select id='new_area_dimensional_hole' class='new_area' onChange='selectNewArea();'>
- <option value=''> </option>
- <option value='<?=$DUNGEON['FOREST_OF_ROARING_BEASTS']?>'>Forest or Roaring Beasts</option>
- <option value='<?=$DUNGEON['KARZHAN_REMAINS_WARBEAR']?>'>Karzhan Remains (Warbear)</option>
- <option value='<?=$DUNGEON['KARZHAN_REMAINS_WARBEAR']?>'>Karzhan Remains (Inugami)</option>
- <option value='<?=$DUNGEON['SANCTUARY_OF_DREAMING_FAIRIES']?>'>Sanctuary of Dreaming Fairies</option>
- <option value='<?=$DUNGEON['ELLUNIA_REMAINS_FAIRY']?>'>Ellunia Remains (Fairy)</option>
- <option value='<?=$DUNGEON['ELLUNIA_REMAINS_PIXIE']?>'>Ellunia Remains (Pixie)</option>
- <!-- TODO: Lumel -->
- </select>
- <select id='new_area_tartarus_labyrinth' class='new_area' onChange='selectNewArea();'>
- <option value=''> </option>
- <option value='<?=$LABYRINTH_STAGES['TARTARUS']?>'>Tartarus</option>
- <option value='<?=$LABYRINTH_STAGES['KOTTOS']?>'>Kottos</option>
- <option value='<?=$LABYRINTH_STAGES['LEOS']?>'>Leos</option>
- <option value='<?=$LABYRINTH_STAGES['AQUILES']?>'>Aquiles</option>
- <option value='<?=$LABYRINTH_STAGES['NORMAL']?>'>Normal Stage</option>
- <option value='<?=$LABYRINTH_STAGES['RESCUE']?>'>Rescue Stage</option>
- <option value='<?=$LABYRINTH_STAGES['EXPLODE']?>'>Explode Stage</option>
- <option value='<?=$LABYRINTH_STAGES['COOL_TIME']?>'>Cool Time Stage</option>
- <option value='<?=$LABYRINTH_STAGES['SPEED_LIMIT']?>'>Speed Limit Stage</option>
- <option value='<?=$LABYRINTH_STAGES['TIME_LIMIT']?>'>Time Limit Stage</option>
- <!-- TODO: Lumel -->
- </select>
- <select id='new_area_difficulty'>
- </select>
- <select id='new_area_stage'>
- </select>
- </td>
- </tr>
- <tr>
- <td>
- Name
- </td>
- <td>
- <input type='text' id='name' name='name'/>
- </td>
- </tr>
- <tr>
- <td>
- Description
- </td>
- <td>
- <textarea name='description'></textarea>
- </td>
- </tr>
- <tr>
- <td colspan='2'>
- <?php
- for ($i = 0; $i < 6; $i ++){
- ?>
- <div class='new_unit' id='new_unit_<?=$i?>'>
- <div>
- </div>
- <input id='new_unit_<?=$i?>_id' list='new_unit_<?=$i?>_list'/>
- <datalist id='new_unit_<?=$i?>_list'>
- <?php
- foreach ($page->units as $unit){
- ?>
-
- <?php
- }
- ?>
- </datalist>
- </div>
- <?php
- }
- ?>
- </td>
- </tr>
- </article>
- </section>
- </body>
- </html>
|