NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Please be advised, is not fully tested so if you activate on install maybe is not fully working
This commit is contained in:
novgorodschi catalin
2026-07-14 09:25:26 +03:00
parent 60a2d3b206
commit 25c8925ef6
315 changed files with 8609 additions and 615 deletions
+13 -4
View File
@@ -8,17 +8,19 @@ for ($i = 1; $i <= 11; $i++) {
$t[$i] = (isset($process[$key]) && $process[$key] !== '') ? $process[$key] : 0;
}
// --- 2. Detectare scout / hero (exact ca originalul) ---
// --- 2. Detectare scout / hero ---
// Slotul cercetasului per trib: Gali = 3, Huni/Vikingi = 2, restul = 4
$scoutSlots = [1 => 4, 2 => 4, 3 => 3, 4 => 4, 5 => 4, 6 => 2, 7 => 4, 8 => 4, 9 => 2];
$scoutSlot = isset($scoutSlots[$session->tribe]) ? $scoutSlots[$session->tribe] : 4;
$scout = 0;
if (!empty($t[3]) && $session->tribe == 3) { $scout = 1; }
if (!empty($t[4]) && in_array($session->tribe, [1,2,4,5])) { $scout = 1; }
if (!empty($t[$scoutSlot])) { $scout = 1; }
$showhero = !empty($t[11]) ? 1 : 0;
// --- 3. Total unități fără cercetași (pentru forțarea tipului de atac) ---
$totalunits = 0;
for ($i = 1; $i <= 11; $i++) {
$isScout = ($session->tribe == 3 && $i == 3) || ($session->tribe != 3 && $i == 4);
$isScout = ($i == $scoutSlot);
if (!$isScout) {
$totalunits += (!empty($process['t'.$i]) ? (int)$process['t'.$i] : 0);
}
@@ -157,6 +159,11 @@ $kata = !empty($process['t8']);
<option value="29"><?php echo GREATBARRACKS; ?></option>
<option value="30"><?php echo GREATSTABLE; ?></option>
<option value="37"><?php echo HEROSMANSION; ?></option>
<option value="44"><?php echo COMMANDCENTER; ?></option>
<option value="45"><?php echo WATERWORKS; ?></option>
<option value="46"><?php echo HOSPITAL; ?></option>
<option value="48"><?php echo BIGHOSPITAL; ?></option>
<option value="49"><?php echo GREATWORKSHOP; ?></option>
</optgroup>
<?php endif; ?>
</select>
@@ -189,6 +196,8 @@ $kata = !empty($process['t8']);
<option value="16"><?php echo RALLYPOINT; ?></option><option value="19"><?php echo BARRACKS; ?></option><option value="20"><?php echo STABLE; ?></option>
<option value="21"><?php echo WORKSHOP; ?></option><option value="22"><?php echo ACADEMY; ?></option><option value="29"><?php echo GREATBARRACKS; ?></option>
<option value="30"><?php echo GREATSTABLE; ?></option><option value="37"><?php echo HEROSMANSION; ?></option>
<option value="44"><?php echo COMMANDCENTER; ?></option><option value="45"><?php echo WATERWORKS; ?></option><option value="46"><?php echo HOSPITAL; ?></option>
<option value="48"><?php echo BIGHOSPITAL; ?></option><option value="49"><?php echo GREATWORKSHOP; ?></option>
</optgroup>
<?php endif; ?>
</select>
+104
View File
@@ -0,0 +1,104 @@
<h1><?php echo SEND_TROOPS; ?></h1>
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="1278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
<table id="troops" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="line-first column-first large"><img class="unit u51" src="img/x.gif" title="<?php echo U51; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U51; ?>"> <input class="text" <?php if ($village->unitarray['u51']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u51']>0){
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u51']."; return false;\">(".$village->unitarray['u51'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first large"><img class="unit u54" src="img/x.gif" title="<?php echo U54; ?>" alt="<?php echo U54; ?>"> <input class="text" <?php if ($village->unitarray['u54']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u54']>0){
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u54']."; return false;\">(".$village->unitarray['u54'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first regular"><img class="unit u57" src="img/x.gif" title="<?php echo U57; ?>" alt="<?php echo U57; ?>"> <input class="text" <?php if ($village->unitarray['u57']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u57']>0){
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u57']."; return false;\">(".$village->unitarray['u57'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first column-last small"><img class="unit u59" src="img/x.gif" title="<?php echo U59; ?>" alt="<?php echo U59; ?>"> <input class="text" <?php if ($village->unitarray['u59']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u59']>0){
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u59']."; return false;\">(".$village->unitarray['u59'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="column-first large"><img class="unit u52" src="img/x.gif" title="<?php echo U52; ?>" alt="<?php echo U52; ?>"> <input class="text" <?php if ($village->unitarray['u52']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u52']>0){
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u52']."; return false;\">(".$village->unitarray['u52'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="large"><img class="unit u55" src="img/x.gif" title="<?php echo U55; ?>" alt="<?php echo U55; ?>"> <input class="text" <?php if ($village->unitarray['u55']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u55']>0){
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u55']."; return false;\">(".$village->unitarray['u55'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="regular"><img class="unit u58" src="img/x.gif" title="<?php echo U58; ?>" alt="<?php echo U58; ?>"> <input class="text" <?php if ($village->unitarray['u58']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u58']>0){
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u58']."; return false;\">(".$village->unitarray['u58'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="column-last small"><img class="unit u60" src="img/x.gif" title="<?php echo U60; ?>" alt="<?php echo U60; ?>"> <input class="text" <?php if ($village->unitarray['u60']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u60']>0){
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u60']."; return false;\">(".$village->unitarray['u60'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="line-last column-first large"><img class="unit u53" src="img/x.gif" title="<?php echo U53; ?>" alt="<?php echo U53; ?>"> <input class="text" <?php if ($village->unitarray['u53']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u53']>0){
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u53']."; return false;\">(".$village->unitarray['u53'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last large"><img class="unit u56" src="img/x.gif" title="<?php echo U56; ?>" alt="<?php echo U56; ?>"> <input class="text" <?php if ($village->unitarray['u56']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u56']>0){
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u56']."; return false;\">(".$village->unitarray['u56'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last regular"><?php
if ($village->unitarray['hero']>0){
echo "<img class=\"unit uhero\" src=\"img/x.gif\" title=\"Hero\" alt=\"Hero\"> <input class=\"text\" name=\"t11\" value=\"\" maxlength=\"6\" type=\"text\"> ";
echo "<a href=\"#\" onclick=\"document.snd.t11.value=".$village->unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")</a></td>";
}
?></td>
<td class="line-last column-last"></td> </tr>
</tbody></table>
+104
View File
@@ -0,0 +1,104 @@
<h1><?php echo SEND_TROOPS; ?></h1>
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="1278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
<table id="troops" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="line-first column-first large"><img class="unit u61" src="img/x.gif" title="<?php echo U61; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U61; ?>"> <input class="text" <?php if ($village->unitarray['u61']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u61']>0){
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u61']."; return false;\">(".$village->unitarray['u61'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first large"><img class="unit u64" src="img/x.gif" title="<?php echo U64; ?>" alt="<?php echo U64; ?>"> <input class="text" <?php if ($village->unitarray['u64']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u64']>0){
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u64']."; return false;\">(".$village->unitarray['u64'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first regular"><img class="unit u67" src="img/x.gif" title="<?php echo U67; ?>" alt="<?php echo U67; ?>"> <input class="text" <?php if ($village->unitarray['u67']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u67']>0){
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u67']."; return false;\">(".$village->unitarray['u67'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first column-last small"><img class="unit u69" src="img/x.gif" title="<?php echo U69; ?>" alt="<?php echo U69; ?>"> <input class="text" <?php if ($village->unitarray['u69']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u69']>0){
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u69']."; return false;\">(".$village->unitarray['u69'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="column-first large"><img class="unit u62" src="img/x.gif" title="<?php echo U62; ?>" alt="<?php echo U62; ?>"> <input class="text" <?php if ($village->unitarray['u62']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u62']>0){
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u62']."; return false;\">(".$village->unitarray['u62'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="large"><img class="unit u65" src="img/x.gif" title="<?php echo U65; ?>" alt="<?php echo U65; ?>"> <input class="text" <?php if ($village->unitarray['u65']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u65']>0){
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u65']."; return false;\">(".$village->unitarray['u65'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="regular"><img class="unit u68" src="img/x.gif" title="<?php echo U68; ?>" alt="<?php echo U68; ?>"> <input class="text" <?php if ($village->unitarray['u68']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u68']>0){
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u68']."; return false;\">(".$village->unitarray['u68'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="column-last small"><img class="unit u70" src="img/x.gif" title="<?php echo U70; ?>" alt="<?php echo U70; ?>"> <input class="text" <?php if ($village->unitarray['u70']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u70']>0){
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u70']."; return false;\">(".$village->unitarray['u70'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="line-last column-first large"><img class="unit u63" src="img/x.gif" title="<?php echo U63; ?>" alt="<?php echo U63; ?>"> <input class="text" <?php if ($village->unitarray['u63']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u63']>0){
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u63']."; return false;\">(".$village->unitarray['u63'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last large"><img class="unit u66" src="img/x.gif" title="<?php echo U66; ?>" alt="<?php echo U66; ?>"> <input class="text" <?php if ($village->unitarray['u66']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u66']>0){
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u66']."; return false;\">(".$village->unitarray['u66'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last regular"><?php
if ($village->unitarray['hero']>0){
echo "<img class=\"unit uhero\" src=\"img/x.gif\" title=\"Hero\" alt=\"Hero\"> <input class=\"text\" name=\"t11\" value=\"\" maxlength=\"6\" type=\"text\"> ";
echo "<a href=\"#\" onclick=\"document.snd.t11.value=".$village->unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")</a></td>";
}
?></td>
<td class="line-last column-last"></td> </tr>
</tbody></table>
+104
View File
@@ -0,0 +1,104 @@
<h1><?php echo SEND_TROOPS; ?></h1>
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="1278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
<table id="troops" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="line-first column-first large"><img class="unit u71" src="img/x.gif" title="<?php echo U71; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U71; ?>"> <input class="text" <?php if ($village->unitarray['u71']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u71']>0){
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u71']."; return false;\">(".$village->unitarray['u71'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first large"><img class="unit u74" src="img/x.gif" title="<?php echo U74; ?>" alt="<?php echo U74; ?>"> <input class="text" <?php if ($village->unitarray['u74']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u74']>0){
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u74']."; return false;\">(".$village->unitarray['u74'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first regular"><img class="unit u77" src="img/x.gif" title="<?php echo U77; ?>" alt="<?php echo U77; ?>"> <input class="text" <?php if ($village->unitarray['u77']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u77']>0){
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u77']."; return false;\">(".$village->unitarray['u77'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first column-last small"><img class="unit u79" src="img/x.gif" title="<?php echo U79; ?>" alt="<?php echo U79; ?>"> <input class="text" <?php if ($village->unitarray['u79']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u79']>0){
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u79']."; return false;\">(".$village->unitarray['u79'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="column-first large"><img class="unit u72" src="img/x.gif" title="<?php echo U72; ?>" alt="<?php echo U72; ?>"> <input class="text" <?php if ($village->unitarray['u72']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u72']>0){
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u72']."; return false;\">(".$village->unitarray['u72'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="large"><img class="unit u75" src="img/x.gif" title="<?php echo U75; ?>" alt="<?php echo U75; ?>"> <input class="text" <?php if ($village->unitarray['u75']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u75']>0){
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u75']."; return false;\">(".$village->unitarray['u75'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="regular"><img class="unit u78" src="img/x.gif" title="<?php echo U78; ?>" alt="<?php echo U78; ?>"> <input class="text" <?php if ($village->unitarray['u78']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u78']>0){
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u78']."; return false;\">(".$village->unitarray['u78'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="column-last small"><img class="unit u80" src="img/x.gif" title="<?php echo U80; ?>" alt="<?php echo U80; ?>"> <input class="text" <?php if ($village->unitarray['u80']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u80']>0){
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u80']."; return false;\">(".$village->unitarray['u80'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="line-last column-first large"><img class="unit u73" src="img/x.gif" title="<?php echo U73; ?>" alt="<?php echo U73; ?>"> <input class="text" <?php if ($village->unitarray['u73']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u73']>0){
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u73']."; return false;\">(".$village->unitarray['u73'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last large"><img class="unit u76" src="img/x.gif" title="<?php echo U76; ?>" alt="<?php echo U76; ?>"> <input class="text" <?php if ($village->unitarray['u76']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u76']>0){
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u76']."; return false;\">(".$village->unitarray['u76'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last regular"><?php
if ($village->unitarray['hero']>0){
echo "<img class=\"unit uhero\" src=\"img/x.gif\" title=\"Hero\" alt=\"Hero\"> <input class=\"text\" name=\"t11\" value=\"\" maxlength=\"6\" type=\"text\"> ";
echo "<a href=\"#\" onclick=\"document.snd.t11.value=".$village->unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")</a></td>";
}
?></td>
<td class="line-last column-last"></td> </tr>
</tbody></table>
+104
View File
@@ -0,0 +1,104 @@
<h1><?php echo SEND_TROOPS; ?></h1>
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="1278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
<table id="troops" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="line-first column-first large"><img class="unit u81" src="img/x.gif" title="<?php echo U81; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U81; ?>"> <input class="text" <?php if ($village->unitarray['u81']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u81']>0){
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u81']."; return false;\">(".$village->unitarray['u81'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first large"><img class="unit u84" src="img/x.gif" title="<?php echo U84; ?>" alt="<?php echo U84; ?>"> <input class="text" <?php if ($village->unitarray['u84']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u84']>0){
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u84']."; return false;\">(".$village->unitarray['u84'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first regular"><img class="unit u87" src="img/x.gif" title="<?php echo U87; ?>" alt="<?php echo U87; ?>"> <input class="text" <?php if ($village->unitarray['u87']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u87']>0){
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u87']."; return false;\">(".$village->unitarray['u87'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-first column-last small"><img class="unit u89" src="img/x.gif" title="<?php echo U89; ?>" alt="<?php echo U89; ?>"> <input class="text" <?php if ($village->unitarray['u89']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u89']>0){
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u89']."; return false;\">(".$village->unitarray['u89'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="column-first large"><img class="unit u82" src="img/x.gif" title="<?php echo U82; ?>" alt="<?php echo U82; ?>"> <input class="text" <?php if ($village->unitarray['u82']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u82']>0){
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u82']."; return false;\">(".$village->unitarray['u82'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="large"><img class="unit u85" src="img/x.gif" title="<?php echo U85; ?>" alt="<?php echo U85; ?>"> <input class="text" <?php if ($village->unitarray['u85']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u85']>0){
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u85']."; return false;\">(".$village->unitarray['u85'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="regular"><img class="unit u88" src="img/x.gif" title="<?php echo U88; ?>" alt="<?php echo U88; ?>"> <input class="text" <?php if ($village->unitarray['u88']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u88']>0){
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u88']."; return false;\">(".$village->unitarray['u88'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="column-last small"><img class="unit u90" src="img/x.gif" title="<?php echo U90; ?>" alt="<?php echo U90; ?>"> <input class="text" <?php if ($village->unitarray['u90']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u90']>0){
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u90']."; return false;\">(".$village->unitarray['u90'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
</tr>
<tr>
<td class="line-last column-first large"><img class="unit u83" src="img/x.gif" title="<?php echo U83; ?>" alt="<?php echo U83; ?>"> <input class="text" <?php if ($village->unitarray['u83']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u83']>0){
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u83']."; return false;\">(".$village->unitarray['u83'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last large"><img class="unit u86" src="img/x.gif" title="<?php echo U86; ?>" alt="<?php echo U86; ?>"> <input class="text" <?php if ($village->unitarray['u86']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
<?php
if ($village->unitarray['u86']>0){
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u86']."; return false;\">(".$village->unitarray['u86'].")</a></td>";
}else{
echo "<span class=\"none\">(0)</span></td>";
}
?>
<td class="line-last regular"><?php
if ($village->unitarray['hero']>0){
echo "<img class=\"unit uhero\" src=\"img/x.gif\" title=\"Hero\" alt=\"Hero\"> <input class=\"text\" name=\"t11\" value=\"\" maxlength=\"6\" type=\"text\"> ";
echo "<a href=\"#\" onclick=\"document.snd.t11.value=".$village->unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")</a></td>";
}
?></td>
<td class="line-last column-last"></td> </tr>
</tbody></table>