<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="layersmenu.css" type="text/css">
<link rel="shortcut icon" href="images/www.kernel.org_images_tux16-16.png">
<title>The PHP Layers Menu</title>

<?php
include ("lib/template.inc.php3");	// taken from PHPLib
include ("lib/layersmenu.inc.php3");
include ("lib/layersmenu-noscript.inc.php3");

//$mid = new LayersMenu(140, 20, 20);
$mid = new XLayersMenu();

//$mid->set_dirroot("");
//$mid->set_libdir("lib/");
//$mid->set_libwww("lib/");
//$mid->set_tpldir("templates/");
//$mid->set_imgdir("images/");
//$mid->set_imgwww("images/");

$mid->set_menu_structure_file("layersmenu-horizontal-1.txt");
$mid->set_down_arrow_img("down-nautilus.png");
$mid->set_forward_arrow_img("forward-nautilus.png");
$mid->parse_menu_structure("hormenu1");
//$mid->new_horizontal_menu("hormenu1", 12);
$mid->new_horizontal_menu("hormenu1");

$menustring =
".|Linus B. Torvalds|http://www.cs.Helsinki.FI/u/torvalds/|The father of Linux||Linus\n" .
".|Linux Kernel Archives|http://www.kernel.org/|Here you can download the Linux kernel sources|www.kernel.org_images_tux16-16.png|kernelorg\n" .
".|Linux Distributions|http://flashnet.linux.tucows.com/distribution.html|Here you can find a list of the major Linux distributions||Linux\n" .
"..|Debian GNU/Linux|http://www.debian.org/|Enjoy the exciting world of Debian GNU/Linux!|debian-icon-mini.png|Linux\n" .
"...|About|http://www.debian.org/intro/about|||Linux\n" .
"...|News|http://www.debian.org/News/|||Linux\n" .
"...|Distribution|http://www.debian.org/distrib/|||Linux\n" .
"...|Support|http://www.debian.org/support|||Linux\n" .
"...|Development|http://www.debian.org/devel/|||Linux\n" .
"...|Search|http://search.debian.org/|||Linux\n" .
"...|A Debian Mirror|http://ftp.mirror.ac.uk/sites/ftp.debian.org/|||Linux\n" .
"..|Red Hat|http://www.redhat.com/|Red Hat Linux||Linux\n" .
"...|Red Hat Errata|http://www.redhat.com/errata/|||Linux\n" .
"...|Red Hat Mirrors|http://www.redhat.com/mirrors.html|||Linux\n" .
"...|Red Hat Support|https://www.redhat.com/apps/support/|||Linux\n" .
"...|Bugzilla|http://bugzilla.redhat.com/bugzilla/|||Linux\n" .
"..|Slackware|http://www.freesoftware.org/|Slackware Linux||Linux\n";
$mid->set_menu_structure_string($menustring);
$mid->set_vertical_menu_tpl("layersmenu-vertical_menu-green.ihtml");
$mid->set_sub_menu_tpl("layersmenu-sub_menu-darkgreen.ihtml");
$mid->set_plain_menu_tpl("layersmenu-plain_menu-green.ihtml");
$mid->set_forward_arrow(" --&gt;");
$mid->parse_menu_structure("vermenu1");
$mid->new_plain_menu("vermenu1");
$mid->new_tree_menu("vermenu1");
//$mid->new_vertical_menu("vermenu1", 12);
$mid->new_vertical_menu("vermenu1");

$mid->set_menu_structure_file("layersmenu-vertical-2.txt");
$mid->set_vertical_menu_tpl("layersmenu-vertical_menu.ihtml");
$mid->set_sub_menu_tpl("layersmenu-sub_menu-black.ihtml");
$mid->set_forward_arrow_img("forward-gnome.png");
$mid->parse_menu_structure("vermenu2");
$mid->new_tree_menu("vermenu2");
$mid->new_vertical_menu("vermenu2");

$mid->set_menu_structure_file("layersmenu-horizontal-2.txt");
$mid->set_horizontal_menu_tpl("templates/layersmenu-horizontal_menu-red.ihtml");
$mid->set_sub_menu_tpl("layersmenu-sub_menu-orange.ihtml");
$mid->set_horizontal_plain_menu_tpl("layersmenu-horizontal_plain_menu-red.ihtml");
$mid->set_down_arrow(" &gt;&gt;");
$mid->set_forward_arrow(" &gt;&gt;");
$mid->parse_menu_structure("hormenu2");
$mid->new_horizontal_plain_menu("hormenu2");
$mid->new_horizontal_menu("hormenu2");

$mid->print_header();
/* alternatively:
$header = $mid->make_header();
print $header;
*/
?>

</head>

<body>
<table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#aa0000">
<tr><td>
<table width="100%" border="0" cellpadding="8" cellspacing="1">
<tr>
<td class="horbartop" align="left" colspan="2">
<div class="h1bar" align="center">The PHP Layers Menu</div>
<center>
<br />
<b>
A <a href="layersmenu-horizontal-1.txt" target="TheMenuStructureFile">Horizontal Menu Structure File</a>
and the <a href="index.phps" target="SourceCode">Source Code</a> for this Demo
</b>
</center>
<br />
<center>
<?php
$mid->print_menu("hormenu1");
/* alternatively:
$hormenu1 = $mid->get_menu("hormenu1");
print $hormenu1;
*/
?>
</center>
</td>
</tr>
<tr>
<td width="20%" class="verbarleft" valign="top" rowspan="2">
<center>
A vertical menu... and its
<br />
<a href="layersmenu-vertical-2.txt" target="TheMenuStructureFile">Menu Structure File</a>
<br /><br />
<?php
$mid->print_menu("vermenu1");
/* alternatively:
$vermenu1 = $mid->get_menu("vermenu1");
print $vermenu1;
*/
?>
</center>
<br />
<div class="normal">
Tree - No JavaScript
</div>
<?php
$mid->print_tree_menu("vermenu1");
/* alternatively:
$tree_menu1 = $mid->get_tree_menu("vermenu1");
print $tree_menu1;
*/
?>
<br />
<center>
<div class="normal">
Plain - No JavaScript
</div>
<br />
<?php
$mid->print_plain_menu("vermenu1");
/* alternatively:
$plain_menu1 = $mid->get_menu("vermenu1");
print $plain_menu1;
*/
?>
</center>
<br />
<center>
<div class="normal">
Another vertical menu...
</div>
<br />
<?php
$mid->print_menu("vermenu2");
/* alternatively:
$vermenu2 = $mid->get_menu("vermenu2");
print $vermenu2;
*/
?>
</center>
<br />
<div class="normal">
Tree - No JavaScript
</div>
<?php
$mid->print_tree_menu("vermenu2");
/* alternatively:
$tree_menu2 = $mid->get_tree_menu("vermenu2");
print $tree_menu2;
*/
?>
<br />
<center>
<a href="http://validator.w3.org/check/referer"><img border="0"
src="images/valid-html401.png" alt="Valid HTML 4.01!" height="31" width="88" /></a>
</center>
<br />
<center>
<a href="http://validator.w3.org/check/referer"><img border="0"
src="images/valid-xhtml10.png" alt="Valid XHTML 1.0!" height="31" width="88" /></a>
</center>
<br />
<center>
<a href="http://jigsaw.w3.org/css-validator/"><img border="0"
src="images/vcss.png" alt="Valid CSS!" height="31" width="88" /></a>
</center>
</td>
<td class="verbarleft">
<center>
Another horizontal menu... and its <a href="layersmenu-horizontal-2.txt" target="TheMenuStructureFile">Menu Structure File</a>
<br /><br />
<?php
$mid->print_menu("hormenu2");
/* alternatively:
$hormenu2 = $mid->get_menu("hormenu2");
print $hormenu2;
*/
?>
<br />
<div class="normal">
Horizontal Plain version - No JavaScript
</div>
<br />
<?php
$mid->print_horizontal_plain_menu("hormenu2");
/* alternatively:
$horizontal_plain_menu2 = $mid->get_menu("hormenu2");
print $horizontal_plain_menu2;
*/
?>
</center>
</td>
</tr>
<tr valign="top">
<td class="preformatted" bgcolor="#ffffff">
<pre>
<?php include ("README"); ?>
</pre>
</td>
</tr>
</table>
</td></tr>
</table>

<?php
$mid->print_footer();
/* alternatively:
$footer = $mid->make_footer();
print $footer;
*/
?>

</body>
</html>
