Files
TravianZ/templates/Plus/13.tpl
T
iopietro 62d6e19ee9 The first release of the refactored version
It's still a work in progress, there are a lot of things that will
change in the final release
2018-09-16 17:22:39 +02:00

48 lines
2.1 KiB
Smarty

<!---<?php
/*include("Templates/Plus/pmenu.tpl");
$MyVilId = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
$uuVilid = mysqli_fetch_array($MyVilId);
$totalR = ($uuVilid['6']+$uuVilid['7']+$uuVilid['8']+$uuVilid['10']);
$quart = ($totalR / 4);
*/
?>
<form method="get" action="plus.php">
<input name="id" value="14" type="hidden">
<div align="center">
<table border="1" width="50%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" width="25%"><img class="r1" src="img/x.gif" alt="{$smarty.const.LUMBER}" title="Lumber" />Lumber</td>
<td align="center" width="25%"><img class="r2" src="img/x.gif" alt="{$smarty.const.CLAY}" title="Clay" />Clay</td>
<td align="center" width="25%"><img class="r3" src="img/x.gif" alt="{$smarty.const.IRON}" title="Iron" />Iron</td>
<td align="center" width="25%"><img class="r4" src="img/x.gif" alt="{$smarty.const.CROP}" title="Crop" />Crop</td>
</tr>
<tr>
<td align="center">
<?php
if($session->sit == 0) {
/* $MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
$MyId = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$uuid = mysqli_fetch_array($MyId);
echo "<input type='text' name='T1' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T2' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T3' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T4' size='6' value=".$quart."></td>";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-1)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
*/
}
?>
</tr>
<tr>
<td colspan="4" align="center">
<input type="submit" value="Trade 1:1" name="B1"></td>
</tr>
</table>
</div>
</form>-->