mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-20 11:36:07 +00:00
b4da6e2274
+Added the beerfest (in the brewery) +Added a better catapult targets checking system +Updated the sql struct with the new one
24 lines
684 B
Smarty
24 lines
684 B
Smarty
{$groupNames = [1 => $smarty.const.RESOURCES, $smarty.const.INFRASTRUCTURE, $smarty.const.MILITARY]}
|
|
|
|
<select name="ctar{$targetType}" class="dropdown">
|
|
{if $targetType > 1}
|
|
<option value="-1">-</option>
|
|
{/if}
|
|
|
|
{if !empty($catapultTargetBuildings[0])}
|
|
{foreach $catapultTargetBuildings[0] as $building}
|
|
<option value="{$building.id}">{$building.name}</option>
|
|
{/foreach}
|
|
{/if}
|
|
|
|
{foreach $groupNames as $type => $groupName}
|
|
{if !empty($catapultTargetBuildings[$type])}
|
|
<optgroup label="{$groupName}">
|
|
{foreach $catapultTargetBuildings[$type] as $building}
|
|
<option value="{$building.id}">{$building.name}</option>
|
|
{/foreach}
|
|
</optgroup>
|
|
{/if}
|
|
{/foreach}
|
|
</select>
|