public static function show() { MasterView::showHeader(null); MasterView::showNav(null); AlphaView::showContent(); MasterView::showFooter(null); }
public static function show($dir) { MasterView::showHeader(null); MasterView::showNav(); LogView::showContent($dir); MasterView::showFooter(null); }
public static function show($user) { MasterView::showHeader(null); MasterView::showNav(); SignUpView::showContent($user); MasterView::showFooter(null); }
public static function show($locations) { MasterView::showHeader("Map"); MasterView::showNav(); MapView::showContent($locations); MasterView::showFooter(null); }
public static function show($userdata) { $nav = "<nav>\r\n\t \t\t<a href='signup'>Register</a> |\r\n\t\t\t<a href='login'>Login</a> |\r\n\t\t\t<a href='http://imightbejosh.com/ranks.html'>Leaderboard</a> |\r\n\t\t\t<a href='bet'>Betting</a> |\r\n\t\t\t<a href='games.html'>Recent Games</a> |\r\n\t\t\t<a href='tests.html'>Tests</a> |\r\n\t\t\t<a href='validation.html'>Validation</a>\r\n\t\t\t</nav>\r\n\t \t\t<section>\r\n\t\t\t<a href='home'><img src='resources/Drawing.png' alt='Home'></a>\r\n\t\t\t</section>"; MasterView::showHeader("Register"); MasterView::showNav(null); SignupView::showDetails($userdata); MasterView::showFooter(null); }
public static function show($user) { $base = $_SESSION['base']; $footer = "Contact Information: <a href='mailto:joshuatrivette@gmail.com'>joshuatrivette@gmail.com</a>"; MasterView::showHeader("Hock League"); MasterView::showNav(null); HomeView::showDetails($user); MasterView::showFooter($footer); }
public static function show($bet) { $_SESSION['headertitle'] = "Betting"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); MasterView::showNav(); BetView::showDetails($bet); MasterView::showFooter(null); }
public static function show($user) { $_SESSION['headertitle'] = "Login"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); MasterView::showNav(); LoginView::showDetails($user); MasterView::showPageEnd(); }
public static function show($userdata) { $_SESSION['headertitle'] = "Register"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); MasterView::showNav(); SignupView::showDetails($userdata); MasterView::showPageEnd(); }
public static function showAll() { $_SESSION['headertitle'] = "Games"; $_SESSION['styles'] = array('jumbotron.css', 'games.css'); MasterView::showHeader(); MasterView::showNav(); GameView::showAllDetails(); MasterView::showFooter(null); MasterView::showPageEnd(); }
public static function show($user) { $_SESSION['headertitle'] = "HockLeague Home Page"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); MasterView::showNav(); HomeView::showDetails($user); MasterView::showHomeFooter(); MasterView::showPageEnd(); }
public static function show($webuser, $hockuser) { if (!is_null($hockuser)) { $header = $hockuser->getUserName() . ' Profile Page'; } else { $header = 'null Profile Page'; } MasterView::showHeader($header); MasterView::showNav(null); ProfileView::showDetails($webuser, $hockuser); MasterView::showFooter(null); }
public static function show($webuser, $hockuser) { if (!is_null($hockuser)) { $header = $hockuser->getUserName() . ' Profile Page'; } else { $header = 'null Profile Page'; } $_SESSION['headertitle'] = $header; $_SESSION['styles'] = array('jumbotron.css', 'profile.css', 'games.css'); MasterView::showHeader(); MasterView::showNav(); ProfileView::showDetails($webuser, $hockuser); if (array_key_exists('authenticatedUser', $_SESSION)) { $authenticatedUser = $_SESSION['authenticatedUser']; if (!is_null($authenticatedUser)) { if (strcmp($authenticatedUser->getHockName(), $hockuser->getUserName()) == 0) { ProfileView::showUpdateButton(); } } } MasterView::showPageEnd(); }
public static function showAll() { // Show a table of users with links MasterView::showHeader("Leaderboard"); MasterView::showNav(null); //if (array_key_exists('headertitle', $_SESSION)) { // MasterView::showHeader(); // MasterView::showNav(); //} $users = array_key_exists('users', $_SESSION) ? $_SESSION['users'] : array(); $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; echo "<center>"; echo "<h1>Hock League Ranks</h1>"; echo "<table border='1'>"; echo "<thead>"; echo "<tr><TH>Rank</th><th>Name</th><th>Skill</th><th>Wins</th><th>Losses</th><th>Total Games</th><th>Goals</th><th>Assists</th><th>Own Goals</th><th>GPG</th><th>APG</th><th>OGPG</th><TH>Bads</th><TH>Streak</th><th>Alias</th></tr>"; echo "</thead>"; echo "<tbody>"; $ct = 0; foreach ($users as $user) { $wins = $user->getWins(); $losses = $user->getLosses(); $numgames = $wins + $losses; //In the future these people will be left off the leaderboard if ($numgames == 0) { $numgames = 1; } $ct += 1; $bgcolor = ''; $colorstyle = ''; if ($user->getStreak() >= 5) { $bgcolor = " bgcolor='ff6600'"; } elseif ($user->getStreak() <= -5) { $bgcolor = " bgcolor='33ccff'"; } if (strcmp($user->getHome(), 'east') == 0) { $colorstyle = '"color:orange"'; } elseif (strcmp($user->getHome(), 'uk') == 0) { $colorstyle = '"color:blue"'; } elseif (strcmp($user->getHome(), 'mw') == 0) { $colorstyle = '"color:red"'; } elseif (strcmp($user->getHome(), 'west') == 0) { $colorstyle = '"color:green"'; } echo '<tr' . $bgcolor . '>'; echo '<td style=' . $colorstyle . '> ' . $ct . '</td>'; echo '<td><a href="/' . $base . '/user/' . $user->getUserName() . '">' . $user->getUserName() . '</td>'; echo '<td>' . $user->getSkill() . '</td>'; echo '<td>' . $wins . '</td>'; echo '<td>' . $losses . '</td>'; echo '<td>' . ($wins + $losses) . '</td>'; echo '<td>' . $user->getGoals() . '</td>'; echo '<td>' . $user->getAssists() . '</td>'; echo '<td>' . $user->getOwnGoals() . '</td>'; echo '<td>' . round($user->getGoals() * 1.0 / $numgames, 2) . '</td>'; echo '<td>' . round($user->getAssists() * 1.0 / $numgames, 2) . '</td>'; echo '<td>' . round($user->getOwnGoals() * 1.0 / $numgames, 2) . '</td>'; echo '<td>' . $user->getBads() . '</td>'; echo '<td>' . $user->getStreak() . '</td>'; echo '<td>' . $user->getAlias() . '</td>'; echo '</tr>'; } echo "</tbody>"; echo "</table>"; echo "</center>"; //if (array_key_exists('footertitle', $_SESSION)) // MasterView::showFooter(null); MasterView::showFooter(null); }
public static function showUpdate() { $_SESSION['headertitle'] = "Update user"; $_SESSION['styles'] = array('Jumbotron.css'); MasterView::showHeader(); MasterView::showNav(); self::showUpdateDetails(); $_SESSION['footertitle'] = "The user update footer"; MasterView::showFooter(); }
<!DOCTYPE html> <html> <head> <title>MasterView Tests</title> </head> <body> <h1>MasterView Tests</h1> <h3>Should call MasterView::showHeader(), MasterView::showNav(), and MasterView::showFooter()</h3> <hr/> <?php include_once "../includer.php"; echo "<hr/><h1>Header</h1>"; MasterView::showHeader(null); echo "<hr/><h1>Nav</h1>"; MasterView::showNav(); echo "<hr/><h1>Footer</h1>"; MasterView::showFooter(null); ?> </body> </html>