summaryrefslogtreecommitdiffstats
path: root/includes/datas.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-04-21 13:44:11 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-04-21 13:44:11 -0700
commitf03c9a928b9019c4b7947a9b087134ead88e7655 (patch)
tree87385a5e7b01ff0c913bf96c089d143ab452f79c /includes/datas.php
parent6210d67f7caff9fcf9d4d171430c1a4170000a83 (diff)
downloadpathery-f03c9a928b9019c4b7947a9b087134ead88e7655.tar.xz
Scoreboard colors. & Blank Emblem fix
Diffstat (limited to 'includes/datas.php')
-rw-r--r--includes/datas.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/datas.php b/includes/datas.php
index 9062ae0..81184cd 100644
--- a/includes/datas.php
+++ b/includes/datas.php
@@ -46,16 +46,22 @@ function topScores($mapid, $top = 5) {
$wallColor = '#666666';
$wallEmblem = 'blank.png';
}
+ if ($wallEmblem == '')
+ $wallEmblem = 'blank.png';
$cdate = date("g:i A (T)", strtotime($cdate));
+ $background = '#262631';
+ if ($i % 2 == 1)
+ $background = '#20202a';
+
if ($_SESSION['userID'] == $userID)
- $output .= "<tr style='background-color: #356;' ";
- else
- $output .= "<tr ";
+ $background = '#343c57';
+ //$background = '#356';
+
+ $output .= "<tr style='background-color: $background; color:$displayColor;' ";
$output .= "title='Scored $cdate'>";
-
$output .= "<td>$i</td>
<td>
<div class='grid_td' style='width:35px; height:35px; background:$wallColor url(images/marks/$wallEmblem);'>