mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
18 lines
598 B
Smarty
18 lines
598 B
Smarty
<?php
|
|
if(!isset($timer)) {
|
|
$timer = 1;
|
|
}
|
|
$timeleft = $database->getVillageField($village->wid, 'celebration');
|
|
if($timeleft > Time()){
|
|
echo '</br>';
|
|
echo '<table cellpadding="0" cellspacing="0" id="building_contract">';
|
|
echo '<tr><td>';
|
|
echo 'celebration still needs:';
|
|
echo "</td><td><span id=\"timer".$timer."\">";
|
|
echo $generator->getTimeFormat($timeleft-time());
|
|
echo "</span> hrs.</td>";
|
|
echo "<td>done at ".date('H:i', $timeleft)."</td></tr>";
|
|
echo "</table>";
|
|
$timer +=1;
|
|
}
|
|
?> |