TWLan Forum
Problems with graphic overview! - Printable Version

+- TWLan Forum (https://twlan.org)
+-- Forum: Legacy (https://twlan.org/forumdisplay.php?fid=61)
+--- Forum: TWLan 1.x (DSLan) (https://twlan.org/forumdisplay.php?fid=62)
+---- Forum: Deutsche Community (https://twlan.org/forumdisplay.php?fid=65)
+----- Forum: Fragen & Probleme (https://twlan.org/forumdisplay.php?fid=7)
+----- Thread: Problems with graphic overview! (/showthread.php?tid=1236)



Problems with graphic overview! - naberman - 14.03.2009

Hello, my graphic city view is wrong, see the following pictures:

[Image: 1237016159-270.png]

AND:

[Image: 1237016272-530.png]

Do you now what i can do?, or what's wrong?

Thx,

Naberman
This is a e-mail sent to "Agrafix".


RE: Problems with graphic overview! - agrafix - 14.03.2009

Did you change a tpl file?


RE: Problems with graphic overview! - naberman - 14.03.2009

Yes i did, i only translate it, you mena the "game_overview.tpl" and "game.tpl"?

Here you are!

OVERVIEUW!
Code:
{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&auml;udestufen ausblenden</a>";
    }
    else
    {
        echo "<a href=\"game.php?screen=overview&stufen=yes&village=".$_GET[village]."\">Geb&auml;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&uuml;bersicht</a></td>
    
</tr></tbody></table>

<table cellspacing="0" cellpadding="0" style="border-width:1px; border-style: solid; border-color:#804000; background-color:#F1EBDD;" align="center">

<tr><td><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=\"\" />";


    ?>
<img class="p_church" src="/graphic/visual/church_disabled.png?1" alt=""/>
<?php
    while($row = mysql_fetch_assoc($res))
    {
        if($row[main] < 5)
        {
            echo"<img class=\"p_main_flag\" src=\"/graphic/visual/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/visual/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/visual/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\"/>";
        }
        

    }

    
        
    




    
{/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} 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}
            
                        {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}
&amp;screen=info_command&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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}
&amp;screen=info_command&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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}
&amp;screen=place&amp;action=cancel&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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&uuml;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&auml;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&auml;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&uuml;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}
            
                        {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}
&amp;screen=info_command&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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}
&amp;screen=info_command&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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}
&amp;screen=place&amp;action=cancel&amp;id={php} echo $this->_tpl_vars['array']['id']; {/php}
&amp;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}

GAME
Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$village.name} ({$village.x}|{$village.y}) - Tribal Wars LAN</title>
<link rel="stylesheet" type="text/css" href="stamm.css" />
<link rel="stylesheet" type="text/css" href="overview.css" />
<link rel="stylesheet" type="text/css" href="stamm_new_menu.css" />
<script src="script.js" type="text/javascript"></script>
<script src="menu.js?1148466057" type="text/javascript"></script>
</head>
<body id="ds_body">
<div class="top_background"></div>
{if $user.dyn_menu==1}
    <div style="text-align: center;">
        <table class="navi-border" style="width: {$user.window_width}; border-collapse: collapse; margin:11px auto auto; text-align: left;">
            <tr>
                <td>
                    <table class="menu nowrap" width="{$user.window_width}">

                        <tr id="menu_row">
                            <td><a href="game.php?village={$village.id}&amp;screen=&amp;action=logout&amp;h={$hkey}" target="_top">Uitloggen</a></td>
                            <td><a href="http://forum.tribalwars.nl//index.php" target="_blank">Forum</a></td>
                            <td><a href="help.php" target="_blank">Hulp</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=settings">Instellingen</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=ranking">Ranglijst</a> ({$user.rang}.|{$user.points|format_number} P) </td>
                            <td><a href="game.php?village={$village.id}&amp;screen=ally">Stam</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Nieuw bericht" alt="" />{/if} Berichten</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Nieuwe mededeling" alt="" /> {/if} Mededelingen</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=memo">Notities</a></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
{else}
    <div style="text-align: center;">
        <table class="navi-border" style="width: {$user.window_width}; border-collapse: collapse; margin:11px auto auto; text-align: left;">
            <tr>
                <td>
                    <table class="menu nowrap" width="{$user.window_width}">

                        <tr id="menu_row">
                            <td><a href="game.php?village={$village.id}&amp;screen=&amp;action=logout&amp;h={$hkey}" target="_top">Uitloggen</a></td>
                            <td><a href="http://forum.tribalwars.nl//index.php" target="_blank">Forum</a></td>
                            <td><a href="help.php" target="_blank">Hulp</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=settings">Instellingen</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=ranking">Ranglijst</a> ({$user.rang}.|{$user.points|format_number} P) </td>
                            <td><a href="game.php?village={$village.id}&amp;screen=ally">Stam</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=report">{if $user.new_report==1}<img src="graphic/new_report.png" title="Nieuw bericht" alt="" />{/if} Berichten</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=mail">{if $user.new_mail==1}<img src="graphic/new_mail.png" title="Nieuwe mededeling" alt="" /> {/if} Mededelingen</a></td>
                            <td><a href="game.php?village={$village.id}&amp;screen=memo">Notities</a></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
{/if}
    
    
{if $user.show_toolbar==1}
    <br />
    <table align="center">
        <tr>
            <td>
                <table class="navi-border" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <ul class="menu nowrap quickbar">
                                <li><a href="game.php?village={$village.id}&amp;screen=main" ><img src="/graphic/buildings/main.png" alt="Hoofdgebouw" />Hoofdgebouw</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=barracks" ><img src="/graphic/buildings/barracks.png" alt="Kazerne" />Kazerne</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=stable" ><img src="/graphic/buildings/stable.png" alt="Stal" />Stal</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=garage" ><img src="/graphic/buildings/garage.png" alt="Werkplaats" />Werkplaats</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=snob" ><img src="/graphic/buildings/snob.png" alt="Adelshoeve" />Adelshoeve</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=smith" ><img src="/graphic/buildings/smith.png" alt="Smederij" />Smederij</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=place" ><img src="/graphic/buildings/place.png" alt="Plaats" />Plaats</a></li>
                                <li><a href="game.php?village={$village.id}&amp;screen=market" ><img src="/graphic/buildings/market.png" alt="Markt" />Markt</a><br /></li>
                            </ul>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
{/if}
    
<hr width="{$user.window_width}" size="2" />

<table align="center" width="{$user.window_width}" cellspacing="0" style="padding:0;margin-bottom:4px">
    <tr>
        <td>
            <table class="navi-border" style="border-collapse: collapse;">
                <tr>
                    <td>
                        <table class="menu nowrap" style="width:100%;">

                            <tr id="menu_row2">
                                <td><a href="game.php?village={$village.id}&amp;screen=overview_villages" accesskey="s">Overzichten</a></td>
                                <td><a href="game.php?village={$village.id}&amp;screen=map">Kaart</a></td>
                                <td class="no_hover">
                                    {if !empty($village_array.last)}
                                        <a href="{$village_array.last_link}" accesskey="a"><img src="graphic/links.png" alt="" /></a>
                                    {else}
                                        <img src="graphic/links2.png" alt="" />
                                    {/if}
                                    {if !empty($village_array.next)}
                                        <a href="{$village_array.next_link}" accesskey="d"><img src="graphic/rechts.png" alt="" /></a>
                                    {else}
                                        <img src="graphic/rechts2.png" alt="" />
                                    {/if}  
                                </td>
                                <td style="white-space:normal;"><a href="game.php?village={$village.id}&amp;screen=overview">{$village.name}</a> <b>({$village.x}|{$village.y}) K{$village.continent}</b></td>

                                                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>

        <td align="right">
            <table align="right" class="navi-border" style="border-collapse: collapse;">

                <tr>
                    <td>
                        <table class="box" cellspacing="0">
                            <tr style="height: 20px;">
                                <td><a href="game.php?village={$village.id}&amp;screen=wood"><img src="graphic/holz.png" title="Hout" alt="" /></a></td>
                                <td><span id="wood" title="{$wood_per_hour}" {if $village.r_wood==$max_storage}class="warn"{/if}>{$village.r_wood}</span>&nbsp;</td>
                                <td><a href="game.php?village={$village.id}&amp;screen=stone"><img src="graphic/lehm.png" title="Leem" alt="" /></a></td>
                                <td><span id="stone" title="{$stone_per_hour}" {if $village.r_stone==$max_storage}class="warn"{/if}>{$village.r_stone}</span>&nbsp;</td>
                                <td><a href="game.php?village={$village.id}&amp;screen=iron"><img src="graphic/eisen.png" title="IJzer" alt="" /></a></td>
                                <td><span id="iron" title="{$iron_per_hour}" {if $village.r_iron==$max_storage}class="warn"{/if}>{$village.r_iron}</span></td>
                                <td style="border-left: dotted 1px;">
                                    &nbsp;<a href="game.php?village={$village.id}&amp;screen=storage"><img src="graphic/res.png" title="Oplagcapaciteit" alt="" /></a>
                                </td>
                                <td id="storage">{$max_storage}</td>
                            </tr>
                        </table>

                    </td>
                </tr>
            </table></td>
        <td align="center">
            <table class="navi-border" style="border-collapse: collapse;">
                <tr>
                    <td style="margin:0;padding:0;">
                        <table class="box" cellspacing="0" style="margin:0;padding:0;">

                            <tr style="margin:0;padding:0;">
                                <td width="18" height="20" align="center" style="margin:0;padding:0;"><a href="game.php?village={$village.id}&amp;screen=farm"><img src="graphic/face.png" title="Arbeiders" alt="" /></a></td>
                                <td align="center" style="margin:0;padding:0;">{$village.r_bh}/{$max_bh}</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        {if $user.attacks!=0}
        <td align="center">
            <table class="navi-border" style="border-collapse: collapse;">
                <tr>
                    <td style="margin:0;padding:0;">
                        <table class="box" cellspacing="0" style="margin:0;padding:0;">

                            <tr style="margin:0;padding:0;">
                                <td width="60" height="20" align="center" style="margin:0;padding:0;"><a href="game.php?village={$village.id}&amp;screen=overview_villages&amp;mode=incomings"><img src="graphic/unit/att.png" alt="" /> ({$user.attacks})</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
        {/if}
     </tr>
</table>


    <!--[if IE ]>
    <script type="text/javascript">initMenuList("menu_row");</script>
    <script type="text/javascript">initMenuList("menu_row2");</script>
    <![endif]-->





{if $config.no_actions}
<table align="center">
    <tr>
        <td>
            <table class="content-border">
                <tr>
                    <td>
                        <table class="main" width="{$user.window_width}" align="center">
                            <tr>
                                <td class="padding">
                                    <b>OPGELET:</b> Er werd in de spelersconfiguratie ingesteld dat er geen acties (gebouwen bouwen, eenheden ontwikkelen, eenheden rekruteren) ondernomen kunnen worden! Er kunnen ook geen stammen opgericht worden!
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
{/if}

<table align="center">
    <tr>
        <td>
            <table class="content-border">
                <tr>
                    <td>
                        <table class="main" width="{$user.window_width}" align="center">
                            <tr>
                                <td><table cellspacing="0" cellpadding="0"><tr><td valign="top">
                                    {if in_array($screen,$allow_screens)}
                                        {include file="game_$screen.tpl"}
                                    {elseif $screen == 'statue'}
                                        {include file="game_$screen.tpl"}  
                                    {/if}
                                </td></tr></table><p align="right" class="server_info" >gegenereerd in {$load_msec}ms
                                                                                                            Servertijd: <span id="serverTime">{$servertime}</span></p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<script type="text/javascript">startTimer();</script>
</body>

</html>



RE: Problems with graphic overview! - SlimShady95 - 14.03.2009

Empty templates_c

MfG Manuel


RE: Problems with graphic overview! - naberman - 14.03.2009

Okay, i do.

EDIT: It dousn't help....

I'VE FOUND IT!!
I've uploaded the ogame_overview.tpl, and it works now!

THX!

Naberman