예제 #1
0
e.	The following links:

<li><a href="about.php">About</a></li>
<li><a href="products.php">Products</a></li>
<li><a href="extras.php">Extras</a></li>
<li><a href="order.php">Ordering</a></li>


f.	The main area of the page should have 
i.	The h2 heading <h2>Current products</h2>
ii.	Two paragraphs of made up product text

g.	Footer text: Copyright 2014

 -->
 <?php 
require_once 'functions.php';
echo makePageStart("Newcastle Sports  - Products", "sports.css");
echo makeHeader("Newcastle Sports");
echo makeNavMenu("Menu", array("about.php" => "About", "products.php" => "products", "extras.php" => "Extras", "order.php" => "Ordering"));
// echo makeMainArea();
echo startMain();
?>
 
<h2>Current products</h2>
<h3>Lorem Ipsum</h3>
<p>Jamie will try real American food and meet the most interesting cooks and producers that this vast country has to offer. His epic journey will take him to the heart of America: its people, culture, music and, most importantly, its food. As well as being a visually stunning journey, "Jamie's America" is a practical cookbook, with each chapter focusing on the food and recipes of a different state. Add review</p>
<?php 
echo endMain();
echo makeFooter("Copyright 2014");
echo makePageEnd();
예제 #2
0
<?php

require_once 'functions.php';
echo makePageStart("Review it!", "review.css");
echo makeHeader("My New Header");
echo makeNavMenu("Categories", array("index.php" => "Home", "book.php" => "Books", "dvd.php" => "DVD", "games.php" => "Games"));
// echo makeMainArea();
echo startMain();
?>
 
<h2>Add your reviews of the following and more</h2>
<h3>Jamie's America</h3>
<p>Jamie will try real American food and meet the most interesting cooks and producers that this vast country has to offer. His epic journey will take him to the heart of America: its people, culture, music and, most importantly, its food. As well as being a visually stunning journey, "Jamie's America" is a practical cookbook, with each chapter focusing on the food and recipes of a different state. Add review</p>
<?php 
echo endMain();
echo makeFooter("Product details taken from the whsmith web site");
echo makePageEnd();
?>


예제 #3
0
파일: books.php 프로젝트: ChesterChin92/php
<?php

require_once 'functions.php';
echo makePageStart("Review it! Books Page", "review.css");
echo makeHeader("Review it!");
echo makeNavMenu("Categories", array("index.php" => "Home", "book.php" => "Books", "dvd.php" => "DVD", "games.php" => "Games"));
echo startMain();
?>
<h2>Books</h2>
<h3>A book title</h3>
<p>Info about a book...</p>
<?php 
echo endMain();
echo makeFooter("Product details are made up");
echo makePageEnd();