mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 07:07:14 +00:00
Added oasis part
+must to be coded to activate from the install section
This commit is contained in:
committed by
GitHub
parent
d96259afd8
commit
02c05f677d
@@ -1,11 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
#################################################################################
|
#################################################################################
|
||||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||||
## --------------------------------------------------------------------------- ##
|
## --------------------------------------------------------------------------- ##
|
||||||
## Filename overview.tpl ##
|
## Project: TravianZ ##
|
||||||
|
## Version: 01.09.2013 ##
|
||||||
|
## Filename overview.php ##
|
||||||
## Developed by: Dzoki ##
|
## Developed by: Dzoki ##
|
||||||
## License: TravianX Project ##
|
## Fixed by: Shadow / Skype : cata7007 ##
|
||||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
## License: TravianZ Project ##
|
||||||
|
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
|
||||||
|
## URLs: http://travian.shadowss.ro ##
|
||||||
|
## Source code: http://github.com/Shadowss/TravianZ/ ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
@@ -162,11 +168,11 @@ include("menu2.tpl");
|
|||||||
</table><table cellpadding="1" cellspacing="1" id="villages">
|
</table><table cellpadding="1" cellspacing="1" id="villages">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="3">Villages</th>
|
<th colspan="4">Villages</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Name</td>
|
<td>Name</td>
|
||||||
|
<td>Oasis</td>
|
||||||
<td>Inhabitants</td>
|
<td>Inhabitants</td>
|
||||||
<td>Coordinates</td>
|
<td>Coordinates</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -178,7 +184,47 @@ include("menu2.tpl");
|
|||||||
if($vil['capital'] == 1) {
|
if($vil['capital'] == 1) {
|
||||||
echo "<span class=\"none3\"> (capital)</span>";
|
echo "<span class=\"none3\"> (capital)</span>";
|
||||||
}
|
}
|
||||||
echo "</td>";
|
echo "<td class=\"oases\"></td>";
|
||||||
|
|
||||||
|
// 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 "<img class='r1' src='img/x.gif' title='Lumber'>";
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
echo "<img class='r1' src='img/x.gif' title='Lumber'> <img class='r4' src='img/x.gif' title='Crop'>";
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
case 5:
|
||||||
|
echo "<img class='r2' src='img/x.gif' title='Clay'>";
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
echo "<img class='r2' src='img/x.gif' title='Clay'> <img class='r4' src='img/x.gif' title='Crop'>";
|
||||||
|
case 7:
|
||||||
|
case 8:
|
||||||
|
echo "<img class='r3' src='img/x.gif' title='Iron'>";
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
|
echo "<img class='r3' src='img/x.gif' title='Iron'> <img class='r4' src='img/x.gif' title='Crop'>";
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
case 11:
|
||||||
|
case 12:
|
||||||
|
echo "<img class='r4' src='img/x.gif' title='Crop'>";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OASIS PART - must to be activated from install part
|
||||||
|
|
||||||
|
echo "</td>";
|
||||||
echo "<td class=\"hab\">".$vil['pop']."</td><td class=\"aligned_coords\">";
|
echo "<td class=\"hab\">".$vil['pop']."</td><td class=\"aligned_coords\">";
|
||||||
echo "<div class=\"cox\">(".$coor['x']."</div><div class=\"pi\">|</div><div class=\"coy\">".$coor['y'].")</div></td></tr>";
|
echo "<div class=\"cox\">(".$coor['x']."</div><div class=\"pi\">|</div><div class=\"coy\">".$coor['y'].")</div></td></tr>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user