mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
55 lines
2.6 KiB
Smarty
55 lines
2.6 KiB
Smarty
<body>
|
|
<div id="build" class="gid27">
|
|
<a href="#" onclick="return Popup(27,4);" class="build_logo"><img class="building g27" src="img/x.gif" alt="<?php echo TREASURY; ?>" title="<?php echo TREASURY; ?>"></a>
|
|
|
|
<h1><?php echo TREASURY; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f' . $id] ?? 0; ?></span></h1>
|
|
|
|
<p class="build_desc"><?php echo TREASURY_DESC; ?></p>
|
|
|
|
<?php include("27_menu.tpl"); ?>
|
|
|
|
<table id="show_artefacts" cellpadding="1" cellspacing="1">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4"><?php echo SMALL_ARTEFACTS; ?></th>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td><?php echo NAME; ?></td>
|
|
<td><?php echo PLAYER; ?></td>
|
|
<td><?php echo ALLIANCE; ?></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$artifactsArray = $database->getArtifactsBysize(1);
|
|
if(count($artifactsArray) == 0) {
|
|
echo '<tr><td colspan="4" class="none">'.NO_ARTEFACTS.'</td></tr>';
|
|
} else {
|
|
$previous = "";
|
|
foreach($artifactsArray as $artifact){
|
|
|
|
if($previous != "" && $previous != $artifact['type']) echo '<tr><td colspan="4"></td></tr>';
|
|
$previous = $artifact['type'];
|
|
|
|
$ownerId = $artifact['owner'];
|
|
$aid = $database->getUserField($ownerId, "alliance", 0);
|
|
$ownerName = $database->getUserField($ownerId, "username", 0);
|
|
$allianceName = $aid ? $database->getAllianceName($aid) : '';
|
|
|
|
echo '<tr>
|
|
<td class="icon"><img class="artefact_icon_'.$artifact['type'].'" src="img/x.gif" alt="" title=""></td>
|
|
<td class="nam">
|
|
<a href="build.php?id='.$id.'&show='.$artifact['id'].'">'.$artifact['name'] . '</a> <span class="bon">'.$artifact['effect'].'</span><div class="info">'.TREASURY.' <b>10</b>, '.EFFECT.' <b>'.VILLAGE.'</b></div>
|
|
</td>
|
|
<td class="pla"><a href="karte.php?d='.$artifact['vref'].'&c='.$generator->getMapCheck($artifact['vref']).'">'.$ownerName.'</a></td>
|
|
<td class="al">'.($aid ? '<a href="allianz.php?aid='.$aid.'">'.$allianceName.'</a>' : '-').'</td>
|
|
</tr>';
|
|
}
|
|
}
|
|
?>
|
|
</tbody></table>
|
|
|
|
<?php include("upgrade.tpl"); ?>
|
|
|
|
</div> |