Commit cd6b3d92 authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

changing name of content variable to match last week

parent 7eeebe64
......@@ -5,16 +5,16 @@ $myvar = $_GET['id'];
} else {
$myvar = 'home';
}
$html = "<!DOCTYPE html
$content = "<!DOCTYPE html
<html>
<head>
<meta charset='utf-8'/>
<title>Music Store: $myvar</title>
</head>
<body>";
$html .= "<nav><ul><a href='index_v1.php?id=home'>Home</a></li>";
$html .= "<li><a href='index_v1.php?id=customers'>Customers</a></li>";
$html .= "<li><a href='index_v1.php?id=orders'>Orders</a></li></ul></nav>";
$content .= "<nav><ul><a href='index_v1.php?id=home'>Home</a></li>";
$content .= "<li><a href='index_v1.php?id=customers'>Customers</a></li>";
$content .= "<li><a href='index_v1.php?id=orders'>Orders</a></li></ul></nav>";
switch ($myvar) {
case 'home' : include 'views/home.php';
......@@ -25,6 +25,6 @@ case 'orders' :
include 'views/orders.php' break;
default :
include 'views/404.php';}
$html .= "</body></html>";echo$html;
$content .= "</body></html>";echo$content;
?>
......@@ -7,7 +7,7 @@ include('templates/header.html');
include('templates/nav.html');
// define variable for storing body HTML
$html = "";
$content = "";
// check if 'page' parameter is set in query string
if (isset($_GET['page'])) {
......@@ -32,7 +32,7 @@ default :
}
// output body HTML
echo $html;
echo $content;
// include the footer HTML
include('templates/footer.html');
......
<?php
$html .= "<h1>Oops!</h1>";
$html .= "<p>Sorry, the page you're looking for cannot be found.</p>";
$content .= "<h1>Oops!</h1>";
$content .= "<p>Sorry, the page you're looking for cannot be found.</p>";
?>
<?php
$html .= "<h1>Customers</h1>";
$html .= "<p>Browse the app's customers here...maybe add/delete/edit customers too...whatever.</p>";
$content .= "<h1>Customers</h1>";
$content .= "<p>Browse the app's customers here...maybe add/delete/edit customers too...whatever.</p>";
?>
<?php
$html .= "<h1>Welcome to the Music Store</h1>";
$html .= "<p>Some content here...</p>";
$content .= "<h1>Welcome to the Music Store</h1>";
$content .= "<p>Some content here...</p>";
?>
<?php
$html .= "<h1>Orders</h1>";
$html .= "<p>Browse the orders here...maybe add/delete/edit/mark dispatched...whatever.</p>";
$content .= "<h1>Orders</h1>";
$content .= "<p>Browse the orders here...maybe add/delete/edit/mark dispatched...whatever.</p>";
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment