mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-17 10:06:09 +00:00
return report with rat to normal (need to find another fix for this)
This commit is contained in:
+1
-81
@@ -219,86 +219,6 @@ for($i=87;$i<=96;$i++) {
|
|||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
|
||||||
if ($dataarray[97]=='1'){
|
|
||||||
$start=31; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=98;$i<=107;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=118;$i<=127;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<?php if ($dataarray[128]=='1'){
|
|
||||||
$start=41; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=129;$i<=138;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=129;$i<=138;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php }
|
|
||||||
}else{
|
|
||||||
if ($dataarray[97]=='1'){
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
@@ -376,5 +296,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php } ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
+1
-81
@@ -220,86 +220,6 @@ for($i=87;$i<=96;$i++) {
|
|||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
|
||||||
if ($dataarray[97]=='1'){
|
|
||||||
$start=31; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=98;$i<=107;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=118;$i<=127;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<?php if ($dataarray[128]=='1'){
|
|
||||||
$start=41; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=129;$i<=138;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=139;$i<=148;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php }
|
|
||||||
}else{
|
|
||||||
if ($dataarray[97]=='1'){
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
@@ -377,5 +297,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php } ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
+1
-81
@@ -218,86 +218,6 @@ for($i=87;$i<=96;$i++) {
|
|||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
|
||||||
if ($dataarray[97]=='1'){
|
|
||||||
$start=31; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=98;$i<=107;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=118;$i<=127;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<?php if ($dataarray[128]=='1'){
|
|
||||||
$start=41; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=129;$i<=138;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=139;$i<=148;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php }
|
|
||||||
}else{
|
|
||||||
if ($dataarray[97]=='1'){
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
@@ -375,5 +295,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php } ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
+1
-81
@@ -220,86 +220,6 @@ for($i=87;$i<=96;$i++) {
|
|||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
if($dataarray[98]==1 and $dataarray[31]!=4){
|
|
||||||
if ($dataarray[97]=='1'){
|
|
||||||
$start=31; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=98;$i<=107;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=118;$i<=127;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<?php if ($dataarray[128]=='1'){
|
|
||||||
$start=41; ?>
|
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td class="role">Defender</th>
|
|
||||||
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
|
||||||
</tr></thead>
|
|
||||||
<tbody class="units">
|
|
||||||
<tr>
|
|
||||||
<td> </td>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
for($i=$start;$i<=($start+9);$i++) {
|
|
||||||
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
|
||||||
}
|
|
||||||
echo "</tr><tr><th>Troops</th>";
|
|
||||||
for($i=129;$i<=138;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
echo "<tr><th>Casualties</th>";
|
|
||||||
for($i=139;$i<=148;$i++) {
|
|
||||||
if($dataarray[$i] == 0) {
|
|
||||||
echo "<td class=\"none\">0</td>";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
echo "<td>".$dataarray[$i]."</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</tr></tbody></table>
|
|
||||||
|
|
||||||
<?php }
|
|
||||||
}else{
|
|
||||||
if ($dataarray[97]=='1'){
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
@@ -377,5 +297,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php }} ?>
|
<?php } ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
@@ -287,7 +287,7 @@ for($i=129;$i<=138;$i++) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<tr><th>Casualties</th>";
|
echo "<tr><th>Casualties</th>";
|
||||||
for($i=129;$i<=138;$i++) {
|
for($i=139;$i<=148;$i++) {
|
||||||
if($dataarray[$i] == 0) {
|
if($dataarray[$i] == 0) {
|
||||||
echo "<td class=\"none\">0</td>";
|
echo "<td class=\"none\">0</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ for($i=129;$i<=138;$i++) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<tr><th>Casualties</th>";
|
echo "<tr><th>Casualties</th>";
|
||||||
for($i=129;$i<=138;$i++) {
|
for($i=139;$i<=148;$i++) {
|
||||||
if($dataarray[$i] == 0) {
|
if($dataarray[$i] == 0) {
|
||||||
echo "<td class=\"none\">0</td>";
|
echo "<td class=\"none\">0</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ for($i=129;$i<=138;$i++) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "<tr><th>Casualties</th>";
|
echo "<tr><th>Casualties</th>";
|
||||||
for($i=129;$i<=138;$i++) {
|
for($i=139;$i<=148;$i++) {
|
||||||
if($dataarray[$i] == 0) {
|
if($dataarray[$i] == 0) {
|
||||||
echo "<td class=\"none\">0</td>";
|
echo "<td class=\"none\">0</td>";
|
||||||
}
|
}
|
||||||
|
|||||||
+82
-2
@@ -204,8 +204,88 @@ for($i=87;$i<=96;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||||
|
if ($dataarray[97]=='1'){
|
||||||
|
$start=31; ?>
|
||||||
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td class="role">Defender</th>
|
||||||
|
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody class="units">
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
for($i=$start;$i<=($start+9);$i++) {
|
||||||
|
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||||
|
}
|
||||||
|
echo "</tr><tr><th>Troops</th>";
|
||||||
|
for($i=98;$i<=107;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><th>Casualties</th>";
|
||||||
|
for($i=118;$i<=127;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($dataarray[97]=='1'){
|
<?php if ($dataarray[128]=='1'){
|
||||||
|
$start=41; ?>
|
||||||
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td class="role">Defender</th>
|
||||||
|
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody class="units">
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
for($i=$start;$i<=($start+9);$i++) {
|
||||||
|
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||||
|
}
|
||||||
|
echo "</tr><tr><th>Troops</th>";
|
||||||
|
for($i=129;$i<=138;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><th>Casualties</th>";
|
||||||
|
for($i=139;$i<=148;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
}else{
|
||||||
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -282,5 +362,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php } ?>
|
<?php }} ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
+82
-2
@@ -219,8 +219,88 @@ for($i=87;$i<=96;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
if($dataarray[98]==1 and $dataarray[31]!=4){
|
||||||
|
if ($dataarray[97]=='1'){
|
||||||
|
$start=31; ?>
|
||||||
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td class="role">Defender</th>
|
||||||
|
<td colspan="10"><?php if($targettribe=='4'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody class="units">
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
for($i=$start;$i<=($start+9);$i++) {
|
||||||
|
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||||
|
}
|
||||||
|
echo "</tr><tr><th>Troops</th>";
|
||||||
|
for($i=98;$i<=107;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><th>Casualties</th>";
|
||||||
|
for($i=118;$i<=127;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($dataarray[97]=='1'){
|
<?php if ($dataarray[128]=='1'){
|
||||||
|
$start=41; ?>
|
||||||
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td class="role">Defender</th>
|
||||||
|
<td colspan="10"><?php if($targettribe=='5'){ echo'<a href="spieler.php?uid='.$database->getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).'</a> from the village <a href="karte.php?d='.$dataarray[29].'&c='.$generator->getMapCheck($dataarray[29]).'">'.stripslashes($dataarray[30]).'</a>'; } else { echo"Reinforcement"; } ?></td>
|
||||||
|
</tr></thead>
|
||||||
|
<tbody class="units">
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
for($i=$start;$i<=($start+9);$i++) {
|
||||||
|
echo "<td><img src=\"img/x.gif\" class=\"unit u$i\" title=\"".$technology->getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" /></td>";
|
||||||
|
}
|
||||||
|
echo "</tr><tr><th>Troops</th>";
|
||||||
|
for($i=129;$i<=138;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><th>Casualties</th>";
|
||||||
|
for($i=139;$i<=148;$i++) {
|
||||||
|
if($dataarray[$i] == 0) {
|
||||||
|
echo "<td class=\"none\">0</td>";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<td>".$dataarray[$i]."</td>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tr></tbody></table>
|
||||||
|
|
||||||
|
<?php }
|
||||||
|
}else{
|
||||||
|
if ($dataarray[97]=='1'){
|
||||||
$start=31; ?>
|
$start=31; ?>
|
||||||
<table cellpadding="1" cellspacing="1" class="defender">
|
<table cellpadding="1" cellspacing="1" class="defender">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -297,5 +377,5 @@ for($i=129;$i<=138;$i++) {
|
|||||||
?>
|
?>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
|
||||||
<?php } ?>
|
<?php }} ?>
|
||||||
</td></tr></tbody></table>
|
</td></tr></tbody></table>
|
||||||
Reference in New Issue
Block a user