Moja strona to http://www.nukedteam.tk
Chce zrobic tak aby wyniki w panelu ostatnie mecze na gorze strony byly kolorowe.
To znaczy jak mecz wygrany to wynik zielony,jak przegrany to czerwony a jak zremisowany to pomaranczowy...
Jak to zrobic?
Z gory dziekuje za pomoc
Za tabelke odpowiada plik sc_results.php
Oto jego zawartosc:
<?php /* ######################################################################## # # # Version 4 / / / # # -----------__---/__---__------__----__---/---/- # # | /| / /___) / ) (_ ` / ) /___) / / # # _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___ # # Free Content / Management System # # / # # # # # # Copyright 2005-2006 by webspell.org # # # # visit webSPELL.org, webspell.info to get webSPELL for free # # - Script runs under the GNU GENERAL PUBLIC LICENSE # # - It's NOT allowed to remove this copyright-tag # # -- http://www.fsf.org/licensing/licenses/gpl.html # # # # Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), # # Far Development by Development Team - webspell.org # # # # visit webspell.org # # # ######################################################################## */ $ergebnis=safe_query("SELECT * FROM ".PREFIX."clanwars ORDER BY date DESC LIMIT 0,$maxresults"); echo'<table width="100%" cellspacing="4" cellpadding="0">'; while($ds=mysql_fetch_array($ergebnis)) { $date=date("d.m", $ds[date]); $homescr=array_sum(explode("||", $ds[homescore])); $oppscr=array_sum(explode("||", $ds[oppscore])); if($homescr>$oppscr) $result='[img]./images/results/won.gif[/img]'; elseif($homescr<$oppscr) $result='[img]./images/results/lost.gif[/img]'; else $result='[img]./images/results/draw.gif[/img]'; $resultID=$ds[cwID]; $gameicon="images/games/"; if(file_exists($gameicon.$ds[game].".gif")) $gameicon = $gameicon.$ds[game].".gif"; else $gameicon = $gameicon.$ds[game].".jpg"; eval ("$results = "".gettemplate("results")."";"); echo $results; } echo'</table>'; ?>