oneunit
Regular


Joined: Feb 18, 2008
Posts: 94
|
Posted:
Sun Feb 24, 2008 3:43 pm |
|
i dl the zip, extracted it, installed it, and when i went to the screen the bg of it was red.. ewy. it does not do this for the block, but for the module.. its hell-a ugly if you notice below, every thing is bgcolor1,2,3 and so on. what can i change in the index that will change this color. can i change it to transparent?
http://www.1unit.org/modules.php?name=Wars
function WarsIndex($orderby) {
global $prefix, $db, $sitename, $bgcolor1, $bgcolor2, $bgcolor4;
include("header.php");
OpenTable();
//calculate wins, loses, draws...
$result = $db->sql_query("SELECT wid FROM " . $prefix . "_wars ");
$nrwars = $db->sql_numrows($result);
$result_win = $db->sql_query("SELECT wid FROM " . $prefix . "_wars WHERE our_score > opp_score");
$win = $db->sql_numrows($result_win);
$result_lose = $db->sql_query("SELECT wid FROM " . $prefix . "_wars WHERE opp_score > our_score");
$lose = $db->sql_numrows($result_lose);
$draw = $nrwars - ($win + $lose);
echo "<br><center><font class=\"option\"><b>Wars</b></font><br><br></center>";
echo "<div align=\"center\">Order by : <a href=\"modules.php?name=Wars\">Date</a> | <a href=\"modules.php?name=Wars&orderby=game,\">Game</a> | <a href=\"modules.php?name=Wars&orderby=opp_name, opp_tag,\">Opponent</a> | <a href=\"modules.php?name=Wars&orderby=style,\">Style</a> | <a href=\"modules.php?name=Wars&orderby=gametype,\">Gametype</a></div><br>";
echo"<center><table width=100% border=0 cellpadding=3 bgcolor=$bgcolor4 cellspacing=1><tr>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Date</b></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Opponent</b></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Style</b></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Gametype</b></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Results</b></td>"
."<td bgcolor=\"$bgcolor4\" align=\"center\" nowrap=\"nowrap\"><b>Report</b></td><tr>";
$result = $db->sql_query("SELECT wid, status, game, day, month, year, opp_tag, opp_name, opp_url, opp_country, style, gametype, our_score, opp_score from " . $prefix . "_wars order by $orderby year DESC, month DESC, day DESC");
while ($row = $db->sql_fetchrow($result)) { |
|
|