add template files and compose file, fix syntax errors in template
This commit is contained in:
15
Views/template/footer.phtml
Normal file
15
Views/template/footer.phtml
Normal file
@@ -0,0 +1,15 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div id="footer" class="col-xs-12">
|
||||
<p>Web-site development using the MVC design pattern and the Bootstrap CSS framework</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
68
Views/template/header.phtml
Normal file
68
Views/template/header.phtml
Normal file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="/css/bootstrap.css" rel="stylesheet">
|
||||
<!-- Bootstrap theme -->
|
||||
<link href="/css/bootstrap-theme.css" rel="stylesheet">
|
||||
<link href="/css/my-style.css" rel="stylesheet">
|
||||
|
||||
<title>Server-Side Programming - <?php echo $view->pageTitle; ?></title>
|
||||
</head>
|
||||
|
||||
<body role="document">
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div id="title" class="col-xs-12">
|
||||
<img src="/images/new_uos_logo.jpg" alt="Salford University" />
|
||||
<div class="pull-right"> <h1><?php echo $view->pageTitle ?> </h1></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div id="menu" class="col-xs-6 col-sm-3 col-md-2">
|
||||
<ul class="nav navbar_default nav-stacked">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if (!isset($_SESSION["login"])) {
|
||||
echo '
|
||||
<form method="post" action="" class="form text-primary">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username">
|
||||
<label for="password">Password</label>
|
||||
<input type="text" name="password">
|
||||
<input type="submit" name="loginbutton" value="Login">
|
||||
|
||||
</form>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '
|
||||
<form method="post" action="" class="form text-primary">
|
||||
<input type="submit" name="logoutbutton" value="Logout">
|
||||
</form>';
|
||||
}
|
||||
?>
|
||||
|
||||
<li><a href="/index.php">Home</a></li>
|
||||
<li><a href="/page1.php">Page1</a></li>
|
||||
<li><a href="/page2.php">Page2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="content" class="col-xs-6 col-sm-9 col-md-10">
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user