mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
55e6dd60b5
1. Fix a bug in Admin Panel that you can edit by yourself your rank, now you cannot edit your rank anymore. 2. Now Alliance Leader can edit his own Position 3. Fix negative value on Demolition Building, now in database at lvl is appear new level not -1 4. Refactor Ajax map, now all is alligned (Ajax folder and Map folder) 5. Fix bug from Palace (when change capital now Automation recount population automaticaly on old capital and new capital)
32 lines
1.6 KiB
Smarty
32 lines
1.6 KiB
Smarty
<?php
|
|
// 25_progress.tpl - RESIDENCE TRAINING UNITS PROGRESS
|
|
global $technology, $generator, $session;
|
|
|
|
$trainlist = $technology->getTrainingList(4);
|
|
if (count($trainlist) > 0):
|
|
$TrainCount = 0;
|
|
$NextFinished = '';
|
|
?>
|
|
<table cellpadding="1" cellspacing="1" class="under_progress">
|
|
<thead><tr><td><?php echo TRAINING;?></td><td><?php echo DURATION;?></td><td><?php echo FINISHED;?></td></tr></thead>
|
|
<tbody>
|
|
<?php foreach ($trainlist as $train): $TrainCount++;?>
|
|
<tr>
|
|
<td class="desc">
|
|
<img class="unit u<?php echo $train['unit'];?>" src="img/x.gif" alt="<?php echo $train['name'];?>" title="<?php echo $train['name'];?>" />
|
|
<?php echo $train['amt'];?> <?php echo $train['name'];?>
|
|
</td>
|
|
<td class="dur">
|
|
<?php if ($TrainCount == 1): $NextFinished = $generator->getTimeFormat($train['timestamp2']-time());?>
|
|
<span id="timer<?php echo ++$session->timer;?>"><?php echo $generator->getTimeFormat($train['timestamp']-time());?></span>
|
|
<?php else:?>
|
|
<?php echo $generator->getTimeFormat($train['eachtime']*$train['amt']);?>
|
|
<?php endif;?>
|
|
</td>
|
|
<td class="fin"><?php $time = $generator->procMTime($train['timestamp']); if($time[0]!="today") echo "on ".$time[0]." at "; echo $time[1];?></td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
<tr class="next"><td colspan="3"><?php echo UNIT_FINISHED;?> <span id="timer<?php echo ++$session->timer;?>"><?php echo $NextFinished;?></span></td></tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif;?> |