diff --git a/Templates/News/newsbox2.tpl b/Templates/News/newsbox2.tpl index 3434cc3f..407a621d 100644 --- a/Templates/News/newsbox2.tpl +++ b/Templates/News/newsbox2.tpl @@ -1,6 +1,5 @@ areArtifactsSpawned(), $database->areWWVillagesSpawned(), $database->areArtifactsSpawned(true)]; @@ -12,8 +11,8 @@ $areSpawned = [$database->areArtifactsSpawned(), $database->areWWVillagesSpawned : - + - + @@ -178,7 +184,47 @@ include("menu2.tpl"); if($vil['capital'] == 1) { echo " (capital)"; } - echo ""; + echo ""; + + // OASIS PART - must to be activated from install part + + $prefix = "".TB_PREFIX."odata"; + $uid = $_GET['uid']; $wref = $vil['wref']; + $sql = mysqli_query("SELECT * FROM $prefix WHERE owner = $uid AND conqured = $wref"); + while($row = mysqli_fetch_array($sql)){ + $type = $row["type"]; + switch($type) { + case 1: + case 2: + echo ""; + break; + case 3: + echo ""; + break; + case 4: + case 5: + echo ""; + break; + case 6: + echo ""; + case 7: + case 8: + echo ""; + break; + case 9: + echo ""; + break; + case 10: + case 11: + case 12: + echo ""; + break; + } + } + + // OASIS PART - must to be activated from install part + + echo ""; echo ""; }
VillagesVillages
NameOasis Inhabitants Coordinates
".$vil['pop'].""; echo "
(".$coor['x']."
|
".$coor['y'].")