Posts: 60
Threads: 1
Joined: Nov 2008
Geh mal bei den Einstellungen schauen
Posts: 60
Threads: 1
Joined: Nov 2008
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}&screen=smith&action=cancel&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}&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}&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}&screen=smith&action=research&id={$unitname}&h={$hkey}">» Erforschen</a> ({$cl_techs->get_time($village.smith,$unitname,$techs.$unitname+1)|format_time})
{else}
<br /><a href="game.php?village={$village.id}&screen=smith&action=research&id={$unitname}&h={$hkey}">» 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}
Posts: 60
Threads: 1
Joined: Nov 2008
htdocs/templates/game_smith.tpl
musst schauen, jetzt weisste wo!^^
Posts: 60
Threads: 1
Joined: Nov 2008
Dann hast du was falsch gemacht.
Posts: 1'004
Threads: 101
Joined: Jun 2008