From cf4af138b16da878404cf3319d5d988dacee198a Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 5 Nov 2011 03:04:49 -0700 Subject: new layout --- includes/datas.php | 53 ++++++++++++++++++++++++++++++++++++++++++++- includes/db.inc.php | 11 +++++----- includes/header.php | 62 ++++++++++++++++++++++++++++------------------------- includes/maps.php | 2 +- 4 files changed, 91 insertions(+), 37 deletions(-) (limited to 'includes') diff --git a/includes/datas.php b/includes/datas.php index 0d3d0c5..912eea8 100644 --- a/includes/datas.php +++ b/includes/datas.php @@ -1 +1,52 @@ - 0) { $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; while (list($diff, $display, $moves, $userID) = mysql_fetch_row($result)) { $i++; if ($_SESSION['userID'] == $userID) $output .= ""; else $output .= ""; $output .= ""; $output .= ""; $output .= ""; $output .= ""; //$output .= "$i. $display with $moves moves. In $diff
"; $output .= ""; } $output .= "
RankNameMovesTime taken
$i$display$moves$diff
"; } return $output; } ?> \ No newline at end of file + 0) { + $output .= ""; + $output .= ""; + $output .= ""; + $output .= ""; + $output .= ""; + $output .= ""; + $output .= ""; + while (list($diff, $display, $moves, $userID) = mysql_fetch_row($result)) { + $i++; + if ($_SESSION['userID'] == $userID) + $output .= ""; + else + $output .= ""; + + $output .= ""; + $output .= ""; + $output .= ""; + $output .= ""; + //$output .= "$i. $display with $moves moves. In $diff
"; + $output .= ""; + } + $output .= "
RankNameMovesTime taken
$i$display$moves$diff
"; + } + return $output; +} + +?> diff --git a/includes/db.inc.php b/includes/db.inc.php index 9287ed2..198cf40 100644 --- a/includes/db.inc.php +++ b/includes/db.inc.php @@ -1,12 +1,11 @@ \ No newline at end of file +?> diff --git a/includes/header.php b/includes/header.php index b402025..1e24e8c 100644 --- a/includes/header.php +++ b/includes/header.php @@ -1,6 +1,6 @@ @@ -8,13 +8,22 @@ function htmlHeader() { pathery.com - - - - - + + + "; + } + ?> + + + + +function htmlFooter() { +?> + - - + + +'; + echo '
'; $page = $_GET[page]; if ($page == '') $page = 'home'; - $first = true; foreach ($links as $key => $value) { - if ($first) - $first = false; - else - echo ' | '; if ($page == $key) - echo "$value"; - else - echo "$value"; + $selected = " selected"; + else + $selected = ""; + echo "$value"; } - echo "\t
"; + echo "
"; if ($_SESSION['accepted'] == 1) { - echo "Logged in as $_SESSION[displayName].\n"; - echo "Logout"; + echo "Logged in as $_SESSION[displayName]
"; if ($_SESSION['displayName'] == 'noname') - echo "Update your name"; + echo "Update your name | "; + echo "Logout"; } else - echo "Sign in using Google"; + echo "Sign in with Google"; + echo "
"; - echo "\t
"; echo "
"; } diff --git a/includes/maps.php b/includes/maps.php index a1bbc95..901a946 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -146,7 +146,7 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) $output .= ""; $output .= "
- + -- cgit v1.2.3