mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Fix some sql inject & Add Credits
Fix some sql inject & Add Credits
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : attack.tpl ##
|
||||
## Type : Rally Point Attack / Raid Confirmation ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$ckey = $generator->generateRandStr(6);
|
||||
|
||||
// --- 1. Normalizare trupe t1..t11 (păstrăm exact logica originală) ---
|
||||
|
||||
+14
-4
@@ -2,10 +2,20 @@
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename index.php ##
|
||||
## Developed by: aggenkeech ##
|
||||
## License: TravianZ Project ##
|
||||
## Copyright: TravianZ (c) 2010-2025. All rights reserved. ##
|
||||
## Filename : index.php ##
|
||||
## Type : Directory Access Guard ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : aggenkeech ##
|
||||
## Refactored by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
// prevent direct misuse in weird contexts (optional but safe)
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : newdorf.tpl ##
|
||||
## Type : Rally Point Settle New Village Form ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
//-- Prevent founding if not enough settlers or invalid/occupied tile
|
||||
//-- fix by AL-Kateb - Simplified by iopietro
|
||||
$settlers = (int)($village->unitarray['u' . $session->tribe . '0'] ?? 0);
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : search.tpl ##
|
||||
## Type : Rally Point Destination Village Search ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
// -- preluăm stările disabled din form (păstrăm exact valorile originale)
|
||||
$disabled = '';
|
||||
$disabledr = '';
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : sendback.tpl ##
|
||||
## Type : Rally Point Send Reinforcements Back ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
$to = $database->getVillage($enforce['from']);
|
||||
$fromcoor = $database->getCoor($enforce['from']);
|
||||
$tocoor = $database->getCoor($enforce['vref']);
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_1.tpl ##
|
||||
## Type : Rally Point Troop Selection (Romans) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 1 (Romans): u1..u10.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="line-first column-first large"><img class="unit u1" src="img/x.gif" title="<?php echo U1; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U1; ?>"> <input class="text" <?php if ($village->unitarray['u1']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u1']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u1']."; return false;\">(".$village->unitarray['u1'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="line-first large"><img class="unit u4" src="img/x.gif" title="<?php echo U4; ?>" alt="<?php echo U4; ?>"> <input class="text" <?php if ($village->unitarray['u4']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u4']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u4']."; return false;\">(".$village->unitarray['u4'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-first regular"><img class="unit u7" src="img/x.gif" title="<?php echo U7; ?>" alt="<?php echo U7; ?>"> <input class="text" <?php if ($village->unitarray['u7']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u7']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u7']."; return false;\">(".$village->unitarray['u7'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<td class="line-first column-last small"><img class="unit u9" src="img/x.gif" title="<?php echo U9; ?>" alt="<?php echo U9; ?>"> <input class="text" <?php if ($village->unitarray['u9']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u9']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u9']."; return false;\">(".$village->unitarray['u9'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column-first large"><img class="unit u2" src="img/x.gif" title="<?php echo U2; ?>" alt="<?php echo U2; ?>"> <input class="text" <?php if ($village->unitarray['u2']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u2']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u2']."; return false;\">(".$village->unitarray['u2'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="large"><img class="unit u5" src="img/x.gif" title="<?php echo U5; ?>" alt="<?php echo U5; ?>"> <input class="text" <?php if ($village->unitarray['u5']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u5']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u5']."; return false;\">(".$village->unitarray['u5'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="regular"><img class="unit u8" src="img/x.gif" title="<?php echo U8; ?>" alt="<?php echo U8; ?>"> <input class="text" <?php if ($village->unitarray['u8']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u8']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u8']."; return false;\">(".$village->unitarray['u8'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="column-last small"><img class="unit u10" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>"> <input class="text" <?php if ($village->unitarray['u10']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u10']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u10']."; return false;\">(".$village->unitarray['u10'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-last column-first large"><img class="unit u3" src="img/x.gif" title="<?php echo U3; ?>" alt="<?php echo U3; ?>"> <input class="text" <?php if ($village->unitarray['u3']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u3']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u3']."; return false;\">(".$village->unitarray['u3'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last large"><img class="unit u6" src="img/x.gif" title="<?php echo U6; ?>" alt="<?php echo U6; ?>"> <input class="text" <?php if ($village->unitarray['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u6']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u6']."; return false;\">(".$village->unitarray['u6'].")</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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_2.tpl ##
|
||||
## Type : Rally Point Troop Selection (Teutons) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 2 (Teutons): u11..u20.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="line-first column-first large"><img class="unit u11" src="img/x.gif" title="<?php echo U11; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U11; ?>"> <input class="text" <?php if ($village->unitarray['u11']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u11']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u11']."; return false;\">(".$village->unitarray['u11'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="line-first large"><img class="unit u14" src="img/x.gif" title="<?php echo U14; ?>" alt="<?php echo U14; ?>"> <input class="text" <?php if ($village->unitarray['u14']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u14']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u14']."; return false;\">(".$village->unitarray['u14'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-first regular"><img class="unit u17" src="img/x.gif" title="<?php echo U17; ?>" alt="<?php echo U17; ?>"> <input class="text" <?php if ($village->unitarray['u17']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u17']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u17']."; return false;\">(".$village->unitarray['u17'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<td class="line-first column-last small"><img class="unit u19" src="img/x.gif" title="<?php echo U19; ?>" alt="<?php echo U19; ?>"> <input class="text" <?php if ($village->unitarray['u19']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u19']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u19']."; return false;\">(".$village->unitarray['u19'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column-first large"><img class="unit u12" src="img/x.gif" title="<?php echo U12; ?>" alt="<?php echo U12; ?>"> <input class="text" <?php if ($village->unitarray['u12']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u12']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u12']."; return false;\">(".$village->unitarray['u12'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="large"><img class="unit u15" src="img/x.gif" title="<?php echo U15; ?>" alt="<?php echo U15; ?>"> <input class="text" <?php if ($village->unitarray['u15']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u15']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u15']."; return false;\">(".$village->unitarray['u15'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="regular"><img class="unit u18" src="img/x.gif" title="<?php echo U18; ?>" alt="<?php echo U18; ?>"> <input class="text" <?php if ($village->unitarray['u18']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u18']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u18']."; return false;\">(".$village->unitarray['u18'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="column-last small"><img class="unit u20" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>"> <input class="text" <?php if ($village->unitarray['u20']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u20']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u20']."; return false;\">(".$village->unitarray['u20'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-last column-first large"><img class="unit u13" src="img/x.gif" title="<?php echo U13; ?>" alt="<?php echo U13; ?>"> <input class="text" <?php if ($village->unitarray['u13']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u13']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u13']."; return false;\">(".$village->unitarray['u13'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last large"><img class="unit u16" src="img/x.gif" title="<?php echo U16; ?>" alt="<?php echo U16; ?>"> <input class="text" <?php if ($village->unitarray['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u16']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u16']."; return false;\">(".$village->unitarray['u16'].")</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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_3.tpl ##
|
||||
## Type : Rally Point Troop Selection (Gauls) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 3 (Gauls): u21..u30.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="line-first column-first large"><img class="unit u21" src="img/x.gif" title="<?php echo U21; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U21; ?>"> <input class="text" <?php if ($village->unitarray['u21']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u21']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u21']."; return false;\">(".$village->unitarray['u21'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="line-first large"><img class="unit u24" src="img/x.gif" title="<?php echo U24; ?>" alt="<?php echo U24; ?>"> <input class="text" <?php if ($village->unitarray['u24']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u24']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u24']."; return false;\">(".$village->unitarray['u24'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-first regular"><img class="unit u27" src="img/x.gif" title="<?php echo U17; ?>" alt="<?php echo U17; ?>"> <input class="text" <?php if ($village->unitarray['u27']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u27']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u27']."; return false;\">(".$village->unitarray['u27'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<td class="line-first column-last small"><img class="unit u29" src="img/x.gif" title="<?php echo U29; ?>" alt="<?php echo U29; ?>"> <input class="text" <?php if ($village->unitarray['u29']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u29']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u29']."; return false;\">(".$village->unitarray['u29'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column-first large"><img class="unit u22" src="img/x.gif" title="<?php echo U22; ?>" alt="<?php echo U22; ?>"> <input class="text" <?php if ($village->unitarray['u22']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u22']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u22']."; return false;\">(".$village->unitarray['u22'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="large"><img class="unit u25" src="img/x.gif" title="<?php echo U25; ?>" alt="<?php echo U25; ?>"> <input class="text" <?php if ($village->unitarray['u25']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u25']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u25']."; return false;\">(".$village->unitarray['u25'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="regular"><img class="unit u28" src="img/x.gif" title="<?php echo U28; ?>" alt="<?php echo U28; ?>"> <input class="text" <?php if ($village->unitarray['u28']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u28']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u28']."; return false;\">(".$village->unitarray['u28'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="column-last small"><img class="unit u30" src="img/x.gif" title="<?php echo U10; ?>" alt="<?php echo U10; ?>"> <input class="text" <?php if ($village->unitarray['u30']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u30']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u30']."; return false;\">(".$village->unitarray['u30'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-last column-first large"><img class="unit u23" src="img/x.gif" title="<?php echo U23; ?>" alt="<?php echo U23; ?>"> <input class="text" <?php if ($village->unitarray['u23']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u23']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u23']."; return false;\">(".$village->unitarray['u23'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last large"><img class="unit u26" src="img/x.gif" title="<?php echo U26; ?>" alt="<?php echo U26; ?>"> <input class="text" <?php if ($village->unitarray['u26']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u26']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u26']."; return false;\">(".$village->unitarray['u26'].")</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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="3278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_4.tpl ##
|
||||
## Type : Rally Point Troop Selection (Nature) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 4 (Nature): u31..u40.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="line-first column-first large"><img class="unit u31" src="img/x.gif" title="<?php echo U31; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U31; ?>"> <input class="text" <?php if ($village->unitarray['u31']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u31']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u31']."; return false;\">(".$village->unitarray['u31'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="line-first large"><img class="unit u34" src="img/x.gif" title="<?php echo U34; ?>" alt="<?php echo U34; ?>"> <input class="text" <?php if ($village->unitarray['u34']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u34']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u34']."; return false;\">(".$village->unitarray['u34'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-first regular"><img class="unit u37" src="img/x.gif" title="<?php echo U37; ?>" alt="<?php echo U37; ?>"> <input class="text" <?php if ($village->unitarray['u37']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u37']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u37']."; return false;\">(".$village->unitarray['u37'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<td class="line-first column-last small"><img class="unit u39" src="img/x.gif" title="<?php echo U39; ?>" alt="<?php echo U39; ?>"> <input class="text" <?php if ($village->unitarray['u39']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u39']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u39']."; return false;\">(".$village->unitarray['u39'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column-first large"><img class="unit u32" src="img/x.gif" title="<?php echo U32; ?>" alt="<?php echo U32; ?>"> <input class="text" <?php if ($village->unitarray['u32']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u32']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u32']."; return false;\">(".$village->unitarray['u32'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="large"><img class="unit u35" src="img/x.gif" title="<?php echo U35; ?>" alt="<?php echo U35; ?>"> <input class="text" <?php if ($village->unitarray['u35']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u35']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u35']."; return false;\">(".$village->unitarray['u35'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="regular"><img class="unit u38" src="img/x.gif" title="<?php echo U38; ?>" alt="<?php echo U38; ?>"> <input class="text" <?php if ($village->unitarray['u38']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u38']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u38']."; return false;\">(".$village->unitarray['u38'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="column-last small"><img class="unit u40" src="img/x.gif" title="<?php echo U40; ?>" alt="<?php echo U40; ?>"> <input class="text" <?php if ($village->unitarray['u40']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u40']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u40']."; return false;\">(".$village->unitarray['u40'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-last column-first large"><img class="unit u33" src="img/x.gif" title="<?php echo U33; ?>" alt="<?php echo U33; ?>"> <input class="text" <?php if ($village->unitarray['u33']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u33']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u33']."; return false;\">(".$village->unitarray['u33'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last large"><img class="unit u36" src="img/x.gif" title="<?php echo U36; ?>" alt="<?php echo U36; ?>"> <input class="text" <?php if ($village->unitarray['u36']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u36']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u36']."; return false;\">(".$village->unitarray['u36'].")</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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-96
@@ -1,99 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<form method="POST" name="snd" action="a2b.php"><input name="timestamp" value="3278280730" type="hidden"> <input name="timestamp_checksum" value="597fa8" type="hidden"> <input name="b" value="1" type="hidden">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_5.tpl ##
|
||||
## Type : Rally Point Troop Selection (Natars) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 5 (Natars): u41..u50.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody><tr>
|
||||
<td class="line-first column-first large"><img class="unit u41" src="img/x.gif" title="<?php echo U41; ?>" onclick="document.snd.t1.value=''; return false;" alt="<?php echo U41; ?>"> <input class="text" <?php if ($village->unitarray['u41']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u41']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t1.value=".$village->unitarray['u41']."; return false;\">(".$village->unitarray['u41'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="line-first large"><img class="unit u44" src="img/x.gif" title="<?php echo U44; ?>" alt="<?php echo U44; ?>"> <input class="text" <?php if ($village->unitarray['u44']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u44']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t4.value=".$village->unitarray['u44']."; return false;\">(".$village->unitarray['u44'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-first regular"><img class="unit u47" src="img/x.gif" title="<?php echo U47; ?>" alt="<?php echo U47; ?>"> <input class="text" <?php if ($village->unitarray['u47']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u47']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t7.value=".$village->unitarray['u47']."; return false;\">(".$village->unitarray['u47'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<td class="line-first column-last small"><img class="unit u49" src="img/x.gif" title="<?php echo U49; ?>" alt="<?php echo U49; ?>"> <input class="text" <?php if ($village->unitarray['u49']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u49']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t9.value=".$village->unitarray['u49']."; return false;\">(".$village->unitarray['u49'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column-first large"><img class="unit u42" src="img/x.gif" title="<?php echo U42; ?>" alt="<?php echo U42; ?>"> <input class="text" <?php if ($village->unitarray['u42']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u42']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t2.value=".$village->unitarray['u42']."; return false;\">(".$village->unitarray['u42'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td class="large"><img class="unit u45" src="img/x.gif" title="<?php echo U45; ?>" alt="<?php echo U45; ?>"> <input class="text" <?php if ($village->unitarray['u45']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u45']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t5.value=".$village->unitarray['u45']."; return false;\">(".$village->unitarray['u45'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="regular"><img class="unit u48" src="img/x.gif" title="<?php echo U48; ?>" alt="<?php echo U48; ?>"> <input class="text" <?php if ($village->unitarray['u48']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u48']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t8.value=".$village->unitarray['u48']."; return false;\">(".$village->unitarray['u48'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="column-last small"><img class="unit u50" src="img/x.gif" title="<?php echo U50; ?>" alt="<?php echo U50; ?>"> <input class="text" <?php if ($village->unitarray['u50']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u50']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t10.value=".$village->unitarray['u50']."; return false;\">(".$village->unitarray['u50'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="line-last column-first large"><img class="unit u43" src="img/x.gif" title="<?php echo U43; ?>" alt="<?php echo U43; ?>"> <input class="text" <?php if ($village->unitarray['u43']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u43']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t3.value=".$village->unitarray['u43']."; return false;\">(".$village->unitarray['u43'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last large"><img class="unit u46" src="img/x.gif" title="<?php echo U46; ?>" alt="<?php echo U46; ?>"> <input class="text" <?php if ($village->unitarray['u46']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text">
|
||||
<?php
|
||||
if ($village->unitarray['u46']>0){
|
||||
echo "<a href=\"#\" onclick=\"document.snd.t6.value=".$village->unitarray['u46']."; return false;\">(".$village->unitarray['u46'].")</a></td>";
|
||||
}else{
|
||||
echo "<span class=\"none\">(0)</span></td>";
|
||||
}
|
||||
?>
|
||||
<td class="line-last regular"></td>
|
||||
<td class="line-last column-last"></td> </tr>
|
||||
</tbody></table>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_6.tpl ##
|
||||
## Type : Rally Point Troop Selection (Huns) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 6 (Huns): u51..u60.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_7.tpl ##
|
||||
## Type : Rally Point Troop Selection (Egyptians) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 7 (Egyptians): u61..u70.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_8.tpl ##
|
||||
## Type : Rally Point Troop Selection (Spartans) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 8 (Spartans): u71..u80.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
+26
-101
@@ -1,104 +1,29 @@
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
<?php
|
||||
|
||||
<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">
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_9.tpl ##
|
||||
## Type : Rally Point Troop Selection (Vikings) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Trupele tribului 9 (Vikings): u81..u90.
|
||||
*
|
||||
* Formularul e identic pentru toate triburile, difera doar blocul de unitati,
|
||||
* asa ca traieste intr-un singur loc. Fisierul acesta ramane doar ca a2b.php
|
||||
* sa poata include in continuare "units_" . $session->tribe . ".tpl".
|
||||
*/
|
||||
|
||||
<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>
|
||||
|
||||
include("Templates/a2b/units_common.tpl");
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : units_common.tpl ##
|
||||
## Type : Rally Point Troop Selection Form (all tribes) ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Developed by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## URLs: : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
/**
|
||||
* Formularul de trimitere a trupelor, comun tuturor triburilor.
|
||||
*
|
||||
* Inainte exista cate un fisier units_1..units_9, identice in afara numerelor
|
||||
* de unitati - aproape 950 de linii duplicate. Orice reparatie trebuia facuta
|
||||
* de noua ori, iar in practica se uita cate una.
|
||||
*
|
||||
* Unitatile unui trib sunt un bloc de zece, consecutiv:
|
||||
* tribul 1 -> u1..u10, tribul 2 -> u11..u20, tribul 9 -> u81..u90
|
||||
* deci primul indice e (trib - 1) * 10 + 1.
|
||||
*
|
||||
* Fisierele units_N.tpl au ramas, ca sa nu se schimbe modul de includere din
|
||||
* a2b.php, dar acum doar apeleaza acest sablon.
|
||||
*/
|
||||
|
||||
$a2bTribe = isset($session->tribe) ? (int) $session->tribe : 1;
|
||||
|
||||
if ($a2bTribe < 1 || $a2bTribe > 9) {
|
||||
$a2bTribe = 1;
|
||||
}
|
||||
|
||||
$a2bFirstUnit = ($a2bTribe - 1) * 10 + 1;
|
||||
|
||||
// Natarii nu au erou, deci nu li se arata casuta lui.
|
||||
$a2bShowHero = ($a2bTribe !== 5) && !empty($village->unitarray['hero']);
|
||||
|
||||
/**
|
||||
* Deseneaza o casuta de unitate.
|
||||
*
|
||||
* @param int $slot pozitia in formular (1..10) - devine numele campului tN
|
||||
* @param int $unitId identificatorul real al unitatii (u1..u90)
|
||||
* @param string $class clasele celulei din tabel
|
||||
*/
|
||||
if (!function_exists('a2b_unit_cell')) {
|
||||
function a2b_unit_cell($slot, $unitId, $class)
|
||||
{
|
||||
global $village;
|
||||
|
||||
$have = isset($village->unitarray['u' . $unitId])
|
||||
? (int) $village->unitarray['u' . $unitId] : 0;
|
||||
$label = defined('U' . $unitId) ? constant('U' . $unitId) : ('u' . $unitId);
|
||||
$field = 't' . (int) $slot;
|
||||
|
||||
echo '<td class="' . htmlspecialchars($class, ENT_QUOTES, 'UTF-8') . '">';
|
||||
echo '<img class="unit u' . (int) $unitId . '" src="img/x.gif"'
|
||||
. ' title="' . htmlspecialchars($label, ENT_QUOTES, 'UTF-8') . '"'
|
||||
. ' alt="' . htmlspecialchars($label, ENT_QUOTES, 'UTF-8') . '"'
|
||||
. ' onclick="document.snd.' . $field . '.value=\'\'; return false;">';
|
||||
echo ' <input class="text" name="' . $field . '" value="" maxlength="6" type="text"'
|
||||
. ($have <= 0 ? ' disabled="disabled"' : '') . '>';
|
||||
|
||||
if ($have > 0) {
|
||||
echo ' <a href="#" onclick="document.snd.' . $field . '.value=' . $have
|
||||
. '; return false;">(' . $have . ')</a>';
|
||||
} else {
|
||||
echo ' <span class="none">(0)</span>';
|
||||
}
|
||||
|
||||
echo '</td>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<h1><?php echo SEND_TROOPS; ?></h1>
|
||||
|
||||
<form method="POST" name="snd" action="a2b.php">
|
||||
<input name="b" value="1" type="hidden">
|
||||
|
||||
<table id="troops" cellpadding="1" cellspacing="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php
|
||||
// primul rand: unitatile 1-5 ale tribului
|
||||
for ($i = 0; $i < 5; $i++) {
|
||||
a2b_unit_cell(
|
||||
$i + 1,
|
||||
$a2bFirstUnit + $i,
|
||||
'line-first ' . ($i === 0 ? 'column-first large' : 'large')
|
||||
);
|
||||
}
|
||||
?>
|
||||
<td class="line-first column-last"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
// al doilea rand: unitatile 6-10
|
||||
for ($i = 5; $i < 10; $i++) {
|
||||
a2b_unit_cell(
|
||||
$i + 1,
|
||||
$a2bFirstUnit + $i,
|
||||
$i === 5 ? 'column-first large' : 'large'
|
||||
);
|
||||
}
|
||||
?>
|
||||
<td class="column-last"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
/**
|
||||
* Casuta eroului.
|
||||
*
|
||||
* BUG REPARAT: varianta veche deschidea celula in HTML si o
|
||||
* inchidea in interiorul unui echo, dar mai lasa un </td> si
|
||||
* dupa blocul PHP. Cand eroul era in sat se generau DOUA
|
||||
* inchideri, iar tabelul iesea stricat. Acum celula se inchide
|
||||
* o singura data, pe ambele ramuri.
|
||||
*/
|
||||
if ($a2bShowHero) {
|
||||
$heroCount = (int) $village->unitarray['hero'];
|
||||
$heroLabel = defined('TZ_HERO') ? TZ_HERO : 'Hero';
|
||||
?>
|
||||
<td class="line-last column-first regular">
|
||||
<img class="unit uhero" src="img/x.gif"
|
||||
title="<?php echo htmlspecialchars($heroLabel, ENT_QUOTES, 'UTF-8'); ?>"
|
||||
alt="<?php echo htmlspecialchars($heroLabel, ENT_QUOTES, 'UTF-8'); ?>">
|
||||
<input class="text" name="t11" value="" maxlength="6" type="text">
|
||||
<a href="#" onclick="document.snd.t11.value=<?php echo $heroCount; ?>; return false;">(<?php echo $heroCount; ?>)</a>
|
||||
</td>
|
||||
<?php } else { ?>
|
||||
<td class="line-last column-first regular"></td>
|
||||
<?php } ?>
|
||||
<td class="line-last regular"></td>
|
||||
<td class="line-last column-last"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
/**
|
||||
* ATENTIE: formularul ramane DESCHIS aici, intentionat.
|
||||
*
|
||||
* a2b.php include imediat dupa acest sablon si search.tpl, care adauga
|
||||
* campurile de destinatie si butonul OK, apoi inchide </form>. Daca inchidem
|
||||
* formularul aici, butonul ramane in afara lui si trimiterea trupelor nu mai
|
||||
* face nimic - fara niciun mesaj de eroare.
|
||||
*/
|
||||
?>
|
||||
Reference in New Issue
Block a user