mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-17 08:41:01 +00:00
62d6e19ee9
It's still a work in progress, there are a lot of things that will change in the final release
155 lines
4.9 KiB
Smarty
155 lines
4.9 KiB
Smarty
{if !empty($villageMovements)}
|
|
|
|
<table id="movements" cellpadding="1" cellspacing="1">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3">{$smarty.const.TROOP_MOVEMENTS}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{* Units coming back and enforcements for this village*}
|
|
|
|
{if !empty($villageMovements['reinforcements']['village']['to'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="def1" alt="{$smarty.const.ARRIVING_REINF_TROOPS}" title="{$smarty.const.ARRIVING_REINF_TROOPS}" />
|
|
</a>
|
|
<span class="d1">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="d1">{$villageMovements['reinforcements']['village']['to']['amount']} {$smarty.const.ARRIVING_REINF_TROOPS_SHORT}</span>
|
|
</div>
|
|
<div class="dur_r">
|
|
in <span class="timer">{$villageMovements['reinforcements']['village']['to']['timetoarrive']}</span> {$smarty.const.HOURS}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Attacks to this village *}
|
|
|
|
{if !empty($villageMovements['attacks']['village']['to'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="att1" alt="{$smarty.const.UNDERATTACK}" title="{$smarty.const.UNDERATTACK}" />
|
|
</a>
|
|
<span class="a1">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="a1">{$villageMovements['attacks']['village']['to']['amount']} {$smarty.const.ATTACK}</span>
|
|
</div>
|
|
<div class="dur_r">
|
|
in <span class="timer">{$villageMovements['attacks']['village']['to']['timetoarrive']}</span> {$smarty.const.HOURS}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Attacks from this villages *}
|
|
|
|
{if !empty($villageMovements['attacks']['village']['from'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="att2" alt="{$smarty.const.OWN_ATTACKING_TROOPS}" title="{$smarty.const.OWN_ATTACKING_TROOPS}" />
|
|
</a>
|
|
<span class="a2">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="a2">{$villageMovements['attacks']['village']['from']['amount']} {$smarty.const.ATTACK}</span>
|
|
</div>
|
|
<div class="dur_r">
|
|
in <span class="timer">{$villageMovements['attacks']['village']['from']['timetoarrive']}</span> {$smarty.const.HOURS}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Enforcements for other villages *}
|
|
|
|
{if !empty($villageMovements['reinforcements']['village']['from'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="def2" alt="{$smarty.const.OWN_REINFORCING_TROOPS}" title="{$smarty.const.OWN_REINFORCING_TROOPS}" />
|
|
</a>
|
|
<span class="d2">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="d2">{$villageMovements['reinforcements']['village']['from']['amount']} {$smarty.const.ARRIVING_REINF_TROOPS_SHORT}</span>
|
|
</div>
|
|
<div class="dur_r">
|
|
in <span class="timer">{$villageMovements['reinforcements']['village']['from']['timetoarrive']}</span> {$smarty.const.HOURS}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Settling a new village *}
|
|
|
|
{if !empty($villageMovements['settling']['village']['from'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="unit u{$tribe}0" alt="{$smarty.const.FOUNDNEWVILLAGE}" title="{$smarty.const.FOUNDNEWVILLAGE}" />
|
|
</a>
|
|
<span class="a5">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="a5">{$villageMovements['settling']['village']['from']['amount']} {$smarty.const.NEWVILLAGE}</span>
|
|
</div>
|
|
<div class="dur_r">
|
|
in <span class="timer">{$villageMovements['settling']['village']['from']['timetoarrive']}</span> {$smarty.const.HOURS}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Attacks on this village oasis *}
|
|
|
|
{if !empty($villageMovements['attacks']['oasis']['to'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="att3" alt="{$smarty.const.OASISATTACK}" title="{$smarty.const.OASISATTACK}" />
|
|
</a>
|
|
<span class="a3">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="a3">{$villageMovements['attacks']['oasis']['to']['amount']} {$smarty.const.OASISATTACKS}</span>
|
|
</div>
|
|
<div class="dur_r">in <span class="timer">{$villageMovements['attacks']['oasis']['to']['timetoarrive']}</span> {$smarty.const.HOURS}</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* Enforcements for this village oasis *}
|
|
|
|
{if !empty($villageMovements['reinforcements']['oasis']['to'])}
|
|
<tr>
|
|
<td class="typ">
|
|
<a href="build.php?id=39">
|
|
<img src="assets/img/x.gif" class="def3" alt="{$smarty.const.OASISREINFORCEMENT}" title="{$smarty.const.OASISREINFORCEMENT}" />
|
|
</a>
|
|
<span class="d3">»</span>
|
|
</td>
|
|
<td>
|
|
<div class="mov">
|
|
<span class="d3">{$villageMovements['reinforcements']['oasis']['to']['amount']} {$smarty.const.OASISREINFORCEMENTS}</span>
|
|
</div>
|
|
<div class="dur_r">in <span class="timer">{$villageMovements['reinforcements']['oasis']['to']['timetoarrive']}</span> {$smarty.const.HOURS}</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
{/if} |