mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54: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)
21 lines
781 B
Smarty
21 lines
781 B
Smarty
<?php
|
|
// 24.tpl - Town Hall
|
|
global $village, $building, $id;
|
|
$level = (int)$village->resarray['f'.$id];
|
|
?>
|
|
<div id="build" class="gid24">
|
|
<a href="#" onClick="return Popup(24,4);" class="build_logo">
|
|
<img class="building g24" src="img/x.gif" alt="Town Hall" title="<?php echo TOWNHALL;?>" />
|
|
</a>
|
|
<h1><?php echo TOWNHALL;?> <span class="level"><?php echo LEVEL;?> <?php echo $level;?></span></h1>
|
|
<p class="build_desc"><?php echo TOWNHALL_DESC;?></p>
|
|
|
|
<?php if ($building->getTypeLevel(24) > 0):?>
|
|
<?php include("Templates/Build/24_1.tpl"); ?>
|
|
<?php include("Templates/Build/24_2.tpl"); ?>
|
|
<?php else:?>
|
|
<p><b><?php echo CELEBRATIONS_COMMENCE_TOWNHALL;?></b></p>
|
|
<?php endif;?>
|
|
|
|
<?php include("upgrade.tpl");?>
|
|
</div> |