Thursday, May 5, 2016

PHP Layers Menu A Hierarchical Menu System In PHP

 PHP Layers Menu php script is a hierarchical menu system to prepare "on the fly" DHTML menus relying on the PHP scripting engine for the processing of data items.

It is released under the GNU Lesser General Public License (LGPL), either Version 2.1, or (at your option) any later version.

It supports a wide range of browsers: Mozilla, Konqueror, Netscape, Safari, Opera, Internet Explorer; rather old browser versions are supported, too; accessibility is provided for text-only browsers.

It achieves a compact layout and a compact output code also for menus with a large number of entries.

It provides horizontal and vertical layers-based menus whose behavior is analogous to menus of commonly used GUI-based applications. It also provides JavaScript-based tree menus, whose look is analogous to the most widely used file managers and bookmark handling tools.

Note: SiteBar can act as a backend for PHPLM; visit the SiteBar web site for details.

Layers-based menus require JavaScript and work at least on the following browsers:

  •     Mozilla 0.6+ (versions 0.9.2+ are suggested)
  •     Netscape 6.0+ and other browsers based on Mozilla, e.g. Epiphany and Galeon
  •     Konqueror 2.2+ and browsers based on it, e.g. Safari
  •     Opera 6.x for Linux
  •     Opera 7.x
  •     Internet Explorer 5, 5.5, 6.


The PHP Layers Menu System also provides JavaScript-based tree menus, whose nodes can be expanded and collapsed on sufficiently DOM-compliant browsers (they remain completely expanded for the other browsers). They have more strict requirements w.r.t. the layers menus and provide complete functionality only to browsers sufficiently DOM-compliant for the purpose at hand, i.e.:

  •     Mozilla (versions 0.9.2+ are suggested)
  •     Netscape 6.0+ and other browsers based on Mozilla, e.g. Epiphany and Galeon
  •     Konqueror 3.0+ and browsers based on it, e.g. Safari
  •     Opera 7.x
  •     Internet Explorer 4, 5, 5.5, 6

The following browsers are not supported, as supporting them is either not possible at all or really too hard:
  •     Netscape 4.x
  •     Konqueror 2.x
  •     Lynx and Links
  •     Opera 5.x and 6.x

However, full accessibility is provided for the above browsers: the Tree Menus always appear completely exploded (and no node can be collapsed) on them, and this guarantees a rather good accessibility for them.

 An arbitrary number of vertical and horizontal menus can be used on the same page.

As much levels as needed can be used and each menu is dynamically generated using data retrieved from a file, a string, or a database table; the data format is rather simple and intuitive.

Multiple languages are supported (i18n) if data are retrieved from a database.

PHPLM is compliant with current recommendations for PHP developers: it works correctly with the following settings
  •     register_globals = Off
  •     safe_mode = On
  •     error_reporting = E_ALL
  •     allow_call_time_pass_reference = Off
  •     short_open_tag = Off

To use the DB support, PEAR DB is required; obviously, if the open_basedir restriction is in effect, PEAR must be installed somewhere inside the allowed path.

PHPLM is compliant with the following web standards:
  •     XHTML 1.0 Transitional
  •     CSS 2.0
Download PHPLM- Website Navigation System In PHP