reports
@@ -0,0 +1,4 @@
|
||||
<Files ~ "\.tpl$">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
@@ -0,0 +1,284 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,287 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,379 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,358 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,301 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,301 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,274 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,403 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,384 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,358 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,301 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,358 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,301 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,403 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,345 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,290 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,391 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,403 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,391 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,403 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,385 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,403 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,455 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,404 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$archive = $database->getNotice2($_GET['id'], 'archive');
|
||||
include("".$archive.".tpl");
|
||||
?>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$archive = $database->getNotice2($_GET['id'], 'archive');
|
||||
include("".$archive."x.tpl");
|
||||
?>
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
$noticeClass = array("Scout Report","Won as attacker without losses","Won as attacker with losses","Lost as attacker with losses","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Lost as defender without losses","Reinforcement arrived","","Wood Delivered","Clay Delivered","Iron Delivered","Crop Delivered","","Won as defender without losses","Won as defender with losses","Lost as defender with losses","Won scouting as attacker","Lost scouting as attacker","Won scouting as defender","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>
|
||||
</tr>
|
||||
</thead><tfoot>
|
||||
<tr><th><?php
|
||||
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error());
|
||||
$golds = mysql_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"><input name="del" type="image" id="btn_delete" class="dynamic_img" src="img/x.gif" value="delete" alt="delete" />
|
||||
<?php if($session->plus) {
|
||||
if(isset($_GET['t']) && $_GET['t'] == 5) {
|
||||
echo "<input name=\"start\" type=\"image\" value=\"back\" alt=\"back\" id=\"btn_back\" class=\"dynamic_img\" src=\"img/x.gif\" />";
|
||||
}
|
||||
else {
|
||||
echo "<input name=\"archive\" type=\"image\" value=\"Archive\" alt=\"Archive\" id=\"btn_archiv\" class=\"dynamic_img\" src=\"img/x.gif\" />";
|
||||
}
|
||||
}?>
|
||||
</th>
|
||||
<th class=navi>
|
||||
<?php
|
||||
if(!isset($_GET['s']) && count($rep1) < 10) {
|
||||
echo "«»";
|
||||
}
|
||||
else if (!isset($_GET['s']) && count($rep1) > 10) {
|
||||
echo "«<a href=\"?p=report&s=10&o=0\">»</a>";
|
||||
}
|
||||
else if(isset($_GET['s']) && count($rep1) > $_GET['s']) {
|
||||
if(count($rep1) > ($_GET['s']+10) && $_GET['s']-10 < count($rep1) && $_GET['s'] != 0) {
|
||||
echo "<a href=\"?p=report&s=".($_GET['s']-10)."&o=0\">«</a><a href=\"?p=report&s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else if(count($rep1) > $_GET['s']+10) {
|
||||
echo "«<a href=\"?p=report&s=".($_GET['s']+10)."&o=0\">»</a>";
|
||||
}
|
||||
else {
|
||||
echo "<a href=\"?p=report&s=".($_GET['s']-10)."&o=0\">«</a>»";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
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>
|
||||
<td class=\"sub\">";
|
||||
$type = $rep1[$i-1]['ntype'];
|
||||
if($type==15 or $type==16 or $type==17){
|
||||
//$type = $type-11;
|
||||
echo "<img src=\"img/x.gif\" class=\"iReport iReport$type\" alt=\"".$noticeClass[$type]."\" title=\"".$noticeClass[$type]."\" />";
|
||||
}else if($type==18 or $type==19 or $type==20 or $type==21 or $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=message&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>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 8.7 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.4 KiB |