public static function showAll() { $_SESSION['styles'] = array('site.css'); if (array_key_exists('headertitle', $_SESSION)) { MasterView::showHeader(); } MasterView::showNavBar(); $skills = array_key_exists('skills', $_SESSION) ? $_SESSION['skills'] : array(); $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; echo "<h1>botspace skills list</h1>"; echo "<table>"; echo "<thead>"; echo "<tr><th>skillId</th><th>skill_name</th><th>Show</th><th>Update</th></tr>"; echo "</thead>"; echo "<tbody>"; foreach ($skills as $skill) { echo '<tr>'; echo '<td>' . $skill->getSkillId() . '</td>'; echo '<td>' . $skill->getSkillName() . '</td>'; echo '<td><a href="/' . $base . '/skill/show/' . $skill->getSkillId() . '">Show</a></td>'; echo '<td><a href="/' . $base . '/skill/update/' . $skill->getSkillId() . '">Update</a></td>'; echo '</tr>'; } echo "</tbody>"; echo "</table>"; MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show($user) { MasterView::showHeader(null); MasterView::showNav(); SignUpView::showContent($user); MasterView::showFooter(null); }
public static function show() { MasterView::showHeader(null); MasterView::showNav(null); AlphaView::showContent(); MasterView::showFooter(null); }
public static function showAll() { if (array_key_exists('headertitle', $_SESSION)) { MasterView::showHeader(); } $skillAssocs = array_key_exists('skillAssocs', $_SESSION) ? $_SESSION['skillAssocs'] : array(); $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; echo "<h1>botspace skill associations list</h1>"; echo "<table>"; echo "<thead>"; echo "<tr><th>skillAssocId</th><th>userDataId</th><th>skillId</th><th>Show</th><th>Update</th></tr>"; echo "</thead>"; echo "<tbody>"; foreach ($skillAssocs as $skillAssoc) { echo '<tr>'; echo '<td>' . $skillAssoc->getSkillAssocId() . '</td>'; echo '<td>' . $skillAssoc->getUserDataId() . '</td>'; echo '<td>' . $skillAssoc->getSkillId() . '</td>'; echo '<td><a href="/' . $base . '/skillassoc/show/' . $skillAssoc->getSkillAssocId() . '">Show</a></td>'; echo '<td><a href="/' . $base . '/skillassoc/update/' . $skillAssoc->getSkillAssocId() . '">Update</a></td>'; echo '</tr>'; } echo "</tbody>"; echo "</table>"; MasterView::showFooter(); }
public static function showUpdate() { $tournaments = array_key_exists('tournaments', $_SESSION) ? $_SESSION['tournaments'] : null; $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; $_SESSION['headertitle'] = "Tournament Update"; MasterView::showHeader(); echo '<h1>Tournament Update</h1>'; if (is_null($tournaments)) { echo '<section>Tournament does not exist</section>'; return; } $tournament = $tournaments[0]; echo '<section>'; echo '<h3>Tournament Information:</h3>'; echo '<p>Name: ' . $tournament->getName() . '</p>'; if ($tournament->getErrors() > 0) { $errors = $tournament->getErrors(); echo '<p>Errors:<br>'; foreach ($errors as $key => $value) { echo $value . "<br>"; } echo '</p>'; } echo '</section>'; echo '<form method="post" action="/' . $base . '/tournament/update/' . $tournament->getTournamentID() . '">'; echo '<p>Name: <input type = "text" name="name"></p>'; echo '<p>Start Date: <input type="date" name="startDate"></p>'; echo '<p>Start Time: <input type="time" name="startTime"></p>'; echo '<p>Number of Participants: <input type="number" name="numParticipants"></p>'; echo '<input type="submit" value="Submit">'; echo '</form></section'; $_SESSION['footertitle'] = "The footer"; MasterView::showFooter(); }
public static function show($user, $userData) { $_SESSION['headertitle'] = "Sign up for a botspace account"; MasterView::showHeader(); SignupView::showDetails($user, $userData); MasterView::showFooter(); }
public static function show($locations) { MasterView::showHeader("Map"); MasterView::showNav(); MapView::showContent($locations); MasterView::showFooter(null); }
public static function show($dir) { MasterView::showHeader(null); MasterView::showNav(); LogView::showContent($dir); MasterView::showFooter(null); }
public static function show() { $_SESSION['headertitle'] = "Create botspace objects"; MasterView::showHeader(); CreateView::showDetails(); MasterView::showFooter(); }
public static function show() { $_SESSION['headertitle'] = "Log into botspace"; MasterView::showHeader(); LoginView::showDetails(); MasterView::showFooter(); }
public static function show() { $_SESSION['headertitle'] = "ClassBash Login Form"; MasterView::showHeader(); LoginView::showDetails(); $_SESSION['footertitle'] = "<h3>The footer goes here</h3>"; MasterView::showFooter(); }
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() { $_SESSION['headertitle'] = "ClassBash Home Page"; MasterView::showHeader(); MasterView::showNavbar(); HomeView::showDetails(); $_SESSION['footertitle'] = "<h3>The footer goes here</h3>"; MasterView::showFooter(); }
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) { $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() { $_SESSION['headertitle'] = "Show botspace objects"; $_SESSION['styles'] = array('site.css'); MasterView::showHeader(); ShowView::showDetails(); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show($user, $userData) { $_SESSION['headertitle'] = "Sign up for a botspace account"; $_SESSION['styles'] = array('site.css', 'signup.css'); MasterView::showHeader(); MasterView::showNavBar(); SignupView::showDetails($user, $userData); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show() { $_SESSION['headertitle'] = 'User Profile'; $_SESSION['styles'] = array('site.css'); MasterView::showHeader(); MasterView::showNavBar(); self::showDetails(); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show() { $_SESSION['headertitle'] = "botspace"; $_SESSION['styles'] = array('jumbotron.css', 'site.css'); MasterView::showHeader(); MasterView::showNavBar(); HomeView::showDetails(); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show() { $_SESSION['headertitle'] = "Log into Sensor Data Repo"; $_SESSION['styles'] = array('site.css'); MasterView::showHeader(); MasterView::showNavBar(); LoginView::showDetails(); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show() { $_SESSION['headertitle'] = "Fireside Login Form"; MasterView::showHeader(); MasterView::showNavbar(); LoginView::showDetails(); $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; $_SESSION['footertitle'] = '<a href="/' . $base . '/index.php">FireSide</a></li>'; MasterView::showFooter(); }
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() { $_SESSION['headertitle'] = "Fireside Heroes"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); MasterView::showNavbar(); HomeView::showDetails(); $_SESSION['footertitle'] = "<h3>The footer goes here</h3>"; MasterView::showFooter(); 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() { $userData = array_key_exists('userData', $_SESSION) ? $_SESSION['userData'] : null; if (!is_null($userData)) { $userName = $userData->getUserName(); } $name = $userName . "'s "; $_SESSION['headertitle'] = $name != "'s " ? $name . " profile" : "Profile"; $_SESSION['styles'] = array('site.css'); MasterView::showHeader(); MasterView::showNavBar(); ProfileView::showDetails(); MasterView::showFooter(); MasterView::showPageEnd(); }
public static function show() { $_SESSION['headertitle'] = "Fireside Heroes"; $_SESSION['styles'] = array('jumbotron.css'); MasterView::showHeader(); // echo '<script src="../ck_lab5/js/jquery.zrssfeed.min.js" type="text/javascript"></script>'; // echo '<script src="../ck_lab5/js/jquery.vticker.js" type="text/javascript"></script>'; // echo '<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">'; // echo '<link href="../ck_lab5/css/zss_ticker.css" rel="stylesheet" type="text/css" />'; MasterView::showNavbar(); HomeView::showDetails(); $_SESSION['footertitle'] = "<h3>username: box password: box</h3>"; MasterView::showFooter(); MasterView::showPageEnd(); }
public static function showUpdate() { $user = array_key_exists('user', $_SESSION) ? $_SESSION['user'] : null; $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ''; $_SESSION['headertitle'] = 'Sensor Data Repo | Account Update'; $_SESSION['stytles'] = array('site.cs'); MasterView::showHeader(); MasterView::showNavBar(); echo '<h1>Account Update</h1>'; if (!isset($user)) { echo '<section>User does not exist</section>'; return; } if (count($user->getErrors()) > 0) { $errors = $user->getErrors(); echo '<section><p>Errors:<br>'; foreach ($errors as $key => $value) { echo $value . '<br>'; } echo '</p></section>'; } echo '<section><form method="POST" action="/' . $base . '/user/update/' . $user->getUserId() . '">'; echo '<p>Username: <input type="text" name="user_name"'; if (!is_null($user)) { echo 'value="' . $user->getUsername() . '"'; } echo '><span class="error">'; if (!is_null($user)) { echo $user->getError('user_name'); } echo '</span></p>'; echo '<p>Password: <input type="password" name="password"><span class="error">'; if (!is_null($user)) { echo $user->getError('password'); } echo '</span></p>'; echo '<input type="submit" value="Submit">'; echo '</form></section>'; MasterView::showFooter(); 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() { $users = array_key_exists('users', $_SESSION) ? $_SESSION['users'] : null; $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : ""; $_SESSION['headertitle'] = "Fireside Heroes User Update"; MasterView::showHeader(); echo '<h1>Fireside Heroes User Update</h1>'; if (is_null($users)) { echo '<section>User does not exist</section>'; return; } $user = $users[0]; echo '<section>'; echo '<h3>User Information:</h3>'; echo '<p>Username: '******'</p>'; if ($user->getErrors() > 0) { $errors = $user->getErrors(); echo '<p>Errors:<br>'; foreach ($errors as $key => $value) { echo $value . "<br>"; } echo '</p>'; } echo '</section>'; echo '<form method="post" action="/' . $base . '/user/update/' . $user->getUserID() . '">'; echo '<p>Username: <input type = "text" name="userName"></p>'; echo '<p> Highest Rank Achieved: <select name="rank"> <option value="legend">Legend</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> </select> </p>'; echo '<input type="submit" value="Submit">'; echo '</form></section>'; $_SESSION['footertitle'] = "The footer"; MasterView::showFooter(); }
public static function show($submission) { MasterView::showHeader("ClassBash Submission Form"); SubmissionView::showDetails($submission); MasterView::showFooter("<h3>The footer goes here</h3>"); }