<!-- Here is the page source code for nav.php -->
<?php
// ----------------------------------------------------------------------
function nav($url, $text)
{
// IF THE URL IS THE CURRENT PAGE ...
if (strcmp($url, basename($_SERVER['PHP_SELF'])) == 0)
{
// PASSIVE TABLE CELL
echo "<tr><td class=\"nofill\" bgcolor=\"#0000ff\">".
"<font color=\"white\"><strong>$text</strong></font></td></tr>\n";
}
else
{
// ACTIVE TABLE CELL WITH HYPERLINK
echo "<tr><td class=\"nofill\" bgcolor=\"#0000ff\" ".
"onMouseOver=\"this.bgColor='#ff0000'\" ".
"onMouseOut=\"this.bgColor='#0000ff'\"><a href=\""
. $url .
"\"><font color=\"yellow\">$text</font></a></td></tr>\n";
}
}
// ----------------------------------------------------------------------
?> <a href="../index.php"><img src="logo.PNG" width="64" height="63" border="0"></a>
<p><strong>INTRODUCTION</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<?php
nav('../../index.php', 'Site Home');
nav('../index.php', 'LAMP Home');
nav('index.php', 'PHP Web Home');
nav('00serverSetup.php', 'Server Setup');
nav('navdump.php', 'nav.php');
nav('codedump.php', 'code.php');
nav('PhpWebTutorial.zip', 'Download Tutorial');
?>
</table>
<p><strong>LESSONS</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<?php
nav('01hello.php', '01 Hello World!');
nav('02textio.php', '02 Text I/O');
nav('03arithmetic.php', '03 Arithmetic');
nav('04date.php', '04 Date and Time');
nav('05image.php', '05 Image Creation');
nav('06pie.php', '06 Pie Chart');
nav('07array.php', '07 Array and Records');
nav('08delete.php', '08 Delete a Record');
nav('09shop.php', '09 Shopping');
nav('10shop.php', '10 Shop Checkout');
nav('11mmbingo.php', '11 MM Bingo');
?>
</table>
<p><strong>MORE PHP</strong></p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<?php
nav('../phpconsole/', 'PHP Console Apps');
nav('../phpMySql2005/', 'PHP and MySQL');
?>
</table>
|