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


PHP MasterView::showNavbar方法代码示例

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


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

示例1: showAll

 public static function showAll()
 {
     // SHow a table of submission objects with links
     if (array_key_exists('headertitle', $_SESSION)) {
         MasterView::showHeader();
         MasterView::showNavbar();
     }
     $submissions = array_key_exists('submissions', $_SESSION) ? $_SESSION['submissions'] : array();
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo "<h1>ClassBash submission list</h1>";
     echo "<table>";
     echo "<thead>";
     echo "<tr><th>Submitter</th><th>Assignment number</th>\r\n\t         <th>Download</th><th>Show summary</th><th>Update</th><th>Review link</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($submissions as $submission) {
         echo '<tr><td>' . $submission->getSubmitterName() . '</td>';
         echo '<td>' . $submission->getAssignmentNumber() . '</td>';
         echo '<td><a href="/' . $base . '/submission/download/' . $submission->getSubmissionId() . '">Download</a></td>';
         echo '<td><a href="/' . $base . '/submission/show/' . $submission->getSubmissionId() . '">Show</a></td>';
         echo '<td><a href="/' . $base . '/submission/update/' . $submission->getSubmissionId() . '">Update</a></td>';
         echo '<td><a href="/' . $base . '/review/new/' . $submission->getSubmissionId() . '">Submit review</a></td></tr>';
     }
     echo "</tbody>";
     echo "</table>";
     if (array_key_exists('footertitle', $_SESSION)) {
         MasterView::showFooter();
     }
 }
开发者ID:bennilyn,项目名称:examples,代码行数:29,代码来源:SubmissionView.class.php

示例2: showAll

 public static function showAll()
 {
     // SHow a table of submission objects with links
     if (array_key_exists('headertitle', $_SESSION)) {
         MasterView::showHeader();
         MasterView::showNavbar();
     }
     $reviews = array_key_exists('reviews', $_SESSION) ? $_SESSION['reviews'] : array();
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo "<h1>ClassBash review list</h1>";
     echo "<table>";
     echo "<thead>";
     echo "<tr><th>Review Id</th><th>Submission Id</th>\r\n\t\t\t <th>Reviewer name</th> <th>Review score</th>\r\n\t\t\t <th>Show review</td> <th> Update review</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($reviews as $review) {
         echo '<tr>';
         echo '<td>' . $review->getReviewId() . '</td>';
         echo '<td><a href="/' . $base . '/submission/show/' . $review->getSubmissionId() . '">Submission ' . $review->getSubmissionId() . '</a></td>';
         echo '<td>' . $review->getReviewerName() . '</td>';
         echo '<td>' . $review->getScore() . '</td>';
         echo '<td><a href="/' . $base . '/review/show/' . $review->getReviewId() . '">Show</a></td>';
         echo '<td><a href="/' . $base . '/review/update/' . $review->getReviewId() . '">Update</a></td>';
         echo '</tr>';
     }
     echo "</tbody>";
     echo "</table>";
     if (array_key_exists('footertitle', $_SESSION)) {
         MasterView::showFooter();
     }
 }
开发者ID:bennilyn,项目名称:examples,代码行数:31,代码来源:ReviewView.class.php

示例3: showAll

 public static function showAll()
 {
     if (array_key_exists('headertitle', $_SESSION)) {
         MasterView::showHeader();
         MasterView::showNavbar();
     }
     $users = array_key_exists('users', $_SESSION) ? $_SESSION['users'] : array();
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo "<h1>Fireside Heroes User List</h1>";
     echo "<table>";
     echo "<thead>";
     echo "<tr><th>User Id</th><th>User name</th> <th>Show</th><th>Update</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($users as $user) {
         echo '<tr>';
         echo '<td>' . $user->getUserID() . '</td>';
         echo '<td>' . $user->getUserName() . '</td>';
         echo '<td><a href="/' . $base . '/user/show/' . $user->getUserID() . '">Show</a></td>';
         echo '<td><a href="/' . $base . '/user/update/' . $user->getUserID() . '">Update</a></td>';
         echo '</tr>';
     }
     echo "</tbody>";
     echo "</table>";
     if (array_key_exists('footertitle', $_SESSION)) {
         MasterView::showFooter();
     }
 }
开发者ID:keithcruz,项目名称:webtech,代码行数:28,代码来源:UserView.class.php

示例4: show

 public static function show()
 {
     $_SESSION['headertitle'] = "Fireside Login Form";
     MasterView::showHeader();
     MasterView::showNavbar();
     LoginView::showDetails();
     $_SESSION['footertitle'] = "<h3>The footer goes here</h3>";
     MasterView::showFooter();
 }
开发者ID:keithcruz,项目名称:webtech,代码行数:9,代码来源:LoginView.class.php

示例5: show

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

示例6: show

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

示例7: show

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

示例8: show

 public static function show()
 {
     $_SESSION['headertitle'] = "h00dFliX Home Page";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNavbar();
     HomeView::showDetails();
     $_SESSION['footertitle'] = "<h3>Get your FliX on</h3>";
     MasterView::showHomeFooter();
     MasterView::showPageEnd();
 }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:11,代码来源:HomeView.class.php

示例9: show

    public static function show($user)
    {
        MasterView::showHeader();
        MasterView::showNavbar();
        echo "<br>";
        echo "<br>";
        echo "<br>";
        ?>

	<!DOCTYPE html>
	<html>
	<head>
	<meta charset="UTF-8">
	<title>Login</title>
	</head>
	<body>
		<form action="login" method="post">
			<section>
				<h1>Login</h1>
					Username <input type="text" name="userName" <?php 
        if (!is_null($user)) {
            echo 'value = "' . $user->getUserName() . '"';
        }
        ?>
> <?php 
        if (!is_null($user)) {
            echo $user->getError('userName');
        }
        ?>
<br><br>	
					Password <input type="password" name="password" <?php 
        if (!is_null($user)) {
            echo 'value = "' . $user->getPassword() . '"';
        }
        ?>
> <?php 
        if (!is_null($user)) {
            echo $user->getError('password');
        }
        ?>
<br><br>
			</section>
				
			<input type="submit" name="submit"><br>
		</form>
	</body>
	</html>

<?php 
    }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:50,代码来源:LoginView.class.php

示例10: show

    public static function show($user, $userData)
    {
        MasterView::showHeader();
        MasterView::showNavbar();
        echo "<br>";
        echo "<br>";
        echo "<br>";
        ?>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sign-Up</title>
</head>
<body>
	<form action="signup" method="post">
		<section>
			<h1>Account Information</h1>
				Username <input type="text" name="userName" <?php 
        if (!is_null($user)) {
            echo 'value = "' . $user->getUserName() . '"';
        }
        ?>
 tabindex="1"> <?php 
        if (!is_null($user)) {
            echo $user->getError('userName');
        }
        ?>
<br><br>
				Password <input type="password" name="password" <?php 
        if (!is_null($user)) {
            echo 'value = "' . $user->getPassword() . '"';
        }
        ?>
 tabindex="2"> <?php 
        if (!is_null($user)) {
            echo $user->getError('password');
        }
        ?>
<br><br> 			
				Picture <input type="file" name="picture" value="picture" <?php 
        if (!is_null($userData)) {
            echo $userData->__toString();
        }
        ?>
 tabindex="4"> <?php 
        if (!is_null($user)) {
            echo $userData->getError('picture');
        }
        ?>
<br><br>
				<?php 
        if (!is_null($user)) {
            echo $userData->getError('genres') . '<br>';
        }
        ?>
 <fieldset>
  					<legend>Genres of Interest</legend> 
  					Action <input type="checkbox" name="action" <?php 
        if (!is_null($userData) && $userData->getAction()) {
            echo "checked";
        }
        ?>
 tabindex="5">
  					Horror <input type="checkbox" name="horror" <?php 
        if (!is_null($userData) && $userData->getHorror()) {
            echo "checked";
        }
        ?>
 tabindex="6">
  					Comedy <input type="checkbox" name="comedy" <?php 
        if (!is_null($userData) && $userData->getComedy()) {
            echo "checked";
        }
        ?>
 tabindex="7"><br>
  					Romance<input type="checkbox" name="romance" <?php 
        if (!is_null($userData) && $userData->getRomance()) {
            echo "checked";
        }
        ?>
 tabindex="8">
  					Family <input type="checkbox" name="family" <?php 
        if (!is_null($userData) && $userData->getFamily()) {
            echo "checked";
        }
        ?>
 tabindex="9">
  					Drama  <input type="checkbox" name="drama" <?php 
        if (!is_null($userData) && $userData->getDrama()) {
            echo "checked";
        }
        ?>
 tabindex="10">
 				</fieldset><br>
		</section>
		
		<section>
			<h1>Personal Information</h1>
//.........这里部分代码省略.........
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:101,代码来源:SignupView.class.php

示例11: show

    public static function show($movieData)
    {
        MasterView::showHeader();
        MasterView::showNavbar();
        echo "<br>";
        echo "<br>";
        echo "<br>";
        ?>

	<!DOCTYPE html>
	<html>
	<head>
	<meta charset="UTF-8">
	<title>Add FliX</title>
	</head>
	<body>
		<form method="post">
			<section>
				<h1>Add FliX</h1>
					Movie Title <input type="text" name="movieTitle" <?php 
        if (!is_null($movieData)) {
            echo 'value = "' . $movieData->getMovieTitle() . '"';
        }
        ?>
> <?php 
        if (!is_null($movieData)) {
            echo $movieData->getError('movieTitle');
        }
        ?>
<br><br>	
					Release Date <input type="text" name="releaseDate"<?php 
        if (!is_null($movieData)) {
            echo 'value = "' . $movieData->getReleaseDate() . '"';
        }
        ?>
> <?php 
        if (!is_null($movieData)) {
            echo $movieData->getError('releaseDate');
        }
        ?>
<br><br>
					Return By <input type="text" name="returnBy" <?php 
        if (!is_null($movieData)) {
            echo 'value = "' . $movieData->getReturnBy() . '"';
        }
        ?>
 tabindex="16"> <?php 
        if (!is_null($movieData)) {
            echo $movieData->getError('returnBy');
        }
        ?>
<br><br>
			</section>
				
			<input type="submit" name="submit"><br>
		</form>
	</body>
	</html>

<?php 
    }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:61,代码来源:AddMovieView.class.php

示例12: showUpdate

 public static function showUpdate()
 {
     $_SESSION['headertitle'] = "Update Tournament";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNavbar();
     $tournament = array_key_exists('tournament', $_SESSION) ? $_SESSION['tournament'] : null;
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo '<div class="container-fluid">';
     echo '<div class="row">';
     echo '<div class="col-md-3 col-sm-2 col-xs-1"></div>';
     echo '<div class="col-md-6 col-sm-8 col-xs-10">';
     echo '<h1>' . $_SESSION['headertitle'] . '</h1>';
     if (is_null($tournament)) {
         echo '<section>Tournament does not exist</section>';
         return;
     }
     echo '<form role="form" method="post" action="/' . $base . '/tournament/update/' . $tournament->getTournamentID() . '">';
     // Error at the top of the form
     if (!is_null($tournament) && !empty($tournament->getError('tournamentID'))) {
         echo '<div class="form-group">';
         echo '<label><span class="label label-danger">';
         echo $tournament->getError('tournamentID');
         echo '</span></label></div>';
     }
     echo '<div class="form-group">';
     // Name
     echo '<label for="name">Tournament Name:';
     echo '<span class="label label-danger">';
     if (!is_null($tournament)) {
         echo $tournament->getError('name');
     }
     echo '</span></label>';
     echo '<input type="text" class="form-control" id = "name" name="name"';
     if (!is_null($tournament)) {
         echo 'value = "' . $tournament->getName() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // Start Date
     echo '<label for="startDate">Start Date:';
     echo '<span class="label label-danger">';
     if (!is_null($tournament)) {
         echo $tournament->getError('startDate');
     }
     echo '</span></label>';
     echo '<input type="date" class="form-control" id = "startDate" name="startDate"';
     if (!is_null($tournament)) {
         echo 'value = "' . $tournament->getDate() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // Start Time
     echo '<label for="startTime">Start Time:';
     echo '<span class="label label-danger">';
     if (!is_null($tournament)) {
         echo $tournament->getError('startTime');
     }
     echo '</span></label>';
     echo '<input type="time" class="form-control" id = "startTime" name="startTime"';
     if (!is_null($tournament)) {
         echo 'value = "' . $tournament->getTime() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // Number Participants
     echo '<label for="numParticipants">Number of Participants:';
     echo '<span class="label label-danger">';
     if (!is_null($tournament)) {
         echo $tournament->getError('numParticipants');
     }
     echo '</span></label>';
     echo '<input type="number" class="form-control" id = "numParticipants" name="numParticipants"';
     if (!is_null($tournament)) {
         echo 'value = "' . $tournament->getNumParticipants() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<button type="submit" class="btn btn-default">Submit</button>';
     echo '</form>';
     echo '</div>';
     echo '<div class="col-md-3 col-sm-2 col-xs-1"></div>';
     echo '</div>';
     echo '</div>';
     $_SESSION['footertitle'] = '<a href="/' . $base . '/index.php">FireSide</a></li>';
     MasterView::showFooter();
 }
开发者ID:keithcruz,项目名称:webtech,代码行数:90,代码来源:TournamentView.class.php

示例13: array

MasterView::showHeader();
?>

<h2>It should call showFooter with an empty array</h2>
<?php 
$_SESSION = array();
MasterView::showFooter();
?>

<h2>It should call showFooter with an actual footer</h2>
<?php 
$_SESSION = array('footertitle' => "<h3>The footer goes here</h3>");
MasterView::showFooter();
?>

<h2>It should call showNavBar with an empty array</h2>
<?php 
$_SESSION = array();
MasterView::showNavBar();
?>

<h2>It should call showNavbar with an actual user</h2>
<?php 
$validTest = array("userName" => "krobbins");
$s1 = new User($validTest);
$_SESSION = array('user' => $s1);
MasterView::showNavbar();
?>
</body>
</html>
开发者ID:bennilyn,项目名称:examples,代码行数:30,代码来源:MasterView_tests.php

示例14: show

    public static function show($reviewData)
    {
        MasterView::showHeader();
        MasterView::showNavbar();
        echo "<br>";
        echo "<br>";
        echo "<br>";
        ?>

	<!DOCTYPE html>
	<html>
	<head>
	<meta charset="UTF-8">
	<title>Review</title>
	</head>
	<body>
		<form method="post">
			<section>
				<h1>FliX Reviews</h1>
					Movie Title <input type="text" name="movieTitle" <?php 
        if (!is_null($reviewData)) {
            echo 'value = "' . $reviewData->getMovieTitle() . '"';
        }
        ?>
> <?php 
        if (!is_null($reviewData)) {
            echo $reviewData->getError('movieTitle');
        }
        ?>
<br><br>	
					Reviewed By <input type="text" name="reviewedBy"<?php 
        if (!is_null($reviewData)) {
            echo 'value = "' . $reviewData->getUserName() . '"';
        }
        ?>
> <?php 
        if (!is_null($reviewData)) {
            echo $reviewData->getError('userName');
        }
        ?>
<br><br>
					Reviewed On <input type="text" name="reviewedOn" <?php 
        if (!is_null($reviewData)) {
            echo 'value = "' . $reviewData->getReviewedOn() . '"';
        }
        ?>
 tabindex="16"> <?php 
        if (!is_null($reviewData)) {
            echo $reviewData->getError('reviewedOn');
        }
        ?>
<br><br>
					Review <br><br><textarea name="review" rows="10" cols="30" tabindex="21"><?php 
        if (!is_null($reviewData)) {
            echo $reviewData->getReview();
        }
        ?>
</textarea><?php 
        if (!is_null($reviewData)) {
            echo $reviewData->getError('review');
        }
        ?>
<br><br>
			</section>
				
			<input type="submit" name="submit"><br>
		</form>
	</body>
	</html>

<?php 
    }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:72,代码来源:ReviewView.class.php

示例15: show

 public static function show()
 {
     $_SESSION['headertitle'] = "New user registration";
     $_SESSION['styles'] = array('jumbotron.css');
     MasterView::showHeader();
     MasterView::showNavbar();
     $user = array_key_exists('user', $_SESSION) ? $_SESSION['user'] : null;
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo '<div class="container-fluid">';
     echo '<div class="row">';
     echo '<div class="col-md-3 col-sm-2 hidden-xs"></div>';
     echo '<div class="col-md-6 col-sm-8 col-xs-12">';
     echo '<h1>' . $_SESSION['headertitle'] . '</h1>';
     echo '<form role="form" action ="/' . $base . '/signup" method="Post">';
     // Error at the top of the form
     if (!is_null($user) && !empty($user->getError('userID'))) {
         echo '<div class="form-group">';
         echo '<label><span class="label label-danger">';
         echo $user->getError('userID');
         echo '</span></label></div>';
     }
     echo '<div class="form-group">';
     // First name
     echo '<label for="firstName">First name:';
     echo '<span class="label label-danger">';
     if (!is_null($user)) {
         echo $user->getError('firstName');
     }
     echo '</span></label>';
     echo '<input type="text" class="form-control" id = "firstName" name="firstName"';
     if (!is_null($user)) {
         echo 'value = "' . $user->getFirstName() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // Last name
     echo '<label for="lastName">Last name:';
     echo '<span class="label label-danger">';
     if (!is_null($user)) {
         echo $user->getError('lastName');
     }
     echo '</span></label>';
     echo '<input type="text" class="form-control" id = "lastName" name="lastName"';
     if (!is_null($user)) {
         echo 'value = "' . $user->getLastName() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // User name
     echo '<label for="userName">User name:';
     echo '<span class="label label-danger">';
     if (!is_null($user)) {
         echo $user->getError('userName');
     }
     echo '</span></label>';
     echo '<input type="text" class="form-control" id = "userName" name="userName"';
     if (!is_null($user)) {
         echo 'value = "' . $user->getFirstName() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // Email
     echo '<label for="email">Email:';
     echo '<span class="label label-danger">';
     if (!is_null($user)) {
         echo $user->getError('email');
     }
     echo '</span></label>';
     echo '<input type="email" class="form-control" id = "email" name="email"';
     if (!is_null($user)) {
         echo 'value = "' . $user->getEmail() . '"';
     }
     echo 'required>';
     echo '</div>';
     echo '<div class="form-group">';
     // PassWord
     echo '<label for="password">Password:';
     echo '<span class="label label-danger">';
     if (!is_null($user)) {
         echo $user->getError('passWord');
     }
     echo '</span></label>';
     echo '<input type="password" class="form-control" id = "passWord" name="passWord"';
     echo 'required>';
     echo '</div>';
     // 		echo '<div class="form-group">'; // PassWord Retry
     // 		echo '<label for="passwordRetry">Retype password:';
     // 		echo '<span class="label label-danger">';
     // 		if (!is_null($user))
     // 			echo $user->getError('passWord');
     // 		echo '</span></label>';
     // 		echo '<input type="password" class="form-control" id = "passwordRetry" name="passwordRetry"';
     // 		if (!is_null($user))
     // 			echo 'value = "'. $user->getPasswordRetry() .'"';
     // 		echo 'required>';
     // 		echo '</div>';
     //Gender
//.........这里部分代码省略.........
开发者ID:keithcruz,项目名称:webtech,代码行数:101,代码来源:SignupView.class.php


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