Files
TravianZ/Admin/Templates/addABTroops.tpl
T
phaze1G 77e3cd68b0 Buttons replace part 2 (#536)
* Update assignpos.tpl

* Update changename.tpl

* Update kick.tpl

* Update kick.tpl

* Update linkforum.tpl

* Update search.tpl

* Update 18_create.tpl

* Update invite.tpl

* Update option.tpl

* Update newdorf.tpl

* buttons replace part 2

* Update addABTroops.tpl

* Update addTroops.tpl

* Update graphic.tpl

* Update all.tpl

* Update archive.tpl

* Update forum_3.tpl

* Update read.tpl

* Update ranksearch.tpl

* Update delete.tpl

* Update inbox.tpl

* Update 19.tpl
2018-04-29 13:03:59 +02:00

63 lines
2.8 KiB
Smarty

<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename addABTroops.tpl ##
## Developed by: ronix ##
## License: TravianZ Project ##
## Thanks to: Dzoki & itay2277(Add troops) ##
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
## ##
#################################################################################
$unarray = array(1=>U1,U2,U3,U4,U5,U6,U7,U8,U9,U10,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27,U28,U29,U30,U31,U32,U33,U34,U35,U36,U37,U38,U39,U40,U41,U42,U43,U44,U45,U46,U47,U48,U49,U50,U99,U0);
if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
$id = $_GET['did'];
if(isset($id))
{
$abtech = $database->getABTech($id); // Armory/blacksmith level
$units = $database->getUnit($village['wref']);
$coor = $database->getCoor($village['wref']);
$tribe = $user['tribe'];
if($tribe ==1){ $img = 0;}
if($tribe ==2){ $img = 10;}
if($tribe ==3){ $img = 20;}
if($tribe ==4){ $img = 30;}
if($tribe ==5){ $img = 40;}
if($tribe ==6){ $img = 50;}
include("search2.tpl");
?>
<form action="../GameEngine/Admin/Mods/addABTroops.php" method="POST">
<input type="hidden" name="id" id="id" value="<?php echo $_GET['did']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<table id="member">
<thead>
<tr>
<th colspan="3">Upgrades AB Tech troops</th>
</tr></thead><tbody>
<tr><td align="center">Troop Type</td>
<td align="center">Armour</td>
<td align="center">Blackmith</td>
</tr>
<?php
for($i=1; $i<9; $i++) {
echo '<tr>
<td class="addTroops"><img src="../img/un/u/'.($img+$i).'.gif"></img> '.$unarray[$img+$i].'</td>
<td class="addTroops"><input class="addTroops" name="a'.$i.'" id="a'.$i.'" value="'.$abtech["a".$i].'" maxlength="10"></td>
<td class="addTroops"><input class="addTroops" name="b'.$i.'" id="b'.$i.'" value="'.$abtech["b".$i].'" maxlength="10"></td>
</tr>';
} ?>
</tbody>
<thead>
<tr>
<td colspan="3">
<button style="float: right" name="save" id="btn_save" class="trav_buttons" value="save" alt="save" /> Save </button>
<button style="float: left" name="back" id="btn_back" class="trav_buttons" value="back" alt="back" onclick="return go_url('../Admin/admin.php?p=village&did=<?php echo $_GET["did"];?>')" /> Back </button>
</td>
</tr>
</thead>
</table>
</form>
<?php }?>