Good Afternoon
Welcome to Novelty Online Bookstore

book

This Just In

Have you ever needed to check a person's age for job reasons?

Or, maybe someone ask your age and you simply didn't remember?
Maybe it started in your 30's when each year you counted backwards.
Whatever the reason, here is a handy solution.

Try our new calculator in stores now!

Age Calculator (beta version) *Updated!

It is 3:53 PM. We're Open!

November
Book Sale

Morning Special

  • Buy 3 get 1 free
    books by Author Sheila Walsh

Afternoon Special

  • 10% off Monsterlicious
    by Erik Jon Slangerup

Evening Special

  • 50% off select titles

Manager's Chart

1 + 2 = 3
2 + 2 = 4
3 + 2 = 5
1 - 1 = 0 1 x 1 = 1 1 - 2 = -1 1 x 2 = 2
2 - 1 = 1 2 x 1 = 2 2 - 2 = 0 2 x 2 = 4
3 - 1 = 2 3 x 1 = 3 3 - 2 = 1 3 x 2 = 6
4 - 1 = 3 4 x 1 = 4 4 - 2 = 2 4 x 2 = 8
5 - 1 = 4 5 x 1 = 5 5 - 2 = 3 5 x 2 = 10
6 - 1 = 5 6 x 1 = 6 6 - 2 = 4 6 x 2 = 12
7 - 1 = 6 7 x 1 = 7 7 - 2 = 5 7 x 2 = 14
8 - 1 = 7 8 x 1 = 8 8 - 2 = 6 8 x 2 = 16
EDT
5.2.8

Source Code for Navigation Bar

<?php $currentPage basename ($_SERVER['PHP_SELF']); ?>
<ul>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/index.php" title="PHP Course Syllabus"
<?php
if($currentPage=="index.php"){
    echo 
'id="current"';
}
?>
    >Index</a><!--close anchor tag-->
    </li>
<li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week1.php" title="Week One"
<?php
if($currentPage=="week1.php"){
    echo 
'id="current"';
}
?>
    >About</a><!--close anchor tag-->
    </li>
    <li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week2.php" title="Week Two"
<?php
if($currentPage=="week2.php"){
    echo 
'id="current"';
}
?>
    >Photos</a><!--close anchor tag-->
    </li>
    <li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week3.php" title="Week Three"
<?php
if($currentPage=="week3.php"){
    echo 
'id="current"';
}
?>
    >Store</a><!--close anchor tag-->
    </li>
    <li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week4.php" title="Week Four"
<?php
if($currentPage=="week4.php"){
    echo 
'id="current"';
}
?>
    >Cards</a><!--close anchor tag-->
    </li>
    <li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week5.php" title="Week Five"
<?php
if($currentPage=="week5.php"){
    echo 
'id="current"';
}
?>
    >Forms</a><!--close anchor tag-->
    </li>
    <li>
<a href="<?php ($_SERVER['DOCUMENT_ROOT']); ?>/lvs/php101/week6.php" title="Week Six"
<?php
if($currentPage=="week6.php"){
    echo 
'id="current"';
}
?>
    >Database</a><!--close anchor tag-->
    </li>
    </ul>

Source Code for Single Column Table

<table>
<?php
$loops 
=3;//number of repeated echos
$y =2;
for(
$i=1$i<= $loops$i++) {
$product $i $y;//identify product
    //draw each echoed loop
        
echo("<tr><td>".$i ." + "$y ." = " .$product."</td></tr>\n");
}
//end the table
?>
</table>

Source Code for Modulo Styled Table

<table>
<?php
for($i=1$i<= $rows$i++)
{
    
//check if this is an odd row
    
if( == ($i 2) ){
        
//even row
        //each row begins with <tr>
        
echo("<tr class='normal'>\n");
    }
    else{
        
//odd row
        //each row begins with <tr>
        
echo("<tr class='alternate'>\n");
    }        

    
//now iterate and draw each cell for each column
    
for($j=1$j<= $columns$j++)
    {
//output each cell
        
$product $i $j;//subtract
        //output each cell
        
$ahHa $i $j;//multiply
        
echo("<td>");
        echo(
$i ." - "$j ." = " .$product);//print
        
echo("</td>\n");
    echo(
"<td>");
        echo(
$i ." x "$j ." = " .$ahHa);//print
        
echo("</td>\n");
    }    
    
//each row ends with </tr>
    
echo("</tr>\n");
}
//end the table
?>
</table>

Source Code for TimeOfDay3.php

<?php

$hourOfDay 
date("G");
$displayTime date("g:i A");

if (
$hourOfDay >=&& $hourOfDay <12){//test for morning
$style="morning3.css";
$greeting="Good Morning";
$image='images/gigi.jpg" height="400" width="315" alt="book"';
}
elseif (
$hourOfDay >=12 && $hourOfDay <17){//test for afternoon
    
$style="afternoon3.css";
    
$greeting="Good Afternoon";
    
$image='images/monster.jpg" height="400" width="343" alt="book"';
}
elseif (
$hourOfDay >=17 && $hourOfDay <24){//test for afternoon
    
$style="evening3.css";
    
$greeting="Good Evening";
    
$image='images/dj.jpg" height="400" width="398" alt="book"';
}
else {
    
$style="closed3.css";
    
$greeting="<b>-- Sorry We're Closed --</b><br />the store will re-open at 6 a.m. EST";
    
$image='images/kaede.jpg" height="400" width="255" alt="book"';
}
//end if
    
?>

Source Code for Age Calculator

<form method="get" action="includes/calc.php" name="firstForm">
<fieldset>
<legend>Age Calculator (beta version) <span class="red">*Updated!</span></legend>
<p>
<label>Print your name:
<input type="text" name="yourName" id="yourName" />
    </label>
    </p>
<p>
<label>What you believe your age to be:
<input type="text" name="trueAge" id="trueAge" />
    </label>
    </p>
    <p>
<label>Enter the year you were born:
<input type="text" name="yearBorn" id="yearBorn" />
    </label>
    </p>
    <p><input type="submit" name="calculate" id="button" value="Calculate" /></p>
    </fieldset>
    </form>

Source Code for Copyright

<p>Bonnie Lincicome &copy; <?php echo date('Y');?> All Rights Reserved<br />
This page was last updated on <?php echo date('F d, Y H:i:s'getlastmod($filename)); ?></p>

Source Code for Week 3

<?php $siteName 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'?>
<?php 
include('includes/timeOfDay3.php'); ?>
<?php $currentWeek
="week3"?>
<?php $rows
=8?>
<?php $columns
=2?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Week Three</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="common/site.css" rel="stylesheet" type="text/css" />
<link href="common/<? echo $style?>" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="head">
<p><?php echo $siteName?></p>
</div><!--close #head-->

<div id="wrap">

<div id="bar-nav">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
</div><!--close bar-nav-->

<div id="content">

<h1><?php echo $greeting;//print the greeting based on the time of day ?>
<br />Welcome to Novelty Online Bookstore</h1>

<div id="left-container">
<img src="<?php echo $image?> />

<div id="span">
<h2>This Just In</h2>
<p>Have you ever needed to check a person's age for job reasons?</p>
<p>Or, maybe someone ask your age and you simply didn't remember?<br />
Maybe it started in your 30's when each year you counted backwards.<br />
Whatever the reason, here is a handy solution.</p>
<p>Try our new calculator in stores now!</p>
<?php include('includes/form.php'); ?>
</div><!--close #span-->

</div><!--close left-container-->

<p class="noDisplay">It is <?php echo $displayTime?>. We're Open!</p>

<div id="right-container">

<h2 class="dotted">November<br />
Book Sale</h2>
<p>Morning Special</p>
<ul><li><em>Buy 3 get 1 free<br />
books by Author Sheila Walsh</em>
</li></ul>
<p>Afternoon Special</p>
<ul><li><em>10% off Monsterlicious<br />
by Erik Jon Slangerup</em></li></ul>
<p>Evening Special</p>
<ul><li><em>50% off select titles</em></li></ul>
<hr />
<h2>Manager's Chart</h2>
<div id="calculations">
<?php include('includes/single-column.php'); ?>
<?php 
include('includes/table.php'); ?>
</div><!--close #calculations-->

</div><!--close right-container-->

</div><!--close #content-->
</div><!--close #wrap-->

<div id="foot">
<?php include($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/copyright.php'); ?>
</div><!--close #foot-->

<div id="source">
<?php echo date("T"); ?>
<hr />
<?php echo phpversion(); ?>
<hr />
<p>Source Code for Navigation Bar</p>
<?php show_source('includes/bar-nav.php'); ?>
<hr />
<p>Source Code for Single Column Table</p>
<?php show_source('includes/single-column.php'); ?>
<hr />
<p>Source Code for Modulo Styled Table</p>
<?php show_source('includes/table.php'); ?>
<hr />
<p>Source Code for TimeOfDay3.php</p>
<?php show_source('includes/timeOfDay3.php'); ?>
<hr />
<p>Source Code for Age Calculator</p>
<?php show_source('includes/form.php'); ?>
<hr />
<p>Source Code for Copyright</p>
<?php show_source('includes/copyright.php'); ?>
<hr />
<p>Source Code for Week 3</p>
<?php show_source('week3.php'); ?>
</div><!--close #source-->

<div id="closed" class="displayNone">
<!--IE Hates This-->
</div><!--close #closed-->

</body>
</html>