Siema :]
Otoz mam problem z webspellem wgralem szablon i jak napisalem mecz i wygrana to w ostatnie mecze powinno byc zielone kwadracik albo cos takiego a jest tak jak by remis ciagle. nawet jak przegrana
prosze o pomoc.
pozdro
|
|
Siema :]
Otoz mam problem z webspellem wgralem szablon i jak napisalem mecz i wygrana to w ostatnie mecze powinno byc zielone kwadracik albo cos takiego a jest tak jak by remis ciagle. nawet jak przegrana
prosze o pomoc.
pozdro
link by sie przydal

to tak uporałem sie z tym mozna tak to powiedziec, przez wgranie modyfikacjii ze zamiast obrazka jest wynik ale znow mam maly problem [nawet mniejszy od tego co byl xD haha]
zawsze jak przegrana, remis, wygrana jest wynik na czarno mozna to jakos zmienic?
zamieszcze tutaj pliki:
results.html
<tr>
<td>
<img src="images/flags/pl.gif" border="0"> <img src="$gameicon" border="0" width="13" height="13">
<a href="index.php?site=clanwars_details&cwID=$resultID"><font color="#6c6b6b">
AC-Gaming vs. $ds[opptag] </font> </a>
<font color="#FFFFFF">
</td>
<td align="right">
<b style='color: $color;'>$homescr:$oppscr</b></font>
</td>
</tr>
sc_results.php:
<?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 #
# -- GNU General Public License - Free Software Foundation #
# #
# 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 valign="top" width="100%" cellspacing="2" cellpadding="2">';
while($ds=mysql_fetch_array($ergebnis)) {
$date=date("d.m", $ds[date]);
$homescr=array_sum(explode("||", $ds[homescore]));
$oppscr=array_sum(explode("||", $ds[oppscore]));
$oppcnt=$ds[oppcountry];
if($homescr>$oppscr) $result='<font color="'.$wincolor.'">'.$homescr.':'.$oppscr.'</font> <img border="0" src="./images/results/win.gif" width="32" height="12">';
elseif($homescr<$oppscr) $result='<font color="'.$loosecolor.'">'.$homescr.':'.$oppscr.'</font> <img border="0" src="./images/results/lose.gif" width="32" height="12">';
else $result='<font color="'.$drawcolor.'">'.$homescr.':'.$oppscr.'</font> <img border="0" src="./images/results/draw.gif" width="32" height="12">';
$resultID=$ds[cwID];
$gameicon="images/games/";
if(file_exists($gameicon.$ds[game].".gif")) $gameicon = $gameicon.$ds[game].".gif"; else $gameicon = $gameicon.$ds[game].".jpg";
$flag="images/flags/";
if(file_exists($flag.$oppcnt.".gif")) $flag = $flag.$oppcnt.".gif"; else $flag = "";
#$flag = $oppcnt;
eval ("\$results = \"".gettemplate("results")."\";");
echo $results;
}
echo'</table>';
?>
moze trzeba skonfigurowac te kody ale nie wiem jak. ;]
| « Szablon HTML | [Mała Pomoc Potrzebna] wyszukiwarka w logo kod css » |