Mach dir eine Sicherheutskopie von deiner jetzigen Lastwars.php die sich im include/boxes befindet!
Dann ersetz den Inhalt mal durch diese hier:
<style type="text/css">
a.lastwars {
color: #cccccc;
font-size:12px;
font-weight:bold; }
a.lastwars:hover {
color: #c10000;
font-size:12px;
font-weight:bold; }
.vs {
padding-right:10px;
font-size:10px;
font-weight:bold;
color:#c10000; }
.Ergebnis {
color:#000000;
font-weight:bold;
font-size:11px; }
.datum {
font-weight:bold;
color:#c10000;
font-size:11px; }
.vor {
font-family: Arial, Helvetica, sans-serif;
font-size:11px;
font-weight:bold;
color:#666666; }
</style>
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
$farbe = '';
$farb2 = '';
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
$erg = db_query('SELECT DATE_FORMAT(datime,"%d.%m.%Y - %H:%i") as datum,tag, owp, opp, gegner, id, game, wlp FROM prefix_wars WHERE status = "3" ORDER BY datime DESC LIMIT 3');
while ($row = db_fetch_object($erg) ) {
$row->tag = ( empty($row->tag) ? $row->gegner : $row->tag );
if ($row->wlp == 1) {
$bild = 'include/images/icons/win.png';
} elseif ($row->wlp == 2) {
$bild = 'include/images/icons/los.png';
} elseif ($row->wlp == 3) {
$bild = 'include/images/icons/pad.png';
}
if ($row->wlp == 1) {
$colore= '#00FF00';
} elseif ($row->wlp == 2) {
$colore = '#FF0000';
} elseif ($row->wlp == 3) {
$colore = '#FFA500';
}
echo'<tr>';
echo'<td><table width="100%" border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo'<td style="padding-right:10px" rowspan="2" align="left" valign="middle">'.get_wargameimg($row->game).'</td>';
echo'<td class="vs" rowspan="2" align="left" valign="middle">VS</td>';
echo'<td width="80%"><table width="100%" border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo'<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60%" align="left"><a class="lastwars" href="index.php?wars-more-'.$row->id.'">'.$row->tag.'</a></td>
<td width="40%" align="right"><span style="color:'.$colore.'">'.$row->owp.':'.$row->opp.'</span></td>
</tr>
</table>
</td>';
echo'</tr>';
echo'<tr>';
echo'<td align="left" valign="middle"class="vor">am <span class="datum">'.$row->datum.' Uhr</span></td>';
echo'</tr>';
echo'</table></td>';
echo'<td class="vor"><table width="42" border="0" cellspacing="0" cellpadding="0">';
echo'<tr>';
echo'<td align="center" valign="middle"><img src="'.$bild.'"></td>';
echo'</tr>';
echo'</table></td>';
echo'</tr>';
echo'</table></td>';
echo'</tr>';
}
echo '</table>';
?>
Sieht dann ungefähr so aus wie hier die Lastwar Box:
externer Link
Zuletzt modifiziert von IRvD am 04.07.2012 - 19:10:54