fix link to village in market + now when you delete report you can see it in alliance attack and in village view

This commit is contained in:
unknown
2012-05-02 15:12:28 +03:00
parent 2ff7361ed9
commit 1501ac81ba
3 changed files with 10 additions and 8 deletions
+6 -2
View File
@@ -63,8 +63,10 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
}
$name = 1;
$count = 0;
for($i=(1+$s);$i<=(10+$s);$i++) {
if(count($message->noticearray) >= $i) {
if($message->noticearray[$i-1]['del'] == 0){
echo "<tr><td class=\"sel\"><input class=\"check\" type=\"checkbox\" name=\"n".$name."\" value=\"".$message->noticearray[$i-1]['id']."\" /></td>
<td class=\"sub\">";
$type = (isset($_GET['t']) && $_GET['t'] == 5)? $message->noticearray[$i-1]['archive'] : $message->noticearray[$i-1]['ntype'];
@@ -82,10 +84,12 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
}
$date = $generator->procMtime($message->noticearray[$i-1]['time']);
echo "</div></td><td class=\"dat\">".$date[0]." ".$date[1]."</td></tr>";
}
}else{
$count =+ 1;
}}
$name++;
}
if(count($message->noticearray) == 0) {
if(count($message->noticearray) == $count) {
echo "<td colspan=\"3\" class=\"none\">There are no reports available.</td></tr>";
}
?>