imagesize

This commit is contained in:
Lanta 2023-10-03 14:40:03 +02:00
parent cea099612e
commit 862d318371

View file

@ -83,12 +83,12 @@ error_reporting(E_ALL);
if ($change < 0) { if ($change < 0) {
$fontColor = "red"; $fontColor = "red";
$imagePath = "images\red.png"; $imagePath = 'images\red.png';
} elseif ($change > 0) { } elseif ($change > 0) {
$fontColor = "green"; $fontColor = "green";
$imagePath = "images\green.png"; $imagePath = 'images\green.png';
} else { } else {
$fontColor = "black"; $fontColor = 'black';
$imagePath = "images\equal.png"; $imagePath = "images\equal.png";
} }
@ -104,7 +104,7 @@ error_reporting(E_ALL);
<td>$matches</td> <td>$matches</td>
<td>$wins</td> <td>$wins</td>
<td>$deaths</td> <td>$deaths</td>
<td style='color: $fontColor;'>$change<img src='$imagePath' alt='Change Indicator' style='vertical-align: middle;' width='50' height='50'/> </td> <td style='color: $fontColor;'>$change<img src='$imagePath' alt='Change Indicator' style='vertical-align: right;' width='25' height='25'/> </td>
</tr>"; </tr>";
} }