03.07.2009, 14:41
Bei mir ist ein Fehler mit der Dorfübersicht! Ich bin hier auf meiner eigens erstellten Welt2! Das ist von BlackArrow, die Dorfübersicht! Schaut mal!
(03.07.2009, 16:14)5 cent Wrote: [ -> ]mach mal nen Hardreset
dann lösche teplates_c
dann stoppe DSlan, apache und mysql.
dann die 3 dateien wieder starten und dann sollte es gehen das bringt nichts bei der übersicht
(04.07.2009, 11:59)knollenmax Wrote: [ -> ]Dann habe ich also doch die von Yanici! Aber es steht folgendes auf der Startseite: © 2003 - 2009 InnoGames GmbH Templates by All in One by Agamendon.
a:link { font-weight:bold; color: #804000; text-decoration:none; }
a:visited { font-weight:bold; color: #804000; text-decoration:none; }
a:active { font-weight:bold; color: #0082BE; text-decoration:none; }
a:hover { font-weight:bold; color: #0082BE; text-decoration:none; }
td { font-size:9pt; }
.hidden { color:#DED3B9; }
table.main { border-width:2px; border-style: solid; border-color:#804000; background-color:#F1EBDD; }
table.news { background-color:#F1EBDD; }
.in_border { background-color:#F1EBDD; text-align:left;}
span.timer_replace span { display:none; }
form { margin: 0px; }
p:first-child, h1:first-child, h2:first-child, h3:first-child, h4:first-child,
h5:first-child, h6:first-child, h1+p, h2+p, h3+p, h4+p, h5+p, h6+p { margin-top: 0px; }
table.blind { border-spacing:0px; }
table.blind td { padding: 0px; }
table.vis td { background-color:#F8F4E8; }
table.vis td.selected { background-color:#DED3B9; }
table.vis tr.nowrap td { white-space:nowrap; background-color:#F8F4E8; }
table.vis tr.units_own_home td { background-color:#F8F4E8; }
table.vis tr.units_there td { background-color:#F3EBCF; }
table.vis tr.units_away td { background-color:#EDE1B7; }
table.vis tr.row_a td { background-color:#F8F4E8; }
table.vis tr.row_b td { background-color:#F3EBCF; }
table.menueadmin a:hover {
font-size:9pt;
text-align: left;
background-color:#FFFFFF;
width:100%;
}
table.menueadmin td { background-color:#F8F4E8; }
tr.nowrap td { white-space:nowrap; }
table.intro td { background-color:#F8F4E8; line-height:1.5em; padding:6px; font-size:8pt}
/* Menüleiste */
table.menu {
border: 1px solid black;
background-color: #F1EBDD;
}
/* Quickbar */
table.menu#quickbar {
border-spacing:1px;
}
/* Top-Menü-Item mit Hover */
table.menu tr td {
padding: 1px; padding-left: 4px; padding-right: 4px;
white-space: nowrap;
background-color: #F8F4E8;
}
/* Quickbar MenüItem */
table.menu#quickbar tr td {
padding-top: 0px; padding-bottom: 0px;
}
/* Das gesamte Untermenü */
table.menu tr td table {
z-index:100;
position:absolute;
border-top: 1px solid black;
border-top: 1px solid black;
margin-left: -5px; margin-top:1px;
visibility: hidden;
}
/* Das gesamte Untermenü in sichtbar */
table.menu tr td:hover table, table.menu tr td.hover table {
visibility: visible;
}
/* Ein Untermenüpunkt */
table.menu tr td table tr td {
border: 1px solid black;
border-top: none;
}
/* Ein Link in einem Untermenüpunkt */
table.menu tr td table tr td a{
display: block;
width: 100%;
}
/* Forum */
.forum { background-color:#F1EBDD; border-width:1px; padding:1px; border-style:solid; border-color:#000000; white-space:nowrap; line-height:150%; }
.selected { background-color:#FADC9B; }
table.map td { font-size:8pt; text-align:center; vertical-align:middle;}
td.space-left { border-left:1px solid #175E36; } /* zwischen normalen Feldern */
td.space-bottom { border-bottom:1px solid #175E36; }
td.border-left { border-left:1px solid #103530; } /* "Sektorgrenzen" S1/S2/S6 */
td.border-bottom { border-bottom:1px solid #103530; }
td.sector-left { border-left:1px solid #DED3B9; } /* Sektorgrenzen */
td.sector-bottom { border-bottom:1px solid #DED3B9; }
td.space-left-new {}
td.space-bottom-new {}
td.border-left-new { border-left:1px solid #214B18; }
td.border-bottom-new { border-bottom:1px solid #214B18; }
td.sector-left-new { border-left:1px solid #DED3B9; }
td.sector-bottom-new { border-bottom:1px solid #DED3B9; }
td.con-left-new { border-left:1px solid #000000; }
td.con-bottom-new { border-bottom:1px solid #000000; }
tr.center td { text-align:center; }
tr.lit td { font-weight:bold; background-color:#FADC9B; }
tr.lit2 td { font-weight:bold; background-color:#F0E6C8; }
tr.admin td { background-color:#F0E6C8; }
tr.mini td { font-style: italic; font-size: x-small }
th { font-size:9pt; text-align: left; font-weight:bold; background-color:#DED3B9; }
body { background-color: #DED3B9; font-size:9pt; font-family: Verdana, Arial }
h1 { font-size:16pt;}
h2 { font-size:14pt;}
h3 { font-size:12pt; font-weight:bold; }
h4 { font-size:10pt; font-weight:bold; font-style:italic; margin-bottom:4pt}
h5 { font-size:10pt; font-weight:bold; margin-bottom:2pt}
img { border: none; }
img.middle { vertical-align:middle; }
.grey { color: gray; }
.warn { color: rgb(255, 0, 0); }
.error { color: rgb(180, 0, 0); font-weight:bold; }
.inactive { color: rgb(160, 160, 160); }
.nowrap { white-space: nowrap; }
.small { font-size: xx-small; }
hr { color: #804000; }
table.box { border-width:1px; border-style: solid; border-color:#000000; background-color:#F1EBDD; vertical-align: middle; }
table.box tr td { white-space:nowrap; }
input, select { font-size: 8pt; /*background-color:#FDFBF3;*/ }
input.attack { background-color: rgb(250, 210, 210) }
input.support { background-color: rgb(210, 250, 210) }
input.check { margin:0px; margin-right:5px; }
table.quote td.quote_author { font-weight: bold; font-size: 8pt; }
table.quote td.quote_message { background-color:#FFFFFF; font-size: 8pt; }
.post { border: 2px solid #804000; background-color: #f8f4e8; padding:0px; margin-bottom:5px;}
.igmline { background-color:#efe6c9; padding-left:4px; border-bottom:1px solid #804000; position:relative;}
.text { padding:6px; }
.date { font-size:x-small; right:5px; position:absolute;}
.right { right:5px; position:absolute; }
#igm_groups {position:absolute;z-index:100; border: 2px solid #804000; background-color:#efe6c9;}
#igm_groups td { padding:2px; }
ul.help{padding-left:1px; margin-left:0px}
li.help{list-style-type:none; background-color:#DED3B9; margin:2px; padding-left:8px; padding-top:4px; padding-bottom:4px;}
ul.help li.help ul.help li.help{ background-color:#F1EBDD; }
ul.help li.help ul.help li.help ul.help li.help { background-color:#F8F4E8; }
/*ul.help ul.help ul.help{background-color:#F8F4E8;}*/
ul.submenu{padding-left:1px; margin-left:0px}
li.submenu{list-style-type:none; margin:2px; padding-left:8px; padding-top:4px; padding-bottom:4px;}
a.sel { color:#0082BE; text-decoration:underline;}
.empty{ position:absolute; z-index:4; left:0px; top:0px; width:600px; height:418px;}
.p_main,.cons_main{ position:absolute; z-index:2; left:291px; top:107px; }
.p_main_flag{ position:absolute; z-index:2; left:291px; top:67px; }
.p_place,.cons_place{ position:absolute; z-index:2; left:319px; top:208px; }
.p_wood,.cons_wood{ position:absolute; z-index:2; left:480px; top:332px; }
.p_stone,.cons_stone{ position:absolute; z-index:2; left:8px; top:305px; }
.p_iron,.cons_iron{ position:absolute; z-index:2; left:10px; top:9px; }
.p_statue,.cons_statue{ position:absolute; z-index:2; left:257px; top:230px; }
.p_wall,.cons_wall{ position:absolute; z-index:1; left:13px; top:2px; }
.p_farm,.cons_farm{ position:absolute; z-index:1; left:450px; top:0px; }
.p_farm_field{ position:absolute; z-index:2; right:0; top:106px; }
.p_hide,.cons_hide{ position:absolute; z-index:2; left:245px; top:69px; }
.p_storage{ position:absolute; z-index:2; left:105px; top:125px; }
.p_market,.cons_market{ position:absolute; z-index:2; left:211px; top:127px; }
.p_barracks,.cons_barracks{ position:absolute; z-index:2; left:386px; top:216px; }
.p_stable,.cons_stable{ position:absolute; z-index:2; left:65px; top:207px; }
.p_garage,.cons_garage{ position:absolute; z-index:2; left:287px; top:280px; }
.p_church,.cons_church{ position:absolute; z-index:2; left:391px; top:99px; }
.p_church_f,.cons_church_f{ position:absolute; z-index:2; left:390px; top:99px; }
.p_snob,.cons_snob{ position:absolute; z-index:2; left:159px; top:63px; }
.p_smith,.cons_smith{ position:absolute; z-index:2; left:185px; top:269px; }
/* NPCs */
.npc_conversation{ position:absolute; z-index:2; left:222px; top:245px; }
.npc_guard{ position:absolute; z-index:2; left:177px; top:192px;}
.npc_juggler{ position:absolute; z-index:2; left:210px; top:225px;}
.npc_farmer{ position:absolute; z-index:2; left:558px; top:66px;}
.smith_anim{ position:absolute; z-index:3; left:174px; top:322px;}
/* xmas-tree */
.christmas_tree{ position:absolute; z-index:2; left:499px; top:188px; }
/* Label(Stufenanzeigen) für fest positionierte Gebaeude */
.l_main{ position:absolute; display:none; z-index:3; left:310px; top:55px; }
.l_place{ position:absolute; display:none; z-index:3; left:354px; top:188px; }
.l_wood{ position:absolute; display:none; z-index:3; left:550px; top:323px; }
.l_stone{ position:absolute; display:none; z-index:3; left:100px; top:395px; }
.l_iron{ position:absolute; display:none; z-index:3; left:29px; top:0px; }
.l_statue{position:absolute; display:none; z-index:3; left:245px; top:215px; }
.l_wall{ position:absolute; display:none; z-index:3; left:440px; top:316px; }
.l_farm{ position:absolute; display:none; z-index:3; left:450px; top:0px; }
.l_hide{ position:absolute; display:none; z-index:3; left:245px; top:48px; }
.l_storage{ position:absolute; display:none; z-index:3; left:100px; top:120px; }
.l_market{ position:absolute; display:none; z-index:3; left:260px; top:117px; }
.l_barracks{ position:absolute; display:none; z-index:3; left:482px; top:227px; }
.l_stable{ position:absolute; display:none; z-index:3; left:65px; top:196px; }
.l_garage{ position:absolute; display:none; z-index:3; left:370px; top:340px; }
.l_church{ position:absolute; display:none; z-index:3; left:480px; top:150px; }
.l_church_f{ position:absolute; display:none; z-index:3; left:480px; top:150px; }
.l_snob{ position:absolute; display:none; z-index:3; left:168px; top:63px; }
.l_smith{ position:absolute; display:none; z-index:3; left:205px; top:258px; }
:absolute; display:none; z-index:3; left:205px; top:258px; }
div.label { background-color: #668833; padding: 1px; border: 1px black solid; min-width:20px; color: white}
div.label_night { background-color: #202060; padding: 1px; border: 1px black solid; min-width:20px; color:white}
div.label a:link { color:#DDDDDD }
div.label a:visited { color:#DDDDDD }
div.label a:active { color:#DDDDDD }
div.label a:hover { color:white }
div.label_night a:link { color:#CCCCCC}
div.label_night a:visited { color:#CCCCCC}
div.label_night a:active { color:#CCCCCC}
div.label_night a:hover { color:white}
div.label img { display:none; }
div.label_night img { display:none; }
div.label { background-color: #598146; padding: 1px; border: 1px black solid; min-width:20px; color: white; z-index:10}
div.label_night { background-color: #202060; padding: 1px; border: 1px black solid; min-width:20px; color:white}
div.label a:link { color:#DDDDDD }
div.label a:visited { color:#DDDDDD }
div.label a:active { color:#DDDDDD }
div.label a:hover { color:white }
div.label_night a:link { color:#CCCCCC}
div.label_night a:visited { color:#CCCCCC}
div.label_night a:active { color:#CCCCCC}
div.label_night a:hover { color:white}
div.label img { display:none; }
div.label_night img { display:none; }
{php}
require_once("graphic.php");
if ($w == 'winter') {
$graphic = "winter";
}
else {
$graphic = "graphic";
}
$sql100 = "SELECT * FROM build WHERE villageid ='".$_GET["village"]."'";
$res100 = mysql_query($sql100);
while($row100 = mysql_fetch_assoc($res100))
{
$time_end = $row100[end_time];
}
mysql_free_result($res100);
if(!empty($time_end) && $time_end != 0)
{
$diff = $time_end - time();
if($diff >= 0)
{
$aus_main = date("H", $diff) - 1;
$aus_main .= date(":i:s", $diff);
}
else
{
$aus_main = "0:00:00";
}
}
$time_end = 0;
$sql100 = "SELECT * FROM recruit WHERE villageid ='".$_GET["village"]."' AND building = 'barracks'";
$res100 = mysql_query($sql100);
while($row100 = mysql_fetch_assoc($res100))
{
$time_end = $row100[time_finished];
}
if(!empty($time_end) && $time_end != 0)
{
$diff = $time_end - time();
if($diff >= 0)
{
$aus_barracks = date("H", $diff) - 1;
$aus_barracks .= date(":i:s", $diff);
}
else
{
$aus_barracks = "0:00:00";
}
}
mysql_free_result($res100);
$time_end = 0;
$sql100 = "SELECT * FROM recruit WHERE villageid ='".$_GET["village"]."' AND building = 'stable'";
$res100 = mysql_query($sql100);
while($row100 = mysql_fetch_assoc($res100))
{
$time_end = $row100[time_finished];
}
if(!empty($time_end) && $time_end != 0)
{
$diff = $time_end - time();
if($diff >= 0)
{
$aus_stable = date("H", $diff) - 1;
$aus_stable .= date(":i:s", $diff);
}
else
{
$aus_stable = "0:00:00";
}
}
mysql_free_result($res100);
$time_end = 0;
$sql101 = "SELECT * FROM recruit WHERE villageid ='".$_GET["village"]."' AND building = 'garage'";
$res101 = mysql_query($sql101);
while($row101 = mysql_fetch_assoc($res101))
{
$time_end1 = $row101[time_finished];
}
if(!empty($time_end1) && $time_end1 != 0)
{
$diff = $time_end1 - time();
if($diff >= 0)
{
$aus_garage = date("H", $diff) - 1;
$aus_garage .= date(":i:s", $diff);
}
else
{
$aus_garage = "0:00:00";
}
}
mysql_free_result($res101);
$time_end1 = 0;
$sql100 = "SELECT * FROM recruit WHERE villageid ='".$_GET["village"]."' AND building = 'snob'";
$res100 = mysql_query($sql100);
while($row100 = mysql_fetch_assoc($res100))
{
$time_end = $row100[time_finished];
}
if(!empty($time_end) && $time_end != 0)
{
$diff = $time_end - time();
if($diff >= 0)
{
$aus_snob = date("H", $diff) - 1;
$aus_snob .= date(":i:s", $diff);
}
else
{
$aus_snob = "0:00:00";
}
}
mysql_free_result($res100);
$time_end = 0;
$sql100 = "SELECT * FROM research WHERE villageid ='".$_GET["village"]."'";
$res100 = mysql_query($sql100);
while($row100 = mysql_fetch_assoc($res100))
{
$time_end = $row100[end_time];
}
if(!empty($time_end) && $time_end != 0)
{
$diff = $time_end - time();
if($diff >= 0)
{
$aus_smith = date("H", $diff) - 1;
$aus_smith .= date(":i:s", $diff);
}
else
{
$aus_smith = "0:00:00";
}
}
mysql_free_result($res100);
$time_end = 0;
$stunde = date("H");
$sql1 = "SELECT * FROM events WHERE villageid ='". $_GET["village"] . "'";
$res1 = mysql_query($sql1);
$main = ".png";
$smith = ".png";
while($row1 = mysql_fetch_assoc($res1))
{
if($row1[event_type] == "build")
{
$main = ".gif";
}
if($row1[event_type] == "research")
{
$smith = ".gif";
}
}
$barracks = ".png";
$garage = ".png";
$stable = ".png";
$snob = ".png";
$sql2 = "SELECT * FROM recruit WHERE villageid ='". $_GET["village"] . "'";
$res2 = mysql_query($sql2);
while($row2 = mysql_fetch_assoc($res2))
{
if($row2[building] == "barracks")
{
$barracks = ".gif";
}
if($row2[building] == "garage")
{
$garage = ".gif";
}
if($row2[building] == "stable")
{
$stable = ".gif";
}
if($row2[building] == "snob")
{
$snob = ".gif";
}
}
$sql = "SELECT * FROM villages WHERE id ='". $_GET["village"] . "'";
$res = mysql_query($sql);
echo <<<FA
FA;
$sql3 = "SELECT * FROM villages WHERE id =\"". $_GET["village"] ."\"";
$res3 = mysql_query($sql3);
while($row3 = mysql_fetch_assoc($res3))
{
$sql4 = "SELECT * FROM users WHERE id =\"".$row3[userid]."\"";
}
$res4 = mysql_query($sql4);
while($row4 = mysql_fetch_assoc($res4));
{
if($row4[stufen] == "yes")
{
echo <<<FA
FA;
}
else
{
echo <<<FA
FA;
}
}
echo <<<FA
FA;
{/php}
{php}
$sql3 = "SELECT * FROM villages WHERE id =\"". $_GET["village"] ."\"";
$res3 = mysql_query($sql3);
while($row3 = mysql_fetch_assoc($res3))
{
$userid = $row3[userid];
}
if($_GET[overview] == "old")
{
$sql10 = "UPDATE users SET overview = \"old\" WHERE id = ".$userid." LIMIT 1;";
mysql_query($sql10);
}
if($_GET[overview] == "new")
{
$sql11 = "UPDATE users SET overview = \"new\" WHERE id = ".$userid." LIMIT 1;";
mysql_query($sql11);
}
{/php}
{php}
if($_GET[stufen] == "yes")
{
$sql12 = "UPDATE users SET stufen = \"yes\" WHERE id = ".$userid." LIMIT 1;";
mysql_query($sql12);
}
if($_GET[stufen] == "no")
{
$sql13 = "UPDATE users SET stufen = \"no\" WHERE id = ".$userid." LIMIT 1;";
mysql_query($sql13);
}
{/php}
{php}
$sql5 = "SELECT * FROM users WHERE id=\"".$userid."\"";
$res5 = mysql_query($sql5);
while($row5 = mysql_fetch_assoc($res5))
{
$overview = $row5[overview];
$stufen = $row5[stufen];
}
if($overview == "new"):
{/php}
<table>
<tr>
<td width="840" valign="top" valign="top">
<table width="100%"><tbody><tr>
<td>
{php}
if($stufen == "yes")
{
echo "<a href=\"game.php?screen=overview&stufen=no&village=".$_GET[village]."\"> Gebäudestufen
ausblenden</a>";
}
else
{
echo "<a href=\"game.php?screen=overview&stufen=yes&village=".$_GET[village]."\">Gebäudestufen anzeigen</a>";
}
{/php}
</td>
<td align="right"><a href="game.php?overview=old&screen=overview&village={php}echo $_GET[village];{/php}">zur klassischen Dorfübersicht</a></td>
</tr></tbody></table>
<table cellspacing="0" cellpadding="0" style="border: 1px solid rgb(128, 64, 0); background-color:#F1EBDD; direction: ltr;" align="center">
<tr><td style="padding: 0pt;"><div style="position:relative">
{php}
$night = "visual";
if($stunde>=24 || $stunde<8)
{
$night = "visual_night";
}
echo "<img width=\"600\" height=\"418\" src=\"$graphic/".$night."/back_none.jpg\" alt=\"\" />";
while($row = mysql_fetch_assoc($res))
{
if($row[main] < 5)
{
echo"<img class=\"p_main_flag\" src=\"$graphic/".$night."/mainflag1.gif\"/>";
if ($main == ".png")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main1.png\" alt=\"Hauptgeb ute\"/>";
}
if ($main == ".gif")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main1.gif\" alt=\"Hauptgeb ute\"/>";
}
}
if($row[main] >= 5 && $row[main]<15)
{
echo"<img class=\"p_main_flag\" src=\"$graphic/".$night."/mainflag2.gif\"/>";
if ($main == ".png")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main2.png\" alt=\"Hauptgeb ute\"/>";
}
if ($main == ".gif")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main2.gif\" alt=\"Hauptgeb ute\"/>";
}
}
if($row[main] >= 15)
{
echo"<img class=\"p_main_flag\" src=\"$graphic/".$night."/mainflag3.gif\"/>";
if ($main == ".png")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main3.png\" alt=\"Hauptgeb ute\"/>";
}
if ($main == ".gif")
{
echo"<img class=\"p_main\" src=\"$graphic/".$night."/main3.gif\" alt=\"Hauptgeb ute\"/>";
}
}
if($row[wall] < 5 && $row[wall] != 0)
{
echo "<img class=\"p_wall\" src=\"$graphic/".$night."/wall1.png\" alt=\"Wall\"/>";
}
if($row[wall] >=5 && $row[wall] <15)
{
echo "<img class=\"p_wall\" src=\"$graphic/".$night."/wall2.png\" alt=\"Wall\"/>";
}
if($row[wall] >= 15)
{
echo "<img class=\"p_wall\" src=\"$graphic/".$night."/wall3.png\" alt=\"Wall\"/>";
}
if($row[place] == 1)
{
echo "<img class=\"p_place\" src=\"$graphic/".$night."/place1".$barracks."\" alt=\"Versammlungsplatz\"/>";
}
if($row[hide] >=1 && $row[hide] != 0)
{
echo "<img class=\"p_hide\" src=\"$graphic/".$night."/hide1.png\" alt=\"Versteck\"/>";
}
if($row[farm] <10)
{
}
if($row[farm] >=10 && $row[farm] <20)
{
echo "<img class=\"p_farm\" src=\"$graphic/".$night."/farm2.gif\" alt=\"Bauernhof\"/>";
}
if($row[farm] >=20)
{
echo "<img class=\"p_farm\" src=\"$graphic/".$night."/farm3.gif\" alt=\"Bauernhof\"/>";
}
if($row[market] <5 && $row[market] != 0)
{
echo "<img class=\"p_market\" src=\"$graphic/".$night."/market1.png\" alt=\"Marktplatz\"/>";
}
if($row[market] >=5 && $row[market] <20)
{
echo "<img class=\"p_market\" src=\"$graphic/".$night."/market2.png\" alt=\"Marktplatz\"/>";
}
if($row[market] >= 20)
{
echo "<img class=\"p_market\" src=\"$graphic/".$night."/market3.png\" alt=\"Marktplatz\"/>";
}
if($row[wood] <10 && $row[wood] != 0)
{
echo "<img class=\"p_wood\" src=\"$graphic/".$night."/wood1.gif\" alt=\"Holzf ller\"/>";
}
if($row[wood] >=10 && $row[wood] <20)
{
echo "<img class=\"p_wood\" src=\"$graphic/".$night."/wood2.gif\" alt=\"Holzf ller\"/>";
}
if($row[wood] >=20)
{
echo "<img class=\"p_wood\" src=\"$graphic/".$night."/wood3.gif\" alt=\"Holzf ller\"/>";
}
if($row[iron] <10 && $row[iron] != 0)
{
echo "<img class=\"p_iron\" src=\"$graphic/".$night."/iron1.gif\" alt=\"Eisenmiene\"/>";
}
if($row[iron] >=10 && $row[iron] <20)
{
echo "<img class=\"p_iron\" src=\"$graphic/".$night."/iron2.gif\" alt=\"Eisenmiene\"/>";
}
if($row[iron] >=20)
{
echo "<img class=\"p_iron\" src=\"$graphic/".$night."/iron3.gif\" alt=\"Eisenmiene\"/>";
}
if($row[stone] <10 && $row[stone] != 0)
{
echo "<img class=\"p_stone\" src=\"$graphic/".$night."/stone1.gif\" alt=\"Lehmgrube\"/>";
}
if($row[stone] >= 10 && $row[stone] <20)
{
echo "<img class=\"p_stone\" src=\"$graphic/".$night."/stone2.gif\" alt=\"Lehmgrube\"/>";
}
if($row[stone] >=20)
{
echo "<img class=\"p_stone\" src=\"$graphic/".$night."/stone3.gif\" alt=\"Lehmgrube\"/>";
}
if($row[storage] < 10)
{
echo "<img class=\"p_storage\" src=\"$graphic/".$night."/storage1.png\" alt=\"Speicher\"/>";
}
if($row[storage] >=10 && $row[storage] <20)
{
echo "<img class=\"p_storage\" src=\"$graphic/".$night."/storage2.png\" alt=\"Speicher\"/>";
}
if($row[storage] >= 20)
{
echo "<img class=\"p_storage\" src=\"$graphic/".$night."/storage3.png\" alt=\"Speicher\"/>";
}
if($row[smith] < 5 && $row[smith] != 0)
{
echo "<img class=\"p_smith\" src=\"$graphic/".$night."/smith1.png\" alt=\"Schmiede\"/>";
}
if($row[smith] >=5 && $row[smith] < 15)
{
echo "<img class=\"p_smith\" src=\"$graphic/".$night."/smith2.png\" alt=\"Schmiede\"/>";
}
if($row[smith] >= 15)
{
echo "<img class=\"p_smith\" src=\"$graphic/".$night."/smith3.png\" alt=\"Schmiede\"/>";
}
if($row[barracks] < 5 && $row[barracks] != 0)
{
echo "<img class=\"p_barracks\" src=\"$graphic/".$night."/barracks1.png\" alt=\"Kaserne\"/>";
}
if($row[barracks] >= 5 && $row[barracks] < 20)
{
echo "<img class=\"p_barracks\" src=\"$graphic/".$night."/barracks2.png\" alt=\"Kaserne\"/>";
}
if($row[barracks] >=20)
{
echo "<img class=\"p_barracks\" src=\"$graphic/".$night."/barracks3.png\" alt=\"Kaserne\"/>";
}
if($row[snob] >= 1)
{
echo "<img class=\"p_snob\" src=\"$graphic/".$night."/snob1".$snob."\" alt=\"Adelshof\"/>";
}
if($row[garage] < 5 && $row[garage] != 0)
{
echo "<img class=\"p_garage\" src=\"$graphic/".$night."/garage1".$garage."\" alt=\"Werkstatt\"/>";
}
if($row[garage] >= 5 && $row[garage] < 10)
{
echo "<img class=\"p_garage\" src=\"$graphic/".$night."/garage2".$garage."\" alt=\"Werkstatt\"/>";
}
if($row[garage] >=10)
{
echo "<img class=\"p_garage\" src=\"$graphic/".$night."/garage3".$garage."\" alt=\"Werkstatt\"/>";
}
if($row[stable] <5 && $row[stable] != 0)
{
echo "<img class=\"p_stable\" src=\"$graphic/".$night."/stable1".$stable."\" alt=\"Stall\"/>";
}
if($row[stable] >= 5 && $row[stable] < 10)
{
echo "<img class=\"p_stable\" src=\"$graphic/".$night."/stable2".$stable."\" alt=\"Stall\"/>";
}
if($row[stable] >= 10)
{
echo "<img class=\"p_stable\" src=\"$graphic/".$night."/stable3".$stable."\" alt=\"Stall\"/>";
}
if($row[statue] ==1)
{
echo "<img class=\"p_statue\" src=\"$graphic/".$night."/statue1.png".$statue."\" alt=\"Statue\"/>";
}
$rand = rand(0, 15);
if($rand == 4)
{
echo "<img class=\"npc_juggler\" src=\"$graphic/".$night."/juggler.gif".$juggler."\" alt=\"Jongleur\"/>";
}
$rand = rand(0, 15);
if($rand == 1)
{
echo "<img class=\"npc_guard\" src=\"$graphic/".$night."/guard.gif".$guard."\" alt=\"Wache\"/>";
}
$rand = rand(0, 15);
if($rand == 2)
{
echo "<img class=\"npc_conversation\" src=\"$graphic/".$night."/conversation.gif".$conversation."\" alt=\"Unterhaltung\"/>";
}
$rand = rand(0, 0);
if($rand == 0)
{
echo "<img class=\"npc_farmer\" src=\"$graphic/".$night."/farmer.gif".$conversation."\" alt=\"Farmer\"/>";
}
}
{/php}
<img class="empty" src="graphic/map/empty.png" alt="" usemap="#map" />
<map name="map" id="map">
{php} $_from = $this->_tpl_vars['built_builds']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['dbname']):
{/php}
{php} if ($this->_tpl_vars['dbname'] == 'main'): {/php}
<area shape="poly" coords="373,187,417,129,407,72,329,65,306,99,311,150" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'barracks'): {/php}
<area shape="poly" coords="392,289,444,313,506,283,481,235,442,216,392,252" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'stable'): {/php}
<area shape="poly" coords="64,241,70,265,150,307,189,289,184,232,99,202" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'garage'): {/php}
<area shape="poly" coords="284,358,362,361,402,321,369,283,346,278,291,320" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'snob'): {/php}
<area shape="poly" coords="206,149,257,125,229,60,185,80,156,111" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'smith'): {/php}
<area shape="poly" coords="174,335,222,361,271,342,283,301,216,262" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'place'): {/php}
<area shape="poly" coords="315,271,379,275,401,229,375,206,343,207" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'market'): {/php}
<area shape="poly" coords="214,149,234,228,313,230,330,169,273,122" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'wood'): {/php}
<area shape="poly" coords="472,379,523,417,583,373,528,330" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'stone'): {/php}
<area shape="poly" coords="34,300,0,349,15,399,67,417,91,402,92,341" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'iron'): {/php}
<area shape="poly" coords="0,55,45,90,93,58,89,6,39,9" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'farm'): {/php}
<area shape="poly" coords="456,0,477,41,526,75,583,88,597,18,597,0" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'storage'): {/php}
<area shape="poly" coords="96,192,153,218,195,215,193,148,133,121" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'hide'): {/php}
<area shape="poly" coords="241,80,261,113,294,93,268,63" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'wall'): {/php}
<area shape="poly" coords="428,333,430,382,472,363,470,318" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'statue'): {/php}
<area shape="poly" coords="277,231,256,265,266,285,292,287,306,266" href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" title="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
"/>
{php} endif; {/php}
{php} endforeach; endif; unset($_from); {/php}
</map>
{php}
if($stufen == "yes"):
{/php}
{php} $_from = $this->_tpl_vars['built_builds']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['dbname']):
{/php}
{php} if ($this->_tpl_vars['dbname'] == 'main'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_main;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'barracks'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_barracks;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'stable'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_stable;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'garage'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_garage;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'snob'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_snob;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'smith'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br><span style="font-size: 7px; font-weight: bold;"><span class="timer">{php}echo $aus_smith;{/php}</span></span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'place'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'market'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
{php}
$sql = "SELECT * FROM villages WHERE id =".$_GET[village];
$res = mysql_query($sql);
while($row = mysql_fetch_assoc($res))
{
$dealers = $row[dealers_outside];
$market = $row[market];
}
include("././include/configs/dealers.php");
$dealers_in = $arr_dealers[$market] - $dealers;
{/php}
<br><span style="font-size: 7px; font-weight: bold;">{php}echo $dealers_in; {/php}/{php}echo $arr_dealers[$market];{/php}</span>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'wood'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'stone'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'iron'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'farm'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'storage'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a><br>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'hide'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} if ($this->_tpl_vars['dbname'] == 'wall'): {/php}
<div id="l_{php} echo $this->_tpl_vars['dbname']; {/php}
" class="l_{php} echo $this->_tpl_vars['dbname']; {/php}
">
<div class="label">
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
">
<img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png" class="middle" alt="{php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
" /> {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
</a>
</div>
</div>
{php} endif; {/php}
{php} endforeach; endif; unset($_from); {/php}{php} endif{/php}
</div>
<script type="text/javascript">overviewShowLevel();</script>
</td></tr></table>
</td>
<td valign="top">
<table class="vis" width="100%">
<tr><th colspan="2">Produktion</th></tr>
<tr class="nowrap"><td width="70"><img src="graphic/holz.png" title="Holz" alt="" /> Holz</td><td><strong>{php} echo $this->_tpl_vars['wood_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
<tr class="nowrap"><td><img src="graphic/lehm.png" title="Lehm" alt="" /> Lehm</td><td><strong>{php} echo $this->_tpl_vars['stone_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
<tr class="nowrap"><td><img src="graphic/eisen.png" title="Eisen" alt="" /> Eisen</td><td><strong>{php} echo $this->_tpl_vars['iron_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
</table>
<br />
<table class="vis" width="100%">
<tr><th>Einheiten</th></tr>
{php} $_from = $this->_tpl_vars['in_village_units']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['dbname'] => $this->_tpl_vars['num']):
{/php}
<tr><td><img src="graphic/unit/{php} echo $this->_tpl_vars['dbname']; {/php}
.png"> <b>{php} echo $this->_tpl_vars['num']; {/php}
</b> {php} echo $this->_tpl_vars['cl_units']->get_name($this->_tpl_vars['dbname']); {/php}
</td></tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
<br />
{php} if ($this->_tpl_vars['village']['agreement'] != '100'): {/php}
<table class="vis" width="100%">
<tr><th>Zustimmung:</th><th>{php} echo $this->_tpl_vars['village']['agreement']; {/php}
</th></tr>
</table>
<br />
{php} endif; {/php}
{literal}
<script>
function popup_scroll(url, width, height) {
wnd = window.open(url, "popup", "width="+width + ",height="+height + ",left=150,top=100,resizable=yes,scrollbars=yes");
wnd.focus();
}
</script>
{/literal}
<table class="vis" width="100%">
<tr>
<th>Gruppenzugehörigkeit</th>
</tr>
{foreach from=$gruppen item=value key=key}
{if $value != ''}
<tr>
<td>{$value.name}</td>
</tr>
{/if}
{/foreach}
<tr>
<td><a href="javascript:popup_scroll('groups.php?mode=village&village_id={$village.id}&hkey={$hkey}', 300, 400);">» bearbeiten</a></td>
</tr>
</table>
{php} if (count ( $this->_tpl_vars['other_movements'] ) > 0): {/php}
<table class="vis">
<tr>
<th width="250">Ankommende Truppen</th>
<th width="160">Ankunft</th>
<th width="80">Ankunft in</th>
</tr>
{php} $_from = $this->_tpl_vars['other_movements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['array']):
{/php}
<tr>
<td>
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=info_command&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&type=other">
<img src="graphic/command/{php} echo $this->_tpl_vars['array']['type']; {/php}
.png"> {php} echo $this->_tpl_vars['array']['message']; {/php}
</a>
</td>
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['end_time'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp)); {/php}
</td>
{php} if ($this->_tpl_vars['array']['arrival_in'] < 0): {/php}
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</td>
{php} else: {/php}
<td><span class="timer">{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</span></td>
{php} endif; {/php}
</tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
{php} endif; {/php}
{php} if (count ( $this->_tpl_vars['my_movements'] ) > 0): {/php}
<table class="vis">
<tr>
<th width="250">Deine Truppen</th>
<th width="160">Ankunft</th>
<th width="80">Ankunft in</th>
</tr>
{php} $_from = $this->_tpl_vars['my_movements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['array']):
{/php}
<tr>
<td>
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=info_command&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&type=own">
<img src="graphic/command/{php} echo $this->_tpl_vars['array']['type']; {/php}
.png"> {php} echo $this->_tpl_vars['array']['message']; {/php}
</a>
</td>
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['end_time'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp)); {/php}
</td>
{php} if ($this->_tpl_vars['array']['arrival_in'] < 0): {/php}
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</td>
{php} else: {/php}
<td><span class="timer">{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</span></td>
{php} endif; {/php}
{php} if ($this->_tpl_vars['array']['can_cancel']): {/php}
<td><a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=place&action=cancel&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&h={php} echo $this->_tpl_vars['hkey']; {/php}
">abbrechen</a></td>
{php} endif; {/php}
</tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
{php} endif; {/php}
</td>
</tr>
</table>
{php} endif; {/php}
{php}
if($overview == "old"):
{/php}
{php} require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'format_date', 'game_overview.tpl', 53, false),array('modifier', 'format_time', 'game_overview.tpl', 55, false),)), $this); {/php}
<h2>Dorfübersicht {php} echo $this->_tpl_vars['village']['name']; {/php}
</h2>
<table>
<tr>
<td width="450" valign="top" valign="top">
<table class="vis" width="100%">
<tr>
<th>Gebäude</th>
</tr>
{php} $_from = $this->_tpl_vars['built_builds']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['id'] => $this->_tpl_vars['dbname']):
{/php}
<tr>
<td><a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen={php} echo $this->_tpl_vars['dbname']; {/php}
"><img src="graphic/buildings/{php} echo $this->_tpl_vars['dbname']; {/php}
.png"> {php} echo $this->_tpl_vars['cl_builds']->get_name($this->_tpl_vars['dbname']); {/php}
</a> (Stufe {php} echo $this->_tpl_vars['village'][$this->_tpl_vars['dbname']]; {/php}
)</td>{php} if ($this->_tpl_vars['dbname'] == "market") { /*echo "<td><strong>Händler: 8/10</strong></td>";*/ } {/php}
</tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
<br><a href="game.php?overview=new&screen=overview&village={php}echo $_GET[village];{/php}">zur graphischen Dorfübersicht</a>
</td>
<td valign="top">
<table class="vis" width="100%">
<tr><th colspan="2">Produktion</th></tr>
<tr><td width="70"><img src="graphic/holz.png" title="Holz" alt="" /> Holz</td><td><strong>{php} echo $this->_tpl_vars['wood_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
<tr><td><img src="graphic/lehm.png" title="Lehm" alt="" /> Lehm</td><td><strong>{php} echo $this->_tpl_vars['stone_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
<tr><td><img src="graphic/eisen.png" title="Eisen" alt="" /> Eisen</td><td><strong>{php} echo $this->_tpl_vars['iron_prod_overview']; {/php}
</strong> pro {php} if ($this->_tpl_vars['speed'] > 10): {/php}Minute{php} else: {/php}Stunde{php} endif; {/php}</td></tr>
</table>
<br />
<table class="vis" width="100%">
<tr><th>Einheiten</th></tr>
{php} $_from = $this->_tpl_vars['in_village_units']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['dbname'] => $this->_tpl_vars['num']):
{/php}
<tr><td><img src="graphic/unit/{php} echo $this->_tpl_vars['dbname']; {/php}
.png"> <b>{php} echo $this->_tpl_vars['num']; {/php}
</b> {php} echo $this->_tpl_vars['cl_units']->get_name($this->_tpl_vars['dbname']); {/php}
</td></tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
<br />
{php} if ($this->_tpl_vars['village']['agreement'] != '100'): {/php}
<table class="vis" width="100%">
<tr><th>Zustimmung:</th><th>{php} echo $this->_tpl_vars['village']['agreement']; {/php}
</th></tr>
</table>
<br />
{php} endif; {/php}
<table class="vis" width="100%">
<tr>
<th>Gruppenzugehörigkeit</th>
</tr>
{foreach from=$gruppen item=value key=key}
{if $value != ''}
<tr>
<td>{$value.name}</td>
</tr>
{/if}
{/foreach}
<tr>
<td><a href="javascript:popup_scroll('groups.php?mode=village&village_id={$village.id}&hkey={$hkey}', 300, 400);">» bearbeiten</a></td>
</tr>
</table>
{php} if (count ( $this->_tpl_vars['other_movements'] ) > 0): {/php}
<table class="vis">
<tr>
<th width="250">Ankommende Truppen</th>
<th width="160">Ankunft</th>
<th width="80">Ankunft in</th>
</tr>
{php} $_from = $this->_tpl_vars['other_movements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['array']):
{/php}
<tr>
<td>
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=info_command&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&type=other">
<img src="graphic/command/{php} echo $this->_tpl_vars['array']['type']; {/php}
.png"> {php} echo $this->_tpl_vars['array']['message']; {/php}
</a>
</td>
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['end_time'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp)); {/php}
</td>
{php} if ($this->_tpl_vars['array']['arrival_in'] < 0): {/php}
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</td>
{php} else: {/php}
<td><span class="timer">{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</span></td>
{php} endif; {/php}
</tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
{php} endif; {/php}
{php} if (count ( $this->_tpl_vars['my_movements'] ) > 0): {/php}
<table class="vis">
<tr>
<th width="250">Deine Truppen</th>
<th width="160">Ankunft</th>
<th width="80">Ankunft in</th>
</tr>
{php} $_from = $this->_tpl_vars['my_movements']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['array']):
{/php}
<tr>
<td>
<a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=info_command&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&type=own">
<img src="graphic/command/{php} echo $this->_tpl_vars['array']['type']; {/php}
.png"> {php} echo $this->_tpl_vars['array']['message']; {/php}
</a>
</td>
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['end_time'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp)); {/php}
</td>
{php} if ($this->_tpl_vars['array']['arrival_in'] < 0): {/php}
<td>{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</td>
{php} else: {/php}
<td><span class="timer">{php} echo ((is_array($_tmp=$this->_tpl_vars['array']['arrival_in'])) ? $this->_run_mod_handler('format_time', true, $_tmp) : format_time($_tmp)); {/php}
</span></td>
{php} endif; {/php}
{php} if ($this->_tpl_vars['array']['can_cancel']): {/php}
<td><a href="game.php?village={php} echo $this->_tpl_vars['village']['id']; {/php}
&screen=place&action=cancel&id={php} echo $this->_tpl_vars['array']['id']; {/php}
&h={php} echo $this->_tpl_vars['hkey']; {/php}
">abbrechen</a></td>
{php} endif; {/php}
</tr>
{php} endforeach; endif; unset($_from); {/php}
</table>
{php} endif; {/php}
</td>
</tr>
</table>
{php} endif; {/php}