Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
schmiede
#6
unter game_smith.tpl

Code:
<table>
    <tr>
        <td>
            <img src="graphic/big_buildings/smith.png" title="Schmiede" alt="" />
        </td>
        <td>
            <h2>Schmiede ({$village.smith|stage})</h2>
            {$description}
        </td>
    </tr>
</table>
<br />
{if !empty($error)}
    <font class="error">{$error}</font>
{/if}
{if $show_build}
    {* Aktuelle Forschung *}
    {if $is_researches}
        <table class="vis">
        <tr>
            <td width="220">Forschungsauftrag</td>
            <td width="100">Dauer</td>
            <td width="120">Fertigstellung</td>
            <td rowspan="2"><a href="game.php?village={$village.id}&amp;screen=smith&amp;action=cancel&amp;h={$hkey}">abbrechen</a></td>
        </tr>
        <tr>
            {assign var=research_unitname value=$research.research}
            <th>{$cl_techs->get_name($research.research)} (Stufe {$techs.$research_unitname+1})</th>
            {if ($research.end_time < $time)}
                <th>{$research.reminder_time|format_time}</th>
            {else}
                <th><span class="timer">{$research.reminder_time|format_time}</span></th>
            {/if}
            <th>{$research.end_time|format_date}</th>
        </tr>
        </table><br />
    {/if}
    
    <table class="vis" width="100%">
        {* ALLE GRUPPEN AUSLESEN *}
        <tr>
            {foreach from=$group_techs item=item key=group_name}
                <th width="{$table_width}%">{$group_name}</th>
            {/foreach}
        </tr>
        {* EINZELNEN EINHEITEN AUSLESEN *}
        {section name=counter start=0 loop=$maxNum_groupTech step=1}
            {assign var=num value=$smarty.section.counter.index}
            <tr>
                {foreach from=$group_techs item=item key=group_name}
                    {if !empty($group_techs.$group_name.$num)}
                        {assign var=unitname value=$group_techs.$group_name.$num}
                        <td>
                            {$cl_techs->check_tech($group_techs.$group_name.$num,$village)}

                            <table class="vis">
                                <tr><td><a href="javascript:popup('popup_unit.php?unit=unit_{$group_techs.$group_name.$num}&amp;level=0', 520, 520)"><img src="graphic/unit_big/{$cl_techs->get_graphic()}" alt="" /></a></td>
                                    <td valign="top"><a href="javascript:popup('popup_unit.php?unit={$group_techs.$group_name.$num}&amp;level=0', 520, 520)">{$cl_techs->get_name($group_techs.$group_name.$num)}</a> ({$techs.$unitname|stage})    
                                        <br />
                                        {if $cl_techs->get_last_error()=='not_enough_ress'}
                                            <br /><img src="graphic/holz.png" title="Holz" alt="" />{$cl_techs->get_wood($unitname,$techs.$unitname+1)} <img src="graphic/lehm.png" title="Lehm" alt="" />{$cl_techs->get_stone($unitname,$techs.$unitname+1)} <img src="graphic/eisen.png" title="Eisen" alt="" />{$cl_techs->get_iron($unitname,$techs.$unitname+1)}
                                            <br /><span class="inactive">Rohstoffe verfügbar in <span class="timer_replace">{$cl_techs->get_time_wait()}</span></span><span style="display:none">Rohstoffe sind verfügbar.</span>
                                        {elseif $cl_techs->get_last_error()=='not_fulfilled'}
                                            <span class="inactive">Gebäudevoraussetzungen nicht erfüllt.</span>
                                        {elseif $cl_techs->get_last_error()=='max_stage'}
                                            <span class="inactive">Erforscht.</span>
                                        {elseif $cl_techs->get_last_error()=='not_enough_storage'}
                                            <br /><img src="graphic/holz.png" title="Holz" alt="" />{$cl_techs->get_wood($unitname,$techs.$unitname+1)} <img src="graphic/lehm.png" title="Lehm" alt="" />{$cl_techs->get_stone($unitname,$techs.$unitname+1)} <img src="graphic/eisen.png" title="Eisen" alt="" />{$cl_techs->get_iron($unitname,$techs.$unitname+1)}
                                            <br /><span class="inactive">Dein Speicher ist zu klein.</span>
                                        {else}
                                            <br /><img src="graphic/holz.png" title="Holz" alt="" />{$cl_techs->get_wood($unitname,$techs.$unitname+1)} <img src="graphic/lehm.png" title="Lehm" alt="" />{$cl_techs->get_stone($unitname,$techs.$unitname+1)} <img src="graphic/eisen.png" title="Eisen" alt="" />{$cl_techs->get_iron($unitname,$techs.$unitname+1)}
                                            {if $is_researches}
                                                <br /><span class="inactive">Es wird geforscht.</span> ({$cl_techs->get_time($village.smith,$unitname,$techs.$unitname+1)|format_time})
                                            {else}
                                                {if $techs.$unitname < 1}
                                                    <br /><a href="game.php?village={$village.id}&amp;screen=smith&amp;action=research&amp;id={$unitname}&amp;h={$hkey}">&raquo; Erforschen</a> ({$cl_techs->get_time($village.smith,$unitname,$techs.$unitname+1)|format_time})
                                                {else}
                                                    <br /><a href="game.php?village={$village.id}&amp;screen=smith&amp;action=research&amp;id={$unitname}&amp;h={$hkey}">&raquo; Forsche Stufe {$techs.$unitname+1}</a> ({$cl_techs->get_time($village.smith,$unitname,$techs.$unitname+1)|format_time})
                                                {/if}
                                            {/if}
                                        {/if}
                                    </td>
                                </tr>
                            </table>
                        </td>
                    {/if}
                {/foreach}
            </tr>
        {/section}
    </table>
{/if}
Reply


Messages In This Thread
schmiede - by ds fan - 30.11.2008, 18:34
RE: schmiede - by argetlamdz - 30.11.2008, 18:49
RE: schmiede - by Milu2K - 30.11.2008, 18:58
RE: schmiede - by YouTube - 30.11.2008, 20:02
RE: schmiede - by argetlamdz - 30.11.2008, 20:06
RE: schmiede - by YouTube - 30.11.2008, 20:10
RE: schmiede - by ds fan - 30.11.2008, 22:06
RE: schmiede - by YouTube - 30.11.2008, 22:10
RE: schmiede - by argetlamdz - 01.12.2008, 12:47
RE: schmiede - by emoser - 01.12.2008, 16:03
RE: schmiede - by Reymie - 03.12.2008, 13:21
RE: schmiede - by ds fan - 05.12.2008, 16:24
RE: schmiede - by YouTube - 05.12.2008, 16:43
RE: schmiede - by Narutofan XXl - 05.12.2008, 16:56
RE: schmiede - by ds fan - 06.12.2008, 10:29
RE: schmiede - by Reymie - 11.12.2008, 11:23
RE: schmiede - by ds fan - 13.12.2008, 11:07
RE: schmiede - by ds fan - 13.12.2008, 14:42



Users browsing this thread: 1 Guest(s)