当前位置: 首页>>代码示例>>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()
 {
     $_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();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:28,代码来源:SkillView.class.php

示例2: showNew

 public static function showNew()
 {
     $robotData = array_key_exists('robotData', $_SESSION) ? $_SESSION['robotData'] : null;
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     $_SESSION['headertitle'] = "botspace RobotData Creator";
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     echo '<h1>Create a new RobotData entry</h1>';
     if ($_SESSION['authenticated'] == false) {
         echo '<p>You must log in to create a robot data entry</p>';
         return;
     }
     echo '<form action="/' . $base . '/robotdata/create/new" method="POST">';
     if (!is_null($robotData) && array_key_exists('robotId', $robotData->getErrors())) {
         echo 'Error: ' . $robotData->getError('robotId') . "<br>";
     }
     echo 'Robot Name: <input type="text" name="robot_name"';
     if (!is_null($robotData)) {
         echo 'value="' . $robotData->getRobotName() . '"';
     }
     echo ' tabindex="1" required>' . "\n";
     echo '<span class="error">';
     if (!is_null($robotData)) {
         echo $robotData->getError('robot_name');
     }
     echo '</span><br><br>' . "\n";
     echo 'Status: <input type="text" name="status"';
     if (!is_null($robotData)) {
         echo 'value="' . $robotData->getStatus() . '"';
     }
     echo ' tabindex="2" required>' . "\n";
     echo '<span class="error">';
     if (!is_null($robotData)) {
         echo $robotData->getError('status');
     }
     echo '</span><br><br>' . "\n";
     echo 'Creator';
     if (!is_null($robotData)) {
         if (count($robotData->getCreators()) > 1) {
             echo "s";
         }
         echo ': ';
     }
     if (!is_null($robotData)) {
         $creators = $robotData->getCreators();
         foreach ($creators as $creator) {
             echo '<input type="text" name="creatorNames[]" value="' . $creator . '" required><br>' . "\n";
         }
     } else {
         echo '<input type="text" name="creatorNames[]" value="" tabindex="3" required>' . "\n";
     }
     echo '<br><br>';
     echo '<p><input type="submit" name="submit" value="Submit">';
     echo '&nbsp&nbsp';
     echo '<a href="/' . $base . '/robotdata/show/all">Cancel</a><br>';
     echo '</form>';
     MasterView::showFooter();
     MasterView::showPageEnd();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:60,代码来源:RobotDataView.class.php

示例3: showAll

 public static function showAll()
 {
     $_SESSION['styles'] = array('site.css');
     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 "<br>";
     echo "<br>";
     echo "<br>";
     echo "<h1>h00dFliX Users</h1>";
     echo "<table style=width:15%>";
     echo "<thead>";
     echo "<tr><th>userId</th><th>User Name</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($users as $user) {
         echo '<tr>';
         echo '<td>' . $user->getUserId() . '</td>';
         echo '<td>' . $user->getUserName() . '</td>';
         echo '</tr>';
     }
     echo "</tbody>";
     echo "</table>";
     MasterView::showPageEnd();
 }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:28,代码来源:UserView.class.php

示例4: showAll

 public static function showAll()
 {
     $_SESSION['styles'] = array('site.css');
     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 "<br>";
     echo "<br>";
     echo "<br>";
     echo "<h1>h00dFliX Reviews</h1>";
     echo "<table style=width:25%>";
     echo "<thead>";
     echo "<tr><th>reviewId</th><th>movie Title</th><th>Reviewed By</th><th>Reviewed On</th><th>Review</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($reviews as $review) {
         echo '<tr>';
         echo '<td>' . $review->getReviewId() . '</td>';
         echo '<td>' . $review->getMovieTitle() . '</td>';
         echo '<td>' . $review->getUserName() . '</td>';
         echo '<td>' . $review->getReviewedOn() . '</td>';
         echo '<td>' . $review->getReview() . '</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>";
     MasterView::showPageEnd();
 }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:33,代码来源:ReviewsView.class.php

示例5: showAll

 public static function showAll()
 {
     $_SESSION['styles'] = array('site.css');
     if (array_key_exists('headertitle', $_SESSION)) {
         MasterView::showHeader();
     }
     MasterView::showNavBar();
     $movies = array_key_exists('movies', $_SESSION) ? $_SESSION['movies'] : array();
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     echo "<br>";
     echo "<br>";
     echo "<br>";
     echo "<h1>h00dFliX Movies</h1>";
     echo "<table style=width:25%>";
     echo "<thead>";
     echo "<tr><th>movieId</th><th>movie Title</th><th>Release Date</th><th>Return By</th><th>Copy Available</th></tr>";
     echo "</thead>";
     echo "<tbody>";
     foreach ($movies as $movie) {
         echo '<tr>';
         echo '<td>' . $movie->getMovieId() . '</td>';
         echo '<td>' . $movie->getMovieTitle() . '</td>';
         echo '<td>' . $movie->getReleaseDate() . '</td>';
         echo '<td>' . $movie->getReturnBy() . '</td>';
         echo '<td>' . $movie->getCopyAvailable() . '</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>";
     MasterView::showPageEnd();
 }
开发者ID:raroseman,项目名称:cs4413-Hoodflix,代码行数:33,代码来源:ShowMoviesView.class.php

示例6: show

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

示例7: show

 public static function show()
 {
     $_SESSION['headertitle'] = 'User Profile';
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     self::showDetails();
     MasterView::showFooter();
     MasterView::showPageEnd();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:10,代码来源:ProfileView.class.php

示例8: show

 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();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:10,代码来源:SignupView.class.php

示例9: showNew

 public static function showNew()
 {
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     $_SESSION['headertitle'] = "Sensor Data Repo | Create a Measurement";
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     echo '<br><br>' . "\n";
     echo '<p>This feature is not implemented yet!</p>';
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:10,代码来源:MeasurementView.class.php

示例10: show

 public static function show()
 {
     $_SESSION['headertitle'] = "Create botspace objects";
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     CreateView::showDetails();
     MasterView::showFooter();
     MasterView::showPageEnd();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:10,代码来源:CreateView.class.php

示例11: show

 public static function show()
 {
     $_SESSION['headertitle'] = "botspace";
     $_SESSION['styles'] = array('jumbotron.css', 'site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     HomeView::showDetails();
     MasterView::showFooter();
     MasterView::showPageEnd();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:10,代码来源:HomeView.class.php

示例12: showUpdate

 public static function showUpdate()
 {
     $user = array_key_exists('user', $_SESSION) ? $_SESSION['user'] : null;
     $dataset = array_key_exists('dataset', $_SESSION) ? $_SESSION['dataset'] : array();
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : "";
     $_SESSION['headertitle'] = 'Sensor Data Repo | Dataset Edit';
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     if (!is_null($dataset)) {
         echo '<h1>Dataset Edit</h1>';
         echo '<section>';
         echo '<form method="POST" action="/' . $base . '/dataset/update/' . $dataset->getDatasetId() . '">';
         echo 'Dataset Name:&nbsp<input type="text" name="dataset_name" ';
         if (!is_null($dataset)) {
             echo 'value="' . $dataset->getDatasetName() . '"';
         }
         echo 'tabindex="1" required>' . "\n";
         echo '<span class="error">';
         if (!is_null($dataset)) {
             echo $dataset->getError('dataset_name');
         }
         echo '</span><br><br>' . "\n";
         echo 'Created:&nbsp' . $dataset->getDateCreated() . '<br><br>' . "\n";
         echo 'Created by:&nbsp<a href="/' . $base . '/profile/show/' . $dataset->getUserId() . '">' . $user->getUsername() . '</a><br><br>' . "\n";
         echo 'Description:';
         echo '<span class="error">';
         if (!is_null($dataset)) {
             echo $dataset->getError('description');
         }
         echo '</span><br><br>' . "\n";
         echo '<textarea class="form-control" name="description" rows="4">';
         if (!is_null($dataset)) {
             echo $dataset->getDescription();
         }
         echo '</textarea>';
         echo '<br><br>';
         // Carry over the non-editable properties of Dataset
         //echo '<input type="hidden" name="dataset_id" value="'.$dataset->getDatasetId().'" />';
         echo '<p><input type="submit" name="submit" value="Submit">';
         echo '&nbsp&nbsp';
         echo '<a href="/' . $base . '/dataset/show/' . $dataset->getDatasetId() . '">Cancel</a><br>';
         echo '</form>';
         echo '</section>';
     } else {
         echo '<p>Unknown dataset</p>';
     }
     MasterView::showFooter();
     MasterView::showPageEnd();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:50,代码来源:DatasetView.class.php

示例13: 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>Request FliX</title>
	</head>
	<body>
		<form method="post">
			<section>
				<h1>Request 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>
			</section>		
			<input type="submit" name="submit"><br>
		</form>
	</body>
	</html>

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

示例14: show

 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();
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:15,代码来源:ProfileView.class.php

示例15: showLineChart

 public static function showLineChart()
 {
     $measurements = array_key_exists('measurements', $_SESSION) ? $_SESSION['measurements'] : null;
     $sensor = array_key_exists('sensor', $_SESSION) ? $_SESSION['sensor'] : null;
     $dataset = array_key_exists('dataset', $_SESSION) ? $_SESSION['dataset'] : null;
     $xLabel = array_key_exists('xLabel', $_SESSION) ? $_SESSION['xLabel'] : "";
     $yLabel = array_key_exists('yLabel', $_SESSION) ? $_SESSION['yLabel'] : "";
     $plotTitle = array_key_exists('plotTitle', $_SESSION) ? $_SESSION['plotTitle'] : "";
     $base = array_key_exists('base', $_SESSION) ? $_SESSION['base'] : '';
     $_SESSION['headertitle'] = 'Sensor Data Repo | Line Chart';
     $_SESSION['styles'] = array('site.css');
     MasterView::showHeader();
     MasterView::showNavBar();
     self::writeChartHeader();
     echo "\n\n" . '<script type="text/javascript">' . "\n";
     echo 'google.setOnLoadCallback(drawChart);' . "\n\n";
     echo 'function drawChart() {' . "\n";
     echo 'var data = google.visualization.arrayToDataTable([' . "\n";
     echo "\t" . '[\'' . $xLabel . '\', \'' . $yLabel . '\']';
     foreach ($measurements as $measurement) {
         echo ",\n\t\t" . '[\'';
         if ($sensor->requiresTimestampedMeasurements()) {
             echo $measurement->getTimestamp();
         } else {
             echo $measurement->getMeasurementIndex();
         }
         echo '\', ' . $measurement->getMeasurementValue() . ']';
     }
     echo "\n\t\t" . ']);' . "\n\n";
     echo "\t" . 'var options = {' . "\n";
     echo "\t" . 'title: \'' . $plotTitle . '\',' . "\n";
     echo "\t" . 'hAxis: { title: \'' . $xLabel . '\' },' . "\n";
     echo "\t" . 'vAxis: { title: \'' . $yLabel . '\' },' . "\n";
     echo "\t" . 'curveType: \'function\',' . "\n";
     echo "\t" . 'legend: { position: \'none\' }' . "\n";
     echo '};' . "\n";
     echo "\t" . 'var chart = new google.visualization.LineChart(document.getElementById(\'curve_chart\'));' . "\n";
     echo "\t" . 'chart.draw(data, options);' . "\n";
     echo '}' . "\n";
     echo '</script>' . "\n";
     echo '<div id="curve_chart" style="width: 900px; height: 500px"></div>' . "\n";
 }
开发者ID:mr-augustine,项目名称:sensor-data-repo,代码行数:42,代码来源:PlotView.class.php


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