Artifacts fixing part 1

+Added a new table in the database, called "artefacts_chrono" which
stores the chronology of all artifacts
+Added the support for the artifacts chronology in 27_show.tpl
+Added the support for interacting with the artifacts chronology table in Database.php
+Cleaned the code in 27_show.tpl
+Some minor improovements and bug fixing
This commit is contained in:
iopietro
2018-04-23 20:28:38 +02:00
parent f810c9fe99
commit 26cb03cdb6
8 changed files with 212 additions and 93 deletions
+8 -12
View File
@@ -7,19 +7,15 @@
<h1><?php echo TREASURY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
<p class="build_desc"><?php echo TREASURY_DESC; ?></p>
<?php
<?php
include("27_menu.tpl");
if(isset($_GET['show'])){ include("27_show.tpl"); }else{
if(!isset($_GET['t'])){
include("27_1.tpl");
}elseif(isset($_GET['t']) && $_GET['t'] == 2){
include("27_2.tpl");
}elseif(isset($_GET['t']) && $_GET['t'] == 3){
include("27_3.tpl");
}
}
if(isset($_GET['show']) && !empty($_GET['show']) && $_GET['show'] > 0) include("27_show.tpl");
else
{
if(!isset($_GET['t'])) include("27_1.tpl");
elseif(isset($_GET['t']) && $_GET['t'] == 2) include("27_2.tpl");
elseif(isset($_GET['t']) && $_GET['t'] == 3) include("27_3.tpl");
}
include("upgrade.tpl");
?>
</div>