change icon when rat arriving (is not need to be of nature as i know) and fix rat in report (not sure that work %100 but i think so)

This commit is contained in:
unknown
2012-04-21 13:47:22 +03:00
parent a39bea6549
commit 20af44b3a6
12 changed files with 829 additions and 38 deletions
+4 -4
View File
@@ -5,7 +5,7 @@
## GIT HUB REV ##
############################################################
$dataarray = explode(",",$message->readingNotice['data']);
if($dataarray[151]!='' or $dataarray!=0){$colspan="11";}else{$colspan="10";}
if(isset($dataarray[151]) and $dataarray[151]!=0){$colspan="11";}else{$colspan="10";}
?>
<table cellpadding="1" cellspacing="1" id="report_surround">
<thead>
@@ -39,7 +39,7 @@ $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]!="" or $dataarray[151]!=0){
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>";
@@ -51,7 +51,7 @@ for($i=3;$i<=12;$i++) {
echo "<td>".$dataarray[$i]."</td>";
}
}
if ($dataarray[151]!="" or $dataarray[151]!=0){
if(isset($dataarray[151]) and $dataarray[151]!=0){
echo "<td>$dataarray[151]</td>";
}
echo "<tr><th>Casualties</th>";
@@ -63,7 +63,7 @@ for($i=13;$i<=22;$i++) {
echo "<td>".$dataarray[$i]."</td>";
}
}
if ($dataarray[151]!="" or $dataarray[151]!=0){
if(isset($dataarray[151]) and $dataarray[151]!=0){
if ($dataarray[152]==0){$tdclass='class="none"';}
echo "<td $tdclass>$dataarray[152]</td>";
}