<?php
include "nav.class.php";
/////////////////////////////////////////////////////////////////////
//
// TEXT VERSION
$obj = new Navigation('text', 200);
$obj->AddHeader('Site Nav');
$obj->AddItem('Home', 'index.php');
$obj->AddItem('Link 1', 'index.php?pg=link1');
$obj->AddItem('Link 2', 'index.php?pg=link2');
$obj->AddHeader('Site Nav 2');
$obj->AddItem('Home', 'index.php');
$obj->AddItem('Link 1', 'index.php?pg=link1');
$obj->AddItem('Link 2', 'index.php?pg=link2');
$obj->AddHeader('Site Nav 3');
$obj->AddItem('Home', 'index.php');
$obj->AddItem('Link 1', 'index.php?pg=link1');
$obj->AddItem('Link 2', 'index.php?pg=link2');
$obj->AddHeader('Site Nav 4');
$obj->AddItem('Home', 'index.php');
$obj->AddItem('Link 1', 'index.php?pg=link1');
$obj->AddItem('Link 2', 'index.php?pg=link2');
//
//
/////////////////////////////////////////////////////////////////////
//
// TABLE VERSION
$obj2 = new Navigation('table', 150);
$obj2->AddHeader('Site Nav');
$obj2->AddItem('Home', 'index.php');
$obj2->AddItem('Link 1', 'index.php?pg=link1');
$obj2->AddItem('Link 2', 'index.php?pg=link2');
$obj2->AddHeader('Site Nav 2');
$obj2->AddItem('Home', 'index.php');
$obj2->AddItem('Link 1', 'index.php?pg=link1');
$obj2->AddItem('Link 2', 'index.php?pg=link2');
$obj2->AddHeader('Site Nav 3');
$obj2->AddItem('Home', 'index.php');
$obj2->AddItem('Link 1', 'index.php?pg=link1');
$obj2->AddItem('Link 2', 'index.php?pg=link2');
$obj2->AddHeader('Site Nav 4');
$obj2->AddItem('Home', 'index.php');
$obj2->AddItem('Link 1', 'index.php?pg=link1');
$obj2->AddItem('Link 2', 'index.php?pg=link2');
//
//
/////////////////////////////////////////////////////////////////////
//
// IMAGE VERSION
$obj3 = new Navigation('image');
$obj3->AddHeader('Site Nav');
$obj3->AddItem('Home', 'index.php');
$obj3->AddItem('Link 1', 'index.php?pg=link1');
$obj3->AddItem('Link 2', 'index.php?pg=link2');
$obj3->AddHeader('Site Nav 2');
$obj3->AddItem('Home', 'index.php');
$obj3->AddItem('Link 1', 'index.php?pg=link1');
$obj3->AddItem('Link 2', 'index.php?pg=link2');
$obj3->AddHeader('Site Nav 3');
$obj3->AddItem('Home', 'index.php');
$obj3->AddItem('Link 1', 'index.php?pg=link1');
$obj3->AddItem('Link 2', 'index.php?pg=link2');
$obj3->AddHeader('Site Nav 4');
$obj3->AddItem('Home', 'index.php');
$obj3->AddItem('Link 1', 'index.php?pg=link1');
$obj3->AddItem('Link 2', 'index.php?pg=link2');
//
//
/////////////////////////////////////////////////////////////////////
//End processing and output HTML.
?>
<h3><center><font face=verdana>Welcome to Mysyte.Navigation.Class Demo File</font></center></h3>
<table border=1 width=100% height=92%>
<tr align=center>
<td width=100% colspan=3>Welcome to the demo file of the Navigation.Class, this is a simple class with 3 different layouts, and is fairly customizable, with font, color and sizes to accomodate your own site. It is also very simple to use, and can be easily modified to suit your needs.</td>
</tr>
<tr align=center>
<td width=33%>This is the <b>text</b> version of the navigation class, it is the most plain, and simple</td>
<td width=33%>This is the <b>table</b> version, it is slightly more compatible and volorful, with more available options</td>
<td width=33%>This is the <b>image</b> version, it is the most complicated, and it run off a dynamic PHP based image file to create the headers and arrows, hard to configure unless you know PHP and GD</td>
</tr>
<tr align=center>
<td width=33%><?= $obj->Output(); ?></td>
<td width=33%><?= $obj2->Output(); ?></td>
<td width=33%><?= $obj3->Output(); ?></td>
</tr>
</table>
|