Beispiel #1
0
<td class="normal" valign="top">

Tree Menu version
<?php 
$treemid->setMenuStructureFile("layersmenu-horizontal-2.txt");
$treemid->parseStructureForMenu("treemenu3");
print $treemid->newTreeMenu("treemenu3");
?>

</td>
<td class="normal" valign="top">

Horizontal Plain version - No JavaScript
<?php 
$pmid = new PlainMenu();
$pmid->setMenuStructureFile("layersmenu-horizontal-2.txt");
$pmid->parseStructureForMenu("phormenu");
print $pmid->newHorizontalPlainMenu("phormenu");
?>

</td>
</tr>
</table>

</div>

<div class="normalbox">
<div class="normal">
<?php 
include "README.ihtml";
?>
?>
 - a file-based example with a (Vertical) Plain Menu</b>
</div>
</div>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" valign="top">
<div style="height: 3px"></div>
<?php 
require_once 'lib/PHPLIB.php';
require_once 'lib/layersmenu-common.inc.php';
require_once 'lib/plainmenu.inc.php';
$plainmid = new PlainMenu();
//$plainmid->setPlainMenuTpl('layersmenu-plain_menu.ihtml');
$plainmid->setMenuStructureFile('layersmenu-horizontal-2.txt');
$plainmid->setIconsize(16, 16);
$plainmid->parseStructureForMenu('plainmenu');
print $plainmid->newPlainMenu('plainmenu');
?>
<br />
<center>
<a href="http://phplayersmenu.sourceforge.net/"><img border="0"
src="LOGOS/powered_by_phplm.png" alt="Powered by PHP Layers Menu" 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 />
Beispiel #3
0
<script language="JavaScript" type="text/javascript" src="libjs/layersmenu.js"></script>
<?php 
}
?>

<?php 
require_once 'lib/PHPLIB.php';
require_once 'lib/layersmenu-common.inc.php';
if ($menuType == 'DOM' || $menuType == 'OLD') {
    require_once 'lib/layersmenu.inc.php';
    $mid = new LayersMenu();
} else {
    require_once 'lib/plainmenu.inc.php';
    $mid = new PlainMenu();
}
$mid->setMenuStructureFile('layersmenu-index.txt');
$mid->setIconsize(16, 16);
$mid->parseStructureForMenu('homemenu');
if ($menuType == 'DOM' || $menuType == 'OLD') {
    $mid->setDownArrowImg('down-keramik.png');
    $mid->setForwardArrowImg('forward-keramik.png');
}
if ($menuType == 'DOM') {
    $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu-keramik-full.ihtml');
    $mid->setSubMenuTpl('layersmenu-sub_menu-keramik.ihtml');
} elseif ($menuType == 'OLD') {
    $mid->setHorizontalMenuTpl('layersmenu-horizontal_menu-old.ihtml');
    $mid->setSubMenuTpl('layersmenu-sub_menu-old.ihtml');
} else {
    $mid->setPlainMenuTpl('layersmenu-plain_menu.ihtml');
}