mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 20:04:21 +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)
25 lines
854 B
Smarty
25 lines
854 B
Smarty
<?php
|
|
// 26_3.tpl - PALACE / LOIALITY
|
|
global $database, $village;
|
|
|
|
$level = (int)$village->resarray['f'.$id];
|
|
$loyalty = floor((float)$database->getVillageField($village->wid, 'loyalty'));
|
|
$loyalty = max(0, min(100, $loyalty)); // siguranță: între 0-100%
|
|
?>
|
|
<div id="build" class="gid26">
|
|
<h1><?php echo PALACE; ?> <span class="level"><?php echo LEVEL.' '.$level; ?></span></h1>
|
|
|
|
<p class="build_desc">
|
|
<a href="#" onclick="return Popup(26,4,'gid');" class="build_logo">
|
|
<img class="building g26" src="img/x.gif" alt="<?php echo PALACE; ?>" title="<?php echo PALACE; ?>" />
|
|
</a>
|
|
<?php echo PALACE_DESC; ?>
|
|
</p>
|
|
|
|
<?php include("26_menu.tpl"); ?>
|
|
|
|
<p class="loyalty">
|
|
<?php echo RESIDENCE_LOYALTY_DESC; ?>
|
|
<b><?php echo $loyalty; ?></b> <?php echo PERCENT; ?>.
|
|
</p>
|
|
</div> |