Login   Register  
PHP Classes
elePHPant
Icontem

multiXPandMenu: Generate dynamically expansible hierarchical menus

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-09-01 (8 years ago) RSS 2.0 feedStarStarStarStar 74%Total: 4,230 All time: 636 This week: 1,438Down
Version License PHP version Categories  
xpandmenu 1.0BSD License3HTML
Description Author  

This class can create multi-level hierarchical menus based on a list of menu items and submenu items using DHTML.

The items organized in the generated menu can be expanded and collapsed dynamically using Javascript, that is when the user clicks on a menu item, all corresponding submenu items are shown, or hidden if already visible.

A good example of what it looks like is the list of documents and directories in the left frame of the Microsoft Windows Explorer.

The class provides means to create a root menu item and then add sub-nodes to it. To create more levels, it can add sub-nodes inside other sub-nodes. The menu may be arbitrarily deep.

The HTML code generated is only based on <UL> tags and is compatible with all browsers.

The generated menu is fully customizable using CSS. You may write your own CSS style definitions to configure the look and feel of parents and children menu items'.

The class also lets you define an image to use as the expand and collapse box. This is optional but can be handy to make the menu easier to understand.

Picture of Patrick Brosset
Name: Patrick Brosset <contact>
Classes: 3 packages by
Country: France France
Age: 34
All time rank: 18811 in France France
Week rank: 1826 Down54 in France France Down

Screenshots  
  • screen_windows.gif
  • screen_expanded.gif
  • screen_collapsed.gif
  Files folder image Files  
File Role Description
Image file document_win.gif Icon Windows-style document icon
Plain text file example_complex.php Example Complex usage example
Plain text file example_dynamic.php Example Example file to learn how to create a menu dynamically from a multiple array of links
Plain text file example_reuseHTML.php Example Learn how to save the generated code to reuse it later
Plain text file example_SaveState.php Example Learn how to save the state of your menu in order to re-display it as is on another page
Plain text file example_simple.php Example Simple usage example
Plain text file File.php Class A simple file loader / writer used by the xPandMenu class to save the generated code
Image file folder_win.gif Icon Windows-style closed directory icon
Image file folder_win_o.gif Icon Windows-style open directory icon
Accessible without login Plain text file readme.txt Doc. READ ME FIRST
Plain text file xPandMenu.css Data CSS file to stylize the menu
Plain text file xPandMenu.js Data External javascript file for dynamic actions
Plain text file xPandMenu.php Class PHP class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:4,230All time:636
 This week:0This week:1,438Down
 User Ratings  
 
 All time
Utility:94%StarStarStarStarStar
Consistency:92%StarStarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:74%StarStarStarStar
Rank:90