mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 03:44:23 +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)
38 lines
1.6 KiB
Smarty
38 lines
1.6 KiB
Smarty
<?php
|
|
// ww.tpl - World Wonder
|
|
global $building, $village, $database, $id, $session;
|
|
|
|
$loopsame = ($building->isCurrent($id) || $building->isLoop($id)) ? 1 : 0;
|
|
$doublebuild = ($building->isCurrent($id) && $building->isLoop($id)) ? 1 : 0;
|
|
|
|
$vref = (int)$_SESSION['wid'];
|
|
$wwname = $database->getWWName($vref);
|
|
$level = (int)$village->resarray['f'.$id];
|
|
?>
|
|
<div id="build" class="gid40">
|
|
<a href="#" onClick="return Popup(40,4);" class="build_logo">
|
|
<img class="building g40" src="img/x.gif" alt="World Wonder" title="<?php echo WORLD_WONDER;?>" />
|
|
</a>
|
|
<h1><?php echo WONDER;?><br /><span class="level"><?php echo LEVEL;?> <?php echo $level;?></span></h1>
|
|
<p class="build_desc"><?php echo WONDER_DESC;?></p>
|
|
|
|
<form action="GameEngine/Game/WorldWonderName.php" method="POST">
|
|
<?php
|
|
$disabled = ($level < 1 || $level > 10) ? 'disabled="disabled"' : '';
|
|
$msg = $level < 0 ? WORLD_WONDER_CHANGE_NAME.'.' : ($level > 10 ? WORLD_WONDER_NOTCHANGE_NAME.'.' : '');
|
|
if ($msg) echo $msg;
|
|
?>
|
|
<center><br /><?php echo WORLD_WONDER_NAME;?>:
|
|
<input class="text" name="wwname" id="wwname" <?php echo $disabled;?> value="<?php echo htmlspecialchars($wwname);?>" maxlength="20">
|
|
</center>
|
|
<p class="btn">
|
|
<button type="submit" tabindex="9" name="s1" id="btn_ok" class="trav_buttons" <?php echo $disabled;?> alt="OK">Ok</button>
|
|
</p>
|
|
</form>
|
|
|
|
<?php if (isset($_GET['n'])):?>
|
|
<div style="text-align: center"><font color="Red"><b><?php echo WORLD_WONDER_NAME_CHANGED;?>.</b></font></div><br />
|
|
<?php endif;?>
|
|
|
|
<?php include("wwupgrade.tpl");?>
|
|
</div> |