mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 11:54:25 +00:00
77e3cd68b0
* Update assignpos.tpl * Update changename.tpl * Update kick.tpl * Update kick.tpl * Update linkforum.tpl * Update search.tpl * Update 18_create.tpl * Update invite.tpl * Update option.tpl * Update newdorf.tpl * buttons replace part 2 * Update addABTroops.tpl * Update addTroops.tpl * Update graphic.tpl * Update all.tpl * Update archive.tpl * Update forum_3.tpl * Update read.tpl * Update ranksearch.tpl * Update delete.tpl * Update inbox.tpl * Update 19.tpl
61 lines
2.4 KiB
Smarty
61 lines
2.4 KiB
Smarty
<div id="build" class="gid19"><a href="#" onClick="return Popup(19,4);" class="build_logo">
|
|
<img class="building g19" src="img/x.gif" alt="Barracks" title="<?php echo BARRACKS; ?>" />
|
|
</a>
|
|
<h1><?php echo BARRACKS; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f'.$id]; ?></span></h1>
|
|
<p class="build_desc"><?php echo BARRACKS_DESC; ?> </p>
|
|
|
|
<?php if ($building->getTypeLevel(19) > 0) { ?>
|
|
<form method="POST" name="snd" action="build.php">
|
|
<input type="hidden" name="id" value="<?php echo $id; ?>" />
|
|
<input type="hidden" name="ft" value="t1" />
|
|
<table cellpadding="1" cellspacing="1" class="build_details">
|
|
<thead><tr>
|
|
<td><?php echo NAME; ?></td>
|
|
<td><?php echo QUANTITY; ?></td>
|
|
<td><?php echo MAX; ?></td>
|
|
</tr></thead><tbody>
|
|
<?php
|
|
include("19_train.tpl");
|
|
?></table>
|
|
<p><button id="btn_train" class="trav_buttons" value="ok" name="s1" alt="train" onclick="this.disabled=true;this.form.submit();"/> Train </button></form></p>
|
|
<?php
|
|
} else {
|
|
echo "<b>".TRAINING_COMMENCE_BARRACKS."</b><br>\n";
|
|
}
|
|
$trainlist = $technology->getTrainingList(1);
|
|
if(count($trainlist) > 0) {
|
|
//$timer = 2*count($trainlist);
|
|
echo "
|
|
<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\">
|
|
<thead><tr>
|
|
<td>".TRAINING."</td>
|
|
<td>".DURATION."</td>
|
|
<td>".FINISHED."</td>
|
|
</tr></thead>
|
|
<tbody>";
|
|
$TrainCount = 0;
|
|
foreach($trainlist as $train) {
|
|
$TrainCount++;
|
|
echo "<tr><td class=\"desc\">";
|
|
echo "<img class=\"unit u".$train['unit']."\" src=\"img/x.gif\" alt=\"".$train['name']."\" title=\"".$train['name']."\" />";
|
|
echo $train['amt']." ".$train['name']."</td><td class=\"dur\">";
|
|
if ($TrainCount == 1 ) {
|
|
$NextFinished = $generator->getTimeFormat($train['timestamp2']-time());
|
|
echo "<span id=timer1>".$generator->getTimeFormat($train['timestamp']-time())."</span>";
|
|
} else {
|
|
echo $generator->getTimeFormat($train['eachtime']*$train['amt']);
|
|
}
|
|
echo "</td><td class=\"fin\">";
|
|
$time = $generator->procMTime($train['timestamp']);
|
|
if($time[0] != "today") {
|
|
echo "on ".$time[0]." at ";
|
|
}
|
|
echo $time[1];
|
|
} ?>
|
|
</tr><tr class="next"><td colspan="3"><?php echo UNIT_FINISHED; ?> <span id="timer2"><?php echo $NextFinished; ?></span></td></tr>
|
|
</tbody></table>
|
|
<?php }
|
|
include("upgrade.tpl");
|
|
?>
|
|
</p></div>
|