Files
TravianZ/Templates/Build/24_2.tpl
T

16 lines
591 B
Smarty

<?php
// 24_2.tpl - TOWNHALL TIMER
global $database, $village, $generator, $session;
$timeleft = (int)$database->getVillageField($village->wid, 'celebration');
if ($timeleft > time()):
?>
<br>
<table cellpadding="0" cellspacing="0" id="building_contract">
<tr>
<td><?php echo TZ_CELEBRATION_STILL_NEEDS; ?></td>
<td><span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($timeleft - time());?></span> <?php echo TZ_HRS_2; ?></td>
<td><?php echo DONE_AT; ?> <?php echo date('H:i', $timeleft);?></td>
</tr>
</table>
<?php endif;?>