big update

This commit is contained in:
unknown
2012-07-03 05:27:14 +03:00
parent 8de9d72021
commit b578e44608
49 changed files with 1001 additions and 228 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ include("alli_menu.tpl");
//if there is user rank defined, user will be printed
else if($rank != ''){
echo "<tr>";
echo "<th>".$rank."</th>";
echo "<th>".stripslashes($rank)."</th>";
echo "<td><a href='spieler.php?uid=".$member['id']."'>".$name."</td>";
echo "</tr>";
}
+77
View File
@@ -150,6 +150,83 @@ if($units_incoming > 0 or $settlers_incoming > 0){
echo "</tbody></table>";
}
}
if(count($database->getPrisoners3($village->wid)) > 0) {
echo "<h4>Prisoners</h4>";
foreach($database->getPrisoners3($village->wid) as $prisoners) {
$colspan = 10+$prisoners['t11'];
echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\">
<a href=\"karte.php?d=".$prisoners['wref']."&c=".$generator->getMapCheck($prisoners['wref'])."\">".$database->getVillageField($prisoners['wref'],"name")."</a></td>
<td colspan=\"$colspan\">";
echo "<a href=\"karte.php?d=".$prisoners['wref']."&c=".$generator->getMapCheck($prisoners['wref'])."\">prisoners in ".$database->getVillageField($prisoners['wref'],"name")."</a>";
echo "</td></tr></thead><tbody class=\"units\">";
$tribe = $database->getUserField($database->getVillageField($prisoners['from'],"owner"),"tribe",0);
$start = ($tribe-1)*10+1;
$end = ($tribe*10);
echo "<tr><th>&nbsp;</th>";
for($i=$start;$i<=($end);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
}
if($prisoners['t11']!=0){
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=1;$i<=10;$i++) {
if($prisoners['t'.$i] == 0) {
echo "<td class=\"none\">";
}
else {
echo "<td>";
}
echo $prisoners['t'.$i]."</td>";
}
if($prisoners['t11']!=0){
echo "<td>".$prisoners['t11']."</td>";
}
echo "</tr></tbody>
<tbody class=\"infos\"><tr><th>Upkeep</th><td colspan=\"$colspan\"><div class='sup'>".$technology->getUpkeep($prisoners,$tribe,0,1)."<img class=\"r4\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" />per hour</div><div class='sback'><a href='a2b.php?delprisoners=".$prisoners['id']."'>Kill</a></div></td></tr>";
echo "</tbody></table>";
}
}
if(count($database->getPrisoners($village->wid)) > 0) {
echo "<h4>Prisoners</h4>";
foreach($database->getPrisoners($village->wid) as $prisoners) {
$colspan = 10+$prisoners['t11'];
$colspan2 = 11+$prisoners['t11'];
echo "<table class=\"troop_details\" cellpadding=\"1\" cellspacing=\"1\"><thead><tr><td class=\"role\">
<a href=\"karte.php?d=".$prisoners['from']."&c=".$generator->getMapCheck($prisoners['from'])."\">".$database->getVillageField($prisoners['from'],"name")."</a></td>
<td colspan=\"$colspan\">";
echo "<a href=\"karte.php?d=".$prisoners['from']."&c=".$generator->getMapCheck($prisoners['from'])."\">prisoners from ".$database->getVillageField($prisoners['from'],"name")."</a>";
echo "</td></tr></thead><tbody class=\"units\">";
$tribe = $database->getUserField($database->getVillageField($prisoners['from'],"owner"),"tribe",0);
$start = ($tribe-1)*10+1;
$end = ($tribe*10);
echo "<tr><th>&nbsp;</th>";
for($i=$start;$i<=($end);$i++) {
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
}
if($prisoners['t11']!=0){
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
}
echo "</tr><tr><th>Troops</th>";
for($i=1;$i<=10;$i++) {
if($prisoners['t'.$i] == 0) {
echo "<td class=\"none\">";
}
else {
echo "<td>";
}
echo $prisoners['t'.$i]."</td>";
}
if($prisoners['t11']!=0){
echo "<td>".$prisoners['t11']."</td>";
}
echo "</tr></tbody>
<tbody class=\"infos\"><tr><td colspan=\"11\"><div class='sup'><img class=\"r6\" src=\"img/x.gif\" title=\"Crop\" alt=\"Crop\" /></div><div class='sback'><a href='a2b.php?delprisoners=".$prisoners['id']."'>Send Back</a></div></td></tr>";
echo "</tbody></table>";
}
}
?>
<?php
+5 -1
View File
@@ -59,7 +59,11 @@ if ($units[$y]['sort_type']==3){
echo $units[$y]['t'.$i]."</td>";
}
}}else{
if($totalunits > $building->getTypeLevel(16)){
$artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,3,3,0));
$artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,3,1,1));
$artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,3,2,0));
$total_artefact = $artefact + $artefact1 + $artefact2;
if($totalunits > $building->getTypeLevel(16) && $total_artefact == 0){
echo "<td class=\"none\">?</td>";
}else{
if($units[$y]['t'.$i] == 0) {
+7 -7
View File
@@ -1,10 +1,9 @@
<?php
$artefact = $database->getOwnArtefactInfo($village->wid);
$artefact1 = $database->getOwnArtefactInfo2($village->wid);
$result = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = " . $village->wid . ""));
$wref = $village->wid;
$coor = $database->getCoor($wref);
$coor2= $database->getCoor($artefact['vref']);
function getDistance($coorx1, $coory1, $coorx2, $coory2) {
$max = 2 * WORLD_MAX + 1;
$x1 = intval($coorx1);
@@ -33,12 +32,13 @@
</thead>
<tbody>
<tr>
<?php
if($result == 0) {
echo '<td colspan="4" class="none">You do not own any artefacts.</td>';
echo '<tr><td colspan="4" class="none">You do not own any artefacts.</td></tr>';
} else {
foreach($artefact1 as $artefact){
$coor2 = $database->getCoor($artefact['vref']);
if($artefact['size'] == 1) {
$reqlvl = 10;
$effect = "village";
@@ -46,7 +46,7 @@
$reqlvl = 20;
$effect = "account";
}
echo '<td class="icon"><img class="artefact_icon_' . $artefact['type'] . '" src="img/x.gif"></td>';
echo '<tr><td class="icon"><img class="artefact_icon_' . $artefact['type'] . '" src="img/x.gif"></td>';
echo '<td class="nam">
<a href="build.php?id=' . $id . '&show='.$artefact['id'].'">' . $artefact['name'] . '</a> <span class="bon">' . $artefact['effect'] . '</span>
<div class="info">
@@ -54,11 +54,11 @@
</div>
</td>';
echo '<td class="pla"><a href="karte.php?d=' . $artefact['vref'] . '&c=' . $generator->getMapCheck($artefact['vref']) . '">' . $database->getVillageField($artefact['vref'], "name") . '</a></td>';
echo '<td class="dist">' . date("d/m/Y H:i", $artefact['conquered']) . '</td>';
echo '<td class="dist">' . date("d/m/Y H:i", $artefact['conquered']) . '</td></tr>';
}
}
?>
</tr>
</tbody>
</table>
+10 -1
View File
@@ -135,10 +135,19 @@ if (isset($_POST['name'])) {
<td colspan="5" class="empty"></td>
</tr>
<tr>
<?php if($hero_info['experience'] < 495000){ ?>
<th title="until the next level">Experience:</th>
<td class="val"><?php echo (int) (($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100) ?>%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100*2 ?>px;" alt="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" title="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" /></td> <td class="up"></td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100*2 ?>px;" alt="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" title="<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%" /></td>
<td class="up"></td>
<td class="rem"><?php echo $hero_info['points']; ?></td>
<?php }else{ ?>
<th title="until the next level">Experience:</th>
<td class="val">100%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:200px;" alt="100%" title="100%" /></td>
<td class="up"></td>
<td class="rem"><?php echo $hero_info['points']; ?></td>
<?php } ?>
</tr>
</tbody>
</table>
-12
View File
@@ -42,15 +42,6 @@ $herosmansion = $building->getTypeLevel(37);
$greatwarehouse = $building->getTypeLevel(38);
$greatgranary = $building->getTypeLevel(39);
$greatworkshop = $building->getTypeLevel(42);
$ww = $building->getTypeLevel(40);
$wwinbuild = count($database->getBuildingByType($village->wid,40));
$wwvillages = $database->getVillagesID($session->uid);
foreach($wwvillages as $wwvillage){
$plan = count($database->getOwnArtefactInfoByType2($wwvillage,11));
if($plan > 0){
$wwbuildingplan += 1;
}
}
foreach ($database->getJobs($_SESSION['wid']) as $bdata) {
$UnderConstruction = strtolower(str_replace(array(" ","'"),"",$building->procResType($bdata['type'])));
@@ -61,9 +52,6 @@ foreach ($database->getJobs($_SESSION['wid']) as $bdata) {
?>
<div id="build" class="gid0"><h1>Construct new building</h1>
<?php
if($ww == 0 && $wwinbuild == 0 && $village->natar == 1 && $wwbuildingplan > 0){
include("avaliable/ww.tpl");
}
if($mainbuilding == 0 && $id != 39 && $id != 40) {
include("avaliable/mainbuilding.tpl");
}
+22 -1
View File
@@ -1,6 +1,5 @@
<?php
$dataarray = explode(",",$message->readingNotice['data']);
//var_dump($dataarray);
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
?>
@@ -66,6 +65,21 @@ if(isset($dataarray[147]) and $dataarray[147]!=0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -94,6 +108,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -68,6 +68,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -89,8 +104,15 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
+22 -1
View File
@@ -1,6 +1,5 @@
<?php
$dataarray = explode(",",$message->readingNotice['data']);
//var_dump($dataarray);
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
?>
@@ -66,6 +65,21 @@ if(isset($dataarray[147]) and $dataarray[147]!=0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -94,6 +108,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -68,6 +68,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -89,8 +104,15 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
+18 -1
View File
@@ -67,8 +67,25 @@ if(isset($dataarray[151]) and $dataarray[151]!=0){
if ($dataarray[152]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[152]</td>";
}
if($dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0 or $dataarray[162] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=153;$i<=162;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[163]) and $dataarray[163]!=0){
if ($dataarray[163]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[163]</td>";
}
}
echo "</tr></tbody>"; ?>
</td></tr></tbody></table>
</td></tr></tbody>
</table>
<?php
$targettribe=$dataarray['31'];
+15
View File
@@ -70,6 +70,21 @@ if ($dataarray[151]!="" or $dataarray[151]!=0){
if ($dataarray[152]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[152]</td>";
}
if($dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0 or $dataarray[162] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=153;$i<=162;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[163]) and $dataarray[163]!=0){
if ($dataarray[163]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[163]</td>";
}
}
echo "</tr></tbody>"; ?>
</td></tr></tbody></table>
+22 -1
View File
@@ -1,6 +1,5 @@
<?php
$dataarray = explode(",",$message->readingNotice['data']);
//var_dump($dataarray);
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
?>
@@ -66,6 +65,21 @@ if(isset($dataarray[147]) and $dataarray[147]!=0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -94,6 +108,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -68,6 +68,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -89,8 +104,15 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
+22 -1
View File
@@ -1,6 +1,5 @@
<?php
$dataarray = explode(",",$message->readingNotice['data']);
//var_dump($dataarray);
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
?>
@@ -66,6 +65,21 @@ if(isset($dataarray[147]) and $dataarray[147]!=0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -94,6 +108,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -68,6 +68,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -89,8 +104,15 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
+22 -1
View File
@@ -1,6 +1,5 @@
<?php
$dataarray = explode(",",$message->readingNotice['data']);
//var_dump($dataarray);
if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";}
?>
@@ -66,6 +65,21 @@ if(isset($dataarray[147]) and $dataarray[147]!=0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -94,6 +108,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -68,6 +68,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -89,8 +104,15 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
+22
View File
@@ -62,6 +62,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -90,6 +105,13 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+24 -2
View File
@@ -67,6 +67,21 @@ if (isset($dataarray[147]) and $dataarray[147] != 0){
if ($dataarray[148]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[148]</td>";
}
if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){
echo "</tr><tr><th>Prisoners</th>";
for($i=151;$i<=160;$i++) {
if($dataarray[$i] == 0) {
echo "<td class=\"none\">0</td>";
}
else {
echo "<td>".$dataarray[$i]."</td>";
}
}
if(isset($dataarray[161]) and $dataarray[161]!=0){
if ($dataarray[161]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[161]</td>";
}
}
echo "</tr></tbody>";
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
?>
@@ -88,13 +103,20 @@ if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
<?php echo $dataarray[144]; ?>
</td></tr></tbody>
<?php } ?>
<?php if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
<?php }
if ($dataarray[145]!='' and $dataarray[146]!=''){ //spy
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[146]; ?>
</td></tr></tbody>
<?php }
if ($dataarray[162]!='' and $dataarray[162]!=''){ //release prisoners
?>
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
<?php echo $dataarray[162]; ?>
</td></tr></tbody>
<?php } ?>
<tbody class="goods"><tr><th>Bounty</th><td colspan="<?php echo $colspan; ?>">
<div class="res"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /><?php echo $dataarray[23]; ?> | <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[24]; ?> | <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[25]; ?> | <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[26]; ?></div><div class="carry"><img class="car" src="img/x.gif" alt="carry" title="carry" /><?php echo ($dataarray[23]+$dataarray[24]+$dataarray[25]+$dataarray[26])."/".$dataarray[27]; ?></div>
+1 -1
View File
@@ -60,7 +60,7 @@ include("menu2.tpl");
<tr>
<th>Rank</th>
<td><?php echo $ranking->getUserRank($displayarray['username']); ?></td>
<td><?php echo $ranking->getUserRank($displayarray['id']); ?></td>
</tr>
<tr>
<th>Tribe</th>
+8 -8
View File
@@ -19,7 +19,7 @@
<td class="desc">
Legionnaire
</td><td class="value">
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="7" title="Number Legionnaire" />
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="10" title="Number Legionnaire" />
</td>
<td class="research">
<input class="text" type="text" name="f1_1" value="<?php echo $form->getValue('f1_1'); ?>" maxlength="2" title="Level Blacksmith Legionnaire" />
@@ -31,7 +31,7 @@
<td class="desc">
Praetorian
</td><td class="value">
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="7" title="Number Praetorian" />
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="10" title="Number Praetorian" />
</td>
<td class="research">
<input class="text" type="text" name="f1_2" value="<?php echo $form->getValue('f1_2'); ?>" maxlength="2" title="Level Blacksmith Praetorian" />
@@ -43,7 +43,7 @@
<td class="desc">
Imperian
</td><td class="value">
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="7" title="Number Imperian" />
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="10" title="Number Imperian" />
</td>
<td class="research">
@@ -56,7 +56,7 @@
Equites Legati
</td><td class="value">
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="7" title="Number Equites Legati" />
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="10" title="Number Equites Legati" />
</td>
<td class="research">
<input class="text" type="text" name="f1_4" value="<?php echo $form->getValue('f1_4'); ?>" maxlength="2" title="Level Blacksmith Equites Legati" />
@@ -68,7 +68,7 @@
Equites Imperatoris
</td><td class="value">
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="7" title="Number Equites Imperatoris" />
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="10" title="Number Equites Imperatoris" />
</td>
<td class="research">
<input class="text" type="text" name="f1_5" value="<?php echo $form->getValue('f1_5'); ?>" maxlength="2" title="Level Blacksmith Equites Imperatoris" />
@@ -80,7 +80,7 @@
<td class="desc">
Equites Caesaris
</td><td class="value">
<input class="text" type="text" name="a1_6" value="<?php echo $form->getValue('a1_6'); ?>" maxlength="7" title="Number Equites Caesaris" />
<input class="text" type="text" name="a1_6" value="<?php echo $form->getValue('a1_6'); ?>" maxlength="10" title="Number Equites Caesaris" />
</td>
<td class="research">
<input class="text" type="text" name="f1_6" value="<?php echo $form->getValue('f1_6'); ?>" maxlength="2" title="Level Blacksmith Equites Caesaris" />
@@ -92,7 +92,7 @@
<td class="desc">
Battering Ram
</td><td class="value">
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="7" title="Number Battering Ram" />
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="10" title="Number Battering Ram" />
</td>
<td class="research">
@@ -104,7 +104,7 @@
<td class="desc">
Fire Catapult
</td><td class="value">
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="7" title="Number Fire Catapult" />
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="10" title="Number Fire Catapult" />
</td>
<td class="research">
+8 -8
View File
@@ -19,7 +19,7 @@
<td class="desc">
Clubswinger
</td><td class="value">
<input class="text" type="text" name="a1_1" value="<?php echo $form->getValue('a1_1'); ?>" maxlength="7" title="Number Clubswinger" />
<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" />
@@ -31,7 +31,7 @@
<td class="desc">
Spearman
</td><td class="value">
<input class="text" type="text" name="a1_2" value="<?php echo $form->getValue('a1_2'); ?>" maxlength="7" title="Number Spearman" />
<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" />
@@ -43,7 +43,7 @@
<td class="desc">
Axeman
</td><td class="value">
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="7" title="Number Axeman" />
<input class="text" type="text" name="a1_3" value="<?php echo $form->getValue('a1_3'); ?>" maxlength="10" title="Number Axeman" />
</td>
<td class="research">
@@ -56,7 +56,7 @@
Scout
</td><td class="value">
<input class="text" type="text" name="a1_4" value="<?php echo $form->getValue('a1_4'); ?>" maxlength="7" title="Number Scout" />
<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" />
@@ -68,7 +68,7 @@
Paladin
</td><td class="value">
<input class="text" type="text" name="a1_5" value="<?php echo $form->getValue('a1_5'); ?>" maxlength="7" title="Number Paladin" />
<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" />
@@ -80,7 +80,7 @@
<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="7" title="Number Teutonic Knight" />
<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" />
@@ -92,7 +92,7 @@
<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" />
<input class="text" type="text" name="a1_7" value="<?php echo $form->getValue('a1_7'); ?>" maxlength="10" title="Number Ram" />
</td>
<td class="research">
@@ -104,7 +104,7 @@
<td class="desc">
Catapult
</td><td class="value">
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="7" title="Number Catapult" />
<input class="text" type="text" name="a1_8" value="<?php echo $form->getValue('a1_8'); ?>" maxlength="10" title="Number Catapult" />
</td>
<td class="research">
+8 -8
View File
@@ -13,7 +13,7 @@
<td class="desc">
Legionnaire
</td><td class="value">
<input class="text" type="text" name="a2_1" value="<?php echo $form->getValue('a2_1'); ?>" maxlength="7" title="Number Legionnaire" />
<input class="text" type="text" name="a2_1" value="<?php echo $form->getValue('a2_1'); ?>" maxlength="10" title="Number Legionnaire" />
</td>
<td class="research">
<input class="text" type="text" name="f2_1" value="<?php echo $form->getValue('f2_1'); ?>" maxlength="2" title="Level Armoury Legionnaire" />
@@ -25,7 +25,7 @@
<td class="desc">
Praetorian
</td><td class="value">
<input class="text" type="text" name="a2_2" value="<?php echo $form->getValue('a2_2'); ?>" maxlength="7" title="Number Praetorian" />
<input class="text" type="text" name="a2_2" value="<?php echo $form->getValue('a2_2'); ?>" maxlength="10" title="Number Praetorian" />
</td>
<td class="research">
<input class="text" type="text" name="f2_2" value="<?php echo $form->getValue('f2_2'); ?>" maxlength="2" title="Level Armoury Praetorian" />
@@ -37,7 +37,7 @@
<td class="desc">
Imperian
</td><td class="value">
<input class="text" type="text" name="a2_3" value="<?php echo $form->getValue('a2_3'); ?>" maxlength="7" title="Number Imperian" />
<input class="text" type="text" name="a2_3" value="<?php echo $form->getValue('a2_3'); ?>" maxlength="10" title="Number Imperian" />
</td>
<td class="research">
@@ -50,7 +50,7 @@
Equites Legati
</td><td class="value">
<input class="text" type="text" name="a2_4" value="<?php echo $form->getValue('a2_4'); ?>" maxlength="7" title="Number Equites Legati" />
<input class="text" type="text" name="a2_4" value="<?php echo $form->getValue('a2_4'); ?>" maxlength="10" title="Number Equites Legati" />
</td>
<td class="research">
<input class="text" type="text" name="f2_4" value="<?php echo $form->getValue('f2_4'); ?>" maxlength="2" title="Level Armoury Equites Legati" />
@@ -62,7 +62,7 @@
Equites Imperatoris
</td><td class="value">
<input class="text" type="text" name="a2_5" value="<?php echo $form->getValue('a2_5'); ?>" maxlength="7" title="Number Equites Imperatoris" />
<input class="text" type="text" name="a2_5" value="<?php echo $form->getValue('a2_5'); ?>" maxlength="10" title="Number Equites Imperatoris" />
</td>
<td class="research">
<input class="text" type="text" name="f2_5" value="<?php echo $form->getValue('f2_5'); ?>" maxlength="2" title="Level Armoury Equites Imperatoris" />
@@ -74,7 +74,7 @@
<td class="desc">
Equites Caesaris
</td><td class="value">
<input class="text" type="text" name="a2_6" value="<?php echo $form->getValue('a2_6'); ?>" maxlength="7" title="Number Equites Caesaris" />
<input class="text" type="text" name="a2_6" value="<?php echo $form->getValue('a2_6'); ?>" maxlength="10" title="Number Equites Caesaris" />
</td>
<td class="research">
<input class="text" type="text" name="f2_6" value="<?php echo $form->getValue('f2_6'); ?>" maxlength="2" title="Level Armoury Equites Caesaris" />
@@ -86,7 +86,7 @@
<td class="desc">
Battering Ram
</td><td class="value">
<input class="text" type="text" name="a2_7" value="<?php echo $form->getValue('a2_7'); ?>" maxlength="7" title="Number Battering Ram" />
<input class="text" type="text" name="a2_7" value="<?php echo $form->getValue('a2_7'); ?>" maxlength="10" title="Number Battering Ram" />
</td>
<td class="research">
@@ -98,7 +98,7 @@
<td class="desc">
Fire Catapult
</td><td class="value">
<input class="text" type="text" name="a2_8" value="<?php echo $form->getValue('a2_8'); ?>" maxlength="7" title="Number Fire Catapult" />
<input class="text" type="text" name="a2_8" value="<?php echo $form->getValue('a2_8'); ?>" maxlength="10" title="Number Fire Catapult" />
</td>
<td class="research">
+8 -8
View File
@@ -13,7 +13,7 @@
<td class="desc">
Clubswinger
</td><td class="value">
<input class="text" type="text" name="a2_11" value="<?php echo $form->getValue('a2_11'); ?>" maxlength="7" title="Number Clubswinger" />
<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" />
@@ -25,7 +25,7 @@
<td class="desc">
Spearman
</td><td class="value">
<input class="text" type="text" name="a2_12" value="<?php echo $form->getValue('a2_12'); ?>" maxlength="7" title="Number Spearman" />
<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" />
@@ -37,7 +37,7 @@
<td class="desc">
Axeman
</td><td class="value">
<input class="text" type="text" name="a2_13" value="<?php echo $form->getValue('a2_13'); ?>" maxlength="7" title="Number Axeman" />
<input class="text" type="text" name="a2_13" value="<?php echo $form->getValue('a2_13'); ?>" maxlength="10" title="Number Axeman" />
</td>
<td class="research">
@@ -50,7 +50,7 @@
Scout
</td><td class="value">
<input class="text" type="text" name="a2_14" value="<?php echo $form->getValue('a2_14'); ?>" maxlength="7" title="Number Scout" />
<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" />
@@ -62,7 +62,7 @@
Paladin
</td><td class="value">
<input class="text" type="text" name="a2_15" value="<?php echo $form->getValue('a2_15'); ?>" maxlength="7" title="Number Paladin" />
<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" />
@@ -74,7 +74,7 @@
<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="7" title="Number Teutonic Knight" />
<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" />
@@ -86,7 +86,7 @@
<td class="desc">
Ram
</td><td class="value">
<input class="text" type="text" name="a2_17" value="<?php echo $form->getValue('a2_17'); ?>" maxlength="7" title="Number Ram" />
<input class="text" type="text" name="a2_17" value="<?php echo $form->getValue('a2_17'); ?>" maxlength="10" title="Number Ram" />
</td>
<td class="research">
@@ -98,7 +98,7 @@
<td class="desc">
Catapult
</td><td class="value">
<input class="text" type="text" name="a2_18" value="<?php echo $form->getValue('a2_18'); ?>" maxlength="7" title="Number Catapult" />
<input class="text" type="text" name="a2_18" value="<?php echo $form->getValue('a2_18'); ?>" maxlength="10" title="Number Catapult" />
</td>
<td class="research">
+8 -8
View File
@@ -13,7 +13,7 @@
<td class="desc">
Phalanx
</td><td class="value">
<input class="text" type="text" name="a2_21" value="<?php echo $form->getValue('a2_21'); ?>" maxlength="7" title="Number Phalanx" />
<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" />
@@ -25,7 +25,7 @@
<td class="desc">
Swordsman
</td><td class="value">
<input class="text" type="text" name="a2_22" value="<?php echo $form->getValue('a2_22'); ?>" maxlength="7" title="Number Swordsman" />
<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" />
@@ -37,7 +37,7 @@
<td class="desc">
Pathfinder
</td><td class="value">
<input class="text" type="text" name="a2_23" value="<?php echo $form->getValue('a2_23'); ?>" maxlength="7" title="Number Pathfinder" />
<input class="text" type="text" name="a2_23" value="<?php echo $form->getValue('a2_23'); ?>" maxlength="10" title="Number Pathfinder" />
</td>
<td class="research">
@@ -50,7 +50,7 @@
Theutates Thunder
</td><td class="value">
<input class="text" type="text" name="a2_24" value="<?php echo $form->getValue('a2_24'); ?>" maxlength="7" title="Number Theutates Thunder" />
<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('a2_24'); ?>" maxlength="2" title="Level Armoury Theutates Thunder" />
@@ -62,7 +62,7 @@
Druidrider
</td><td class="value">
<input class="text" type="text" name="a2_25" value="<?php echo $form->getValue('a2_25'); ?>" maxlength="7" title="Number Druidrider" />
<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" />
@@ -74,7 +74,7 @@
<td class="desc">
Haeduan
</td><td class="value">
<input class="text" type="text" name="a2_26" value="<?php echo $form->getValue('a2_26'); ?>" maxlength="7" title="Number Haeduan" />
<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_27'); ?>" maxlength="2" title="Level Armoury Haeduan" />
@@ -86,7 +86,7 @@
<td class="desc">
Ram
</td><td class="value">
<input class="text" type="text" name="a2_27" value="<?php echo $form->getValue('a2_27'); ?>" maxlength="7" title="Number Ram" />
<input class="text" type="text" name="a2_27" value="<?php echo $form->getValue('a2_27'); ?>" maxlength="10" title="Number Ram" />
</td>
<td class="research">
@@ -98,7 +98,7 @@
<td class="desc">
Trebuchet
</td><td class="value">
<input class="text" type="text" name="a2_28" value="<?php echo $form->getValue('a2_28'); ?>" maxlength="7" title="Number Trebuchet" />
<input class="text" type="text" name="a2_28" value="<?php echo $form->getValue('a2_28'); ?>" maxlength="10" title="Number Trebuchet" />
</td>
<td class="research">
+18 -3
View File
@@ -15,27 +15,42 @@
</tr>
<?php
if(in_array(1,$target)) {
if($_POST['wall1'] != 0){
$wall1 = $_POST['wall1'];
}else{
$wall1 = 0;
}
echo "<tr>
<td class=\"ico\"><img src=\"img/x.gif\" class=\"unit uwall\" alt=\"City Wall\" title=\"City Wall\" /></td>
<td class=\"desc\">City Wall</td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall1\" value=\"0\" maxlength=\"2\" title=\"level City Wall\" /></td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall1\" value=\"$wall1\" maxlength=\"2\" title=\"level City Wall\" /></td>
<td class=\"research\"></td>
</tr>";
}
if(in_array(2,$target)) {
if($_POST['wall2'] != 0){
$wall2 = $_POST['wall2'];
}else{
$wall2 = 0;
}
echo "<tr>
<td class=\"ico\"><img src=\"img/x.gif\" class=\"unit ubarr\" alt=\"Earth Wall\" title=\"Earth Wall\" /></td>
<td class=\"desc\">Earth Wall</td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall2\" value=\"0\" maxlength=\"2\" title=\"level Earth Wall\" /></td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall2\" value=\"$wall2\" maxlength=\"2\" title=\"level Earth Wall\" /></td>
<td class=\"research\"></td>
</tr>";
}
if(in_array(3,$target)) {
if($_POST['wall3'] != 0){
$wall3 = $_POST['wall3'];
}else{
$wall3 = 0;
}
echo "<tr>
<td class=\"ico\"><img src=\"img/x.gif\" class=\"unit ustock\" alt=\"Palisade\" title=\"Palisade\" /></td>
<td class=\"desc\">Palisade</td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall3\" value=\"0\" maxlength=\"2\" title=\"level Palisade\" /></td>
<td class=\"value\"><input class=\"text\" type=\"text\" name=\"wall3\" value=\"$wall3\" maxlength=\"2\" title=\"level Palisade\" /></td>
<td class=\"research\"></td>
</tr>";
+3 -3
View File
@@ -170,7 +170,7 @@ $end = ($tribe*10);
<tbody class="options">
<tr>
<th>Options</th>
<td colspan="10"><input class="radio" name="spy" value="1" checked="checked" type="radio">Scout resources and troops<br>
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>"><input class="radio" name="spy" value="1" checked="checked" type="radio">Scout resources and troops<br>
<input class="radio" name="spy" value="2" type="radio">Scout defences and troops </td>
</tr>
</tbody>
@@ -182,7 +182,7 @@ $end = ($tribe*10);
<?php if($process['c']=='3'){ ?><tbody class="cata">
<tr>
<th>Destination:</th>
<td colspan="10">
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<select name="ctar1" class="dropdown">
<option value="0">Random</option>
@@ -305,7 +305,7 @@ $end = ($tribe*10);
?><tbody class="infos">
<th>Destination:</th>
<td colspan="10">
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<?PHP
echo"Warning: Catapult will <b>ONLY</b> shoot with a normal attack (they dont shoot with raids!)";
+5 -5
View File
@@ -107,7 +107,7 @@ $actionType = "Raid";
<td><?php echo $process[1]; ?></td>
<td colspan="10"><?php echo $actionType." to ".$process['1']; ?></td>
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>"><?php echo $actionType." to ".$process['1']; ?></td>
</tr>
@@ -174,7 +174,7 @@ $actionType = "Raid";
<tbody class="options">
<tr>
<th>Options</th>
<td colspan="10"><input class="radio" name="spy" value="1" checked="checked" type="radio">Scout resources and troops<br>
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>"><input class="radio" name="spy" value="1" checked="checked" type="radio">Scout resources and troops<br>
<input class="radio" name="spy" value="2" type="radio">Scout defences and troops </td>
</tr>
</tbody>
@@ -186,7 +186,7 @@ $actionType = "Raid";
<?php if($process['c']=='3'){ ?><tbody class="cata">
<tr>
<th>Destination:</th>
<td colspan="10">
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<?php if($building->getTypeLevel(16) == 20) { ?>
<select name="ctar2" class="dropdown">
<option value="0">Random</option>
@@ -305,7 +305,7 @@ $actionType = "Raid";
?><tbody class="infos">
<th>Destination:</th>
<td colspan="10">
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<?PHP
echo"Warning: Catapult will <b>ONLY</b> shoot with a normal attack (they dont shoot with raids!)";
@@ -393,7 +393,7 @@ $actionType = "Raid";
<td colspan="10">
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<div class="in">in <?php echo $generator->getTimeFormat($time); ?></div>
+4 -5
View File
@@ -71,13 +71,12 @@ div.c1 {text-align: center}
<div id="content" class="village1">
<h1>Announcement</h1>
<h2>Hi <?php echo $session->username; ?>,</h2>
<br>
</br>
<h3>Hi <?php echo $session->username; ?>,</h3>
<?php include("Templates/text.tpl"); ?>
<div class="c1">
<h2><a href="dorf1.php?ok">&raquo; Go to my village</a></h2>
</br>
<h3><a href="dorf1.php?ok">&raquo; Go to my village</a></h3>
</div>
</div>
-1
View File
@@ -22,5 +22,4 @@ $txt = preg_replace("/\[\/u\]/is",'</u>', $txt);
//nl2br = enter
echo nl2br($txt);
?>