mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Additions
+Started the war simulator refactoring
This commit is contained in:
@@ -1,220 +0,0 @@
|
||||
<?php
|
||||
include_once ("GameEngine/Generator.php");
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
// ################################################################################
|
||||
// # -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
// # --------------------------------------------------------------------------- ##
|
||||
// # Filename a2b.php ##
|
||||
// # Developed by: Dzoki ##
|
||||
// # License: TravianX Project ##
|
||||
// # Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
// # ##
|
||||
// ################################################################################
|
||||
|
||||
use TravianZ\Utils\AccessLogger;
|
||||
|
||||
include_once ("GameEngine/Village.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
//Check if a rally point has already been built
|
||||
if($village->resarray['f39'] == 0){
|
||||
header("Location: dorf2.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
if(isset($_GET['newdid'])){
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['w'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?w=".$_GET['w']);
|
||||
exit();
|
||||
}else if(isset($_GET['r'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?r=".$_GET['r']);
|
||||
exit();
|
||||
}else if(isset($_GET['o'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?o=".$_GET['o']);
|
||||
exit();
|
||||
}else if(isset($_GET['z'])){
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?z=".$_GET['z']);
|
||||
exit();
|
||||
}else if($_GET['id'] > 0){
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else $building->procBuild($_GET);
|
||||
|
||||
if(isset($_GET['id'])) $id = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['id']);
|
||||
if(isset($_GET['w'])) $w = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['w']);
|
||||
if(isset($_GET['r'])) $r = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['r']);
|
||||
if(isset($_GET['delprisoners'])){
|
||||
$delprisoners = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['delprisoners']);
|
||||
}
|
||||
if(isset($_GET['o'])){
|
||||
$o = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['o']);
|
||||
$oid = preg_replace("/[^a-zA-Z0-9_-]/", "", $_GET['z']);
|
||||
$too = $database->getOasisField($oid, "conqured");
|
||||
if($too == 0){
|
||||
$disabledr = "disabled=disabled";
|
||||
$disabled = "disabled=disabled";
|
||||
}else{
|
||||
$disabledr = "";
|
||||
if($session->sit == 0) $disabled = "";
|
||||
else $disabled = "disabled=disabled";
|
||||
}
|
||||
$checked = "checked=checked";
|
||||
}else{
|
||||
if($session->sit == 0) $disabled = "";
|
||||
else $disabled = "disabled=disabled";
|
||||
}
|
||||
$process = $units->procUnits($_POST);
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title><?php
|
||||
|
||||
echo SERVER_NAME.' - Send Troops'?>
|
||||
</title>
|
||||
<link rel="shortcut icon" href="favicon.ico" />
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="mt-full.js?0faab" type="text/javascript"></script>
|
||||
<script src="unx.js?f4b7h" type="text/javascript"></script>
|
||||
<script src="new.js?0faab" type="text/javascript"></script>
|
||||
<link href="<?php
|
||||
|
||||
echo GP_LOCATE;
|
||||
|
||||
?>lang/en/lang.css?f4b7d"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<link href="<?php
|
||||
|
||||
echo GP_LOCATE;
|
||||
|
||||
?>lang/en/compact.css?f4b7i"
|
||||
rel="stylesheet" type="text/css" />
|
||||
<?php
|
||||
|
||||
if($session->gpack == null || GP_ENABLE == false){
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}else{
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body class="v35 ie ie8">
|
||||
<div class="wrapper">
|
||||
<img style="filter: chroma();" src="img/x.gif" id="msfilter" alt="" />
|
||||
<div id="dynamic_header"></div>
|
||||
<?php
|
||||
|
||||
include("templates/header.tpl");
|
||||
|
||||
?>
|
||||
<div id="mid">
|
||||
<?php
|
||||
|
||||
include("templates/menu.tpl");
|
||||
|
||||
?>
|
||||
<div id="content" class="a2b">
|
||||
<?php
|
||||
|
||||
if(!empty($id)){
|
||||
include ("templates/sendUnits/newVillage.tpl");
|
||||
}else if(isset($w)){
|
||||
$enforce = $database->getEnforceArray($w, 0);
|
||||
if($enforce['vref'] == $village->wid){
|
||||
$to = $database->getVillage($enforce['from']);
|
||||
$ckey = $w;
|
||||
include("templates/sendUnits/sendBack.tpl");
|
||||
}else{
|
||||
include("Templates/a2b/units_".$session->tribe.".tpl");
|
||||
include("templates/sendUnits/search.tpl");
|
||||
}
|
||||
}else if(isset($r)){
|
||||
$enforce = $database->getEnforceArray($r, 0);
|
||||
$enforceoasis = $database->getOasisEnforceArray($r, 0);
|
||||
if($enforce['from'] == $village->wid || $enforceoasis['conqured'] == $village->wid){
|
||||
$to = $database->getVillage($enforce['from']);
|
||||
$ckey = $r;
|
||||
include("templates/sendUnits/sendBack.tpl");
|
||||
}else{
|
||||
include ("Templates/a2b/units_".$session->tribe.".tpl");
|
||||
include("templates/sendUnits/search.tpl");
|
||||
}
|
||||
}else if(isset($delprisoners) && !empty($delprisoners)) $units->deletePrisoners($delprisoners);
|
||||
else{
|
||||
if(isset($process['0'])){
|
||||
$coor = $database->getCoor($process['0']);
|
||||
include("templates/sendUnits/attack.tpl");
|
||||
}else{
|
||||
include("Templates/a2b/units_".$session->tribe.".tpl");
|
||||
include("templates/sendUnits/search.tpl");
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<div id="side_info">
|
||||
<?php
|
||||
include("templates/multivillage.tpl");
|
||||
include("templates/quest.tpl");
|
||||
include("templates/news.tpl");
|
||||
?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="footer-stopper"></div>
|
||||
<div class="clear"></div>
|
||||
<?php
|
||||
|
||||
include("templates/footer.tpl");
|
||||
include("templates/res.tpl");
|
||||
|
||||
?>
|
||||
<div id="stime">
|
||||
<div id="ltime">
|
||||
<div id="ltimeWrap">
|
||||
<?php
|
||||
|
||||
echo CALCULATED;
|
||||
|
||||
?> <b><?php
|
||||
|
||||
echo round(($generator->pageLoadTimeEnd() - $start_timer) * 1000);
|
||||
|
||||
?></b> ms <br /><?php
|
||||
|
||||
echo SERVER_TIME;
|
||||
|
||||
?> <span id="tp1" class="b"><?php
|
||||
|
||||
echo date('H:i:s');
|
||||
|
||||
?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ce"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -3000,19 +3000,19 @@ div.plus table#gold_features {
|
||||
div.plus table.plusFunctions {
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
div.warsim table#select {
|
||||
div.gid16 table#select {
|
||||
margin-top: 10px;
|
||||
}
|
||||
div.warsim table#attacker {
|
||||
div.gid16 table#attacker {
|
||||
float: left;
|
||||
}
|
||||
div.warsim table#defender {
|
||||
div.gid16 table#defender {
|
||||
float: right;
|
||||
}
|
||||
div.warsim table.fill_in {
|
||||
div.gid16 table.fill_in {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
div.warsim table.results {
|
||||
div.gid16 table.results {
|
||||
margin-top: 15px;
|
||||
}
|
||||
div.banned_cn table {
|
||||
|
||||
@@ -686,6 +686,11 @@ define("PASSWORD_SENT", "If the email address exists, a new password has been se
|
||||
define("PASSWORD_SET_SUCCESS", "The password was set successfully.");
|
||||
define("NEW_PASSWORD_ERROR", "Invalid code, password or the password has already been set.");
|
||||
|
||||
//SIMULATOR
|
||||
define("ATTACKER","Attacker");
|
||||
define("DEFENDER","Defender");
|
||||
define("TYPE_OF_ATTACK","Type of attack");
|
||||
|
||||
//BEER FEST
|
||||
define("BEER_FEST","Beer fest");
|
||||
define("CELEBRATION","Celebration");
|
||||
|
||||
@@ -1,171 +0,0 @@
|
||||
<table id="attacker" class="fill_in" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Attacker</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<th>Teutons</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u11" title="Clubswinger" alt="Clubswinger" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Clubswinger
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="10" title="Number Clubswinger" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_1" value="<?php echo $form->getValue('f1_1'); ?>" maxlength="2" title="Level Blacksmith Clubswinger" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
|
||||
<img src="img/x.gif" class="unit u12" title="Spearman" alt="Spearman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Spearman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="10" title="Number Spearman" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_2" value="<?php echo $form->getValue('f1_2'); ?>" maxlength="2" title="Level Blacksmith Spearman" />
|
||||
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u13" title="Axeman" alt="Axeman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Axeman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="10" title="Number Axeman" />
|
||||
</td>
|
||||
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_3" value="<?php echo $form->getValue('f1_3'); ?>" maxlength="2" title="Level Blacksmith Axeman" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u14" title="Scout" alt="Scout" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Scout
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="10" title="Number Scout" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_4" value="<?php echo $form->getValue('f1_4'); ?>" maxlength="2" title="Level Blacksmith Scout" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u15" title="Paladin" alt="Paladin" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Paladin
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="10" title="Number Paladin" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_5" value="<?php echo $form->getValue('f1_5'); ?>" maxlength="2" title="Level Blacksmith Paladin" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u16" title="Teutonic Knight" alt="Teutonic Knight" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Teutonic Knight
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_6" value="<?php echo $form->getValue('a1_6'); ?>" maxlength="10" title="Number Teutonic Knight" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_6" value="<?php echo $form->getValue('f1_6'); ?>" maxlength="2" title="Level Blacksmith Teutonic Knight" />
|
||||
</td></tr><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u17" title="Ram" alt="Ram" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ram
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="10" title="Number Ram" />
|
||||
</td>
|
||||
<td class="research">
|
||||
|
||||
<input class="text" type="text" name="f1_7" value="<?php echo $form->getValue('f1_7'); ?>" maxlength="2" title="Level blacksmith Ram" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u18" title="Catapult" alt="Catapult" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Catapult
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="10" title="Number Catapult" />
|
||||
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_8" value="<?php echo $form->getValue('f1_8'); ?>" maxlength="2" title="Level Blacksmith Catapult" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u19" title="Chief" alt="Chief" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Chief
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_9" value="<?php echo $form->getValue('a1_9'); ?>" maxlength="6" title="Number Chief" />
|
||||
</td>
|
||||
<td class="research"></td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u20" title="Settler" alt="Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_10" value="<?php echo $form->getValue('a1_10'); ?>" maxlength="6" title="Number Settler" />
|
||||
</td>
|
||||
<td class="research"></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody><tbody>
|
||||
<tr>
|
||||
<th>Other</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhab" alt="Population" title="Population" /></td>
|
||||
<td class="desc">Population</td>
|
||||
<td class="value"><input class="text" type="text" name="ew1" value="<?php echo $form->getValue('ew1')==""? 1 : $form->getValue('ew1'); ?>" maxlength="5" title="Number Population" /></td>
|
||||
|
||||
<td class="research"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit ucata" alt="catapult target" title="catapult target" /></td>
|
||||
<td class="desc">Lvl catapult target</td>
|
||||
<td class="value"><input class="text" type="text" name="kata" value="<?php echo $form->getValue('kata')==""? 0 : $form->getValue('kata'); ?>" maxlength="2" title="Lvl Catapult Target" /></td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
|
||||
</tr><tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhero" title="Hero" alt="Hero" /></td>
|
||||
<td class="desc">Hero (off bonus)</td>
|
||||
<td class="value"><input class="text" type="text" name="h_off_bonus" value="<?php echo $form->getValue('h_off_bonus')==""? 0 : $form->getValue('h_off_bonus'); ?>" maxlength="4" title="Hero (off bonus)" /></td>
|
||||
<td class="research"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhero" title="Hero" alt="Hero" /></td>
|
||||
<td class="desc">Hero (fighting strength)</td>
|
||||
<td class="value"><input class="text" type="text" name="h_off" value="<?php echo $form->getValue('h_off')==""? 0 : $form->getValue('h_off'); ?>" maxlength="5" title="Hero (fighting strength)" /></td>
|
||||
<td class="research"></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
@@ -1,171 +0,0 @@
|
||||
<table id="attacker" class="fill_in" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Attacker</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<th>Gauls</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u21" title="Phalanx" alt="Phalanx" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Phalanx
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="7" title="Number Phalanx" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_1" value="<?php echo $form->getValue('f1_1'); ?>" maxlength="2" title="Level Blacksmith Phalanx" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
|
||||
<img src="img/x.gif" class="unit u22" title="Swordsman" alt="Swordsman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Swordsman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="7" title="Number Swordsman" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_2" value="<?php echo $form->getValue('f1_2'); ?>" maxlength="2" title="Level Blacksmith Swordsman" />
|
||||
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u23" title="Pathfinder" alt="Pathfinder" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Pathfinder
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="7" title="Number Pathfinder" />
|
||||
</td>
|
||||
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_3" value="<?php echo $form->getValue('f1_3'); ?>" maxlength="2" title="Level Blacksmith Pathfinder" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u24" title="Theutates Thunder" alt="Theutates Thunder" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Theutates Thunder
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="7" title="Number Theutates Thunder" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_4" value="<?php echo $form->getValue('f1_4'); ?>" maxlength="2" title="Level Blacksmith Theutates Thunder" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u25" title="Druidrider" alt="Druidrider" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Druidrider
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="7" title="Number Druidrider" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_5" value="<?php echo $form->getValue('f1_5'); ?>" maxlength="2" title="Level Blacksmith Druidrider" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u26" title="Haeduan" alt="Haeduan" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Haeduan
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_6" value="<?php echo $form->getValue('a1_6'); ?>" maxlength="7" title="Number Haeduan" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_6" value="<?php echo $form->getValue('f1_6'); ?>" maxlength="2" title="Level Blacksmith Haeduan" />
|
||||
</td></tr><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u27" title="Ram" alt="Ram" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ram
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="7" title="Number Ram" />
|
||||
</td>
|
||||
<td class="research">
|
||||
|
||||
<input class="text" type="text" name="f1_7" value="<?php echo $form->getValue('f1_7'); ?>" maxlength="2" title="Level Blacksmith Ram" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u28" title="Trebuchet" alt="Trebuchet" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Trebuchet
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="7" title="Number Trebuchet" />
|
||||
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f1_8" value="<?php echo $form->getValue('f1_8'); ?>" maxlength="2" title="Level Blacksmith Trebuchet" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u29" title="Chieftain" alt="Chieftain" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Chieftain
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_9" value="<?php echo $form->getValue('a1_9'); ?>" maxlength="6" title="Number Chieftain" />
|
||||
</td>
|
||||
<td class="research"></td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u30" title="Settler" alt="Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a1_10" value="<?php echo $form->getValue('a1_10'); ?>" maxlength="6" title="Number Settler" />
|
||||
</td>
|
||||
<td class="research"></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody><tbody>
|
||||
<tr>
|
||||
<th>Other</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhab" alt="Population" title="Population" /></td>
|
||||
<td class="desc">Population</td>
|
||||
<td class="value"><input class="text" type="text" name="ew1" value="<?php echo $form->getValue('ew1')==""? 1 : $form->getValue('ew1'); ?>" maxlength="5" title="Number Population" /></td>
|
||||
|
||||
<td class="research"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit ucata" alt="catapult target" title="catapult target" /></td>
|
||||
<td class="desc">Lvl catapult target</td>
|
||||
<td class="value"><input class="text" type="text" name="kata" value="<?php echo $form->getValue('kata')==""? 0 : $form->getValue('kata'); ?>" maxlength="2" title="Lvl Catapult Target" /></td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
|
||||
</tr><tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhero" title="Hero" alt="Hero" /></td>
|
||||
<td class="desc">Hero (off bonus)</td>
|
||||
<td class="value"><input class="text" type="text" name="h_off_bonus" value="<?php echo $form->getValue('h_off_bonus')==""? 0 : $form->getValue('h_off_bonus'); ?>" maxlength="4" title="Hero (off bonus)" /></td>
|
||||
<td class="research"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="ico"><img src="img/x.gif" class="unit uhero" title="Hero" alt="Hero" /></td>
|
||||
<td class="desc">Hero (fighting strength)</td>
|
||||
<td class="value"><input class="text" type="text" name="h_off" value="<?php echo $form->getValue('h_off')==""? 0 : $form->getValue('h_off'); ?>" maxlength="5" title="Hero (fighting strength)" /></td>
|
||||
<td class="research"></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
@@ -1,129 +0,0 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<th>Teutons</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u11" title="Clubswinger" alt="Clubswinger" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Clubswinger
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_11" value="<?php echo $form->getValue('a2_11'); ?>" maxlength="10" title="Number Clubswinger" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_11" value="<?php echo $form->getValue('f2_11'); ?>" maxlength="2" title="Level Armoury Clubswinger" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
|
||||
<img src="img/x.gif" class="unit u12" title="Spearman" alt="Spearman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Spearman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_12" value="<?php echo $form->getValue('a2_12'); ?>" maxlength="10" title="Number Spearman" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_12" value="<?php echo $form->getValue('f2_12'); ?>" maxlength="2" title="Level Armoury Spearman" />
|
||||
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u13" title="Axeman" alt="Axeman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Axeman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_13" value="<?php echo $form->getValue('a2_13'); ?>" maxlength="10" title="Number Axeman" />
|
||||
</td>
|
||||
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_13" value="<?php echo $form->getValue('f2_13'); ?>" maxlength="2" title="Level Armoury Axeman" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u14" title="Scout" alt="Scout" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Scout
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_14" value="<?php echo $form->getValue('a2_14'); ?>" maxlength="10" title="Number Scout" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_14" value="<?php echo $form->getValue('f2_14'); ?>" maxlength="2" title="Level Armoury Scout" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u15" title="Paladin" alt="Paladin" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Paladin
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_15" value="<?php echo $form->getValue('a2_15'); ?>" maxlength="10" title="Number Paladin" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_15" value="<?php echo $form->getValue('f2_15'); ?>" maxlength="2" title="Level Armoury Paladin" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u16" title="Teutonic Knight" alt="Teutonic Knight" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Teutonic Knight
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_16" value="<?php echo $form->getValue('a2_16'); ?>" maxlength="10" title="Number Teutonic Knight" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_16" value="<?php echo $form->getValue('f2_16'); ?>" maxlength="2" title="Level Armoury Teutonic Knight" />
|
||||
</td><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u17" title="Ram" alt="Ram" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ram
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_17" value="<?php echo $form->getValue('a2_17'); ?>" maxlength="10" title="Number Ram" />
|
||||
</td>
|
||||
<td class="research">
|
||||
|
||||
<input class="text" type="text" name="f2_17" value="<?php echo $form->getValue('f2_17'); ?>" maxlength="2" title="Level Armoury Ram" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u18" title="Catapult" alt="Catapult" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Catapult
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_18" value="<?php echo $form->getValue('a2_18'); ?>" maxlength="10" title="Number Catapult" />
|
||||
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_18" value="<?php echo $form->getValue('f2_18'); ?>" maxlength="2" title="Level Armoury Catapult" />
|
||||
</td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u19" title="Chief" alt="Chief" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Chief
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_19" value="<?php echo $form->getValue('a2_19'); ?>" maxlength="6" title="Number Chief" />
|
||||
</td>
|
||||
<td class="research"></td><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u20" title="Settler" alt="Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_20" value="<?php echo $form->getValue('a2_20'); ?>" maxlength="6" title="Number Settler" />
|
||||
</td>
|
||||
<td class="research"></td></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -1,129 +0,0 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<th>Gauls</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u21" title="Phalanx" alt="Phalanx" />
|
||||
</td>
|
||||
|
||||
<td class="desc">
|
||||
Phalanx
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_21" value="<?php echo $form->getValue('a2_21'); ?>" maxlength="10" title="Number Phalanx" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_21" value="<?php echo $form->getValue('f2_21'); ?>" maxlength="2" title="Level Armoury Phalanx" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
|
||||
<img src="img/x.gif" class="unit u22" title="Swordsman" alt="Swordsman" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Swordsman
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_22" value="<?php echo $form->getValue('a2_22'); ?>" maxlength="10" title="Number Swordsman" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_22" value="<?php echo $form->getValue('f2_22'); ?>" maxlength="2" title="Level Armoury Swordsman" />
|
||||
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u23" title="Pathfinder" alt="Pathfinder" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Pathfinder
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_23" value="<?php echo $form->getValue('a2_23'); ?>" maxlength="10" title="Number Pathfinder" />
|
||||
</td>
|
||||
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_23" value="<?php echo $form->getValue('f2_23'); ?>" maxlength="2" title="Level Armoury Pathfinder" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u24" title="Theutates Thunder" alt="Theutates Thunder" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Theutates Thunder
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_24" value="<?php echo $form->getValue('a2_24'); ?>" maxlength="10" title="Number Theutates Thunder" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_24" value="<?php echo $form->getValue('f2_24'); ?>" maxlength="2" title="Level Armoury Theutates Thunder" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u25" title="Druidrider" alt="Druidrider" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
|
||||
Druidrider
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_25" value="<?php echo $form->getValue('a2_25'); ?>" maxlength="10" title="Number Druidrider" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_25" value="<?php echo $form->getValue('f2_25'); ?>" maxlength="2" title="Level Armoury Druidrider" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u26" title="Haeduan" alt="Haeduan" />
|
||||
|
||||
</td>
|
||||
<td class="desc">
|
||||
Haeduan
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_26" value="<?php echo $form->getValue('a2_26'); ?>" maxlength="10" title="Number Haeduan" />
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_26" value="<?php echo $form->getValue('f2_26'); ?>" maxlength="2" title="Level Armoury Haeduan" />
|
||||
</td></tr><tr>
|
||||
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u27" title="Ram" alt="Ram" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Ram
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_27" value="<?php echo $form->getValue('a2_27'); ?>" maxlength="10" title="Number Ram" />
|
||||
</td>
|
||||
<td class="research">
|
||||
|
||||
<input class="text" type="text" name="f2_27" value="<?php echo $form->getValue('f2_27'); ?>" maxlength="2" title="Level Armoury Ram" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u28" title="Trebuchet" alt="Trebuchet" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Trebuchet
|
||||
</td><td class="value">
|
||||
<input class="text" type="text" name="a2_28" value="<?php echo $form->getValue('a2_28'); ?>" maxlength="10" title="Number Trebuchet" />
|
||||
|
||||
</td>
|
||||
<td class="research">
|
||||
<input class="text" type="text" name="f2_28" value="<?php echo $form->getValue('f2_28'); ?>" maxlength="2" title="Level Armoury Trebuchet" />
|
||||
</td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u29" title="Chieftain" alt="Chieftain" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Chieftain
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_29" value="<?php echo $form->getValue('a2_29'); ?>" maxlength="6" title="Number Chieftain" />
|
||||
</td>
|
||||
<td class="research"></td></tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u30" title="Settler" alt="Settler" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Settler
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_30" value="<?php echo $form->getValue('a2_30'); ?>" maxlength="6" title="Number Settler" />
|
||||
</td>
|
||||
<td class="research"></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -1,121 +0,0 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Nature</th>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="details">
|
||||
<table cellpadding="1" cellspacing="1"><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u31" title="Rat" alt="Rat" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Rat
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_31" value="<?php echo $form->getValue('a2_31'); ?>" maxlength="6" title="Number Rat" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u32" title="Spider" alt="Spider" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Spider
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_32" value="<?php echo $form->getValue('a2_32'); ?>" maxlength="6" title="Number Spider" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u33" title="Snake" alt="Snake" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Snake
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_33" value="<?php echo $form->getValue('a2_33'); ?>" maxlength="6" title="Number Snake" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u34" title="Bat" alt="Bat" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Bat
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_34" value="<?php echo $form->getValue('a2_34'); ?>" maxlength="6" title="Number Bat" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u35" title="Wild Boar" alt="Wild Boar" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Wild Boar
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_35" value="<?php echo $form->getValue('a2_35'); ?>" maxlength="6" title="Number Wild Boar" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u36" title="Wolf" alt="Wolf" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Wolf
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_36" value="<?php echo $form->getValue('a2_36'); ?>" maxlength="6" title="Number Wolf" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u37" title="Bear" alt="Bear" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Bear
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_37" value="<?php echo $form->getValue('a2_37'); ?>" maxlength="6" title="Number Bear" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u38" title="Crocodile" alt="Crocodile" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Crocodile
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_38" value="<?php echo $form->getValue('a2_38'); ?>" maxlength="6" title="Number Crocodile" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u39" title="Tiger" alt="Tiger" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Tiger
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_39" value="<?php echo $form->getValue('a2_39'); ?>" maxlength="6" title="Number Tiger" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr><tr>
|
||||
<td class="ico">
|
||||
<img src="img/x.gif" class="unit u40" title="Elephant" alt="Elephant" />
|
||||
</td>
|
||||
<td class="desc">
|
||||
Elephant
|
||||
</td><td class="value">
|
||||
|
||||
<input class="text" type="text" name="a2_40" value="<?php echo $form->getValue('a2_40'); ?>" maxlength="6" title="Number Elephant" />
|
||||
</td>
|
||||
<td class="research"></td>
|
||||
</tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -1,85 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u1" title="Legionnaire" alt="Legionnaire" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u2" title="Praetorian" alt="Praetorian" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u3" title="Imperian" alt="Imperian" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u4" title="Equites Legati" alt="Equites Legati" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u5" title="Equites Imperatoris" alt="Equites Imperatoris" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u6" title="Equites Caesaris" alt="Equites Caesaris" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u7" title="Battering Ram" alt="Battering Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u8" title="Fire Catapult" alt="Fire Catapult" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u9" title="Senator" alt="Senator" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u10" title="Settler" alt="Settler" />
|
||||
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Troops
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th>
|
||||
Casualties
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,85 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u11" title="Clubswinger" alt="Clubswinger" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u12" title="Spearman" alt="Spearman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u13" title="Axeman" alt="Axeman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u14" title="Scout" alt="Scout" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u15" title="Paladin" alt="Paladin" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u16" title="Teutonic Knight" alt="Teutonic Knight" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u17" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u18" title="Catapult" alt="Catapult" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u19" title="Chief" alt="Chief" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u20" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Troops
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th>
|
||||
Casualties
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,86 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u21" title="Phalanx" alt="Phalanx" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u22" title="Swordsman" alt="Swordsman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u23" title="Pathfinder" alt="Pathfinder" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u24" title="Theutates Thunder" alt="Theutates Thunder" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u25" title="Druidrider" alt="Druidrider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u26" title="Haeduan" alt="Haeduan" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u27" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u28" title="Trebuchet" alt="Trebuchet" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u29" title="Chieftain" alt="Chieftain" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u30" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,86 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u31" title="Rat" alt="Rat" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u32" title="Spider" alt="Spider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u33" title="Snake" alt="Snake" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u34" title="Bat" alt="Bat" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u35" title="Wild Boar" alt="Wild Boar" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u36" title="Wolf" alt="Wolf" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u37" title="Bear" alt="Bear" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u38" title="Crocodile" alt="Crocodile" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u39" title="Tiger" alt="Tiger" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u40" title="Elephant" alt="Elephant" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,61 +0,0 @@
|
||||
<table class="results attacker" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Attacker
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u11" title="Clubswinger" alt="Clubswinger" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u12" title="Spearman" alt="Spearman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u13" title="Axeman" alt="Axeman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u14" title="Scout" alt="Scout" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u15" title="Paladin" alt="Paladin" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u16" title="Teutonic Knight" alt="Teutonic Knight" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u17" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u18" title="Catapult" alt="Catapult" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u19" title="Chief" alt="Chief" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u20" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,64 +0,0 @@
|
||||
<table class="results attacker" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Attacker
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u21" title="Phalanx" alt="Phalanx" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u22" title="Swordsman" alt="Swordsman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u23" title="Pathfinder" alt="Pathfinder" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u24" title="Theutates Thunder" alt="Theutates Thunder" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u25" title="Druidrider" alt="Druidrider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u26" title="Haeduan" alt="Haeduan" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u27" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u28" title="Trebuchet" alt="Trebuchet" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u29" title="Chieftain" alt="Chieftain" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u30" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?></td>
|
||||
<td <?php if (!$form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,60 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u11" title="Clubswinger" alt="Clubswinger" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u12" title="Spearman" alt="Spearman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u13" title="Axeman" alt="Axeman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u14" title="Scout" alt="Scout" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u15" title="Paladin" alt="Paladin" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u16" title="Teutonic Knight" alt="Teutonic Knight" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u17" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u18" title="Catapult" alt="Catapult" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u19" title="Chief" alt="Chief" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u20" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a2_11')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_11');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_12')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_12');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_13')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_13');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_14')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_14');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_15')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_15');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_16')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_16');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_17')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_17');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_18')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_18');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_19')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_19');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_20')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_20');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a2_11')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_12')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_13')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_14')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_15')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_16')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_17')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_18')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_19')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_20')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,65 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u21" title="Phalanx" alt="Phalanx" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u22" title="Swordsman" alt="Swordsman" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u23" title="Pathfinder" alt="Pathfinder" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u24" title="Theutates Thunder" alt="Theutates Thunder" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u25" title="Druidrider" alt="Druidrider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u26" title="Haeduan" alt="Haeduan" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u27" title="Ram" alt="Ram" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u28" title="Trebuchet" alt="Trebuchet" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u29" title="Chieftain" alt="Chieftain" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u30" title="Settler" alt="Settler" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a2_21')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_21');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_22')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_22');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_23')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_23');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_24')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_24');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_25')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_25');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_26')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_26');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_27')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_27');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_28')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_28');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_29')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_29');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_30')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_30');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a2_21')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_22')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_23')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_24')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_25')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_26')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_27')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_28')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_29')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_30')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,67 +0,0 @@
|
||||
<table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Defender
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u31" title="Rat" alt="Rat" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u32" title="Spider" alt="Spider" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u33" title="Snake" alt="Snake" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u34" title="Bat" alt="Bat" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u35" title="Wild Boar" alt="Wild Boar" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u36" title="Wolf" alt="Wolf" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u37" title="Bear" alt="Bear" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u38" title="Crocodile" alt="Crocodile" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u39" title="Tiger" alt="Tiger" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u40" title="Elephant" alt="Elephant" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Troops
|
||||
</th>
|
||||
<td <?php if (!$form->getValue('a2_31')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_31');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_32')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_32');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_33')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_33');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_34')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_34');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_35')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_35');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_36')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_36');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_37')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_37');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_38')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_38');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_39')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_39');} ?></td>
|
||||
<td <?php if (!$form->getValue('a2_40')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_40');} ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Casualties
|
||||
</th>
|
||||
</th>
|
||||
<td <?php if (!$troops = $form->getValue('a2_31')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_32')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_33')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_34')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_35')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_36')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_37')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_38')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_39')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
<td <?php if (!$troops = $form->getValue('a2_40')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,340 +0,0 @@
|
||||
<form action="warsim.php" method="post"><table class="results attacker" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Agresor
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u1" title="Legionario" alt="Legionario" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u2" title="Pretoriano" alt="Pretoriano" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u3" title="Imperano" alt="Imperano" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u4" title="Equites Legati" alt="Equites Legati" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u5" title="Equites Imperatoris" alt="Equites Imperatoris" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u6" title="Equites Caesaris" alt="Equites Caesaris" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u7" title="Carnero" alt="Carnero" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u8" title="Catapulta de fuego" alt="Catapulta de fuego" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u9" title="Senador" alt="Senador" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u10" title="Colono" alt="Colono" />
|
||||
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Tropas
|
||||
</th><td>
|
||||
1
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th>
|
||||
Pérdidas
|
||||
</th><td>
|
||||
1
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table><table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defensor
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u1" title="Legionario" alt="Legionario" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u2" title="Pretoriano" alt="Pretoriano" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u3" title="Imperano" alt="Imperano" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u4" title="Equites Legati" alt="Equites Legati" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u5" title="Equites Imperatoris" alt="Equites Imperatoris" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u6" title="Equites Caesaris" alt="Equites Caesaris" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u7" title="Carnero" alt="Carnero" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u8" title="Catapulta de fuego" alt="Catapulta de fuego" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u9" title="Senador" alt="Senador" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u10" title="Colono" alt="Colono" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Tropas
|
||||
</th><td>
|
||||
1
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th>
|
||||
Pérdidas
|
||||
</th><td class="none">
|
||||
0
|
||||
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table><table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
<td class="role">
|
||||
Defensor
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u11" title="Luchador de Porra" alt="Luchador de Porra" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u12" title="Lancero" alt="Lancero" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u13" title="Luchador de Hacha" alt="Luchador de Hacha" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u14" title="Emisario" alt="Emisario" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u15" title="Paladín" alt="Paladín" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u16" title="Jinete Teutón" alt="Jinete Teutón" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u17" title="Ariete" alt="Ariete" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u18" title="Catapulta" alt="Catapulta" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u19" title="Cabecilla" alt="Cabecilla" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u20" title="Colono" alt="Colono" />
|
||||
</td></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
|
||||
Tropas
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
|
||||
<th>
|
||||
Pérdidas
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
|
||||
</tbody>
|
||||
</table><table class="results defender" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">
|
||||
Defensor
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u21" title="Falange" alt="Falange" />
|
||||
</td><td>
|
||||
|
||||
<img src="img/x.gif" class="unit u22" title="Luchador de Espada" alt="Luchador de Espada" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u23" title="Batidor" alt="Batidor" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u24" title="Rayo de Teutates" alt="Rayo de Teutates" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u25" title="Jinete Druida" alt="Jinete Druida" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u26" title="Jinete Eduo" alt="Jinete Eduo" />
|
||||
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u27" title="Carnero de madera" alt="Carnero de madera" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u28" title="Catapulta de guerra" alt="Catapulta de guerra" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u29" title="Cacique" alt="Cacique" />
|
||||
</td><td>
|
||||
<img src="img/x.gif" class="unit u30" title="Colono" alt="Colono" />
|
||||
</td></tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Tropas
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
<tr>
|
||||
<th>
|
||||
Pérdidas
|
||||
</th><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td><td class="none">
|
||||
|
||||
0
|
||||
</td><td class="none">
|
||||
0
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<thead>
|
||||
@@ -0,0 +1,59 @@
|
||||
<table id="select" cellpadding="1" cellspacing="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{$smarty.const.ATTACKER}</td>
|
||||
<td>{$smarty.const.DEFENDER}</td>
|
||||
<td>{$smarty.const.TYPE_OF_ATTACK}</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<label>
|
||||
<input class="radio" type="radio" name="attacker" value="1" {if $tribe == 1}checked="checked"{/if} /> {$smarty.const.TRIBE1}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="radio" type="radio" name="attacker" value="2" {if $tribe == 2}checked="checked"{/if} /> {$smarty.const.TRIBE2}
|
||||
</label>
|
||||
<label>
|
||||
<input class="radio" type="radio" name="attacker" value="3" {if $tribe == 3}checked="checked"{/if} /> {$smarty.const.TRIBE3}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label>
|
||||
<input class="check" type="checkbox" name="defender" value="1" /> {$smarty.const.TRIBE1}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="check" type="checkbox" name="defender" value="2" /> {$smarty.const.TRIBE2}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="check" type="checkbox" name="defender" value="3" /> {$smarty.const.TRIBE3}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="check" type="checkbox" name="defender" value="1" /> {$smarty.const.TRIBE4}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="check" type="checkbox" name="defender" value="1" /> {$smarty.const.TRIBE5}
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<label>
|
||||
<input class="radio" type="radio" name="attackType" value="3" {if $attackType == 3}checked="checked"{/if} /> {$smarty.const.NORMALATTACK}
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
<input class="radio" type="radio" name="attackType" value="4" {if $attackType == 4}checked="checked"{/if}/> {$smarty.const.RAID}
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p class="btn">
|
||||
<button value="startSimulation" name="action" id="btn_ok" class="trav_buttons"> Ok </button>
|
||||
</p>
|
||||
@@ -5,7 +5,7 @@
|
||||
{elseif $parameters['t'] == 1}
|
||||
{include file=$smarty.const.TEMPLATES_DIR|cat:'village/buildings/rallyPoint/sendUnits.tpl'}
|
||||
{elseif $parameters['t'] == 2}
|
||||
{include file=$smarty.const.TEMPLATES_DIR|cat:'simulator/.tpl'}
|
||||
{include file=$smarty.const.TEMPLATES_DIR|cat:'village/buildings/rallyPoint/simulator.tpl'}
|
||||
{elseif $parameters['t'] == 3}
|
||||
{include file=$smarty.const.TEMPLATES_DIR|cat:'village/buildings/rallyPoint/goldClub.tpl'}
|
||||
{/if}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{if $villageBuildings[$parameters['id']]['level'] > 0}
|
||||
|
||||
{include file={$smarty.const.TEMPLATES_DIR}|cat:'/village/buildings/research.tpl'}
|
||||
{include file={$smarty.const.TEMPLATES_DIR}|cat:'/village/buildings/academy/research.tpl'}
|
||||
|
||||
{else}
|
||||
<b>{$smarty.const.RESEARCH_COMMENCE_ACADEMY}</b><br />
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<form action="id=?{$parameters['id']}&t=2" method="post">
|
||||
{include file=$smarty.const.TEMPLATES_DIR|cat:'simulator/targets.tpl'}
|
||||
</form>
|
||||
-198
@@ -1,198 +0,0 @@
|
||||
<?php
|
||||
include_once("GameEngine/Generator.php");
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename warsim.php ##
|
||||
## Developed by: Dzoki ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
use App\Utils\AccessLogger;
|
||||
|
||||
include_once("GameEngine/Village.php");
|
||||
AccessLogger::logRequest();
|
||||
|
||||
$battle->procSim($_POST);
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo SERVER_NAME ?> - Combat Simulator</title>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
<meta http-equiv="cache-control" content="max-age=0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<meta http-equiv="imagetoolbar" content="no" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<script src="mt-full.js?0faab" type="text/javascript"></script>
|
||||
<script src="unx.js?f4b7h" type="text/javascript"></script>
|
||||
<script src="new.js?0faab" type="text/javascript"></script>
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/lang.css?f4b7d" rel="stylesheet" type="text/css" />
|
||||
<link href="<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7i" rel="stylesheet" type="text/css" />
|
||||
<?php
|
||||
if($session->gpack == null || GP_ENABLE == false) {
|
||||
echo "
|
||||
<link href='".GP_LOCATE."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".GP_LOCATE."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
} else {
|
||||
echo "
|
||||
<link href='".$session->gpack."travian.css?e21d2' rel='stylesheet' type='text/css' />
|
||||
<link href='".$session->gpack."lang/en/lang.css?e21d2' rel='stylesheet' type='text/css' />";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.addEvent('domready', start);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
||||
<body class="v35 ie ie8">
|
||||
<div class="wrapper">
|
||||
<img style="filter:chroma();" src="img/x.gif" id="msfilter" alt="" />
|
||||
<div id="dynamic_header">
|
||||
</div>
|
||||
<?php include("templates/header.tpl"); ?>
|
||||
<div id="mid">
|
||||
<?php include("templates/menu.tpl"); ?>
|
||||
<div id="content" class="warsim">
|
||||
<h1>Combat simulator</h1>
|
||||
<form action="warsim.php" method="post">
|
||||
<?php
|
||||
if(isset($_POST['result'])) {
|
||||
$target = isset($_POST['target'])? $_POST['target'] : array();
|
||||
$tribe = isset($_POST['mytribe'])? $_POST['mytribe'] : $session->tribe;
|
||||
include("Templates/Simulator/res_a".$tribe.".tpl");
|
||||
foreach($target as $tar) {
|
||||
include("Templates/Simulator/res_d".$tar.".tpl");
|
||||
}
|
||||
echo "<p>Type of attack: <b>";
|
||||
echo $form->getValue('ktyp') == 0 ? "Normal" : "Raid";
|
||||
echo "</b></p>";
|
||||
echo "<p>";
|
||||
if (isset($_POST['result'][7]) && isset($_POST['result'][8])){
|
||||
if ($form->getValue('ktyp') == 1) {
|
||||
echo "Hint: The ram does not work during a raid.<br>";
|
||||
}elseif ($_POST['result'][7] == 0){
|
||||
echo "Damage done by ram: from level <b>".$form->getValue('walllevel')."</b> to level <b>0</b></p>";
|
||||
}elseif ($_POST['result'][7] == $_POST['result'][8]){
|
||||
echo "Damage done by ram: from level <b>".$form->getValue('walllevel')."</b> to level <b>".$form->getValue('walllevel')."</b></p>";
|
||||
}else{
|
||||
echo "Damage done by ram: from level <b>".$form->getValue('walllevel')."</b> to level <b>".$_POST['result'][7]."</b></p>";
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_POST['result'][3]) && isset($_POST['result'][4])){
|
||||
if ($form->getValue('ktyp') == 1) {
|
||||
echo "Hint: The catapult does not shoot during a raid.</p>";
|
||||
}elseif ($_POST['result'][3] == 0){
|
||||
echo "Damage done by catapult: from level <b>".$form->getValue('kata')."</b> to level <b>0</b></p>";
|
||||
}elseif ($_POST['result'][3] == $_POST['result'][4]){
|
||||
echo "Damage done by catapult: from level <b>".$form->getValue('kata')."</b> to level <b>".$form->getValue('kata')."</b></p></p>";
|
||||
}else{
|
||||
echo "Damage done by catapult: from level <b>".$form->getValue('kata')."</b> to level <b>".$_POST['result'][3]."</b></p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_GET['target'])) {
|
||||
// this only works for Nature, as GET links like this one will come from an oasis
|
||||
if (!$_GET['target'] != 4) {
|
||||
$_GET['target'] = 4;
|
||||
}
|
||||
|
||||
// fill-in session value-array data
|
||||
foreach ($_GET as $key => $value) {
|
||||
if ($key[0] === 'u' && is_numeric($value)) {
|
||||
$form->setValue('a2_' . substr($key, 1), $value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
$target = isset($_POST['target'])? $_POST['target'] : (!empty($_GET['target']) ? array((int) $_GET['target']) : array());
|
||||
$tribe = isset($_POST['mytribe'])? $_POST['mytribe'] : $session->tribe;
|
||||
if(count($target) > 0) {
|
||||
include("Templates/Simulator/att_".preg_replace("/[^a-zA-Z0-9_-]/","",$tribe).".tpl");
|
||||
echo "<table id=\"defender\" class=\"fill_in\" cellpadding=\"1\" cellspacing=\"1\">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Defender <span class=\"small\"></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>";
|
||||
foreach($target as $tar) {
|
||||
include("Templates/Simulator/def_".$tar.".tpl");
|
||||
}
|
||||
include("templates/simulator/def_end.tpl");
|
||||
echo "<div class=\"clear\"></div>";
|
||||
}
|
||||
?>
|
||||
<table id="select" cellpadding="1" cellspacing="1">
|
||||
<thead><tr>
|
||||
<td>Attacker</td>
|
||||
<td>Defender</td>
|
||||
<td>Type of attack</td>
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
<td>
|
||||
<label><input class="radio" type="radio" name="a1_v" value="1" <?php if($tribe == 1) { echo "checked"; } ?>/> Romans</label><br/>
|
||||
<label><input class="radio" type="radio" name="a1_v" value="2" <?php if($tribe == 2) { echo "checked"; } ?>/> Teutons</label><br/>
|
||||
<label><input class="radio" type="radio" name="a1_v" value="3" <?php if($tribe == 3) { echo "checked"; } ?>/> Gauls</label>
|
||||
</td><td>
|
||||
<label><input class="check" type="checkbox" name="a2_v1" value="1" <?php if(in_array(1,$target)) { echo "checked"; } ?>/> Romans</label><br/>
|
||||
|
||||
<label><input class="check" type="checkbox" name="a2_v2" value="1" <?php if(in_array(2,$target)) { echo "checked"; } ?>/> Teutons</label><br/>
|
||||
<label><input class="check" type="checkbox" name="a2_v3" value="1" <?php if(in_array(3,$target)) { echo "checked"; } ?>/> Gauls</label><br/>
|
||||
<label><input class="check" type="checkbox" name="a2_v4" value="1" <?php if(in_array(4,$target)) { echo "checked"; } ?>/> Nature</label>
|
||||
</td><td>
|
||||
<label><input class="radio" type="radio" name="ktyp" value="0" <?php if($form->getValue('ktyp') == 0 || $form->getValue('ktyp') == "") { echo "checked"; } ?>/> normal</label><br/>
|
||||
|
||||
<label><input class="radio" type="radio" name="ktyp" value="1" <?php if($form->getValue('ktyp') == 1) { echo "checked"; } ?>/> raid</label><br/>
|
||||
<label><input type="hidden" name="uid" value="<?php echo $session->uid; ?>" /></label>
|
||||
</td>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
|
||||
<p class="btn"><button value="ok" name="s1" id="btn_ok" class="trav_buttons" alt="OK" /> OK </button></p>
|
||||
</form>
|
||||
</div>
|
||||
<br /><br /><br /><br /><div id="side_info">
|
||||
<?php
|
||||
include("templates/multivillage.tpl");
|
||||
include("templates/quest.tpl");
|
||||
include("templates/news.tpl");
|
||||
?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="footer-stopper"></div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php
|
||||
include("templates/footer.tpl");
|
||||
include("templates/res.tpl");
|
||||
?>
|
||||
<div id="stime">
|
||||
<div id="ltime">
|
||||
<div id="ltimeWrap">
|
||||
<?php echo CALCULATED_IN;?> <b><?php
|
||||
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||
?></b> ms
|
||||
|
||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ce"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user