home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / types.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  531 b   |  24 lines

  1. <?php
  2. /**
  3.  * Basic usage example for HTML_Menu, showing all available menu types
  4.  * 
  5.  * $Id: types.php,v 1.2 2004/01/17 12:33:16 avb Exp $
  6.  * 
  7.  * @package HTML_Menu
  8.  * @author Alexey Borzov <avb@php.net>
  9.  */
  10.  
  11. require_once 'HTML/Menu.php';
  12. require_once './data/menu.php';
  13.  
  14. $types = array('tree', 'urhere', 'prevnext', 'rows', 'sitemap');
  15.  
  16. $menu =& new HTML_Menu($data);
  17. $menu->forceCurrentUrl('/item1.2.2.php');
  18.  
  19. foreach ($types as $type) {
  20.     echo "\n<h1>Trying menu type "{$type}"</h1>\n";
  21.     $menu->show($type);
  22. }
  23. ?>
  24.