Park Place

Use F5 on your keyboard to refresh this page and change the image

random image

Autumn Bling

An autumn poem will go here if I ever finish my poetry class assignment. <3

5.3.6

Source Code for Fall Photo Array

<?php
$images 
= array('fall0','fall1','fall2''fall3''fall4''fall5''fall6');
$i =rand(0count($images)-1); //do NOT change.
$fall "images/{$images[$i]}.jpg"// change image folder path here if necessary
?>

Source Code for Sub 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>

<?php $siteName 'LzyDaz Designs<br /><em><span class="white-text">www.lzydaz.com</span></em>'?>
<?php 
include('includes/fall.php'); ?>
<!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>Gallery</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link href="../common/site.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="head">

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

<div id="wrap">
<div id="content">

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

<div id="navcontainer">

<ul> 
<li><a href="../week2.php" title="Return to Main">Main</a></li>
<li><a href="game.php" title="Feeling Lucky?">Game</a></li>
<li><a href="calculations.php" title="Super Sale!">Sale</a></li>
</ul>
</div><!-- close navcontainer -->

<div id="right-container">
<div id="bar-nav">
<h1>Park Place</h1>
<p><em>Use F5 on your keyboard to refresh this page and change the image</em></p>
</div><!--close #bar-nav-->

<div id="fall-container">
<img src="<?php echo $fall?>" alt="random image" />
</div><!--close #fall-container-->

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

<div id="left-container">
<h2>Autumn Bling</h2>
<p class="dotted">
An autumn poem will go here if I ever finish my poetry class assignment. &lt;3
</p>
</div><!--close #left-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 phpversion(); ?>
<hr />
<p>Source Code for Fall Photo Array</p>
<?php show_source('includes/fall.php'); ?>
<hr />
<p>Source Code for Sub Navigation Bar</p>
<?php show_source($_SERVER['DOCUMENT_ROOT'] . '/lvs/php101/includes/bar-nav.php'); ?>
<hr />
<?php show_source('gallery.php'); ?>
</div><!--close #source-->
</body>
</html>