fix: Admin WW image incorrect

#365
This commit is contained in:
Martin Ambrus
2017-11-26 14:59:23 +01:00
parent d72290bb35
commit 2d824220e5
2 changed files with 34 additions and 0 deletions
+16
View File
@@ -171,6 +171,22 @@ if(isset($id))
{
echo "<img src=\"../img/x.gif\" class=\"dx1 g16e\">";
}
$resourcearray = $database->getResourceLevel($village['wref']);
if($resourcearray['f99t'] == 40) {
if($resourcearray['f99'] >= 0 && $resourcearray['f99'] <= 19) {
echo '<img class="ww g40" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 20 && $resourcearray['f99'] <= 39) {
echo '<img class="ww g40_1" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 40 && $resourcearray['f99'] <= 59) {
echo '<img class="ww g40_2" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 60 && $resourcearray['f99'] <= 79) {
echo '<img class="ww g40_3" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 80 && $resourcearray['f99'] <= 99) {
echo '<img class="ww g40_4" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] == 100) {
echo '<img class="ww g40_5" src="img/x.gif" alt="Worldwonder">'; }
}
?>
<div id="levels" class="on">
<?php
+18
View File
@@ -278,6 +278,7 @@ if(isset($id))
$level = $fdata['f'.($f)];
echo "<img src=\"../img/x.gif\" class=\"reslevel rf".$f." level".$level."\">";
}
?>
</div>
<div id="map_details">
@@ -337,6 +338,23 @@ if(isset($id))
{
echo "<img src=\"../img/x.gif\" class=\"dx1 g16e\">";
}
$resourcearray = $database->getResourceLevel($village['wref']);
if($resourcearray['f99t'] == 40) {
if($resourcearray['f99'] >= 0 && $resourcearray['f99'] <= 19) {
echo '<img class="ww g40" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 20 && $resourcearray['f99'] <= 39) {
echo '<img class="ww g40_1" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 40 && $resourcearray['f99'] <= 59) {
echo '<img class="ww g40_2" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 60 && $resourcearray['f99'] <= 79) {
echo '<img class="ww g40_3" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] >= 80 && $resourcearray['f99'] <= 99) {
echo '<img class="ww g40_4" src="img/x.gif" alt="Worldwonder">'; }
if($resourcearray['f99'] == 100) {
echo '<img class="ww g40_5" src="img/x.gif" alt="Worldwonder">'; }
}
?>
<div id="levels" class="on">
<?php