当前位置: 首页>>代码示例>>PHP>>正文


PHP MasterView::showNav方法代码示例

本文整理汇总了PHP中MasterView::showNav方法的典型用法代码示例。如果您正苦于以下问题:PHP MasterView::showNav方法的具体用法?PHP MasterView::showNav怎么用?PHP MasterView::showNav使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MasterView的用法示例。


在下文中一共展示了MasterView::showNav方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: show

 public static function show()
 {
     MasterView::showHeader(null);
     MasterView::showNav(null);
     AlphaView::showContent();
     MasterView::showFooter(null);
 }
开发者ID:mikeschap,项目名称:WithTheClothesOnYourBack,代码行数:7,代码来源:AlphaView.class.php

示例2: show

 public static function show($dir)
 {
     MasterView::showHeader(null);
     MasterView::showNav();
     LogView::showContent($dir);
     MasterView::showFooter(null);
 }
开发者ID:mikeschap,项目名称:WithTheClothesOnYourBack,代码行数:7,代码来源:LogView.class.php

示例3: show

 public static function show($user)
 {
     MasterView::showHeader(null);
     MasterView::showNav();
     SignUpView::showContent($user);
     MasterView::showFooter(null);
 }
开发者ID:mikeschap,项目名称:WithTheClothesOnYourBack,代码行数:7,代码来源:SignUpView.class.php

示例4: show

 public static function show($locations)
 {
     MasterView::showHeader("Map");
     MasterView::showNav();
     MapView::showContent($locations);
     MasterView::showFooter(null);
 }
开发者ID:mikeschap,项目名称:WithTheClothesOnYourBack,代码行数:7,代码来源:MapView.class.php

示例5: show

 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);
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:8,代码来源:SignupView.class.php

示例6: show

 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);
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:9,代码来源:HomeView.class.php

示例7: show

 public static function show($bet)
 {
     $_SESSION['headertitle'] = "Betting";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNav();
     BetView::showDetails($bet);
     MasterView::showFooter(null);
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:9,代码来源:BetView.class.php

示例8: show

 public static function show($user)
 {
     $_SESSION['headertitle'] = "Login";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNav();
     LoginView::showDetails($user);
     MasterView::showPageEnd();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:9,代码来源:LoginView.class.php

示例9: show

 public static function show($userdata)
 {
     $_SESSION['headertitle'] = "Register";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNav();
     SignupView::showDetails($userdata);
     MasterView::showPageEnd();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:9,代码来源:SignupView.class.php

示例10: showAll

 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();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:10,代码来源:GameView.class.php

示例11: show

 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();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:10,代码来源:HomeView.class.php

示例12: show

 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);
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:12,代码来源:ProfileView.class.php

示例13: show

 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();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:22,代码来源:ProfileView.class.php

示例14: showAll

 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);
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:69,代码来源:UserView.class.php

示例15: showUpdate

 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();
 }
开发者ID:Trivette,项目名称:cs4413,代码行数:10,代码来源:UserView.class.php


注:本文中的MasterView::showNav方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。