mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 03:44:23 +00:00
General fixes
+Completely coded "Players report" in the admin panel, now you can see any report you want +Added "Players message", you can now see every message of any player +Fully coded "IMG/Reports" section, it now works properly +Fully CSSed reports, they'll now look like in game +Centered the whole admin panel (because we're in 2018, lul)
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
|
||||
<table cellpadding="1" cellspacing="1" id="overview">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Subject</th>
|
||||
<th>Sender</th>
|
||||
<th class="sent"><a href="nachrichten.php?o=1">Sent</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="3" class="buttons"></th>
|
||||
<th class="navi"><?php
|
||||
if (! isset($_GET['s']) && count($allMessages) < 10) {
|
||||
echo "«»";
|
||||
} else if (! isset($_GET['s']) && count($allMessages) > 10) {
|
||||
echo "«<a href=\"?p=msg&" . (! empty($_GET['t']) ? 't=' . $_GET['t'] . '&' : '') . "s=10&o=" . (!empty($_GET['o']) ? $_GET['o'] : 0) . "\">»</a>";
|
||||
} else if (isset($_GET['s']) && count($allMessages) > $_GET['s']) {
|
||||
if (count($allMessages) > ($_GET['s'] + 10) && $_GET['s'] - 10 < count($allMessages) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?p=msg&" . (! empty($_GET['t']) ? 't=' . $_GET['t'] . '&' : '') . "s=" . ($_GET['s'] - 10) . "&o=0\">«</a><a href=\"?p=msg&" . (! empty($_GET['t']) ? 't=' . $_GET['t'] . '&' : '') . "s=" . ($_GET['s'] + 10) . "&o=0\">»</a>";
|
||||
} else if (count($allMessages) > $_GET['s'] + 10) {
|
||||
echo "«<a href=\"?p=msg&" . (! empty($_GET['t']) ? 't=' . $_GET['t'] . '&' : '') . "s=" . ($_GET['s'] + 10) . "&o=0\">»</a>";
|
||||
} else if (count($allMessages) > 10) {
|
||||
echo "<a href=\"?p=msg&" . (! empty($_GET['t']) ? 't=' . $_GET['t'] . '&' : '') . "s=" . ($_GET['s'] - 10) . "&o=0\">«</a>»";
|
||||
}
|
||||
}
|
||||
?></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
|
||||
<style>
|
||||
tr.multihunterMsg td.sel {
|
||||
background-color: orange;
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
if (isset($_GET['s'])) $s = $_GET['s'];
|
||||
else $s = 0;
|
||||
|
||||
for ($i = (1 + $s); $i <= (10 + $s); $i ++) {
|
||||
if (count($allMessages) >= $i) {
|
||||
if ($allMessages[$i - 1]['owner'] <= 1) echo "<tr class=\"sup\">";
|
||||
elseif ($allMessages[$i - 1]['owner'] == 5) echo "<tr class=\"multihunterMsg\">";
|
||||
else echo "<tr>";
|
||||
|
||||
echo "<td class=\"top\" colspan=\"2\"><a href=\"admin.php?p=msg&nid=" . $allMessages[$i - 1]['id'] . "\">" . $allMessages[$i - 1]['topic'] . "</a> ";
|
||||
|
||||
$date = $generator->procMtime($allMessages[$i - 1]['time']);
|
||||
if ($allMessages[$i - 1]['owner'] <= 1) {
|
||||
echo "</td><td class=\"send\"><a href=\"admin.php?p=player&uid=1\"><u>" . $database->getUserField($allMessages[$i - 1]['owner'], 'username', 0) . "</u></a></td>
|
||||
<td class=\"dat\">" . $date[0] . " " . $date[1] . "</td></tr>";
|
||||
} else {
|
||||
$linkSender = ($allMessages[$i - 1]['owner'] != 2 && $allMessages[$i - 1]['owner'] != 4);
|
||||
|
||||
echo "</td><td class=\"send\">" . ($linkSender ? "<a href=\"admin.php?p=player&uid=" . $allMessages[$i - 1]['owner'] . "\">" : '<b>') . $database->getUserField($allMessages[$i - 1]['owner'], 'username', 0) . ($linkSender ? '</a>' : '</b>') . "</td>
|
||||
|
||||
<td class=\"dat\">" . $date[0] . " " . $date[1] . "</td></tr>";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count($allMessages) == 0) {
|
||||
echo "<td colspan=\"4\" class=\"none\">There are no messages available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -1,284 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,287 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,379 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
};
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="trade"><thead><tr>
|
||||
<td> </td>
|
||||
<td><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr></thead><tbody><tr>
|
||||
<th>Resources</th>
|
||||
<td>
|
||||
<img class="r1" src="img/x.gif" alt="Wood" title="Wood" /><?php echo $dataarray[2]; ?> |
|
||||
<img class="r2" src="img/x.gif" alt="Clay" title="Clay" /><?php echo $dataarray[3]; ?> |
|
||||
<img class="r3" src="img/x.gif" alt="Iron" title="Iron" /><?php echo $dataarray[4]; ?> |
|
||||
<img class="r4" src="img/x.gif" alt="Crop" title="Crop" /><?php echo $dataarray[5]; ?>
|
||||
</td></tr></tbody>
|
||||
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,78 +0,0 @@
|
||||
<?php
|
||||
//reinforcement is underattack
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[26],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[26]."&c=".$generator->getMapCheck($dataarray[26])."\">".$database->getVillageField($dataarray[26],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" class="defender"><thead>
|
||||
<tr>
|
||||
<td class="role">Defender</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[3];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=4;$i<=13;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td>$dataarray[24]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=14;$i<=23;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
if ($dataarray[25]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[25]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,78 +0,0 @@
|
||||
<?php
|
||||
//reinforcement is underattack
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[26],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[26]."&c=".$generator->getMapCheck($dataarray[26])."\">".$database->getVillageField($dataarray[26],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" class="defender"><thead>
|
||||
<tr>
|
||||
<td class="role">Defender</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[3];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=4;$i<=13;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td>$dataarray[24]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=14;$i<=23;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
if ($dataarray[25]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[25]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,78 +0,0 @@
|
||||
<?php
|
||||
//reinforcement is underattack
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[26],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[26]."&c=".$generator->getMapCheck($dataarray[26])."\">".$database->getVillageField($dataarray[26],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" class="defender"><thead>
|
||||
<tr>
|
||||
<td class="role">Defender</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[3];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=4;$i<=13;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
echo "<td>$dataarray[24]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=14;$i<=23;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[24]) and $dataarray[24]!=0){
|
||||
if ($dataarray[25]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[25]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody>
|
||||
</table>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,358 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
$colspan="10";
|
||||
if(isset($dataarray[150]) and $dataarray[150]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[148]) and $dataarray[148]!=0){
|
||||
if ($dataarray[162]==0) $tdclass='class="none"'; else $tdclass="";
|
||||
echo "<td $tdclass>$dataarray[162]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,301 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,301 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
$colspan="10";
|
||||
$colspan2="10";
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</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[171]) && $dataarray[171] !=''){ //troop not return
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<?php echo $dataarray[171]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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],"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\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</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\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,274 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">?</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\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,403 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
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";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,384 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,358 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
$colspan="10";
|
||||
if(isset($dataarray[150]) and $dataarray[150]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[148]) and $dataarray[148]!=0){
|
||||
if ($dataarray[162]==0) $tdclass='class="none"'; else $tdclass="";
|
||||
echo "<td $tdclass>$dataarray[162]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,301 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,358 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
$colspan="10";
|
||||
if(isset($dataarray[150]) and $dataarray[150]!=0){$colspan2="11";}else{$colspan2="10";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[148]) and $dataarray[148]!=0){
|
||||
if ($dataarray[162]==0) $tdclass='class="none"'; else $tdclass="";
|
||||
echo "<td $tdclass>$dataarray[162]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
echo "<td>$dataarray[150]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[150]) and $dataarray[150]!=0){
|
||||
if ($dataarray[151]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[151]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,301 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="10"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($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 or $dataarray[161] != 0){
|
||||
echo "</tr><tr><th>Prisoners</th>";
|
||||
for($i=152;$i<=161;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
<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
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="10">
|
||||
|
||||
<?php echo $dataarray[146]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php 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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,77 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){$colspan="11";}else{$colspan="10";}
|
||||
if($dataarray[15] == 1){
|
||||
$image = "peace";
|
||||
}else if($dataarray[15] == 2){
|
||||
$image = "xmas";
|
||||
}else if($dataarray[15] == 3){
|
||||
$image = "newy";
|
||||
}else{
|
||||
$image = "easter";
|
||||
}
|
||||
if($dataarray[15] == 1){
|
||||
$message1 = "".$database->getUserField($dataarray[0],"username",0)." visited ".$database->getUserField($dataarray[2],"username",0)."'s troops";
|
||||
}else if($dataarray[15] == 2){
|
||||
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Merry Christmas";
|
||||
}else if($dataarray[15] == 3){
|
||||
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy New Year";
|
||||
}else{
|
||||
$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy Easter";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" class="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[3];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=4;$i<=13;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[14]) and $dataarray[14]!=0){
|
||||
echo "<td>$dataarray[14]</td>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img src="<?php echo GP_LOCATE; ?>img/r/<?php echo $image; ?>.gif" alt="Peace" title="Peace" />
|
||||
<?php echo $message1; ?>
|
||||
</td></tr></tbody>
|
||||
</table>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,403 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
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";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,345 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## ADVOCAITE ROCKS TRAVIANX NUTS ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if(isset($dataarray[151]) and $dataarray[151]!=0){$colspan="11";}else{$colspan="10";}
|
||||
$colspan2 = 10;
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if(isset($dataarray[151]) and $dataarray[151]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[151]) and $dataarray[151]!=0){
|
||||
echo "<td>$dataarray[151]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[151]) and $dataarray[151]!=0){
|
||||
if ($dataarray[152]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[163] != 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[151]) and $dataarray[151]!=0){
|
||||
if ($dataarray[163]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[163]</td>";
|
||||
}
|
||||
}
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[167]!='' and $dataarray[168]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[167]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[168]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[169]!='' and $dataarray[170]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[169]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[170]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[172]!='' and $dataarray[173]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[172]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[173]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if(isset($dataarray[171]) && $dataarray[171] !=''){ //troop not return
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<?php echo $dataarray[171]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }?>
|
||||
</td></tr></tbody>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[31]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[31]=='2'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='3'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='4'){
|
||||
$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],"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] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='5'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="10"><?php if($targettribe=='5'){ echo $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,290 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## ADVOCAITE ROCKS TRAVIANX NUTS ##
|
||||
## GIT HUB REV ##
|
||||
############################################################
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if($dataarray[151]!='' and $dataarray[151]!=0){$colspan="11";}else{$colspan="10";}
|
||||
$colspan2 = 10;
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if ($dataarray[151]!="" and $dataarray[151]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if ($dataarray[151]!="" and $dataarray[151]!=0){
|
||||
echo "<td>$dataarray[151]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if ($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[151]) and $dataarray[151]!=0){
|
||||
if ($dataarray[163]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[163]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>"; ?>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[31]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[31]=='2'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='3'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='4'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[31]=='5'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=129;$i<=138;$i++) {
|
||||
if($dataarray[$i] == "?") {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td class=\"none\">?</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,391 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if(isset($dataarray[164]) && $dataarray[164] !=''){ //troop not return
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<?php echo $dataarray[164]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,403 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
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";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,391 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if(isset($dataarray[164]) && $dataarray[164] !=''){ //troop not return
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<?php echo $dataarray[164]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,403 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
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";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,385 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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 $defuser_url." from the village ".$deffrom_url; } 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=119;$i<=128;$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 } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,403 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
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";}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[97]=='1'){
|
||||
$start=31; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<?php
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php }else{ ?>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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>
|
||||
<?php } ?>
|
||||
</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>";
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=119;$i<=128;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</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>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,455 +0,0 @@
|
||||
<?php
|
||||
############################################################
|
||||
## DO NOT REMOVE THIS NOTICE ##
|
||||
## FIX BY RONIX ##
|
||||
## TRAVIANZ ##
|
||||
############################################################
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
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";}
|
||||
//attacker
|
||||
if ($database->getUserField($dataarray[0],'username',0)!="??") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[1],'name')!="??") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28],'username',0)!="??") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28],'id',0)."\">".$database->getUserField($dataarray[28],'username',0)."</a>";
|
||||
}else{
|
||||
$defuser_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name')!="??") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29],'name')."</a>";
|
||||
}else{
|
||||
$deffrom_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if(isset($dataarray[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[148]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
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 or $dataarray[161] != 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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0) $tdclass='class="none"'; else $tdclass='';
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<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
|
||||
?>
|
||||
<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 }
|
||||
if ($dataarray[165]!='' and $dataarray[166]!=''){ //hero
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[165]; ?>" src="img/x.gif" alt="Hero" title="Hero" />
|
||||
<?php echo $dataarray[166]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if(isset($dataarray[164]) && $dataarray[164] !=''){ //troop not return
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<?php echo $dataarray[164]; ?>
|
||||
</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>
|
||||
</td></tr></tbody></table>
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ echo $defuser_url." from the village ".$deffrom_url; } 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>";
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
echo "<td>$dataarray[149]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){
|
||||
if ($dataarray[150]==0){$tdclass1='class="none"';}
|
||||
echo "<td $tdclass1>$dataarray[150]</td>";
|
||||
}
|
||||
?>
|
||||
</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],"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="<?php echo $colspan2; ?>"><?php if($targettribe=='5'){ echo $defuser_url." from the village ".$deffrom_url; } 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; ?>
|
||||
<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],"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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='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=119;$i<=128;$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 }} ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,404 +0,0 @@
|
||||
<?php
|
||||
$topic = $database->getNotice2($_GET['id'], 'topic');
|
||||
$time = $database->getNotice2($_GET['id'], 'time');
|
||||
$data = $database->getNotice2($_GET['id'], 'data');
|
||||
$dataarray = explode(",",$data);
|
||||
if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";}
|
||||
$colspan2 = 10;
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $topic; ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($time); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span> <span>hour</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="attacker"><thead>
|
||||
<tr>
|
||||
<td class="role">Attacker</td>
|
||||
<td colspan="<?php echo $colspan; ?>"><a href="spieler.php?uid=<?php echo $database->getUserField($dataarray[0],"id",0); ?>"><?php echo $database->getUserField($dataarray[0],"username",0); ?></a> from the village <a href="karte.php?d=<?php echo $dataarray[1]."&c=".$generator->getMapCheck($dataarray[1]); ?>"><?php echo $database->getVillageField($dataarray[1],"name"); ?></a></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="units">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" alt=\"Hero\" /></td>";
|
||||
}
|
||||
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<=12;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if (isset($dataarray[147]) and $dataarray[147] != 0){
|
||||
echo "<td>$dataarray[147]</td>";
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=13;$i<=22;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
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[147]) and $dataarray[147]!=0){
|
||||
if ($dataarray[161]==0){$tdclass='class="none"';}
|
||||
echo "<td $tdclass>$dataarray[161]</td>";
|
||||
}
|
||||
}
|
||||
echo "</tr></tbody>";
|
||||
if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[139]; ?>" src="img/x.gif" alt="Ram" title="Ram" />
|
||||
<?php echo $dataarray[140]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[141]!='' and $dataarray[142]!=''){ //cata
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[141]; ?>" src="img/x.gif" alt="Catapult" title="Catapult" />
|
||||
<?php echo $dataarray[142]; ?>
|
||||
</td></tr></tbody>
|
||||
<?php }
|
||||
if ($dataarray[143]!='' and $dataarray[144]!=''){ //chief
|
||||
?>
|
||||
<tbody class="goods"><tr><th>Information</th><td colspan="<?php echo $colspan; ?>">
|
||||
<img class="unit u<?php echo $dataarray[143]; ?>" src="img/x.gif" alt="Chief" title="Chief" />
|
||||
<?php echo $dataarray[144]; ?>
|
||||
</td></tr></tbody>
|
||||
<?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>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<?php
|
||||
$targettribe=$dataarray['31'];
|
||||
|
||||
|
||||
if ($dataarray[34]=='1'){
|
||||
$start=1; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='1'){ 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=35;$i<=44;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=45;$i<=54;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php }
|
||||
if ($dataarray[55]=='1'){
|
||||
$start=11;?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='2'){ 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=56;$i<=65;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=66;$i<=75;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[76]=='1'){
|
||||
$start=21; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?php if($targettribe=='3'){ 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=77;$i<=86;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
echo "<tr><th>Casualties</th>";
|
||||
for($i=87;$i<=96;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</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="<?php echo $colspan2; ?>"><?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="<?php echo $colspan2; ?>"><?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; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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=108;$i<=117;$i++) {
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($dataarray[118]=='1'){
|
||||
$start=41; ?>
|
||||
<table cellpadding="1" cellspacing="1" class="defender">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="role">Defender</th>
|
||||
<td colspan="<?php echo $colspan2; ?>"><?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=119;$i<=128;$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 }} ?>
|
||||
</td></tr></tbody></table>
|
||||
@@ -1,65 +0,0 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$rep[0]['data']);
|
||||
if($dataarray[13]!='' or $dataarray!=0){$colspan="11";}else{$colspan="10";}
|
||||
if ($database->getUserField($dataarray[1],'username',0)!="??" || $dataarray[1] == 0) {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[1],"id",0)."\">".($dataarray[1] == 0 ? "taskmaster" : $database->getUserField($dataarray[1],'username',0))."</a>";
|
||||
}else{
|
||||
$user_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
if($database->getVillageField($dataarray[0],'name')!="??" || $dataarray[0] == 0) {
|
||||
$from_url=($dataarray[0] == 0)? "village of the elders" : "<a href=\"karte.php?d=".$dataarray[0]."&c=".$generator->getMapCheck($dataarray[0])."\">".$database->getVillageField($dataarray[0],'name')."</a>";
|
||||
}else{
|
||||
$from_url="<font color=\"grey\"><b>??</b></font>";
|
||||
}
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="report_surround">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Subject:</th>
|
||||
<th><?php echo $rep[0]['topic']; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
$date = $generator->procMtime($rep[0]['time']); ?>
|
||||
<td class="sent">Sent:</td>
|
||||
<td>on <?php echo $date[0]."<span> at ".$date[1]; ?></span><span> </span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr><td colspan="2" class="empty"></td></tr>
|
||||
<tr><td colspan="2" class="report_content">
|
||||
<table cellpadding="1" cellspacing="1" id="reinforcement">
|
||||
|
||||
<thead><tr>
|
||||
<td class="role">sender</td><td colspan="<?php echo $colspan ?>"><?php echo $user_url;?> from the village <?php echo $from_url;?></td></tr></thead>
|
||||
<tbody class="units"><tr>
|
||||
<td> </td>
|
||||
<?php
|
||||
$tribe = $dataarray[2];
|
||||
$start = ($tribe-1)*10+1;
|
||||
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>";
|
||||
}
|
||||
if($dataarray[13]!=0){
|
||||
echo "<td><img src=\"img/x.gif\" class=\"unit uhero\" title=\"Hero\" /></td>";
|
||||
}
|
||||
echo "</tr><tr><th>Troops</th>";
|
||||
for($i=3;$i<13;$i++) {
|
||||
$unitarray['u'.($i-3+$start).''] = $dataarray[$i];
|
||||
if($dataarray[$i] == 0) {
|
||||
echo "<td class=\"none\">0</td>";
|
||||
}
|
||||
else {
|
||||
echo "<td>".$dataarray[$i]."</td>";
|
||||
}
|
||||
}
|
||||
if($dataarray[13] != 0) {
|
||||
echo "<td>".$dataarray[13]."</td>";
|
||||
$unitarray['hero'] = 1;
|
||||
}
|
||||
|
||||
?></tr></tbody>
|
||||
<tbody class="infos"><tr><th>upkeep</th><td colspan="11">
|
||||
<?php echo $technology->getUpkeep($unitarray,$dataarray[2]); ?><img src="img/x.gif" class="r4" title="Crop" alt="Crop" />per hour</td>
|
||||
</tr></tbody>
|
||||
</table></td></tr></tbody></table>
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$archive = $database->getNotice2($_GET['id'], 'archive');
|
||||
include("".$archive.".tpl");
|
||||
?>
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
$archive = $database->getNotice2($_GET['id'], 'archive');
|
||||
include("".$archive."x.tpl");
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$noticeClass =
|
||||
["Scout Report",
|
||||
["Scout Report",
|
||||
"Won as attacker without losses",
|
||||
"Won as attacker with losses",
|
||||
"Lost as attacker with losses",
|
||||
@@ -24,38 +24,17 @@ $noticeClass =
|
||||
"Lost scouting as defender",
|
||||
"Scout Report"];
|
||||
?>
|
||||
<form method="post" action="berichte.php" name="msg">
|
||||
<table cellpadding="1" cellspacing="1" id="overview"
|
||||
class="row_table_data">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Subject:</th>
|
||||
<th class="sent"><a href="berichte.php?s=0&o=1">Sent</a></th>
|
||||
<th colspan="1">Subject:</th>
|
||||
<th class="sent"><a href="admin.php?p=report&s=0&o=1">Sent</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th><?php
|
||||
$MyGold = mysqli_query($GLOBALS["link"], "SELECT * FROM " . TB_PREFIX . "users WHERE `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
|
||||
$golds = mysqli_fetch_array($MyGold);
|
||||
$date2 = strtotime("NOW");
|
||||
if ($golds['plus'] <= $date2) {
|
||||
?>
|
||||
<?php } else { ?>
|
||||
<input class="check" type="checkbox" id="s10" name="s10"
|
||||
onclick="Allmsg(this.form);" />
|
||||
<?php } ?></th>
|
||||
<th class="buttons">
|
||||
<?php
|
||||
|
||||
if ($session->plus) {
|
||||
if (isset($_GET['t']) && $_GET['t'] == 5) {
|
||||
echo "<button name=\"start\" value=\"back\" alt=\"back\" id=\"btn_back\" class=\"trav_buttons\" /> Back </button>";
|
||||
} else {
|
||||
echo "<button name=\"archive\" value=\"Archive\" alt=\"Archive\" id=\"btn_archiv\" class=\"trav_buttons\" /> Archive </button>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th class=navi>
|
||||
<?php
|
||||
@@ -73,45 +52,35 @@ if ($session->plus) {
|
||||
}
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['s'])) {
|
||||
$s = $_GET['s'];
|
||||
} else {
|
||||
$s = 0;
|
||||
}
|
||||
if (isset($_GET['s'])) $s = $_GET['s'];
|
||||
else $s = 0;
|
||||
|
||||
$name = 1;
|
||||
$count = 0;
|
||||
for ($i = (1 + $s); $i <= (10 + $s); $i ++) {
|
||||
if (count($rep1) >= $i) {
|
||||
echo "<tr><td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n" . $name . "\" value=\"" . $rep1[$i - 1]['id'] . "\" /></td>
|
||||
echo "<tr>
|
||||
<td class=\"sub\">";
|
||||
$type = $rep1[$i - 1]['ntype'];
|
||||
if ($type >= 15 || $type <= 17) {
|
||||
// $type = $type-11;
|
||||
if($type == 23) $type = 22;
|
||||
if ($type >= 15 && $type <= 17) {
|
||||
$type -= 11;
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
} else if ($type >= 18 || $type <= 22) {
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
} else if ($type >= 18 && $type <= 22) {
|
||||
echo "<img src=\"../gpack/travian_default/img/scouts/$type.gif\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
} else {
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
}
|
||||
echo "<div><a href=\"admin.php?p=report&bid=" . $rep1[$i - 1]['id'] . "\">" . $rep1[$i - 1]['topic'] . "</a> ";
|
||||
if ($rep1[$i - 1]['viewed'] == 0) {
|
||||
echo "(new)";
|
||||
}
|
||||
$date = $generator->procMtime($rep1[$i - 1]['time']);
|
||||
echo "</div></td><td class=\"dat\">" . $date[0] . " " . $date[1] . "</td></tr>";
|
||||
}
|
||||
$name ++;
|
||||
}
|
||||
if (count($rep1) == 0) {
|
||||
echo "<td colspan=\"3\" class=\"none\">There are no reports available.</td></tr>";
|
||||
}
|
||||
?>
|
||||
if (count($rep1) == 0) echo "<td colspan=\"2\" class=\"none\">There are no reports available.</td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -31,14 +31,7 @@
|
||||
<br>
|
||||
|
||||
<?php
|
||||
error_reporting(0);
|
||||
if($_GET['nid'] and ereg('^[0-9]', $_GET['nid']))
|
||||
{
|
||||
include('msg.tpl');
|
||||
}
|
||||
elseif($_GET['bid'] and ereg('^[0-9]', $_GET['bid']))
|
||||
{
|
||||
include('report.tpl');
|
||||
}
|
||||
if($_GET['nid'] && is_numeric($_GET['nid'])) include('msg.tpl');
|
||||
elseif($_GET['bid'] && is_numeric($_GET['bid'])) include('report.tpl');
|
||||
?>
|
||||
|
||||
|
||||
+31
-11
@@ -8,10 +8,33 @@
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
include_once("../GameEngine/Generator.php");
|
||||
include_once("../GameEngine/Technology.php");
|
||||
include_once("../GameEngine/Message.php");
|
||||
|
||||
$msg = $database->getMessage($_GET['nid'],3);
|
||||
if($msg)
|
||||
{ ?>
|
||||
if(isset($_GET['nid']) && is_numeric($_GET['nid'])) $msg = $database->getMessage($_GET['nid'], 3);
|
||||
else
|
||||
{
|
||||
$sql = "SELECT * FROM " . TB_PREFIX . "mdata ORDER BY time DESC ";
|
||||
$result = mysqli_query($GLOBALS["link"], $sql);
|
||||
$allMessages = $database->mysqli_fetch_all($result);
|
||||
}
|
||||
|
||||
if(!empty($allMessages)){
|
||||
?>
|
||||
<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">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<h1>Players Messages</h1>
|
||||
<div id="content" class="messages" style="padding: 0;">
|
||||
<?php
|
||||
include("Message/inbox.tpl");
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif(!empty($msg)){
|
||||
?>
|
||||
<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">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
@@ -20,10 +43,10 @@ if($msg)
|
||||
|
||||
<br />
|
||||
|
||||
<span class="b">Send To</span>: <?php echo $database->getUserField($msg[0]['target'],'username',0);?><br />
|
||||
<span class="b">Sent to</span>: <?php echo $database->getUserField($msg[0]['target'],'username',0);?>
|
||||
|
||||
<div id="content" class="messages">
|
||||
<h1>Messages</h1>
|
||||
<div style="padding: 43px 0 0;" id="content" class="messages">
|
||||
<h1>Message</h1>
|
||||
<div id="read_head" class="msg_head"></div>
|
||||
<div id="read_content" class="msg_content">
|
||||
<img src="../img/x.gif" id="label" class="read" alt="">
|
||||
@@ -45,15 +68,12 @@ $player = $msg[0]['player'];
|
||||
$coor = $msg[0]['coor'];
|
||||
$report = $msg[0]['report'];
|
||||
include("../GameEngine/BBCode.php");
|
||||
echo stripslashes(nl2br($bbcoded));
|
||||
echo stripslashes(nl2br($bbcoded));
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="read_foot" class="msg_foot"></div>
|
||||
</div><?php
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Message ID ".$_GET['nid']." doesn't exist!";
|
||||
}
|
||||
else echo "Message ID ".$_GET['nid']." doesn't exist!";
|
||||
?>
|
||||
@@ -11,6 +11,7 @@
|
||||
include_once("../GameEngine/Generator.php");
|
||||
include_once("../GameEngine/Technology.php");
|
||||
include_once("../GameEngine/Message.php");
|
||||
|
||||
if ($_GET['bid']) $rep = $database->getNotice2($_GET['bid']);
|
||||
else
|
||||
{
|
||||
@@ -25,8 +26,7 @@ if($rep1)
|
||||
<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">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<h1>Reports</h1>
|
||||
<h1>Players Report</h1>
|
||||
<div id="content" class="reports" style="padding: 0;">
|
||||
<?php
|
||||
include("Notice/all.tpl");
|
||||
@@ -40,17 +40,15 @@ elseif($rep)
|
||||
<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">
|
||||
<link href="../<?php echo GP_LOCATE; ?>travian.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<link href="../<?php echo GP_LOCATE; ?>lang/en/lang.css?e21d2" rel="stylesheet" type="text/css">
|
||||
<br />
|
||||
<span class="b">Report of</span>: <?php echo $database->getUserField($rep['uid'],'username',0);?><br />
|
||||
|
||||
<div id="content" class="reports">
|
||||
<span class="b" style="padding: 0 4px 0;">Report of</span>: <?php echo $database->getUserField($rep['uid'], 'username', 0); ?><br />
|
||||
<div style="padding: 43px 4px 0;" id="content" class="reports">
|
||||
<h1>Report</h1>
|
||||
<?php
|
||||
$message = New Message();
|
||||
$type = $rep['ntype'];
|
||||
$message->readingNotice['data'] = $rep['data'];
|
||||
include ("../Templates/Notice/" . $message->getReportType($type) . ".tpl");
|
||||
<?php
|
||||
$isAdmin = true;
|
||||
$message = new Message();
|
||||
$message->readingNotice = $rep;
|
||||
include ("../Templates/Notice/".$message->getReportType($rep['ntype']).".tpl");
|
||||
}
|
||||
else echo "Report ID ".$_GET['bid']." doesn't exist!";
|
||||
?>
|
||||
|
||||
+7
-2
@@ -49,7 +49,11 @@ if (!empty($_GET['p'])) {
|
||||
break;
|
||||
|
||||
case 'report':
|
||||
$subpage = 'Players Reported';
|
||||
$subpage = 'Players Report';
|
||||
break;
|
||||
|
||||
case 'message':
|
||||
$subpage = 'Players Message';
|
||||
break;
|
||||
|
||||
case 'map':
|
||||
@@ -459,7 +463,8 @@ if (!empty($_GET['p'])) {
|
||||
<a href="?p=online">Online Users</a>
|
||||
<a href="?p=notregistered">Players Not Activated</a>
|
||||
<a href="?p=inactive">Players Inactivate</a>
|
||||
<a href="?p=report">Players Reported</a>
|
||||
<a href="?p=report">Players Report</a>
|
||||
<a href="?p=msg">Players Message</a>
|
||||
<a href="?p=map">Map</a>
|
||||
<br />
|
||||
<a href="#"><b>Search</b></a>
|
||||
|
||||
+13
-5
@@ -3,27 +3,35 @@ $dataarray = explode(",",$message->readingNotice['data']);
|
||||
$colspan = (isset($dataarray[178]) && $dataarray[178] > 0) ? 11 : 10;
|
||||
$spy = !empty($dataarray[177]) && !empty($dataarray[176]) && empty($dataarray[195]);
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
//Attacker
|
||||
if ($database->getUserField($dataarray[0], 'username', 0) != "[?]") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
$user_url="<a href=\"".$playerUrl.$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
}
|
||||
else $user_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
|
||||
if($database->getVillageField($dataarray[1], 'name') != "[?]") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1], 'name')."</a>";
|
||||
$from_url="<a href=\"".$mapUrl.$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1], 'name')."</a>";
|
||||
}else $from_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28], 'username', 0) != "[?]") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28], 'id', 0)."\">".$database->getUserField($dataarray[28], 'username', 0)."</a>";
|
||||
$defuser_url="<a href=\"".$playerUrl.$database->getUserField($dataarray[28], 'id', 0)."\">".$database->getUserField($dataarray[28], 'username', 0)."</a>";
|
||||
}
|
||||
else $defuser_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
$deffrom_url="<a href=\"".$mapUrl.$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29],'name') != "[?]") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29], 'name')."</a>";
|
||||
$deffrom_url="<a href=\"".$mapUrl.$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29], 'name')."</a>";
|
||||
}
|
||||
else $deffrom_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
|
||||
+11
-2
@@ -1,12 +1,21 @@
|
||||
<?php
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
if ($database->getUserField($dataarray[0],'username',0) != "[?]") {
|
||||
$user_url = "<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
$user_url = "<a href=\"".$playerUrl.$database->getUserField($dataarray[0],'id',0)."\">".$database->getUserField($dataarray[0],'username',0)."</a>";
|
||||
}
|
||||
else $user_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->getVillageField($dataarray[1],'name') != "[?]") {
|
||||
$from_url = "<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
$from_url = "<a href=\"".$mapUrl.$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1],'name')."</a>";
|
||||
}
|
||||
else $from_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
?>
|
||||
|
||||
+11
-2
@@ -1,14 +1,23 @@
|
||||
<?php
|
||||
//reinforcement is underattack
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
$colspan = (isset($dataarray[24]) && $dataarray[24] > 0) ? 11 : 10;
|
||||
if ($database->getUserField($dataarray[0], 'username', 0) != "[?]") {
|
||||
$user_url = "<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
$user_url = "<a href=\"".$playerUrl.$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
}
|
||||
else $user_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->getVillageField($dataarray[26], 'name') != "[?]") {
|
||||
$from_url = "<a href=\"karte.php?d=".$dataarray[26]."&c=".$generator->getMapCheck($dataarray[26])."\">".$database->getVillageField($dataarray[26], 'name')."</a>";
|
||||
$from_url = "<a href=\"".$mapUrl.$dataarray[26]."&c=".$generator->getMapCheck($dataarray[26])."\">".$database->getVillageField($dataarray[26], 'name')."</a>";
|
||||
}
|
||||
else $from_url = "<font color=\"grey\"><b>[?]</b></font>";
|
||||
?>
|
||||
|
||||
+13
-5
@@ -9,28 +9,36 @@ $dataarray = explode(",",$message->readingNotice['data']);
|
||||
$colspan = (isset($dataarray[184]) && $dataarray[184] > 0) ? 11 : 10;
|
||||
$colspan2 = 10;
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
//Attacker
|
||||
if ($database->getUserField($dataarray[0], 'username', 0) != "[?]") {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
$user_url="<a href=\"".$playerUrl.$database->getUserField($dataarray[0], 'id', 0)."\">".$database->getUserField($dataarray[0], 'username', 0)."</a>";
|
||||
}
|
||||
else $user_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
|
||||
if($database->getVillageField($dataarray[1],'name') != "[?]") {
|
||||
$from_url="<a href=\"karte.php?d=".$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1], 'name')."</a>";
|
||||
$from_url="<a href=\"".$mapUrl.$dataarray[1]."&c=".$generator->getMapCheck($dataarray[1])."\">".$database->getVillageField($dataarray[1], 'name')."</a>";
|
||||
}
|
||||
else $from_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
//defender
|
||||
if ($database->getUserField($dataarray[28], 'username', 0) != "[?]") {
|
||||
$defuser_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[28], 'id', 0)."\">".$database->getUserField($dataarray[28], 'username', 0)."</a>";
|
||||
$defuser_url="<a href=\"".$playerUrl.$database->getUserField($dataarray[28], 'id', 0)."\">".$database->getUserField($dataarray[28], 'username', 0)."</a>";
|
||||
}
|
||||
else $defuser_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->isVillageOases($dataarray[29])){
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
$deffrom_url="<a href=\"".$mapUrl.$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$dataarray[30]."</a>";
|
||||
}elseif($database->getVillageField($dataarray[29], 'name') != "[?]") {
|
||||
$deffrom_url="<a href=\"karte.php?d=".$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29], 'name')."</a>";
|
||||
$deffrom_url="<a href=\"".$mapUrl.$dataarray[29]."&c=".$generator->getMapCheck($dataarray[29])."\">".$database->getVillageField($dataarray[29], 'name')."</a>";
|
||||
}
|
||||
else $deffrom_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
?>
|
||||
|
||||
+10
-2
@@ -2,13 +2,21 @@
|
||||
$dataarray = explode(",",$message->readingNotice['data']);
|
||||
$colspan = (!empty($dataarray[13]) && $dataarray[13] > 0) ? 11 : 10;
|
||||
|
||||
if(!isset($isAdmin)){
|
||||
$mapUrl = "karte.php?d=";
|
||||
$playerUrl = "spieler.php?uid=";
|
||||
}elseif($isAdmin){
|
||||
$mapUrl = "admin.php?p=village&did=";
|
||||
$playerUrl = "admin.php?p=player&uid=";
|
||||
}
|
||||
|
||||
if ($database->getUserField($dataarray[1], 'username', 0) != "[?]" || $dataarray[1] == 0) {
|
||||
$user_url="<a href=\"spieler.php?uid=".$database->getUserField($dataarray[1], "id", 0)."\">".($dataarray[1] == 0 ? "taskmaster" : $database->getUserField($dataarray[1], 'username', 0))."</a>";
|
||||
$user_url="<a href=\"".$playerUrl.$database->getUserField($dataarray[1], "id", 0)."\">".($dataarray[1] == 0 ? "taskmaster" : $database->getUserField($dataarray[1], 'username', 0))."</a>";
|
||||
}
|
||||
else $user_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
|
||||
if($database->getVillageField($dataarray[0],'name') != "[?]" || $dataarray[0] == 0) {
|
||||
$from_url=($dataarray[0] == 0)? "village of the elders" : "<a href=\"karte.php?d=".$dataarray[0]."&c=".$generator->getMapCheck($dataarray[0])."\">".$database->getVillageField($dataarray[0], 'name')."</a>";
|
||||
$from_url=($dataarray[0] == 0)? "village of the elders" : "<a href=\"".$mapUrl.$dataarray[0]."&c=".$generator->getMapCheck($dataarray[0])."\">".$database->getVillageField($dataarray[0], 'name')."</a>";
|
||||
}
|
||||
else $from_url="<font color=\"grey\"><b>[?]</b></font>";
|
||||
?>
|
||||
|
||||
@@ -69,7 +69,7 @@ for($i = (1 + $s); $i <= (10 + $s); $i++){
|
||||
$type = (isset($_GET['t']) && $_GET['t'] == 5) ? $message->noticearray[$i - 1]['archive'] : $message->noticearray[$i - 1]['ntype'];
|
||||
if($type == 23) $type = 22;
|
||||
if($type >= 15 && $type <= 17){
|
||||
$type = $type - 11;
|
||||
$type -= 11;
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
}else if($type >= 18 && $type <= 22){
|
||||
echo "<img src=\"gpack/travian_default/img/scouts/$type.gif\" alt=\"" . $noticeClass[$type] . "\" title=\"" . $noticeClass[$type] . "\" />";
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
#################################################################################
|
||||
|
||||
|
||||
$txt="<h1><b>Wonder of the World Villages</b></h1>\n\nCountless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire.\nSoon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat.\nBut to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations.\nTens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man.\nNow begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend.\n\n<img src=\"img/x.gif\" class=\"WWVillagesAnnouncement\" title=\"WW village\" alt=\"WW village\">\n\nTo conquer one, the following things must happen:\n\n1. You must attack the village (NO Raid!)\n2. WIN the Attack\n3. Destroy the RESIDENCE\n4. You must decrease the loyalty to 0 with : SENATORS , CHIEF , CHIEFTAIN\n5. You must have enough culture points to conquer the village\n\nIf not, the next attack on that village, winning with a SENATORS , CHIEF , CHIEFTAIN and empty slots in RESIDENCE/PALACE will take the village.\n\nTo build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 50, from 51 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work!\n\nThe construction plans are conquerable immediately when they appear to the server. \n\nThere will be a countdown in game, showing the exact time of the release, 5 days prior to the launch. ";
|
||||
$txt="<h1><b>World Wonder Construction Plans</b></h1>\n\n\nMany moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called \'Wonders of the World\', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. \n\nHowever, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). \n\nSadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. \n\nToday, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. \n\nIn the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though!\n\n<img src=\"img/x.gif\" class=\"WWBuildingPlansAnnouncement\" title=\"Ancient Construction Plan\" alt=\"Ancient Construction Plan\">\n\nTo steal a set of Construction Plans from the Natars, the following things must happen:\n- You must Attack the village (NOT Raid!)\n- You must WIN the Attack\n- You must DESTROY the Treasure Chamber (Treasury)\n- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans\n- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from\nNOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans.\n\n\n\nTo build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT be contain a World Wonder.\n\nTo build a World Wonder, you must own the Construction Plans yourself (you = the World Wonder Village Owner) from level 0 to 50, and then from level 51 to 100 you will need an additional set of Construction Plans in your Alliance! Two sets of Construction Plans in the World Wonder Village Account will not work!";
|
||||
|
||||
//bbcode = html code
|
||||
$txt = preg_replace("/\[b\]/is",'<b>', $txt);
|
||||
|
||||
@@ -197,14 +197,6 @@ td.email {
|
||||
#report_content table thead th, #report_content table tfoot th {font-weight:bold; text-align:center; background:url(un/a/c2.gif) repeat;}
|
||||
#report_content table thead td, #report_content table tfoot td {text-align:center; background-color:#F3F3F3;}
|
||||
|
||||
#report_content table td, #report_content, table th {
|
||||
border:1px solid silver;
|
||||
font-size:13px;
|
||||
font-weight:normal;
|
||||
text-align:left;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
||||
/* read report - content */
|
||||
#report_content {padding:15px 2px 0px;}
|
||||
#report_content table {margin-bottom:15px;}
|
||||
|
||||
+5
-5
@@ -17,10 +17,10 @@ font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
/* Fix */
|
||||
.online1, .online2, .online3, .online4, .online5 {width:12px; height:12px;}
|
||||
/* Oberer Layer mit Menue ohne Werbung */
|
||||
#ltop1 {position:relative; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mp.gif); background-repeat:repeat-x; left:0px; top:0px;}
|
||||
#ltop1 {position:relative; padding-left: 25%; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mp.gif); background-repeat:repeat-x; left:0px; top:0px;}
|
||||
|
||||
/* Oberer Layer mit Menue mit Werbung */
|
||||
#ltop2 {position:relative; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mw.gif); background-repeat:repeat-x; left:0px; top:0px;}
|
||||
#ltop2 {position:relative; padding-left: 25%; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mw.gif); background-repeat:repeat-x; left:0px; top:0px;}
|
||||
|
||||
/* - VERALTET - Oberer Layer mit Mindestbreite fuer IE6 */
|
||||
/*#ltop3 {width:777px;} */
|
||||
@@ -29,7 +29,7 @@ font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
#ltop4 {width:911px;}
|
||||
|
||||
/* Den gesamten mittleren Teil umschliessendes Div */
|
||||
#lmidall {position:relative; min-width:980px;}
|
||||
#lmidall {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;}
|
||||
|
||||
/* Den gesamten mittleren Teil umschliessendes Div */
|
||||
#lmidlc {position:relative; min-width:682px; float:left;}
|
||||
@@ -461,8 +461,8 @@ background-image: url(../un/a/c2.gif);
|
||||
a.gen,a.genmed,a.gensmall { color: #71D000; text-decoration: none; }
|
||||
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #00BC00; text-decoration: underline; }
|
||||
|
||||
th {
|
||||
color: #FFFFFF; font-size: 11px; font-weight : bold;
|
||||
th {
|
||||
color: #000000; font-size: 11px; font-weight : bold;
|
||||
background-color: #777777; height: 22px;
|
||||
background-image: url(../un/a/c3.gif);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user