Compare commits

..

No commits in common. "b5aaafd494acbaab7578643c8633df3148eccfd5" and "6b30a2a506825e7855d71816eba959eb6878c6f2" have entirely different histories.

8 changed files with 99 additions and 106 deletions

View File

@ -1,23 +0,0 @@
<?php
/**
* About team page.
*/
require_once "lib/AboutView.php";
$view = new AboutView();
$view->setTitle("Meet the Team");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
echo $view->head();
?>
</head>
<body>
<?php
echo $view->header();
echo $view->page();
echo $view->footer();
?>
</body>
</html>

View File

View File

@ -1,6 +1,6 @@
<?php
require_once 'lib/LandingView.php';
$view = new LandingView();
require_once 'lib/View.php';
$view = new View();
$view->setTitle("CSE 435 Group 6")
?>
<!DOCTYPE html>

View File

@ -1,48 +0,0 @@
<?php
require_once "View.php";
/**
* Created by PhpStorm.
* User: sean
* Date: 10/26/17
* Time: 7:50 PM
*/
class AboutView extends View
{
public function page()
{
$body = <<<HTML
<h1>Roster:</h1>
<div class="team">
<div class="member">
<h2>Project Manager - James</h2>
<p>
blurb.
</p> </div>
<div class="member">
<h2>Artifacts Manager - Sean</h2>
<p>
blurb.
</p> </div>
<div class="member">
<h2>Project Facilitator - Stephen</h2>
<p>
blurb.
</p> </div>
<div class="member">
<h2>Safety/Security Engineer - Logan</h2>
<p>
blurb.
</p> </div>
<div class="member">
<h2>Domain Expert/Customer Liaison - Colin</h2>
<p>
blurb.
</p> </div>
</div>
HTML;
return $body;
}
}

86
lib/Homepage/View.php Normal file
View File

@ -0,0 +1,86 @@
<?php
/**
* Created by PhpStorm.
* User: sean
* Date: 5/26/17
* Time: 8:57 PM
*/
class View
{
public function __construct() {
$this->addNav("Home", "./");
$this->addNav("About Me", "aboutme.php");
$this->addNav("Experience", "experience.php");
$this->addNav("Game", "game.php");
}
public function head(){
$html = <<<HTML
<meta charset="utf-8">
<title>$this->title</title>
<link href="style/default.css" rel="stylesheet" type="text/css">
HTML;
return $html;
}
public function header(){
$html = <<<HTML
<header>
<h1>$this->title</h1>
<nav><p class="nav-bar">|
HTML;
foreach($this->links as $link){
$name = $link['name'];
$to = $link['link'];
$html .= " <a href='$to'>$name</a> |";
}
$html .= <<<HTML
</p></nav>
</header>
HTML;
return $html;
}
public function page(){
$html = <<<HTML
<div class="card">
<p>CONTENT COMING SOON!</p>
</div>
HTML;
return $html;
}
public function addNav($name, $link){
$this->links[] = array("name" => $name, "link" => $link);
}
public function footer(){
$html = <<<HTML
<footer>
</footer>
HTML;
return $html;
}
public function setTitle($title){
$this->title = $title;
}
private $links = array();
private $title = "Not Set!";
}

View File

@ -1,19 +0,0 @@
<?php
require_once "View.php";
/**
* Created by PhpStorm.
* User: sean
* Date: 10/26/17
* Time: 7:52 PM
*/
class LandingView extends View
{
public function page()
{
$body = <<<HTML
<h1>Paint Defect Reporting!</h1>
<p>Find those defects, boys!</p>
HTML;
return $body;
}
}

View File

@ -12,7 +12,7 @@ class View
public function __construct() {
$this->addNav("Home", "./");
$this->addNav("Progress", "./");
$this->addNav("Meet The Team", "./about.php");
$this->addNav("Meet The Team", "./");
$this->addNav("Course Site", "https://cse.msu.edu/~cse435/");
}
@ -52,7 +52,16 @@ HTML;
public function page(){
$html = <<<HTML
<p>Content coming soon...</p>
<div class="card">
<h2>Roster:</h2>
<ul>
<li>Project Manager - James</li>
<li>Artifacts Manager - Sean</li>
<li>Project Facilitator- Stephen</li>
<li>Safety/Security Engineer - Logan</li>
<li>Domain Expert/Customer Liaison - Colin</li>
</ul>
</div>
HTML;
return $html;

View File

@ -1,12 +0,0 @@
AuthType Basic
AuthBasicProvider ldap
AuthName "Roaming Access"
AuthLDAPURL ldap://ds.cse.msu.edu:389/ou=People,dc=cse,dc=msu,dc=edu?uid?sub
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require user cse435
Require user joseph62
Require user alphastep
Require user arentlog
Require user coppers4
Require user murra203