Zend - The PHP Company




Menus & Navigation

Add Code


0 A Cool Recursive Links Script- path.php  

Type: application
Added by: fletcher
Entered: 22/11/2000
Last modified: 04/12/2000
Rating: **** (15 votes)
Views: 34812
From the document URL and Path, this script creates progessively deeper links for a "You Are Here" navigation. Ex. You Are Here: Home > Members > List Members


Breadcrumbs navigation  

Type: code fragment
Added by: reywob
Entered: 07/01/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 25830
This code will produce a useful navigation resource, showing visitors where they are in your site. Version 1.01 Fixed bug which printed wrong URL for more than one directory deep paths. Version 1.02 Removed some legacy code from the original implementation at users.f2s.com


Bs_HtmlNavigation (Navigation and Sitemap class)  

Type: class
Added by: blueshoes
Entered: 21/12/2002
Last modified: 02/11/2001
Rating: **** (5 votes)
Views: 14060
Only 3 steps are needed to have your fully customized dynamic navigation or sitemap: 1. give the navigation data (PHP array or XML file, 2. specify the styles, 3. specify the current page the user is looking at


Cascading Menu  

Type: code fragment
Added by: RLYNCH
Entered: 22/02/2000
Last modified: 08/12/1999
Rating: **** (62 votes)
Views: 102114
A very stripped-down sample of a cascading menu.


Dynamic selfdepending dropdown menus  

Type: code fragment
Added by: Dx2
Entered: 12/11/2000
Last modified: 01/12/2000
Rating: ***** (4 votes)
Views: 25895
The represented code is an example of how to get external data from database using PHP and pass it to javascript, controlling 3 levels self-depending dropdown menus. The given example was developped with Oracle, to display tree-like 3-levels product categories.


DynMenu 0.1  

Type: class
Added by: massimilianowosz
Entered: 14/11/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 6771
Class for building outlook-like dynamic menus.


Fully Functional Cascading Menu  

Type: code fragment
Added by: resjr
Entered: 04/03/2001
Last modified: 01/12/2001
Rating: **** (20 votes)
Views: 68000
I have finally gotten around to cleaning up this script and making it work for more levels. This cascading menu is straight-forward and simple. It does require a little fore-thought as to how you want to layout your menu, but other than that, it is straight forward!


Inulet  

Type: application
Added by: hipctech
Entered: 01/11/2004
Last modified: 01/12/2004
Rating: - (fewer than 3 votes)
Views: 3477
a change to "0 A Cool Recursive Links Script- path.php" by fletcher.


Language detection  

Type: code fragment
Added by: Comunica2
Entered: 10/10/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 8656
Language is detected according to the browser's language preference settings. User is automatically redirected to preferred language or to a default language


Logical Parser  

Type: code fragment
Added by: andrebl
Entered: 29/11/2002
Last modified: 02/11/2001
Rating: - (fewer than 3 votes)
Views: 4778
This code allows some conditioal testing for file based menus. I used it to write a wizzard that enable/disables menu entrys by selecting specific options. This code can evaluate statements like SESSION_VAR= as true ore false. In that way you can use a text file that contains a menu entry and an expression for the wizazrd steps.


myPaging with Staging  

Type: code fragment
Added by: hermawan
Entered: 11/11/2002
Last modified: 01/11/2001
Rating: - (fewer than 3 votes)
Views: 5787
This script is not actually a class. I just want to show you how to make paging with result set and how to display it not all of the link page, but separate it in some number of stage. It can be easly adapted to your general class.


MySQL viewer with SQL capability  

Type: application
Added by: peter54
Entered: 11/01/2002
Last modified: 01/12/2001
Rating: - (fewer than 3 votes)
Views: 9353
View informaion on local or remote MySQL. Simple SQL commands.


Navigation Based On Directory Structure  

Type: code fragment
Added by: whatashocker
Entered: 07/02/2002
Last modified: 02/12/2001
Rating: - (fewer than 3 votes)
Views: 8692
Generate a directory structure link at the top of each page. Allows you to specify your own names if the folders aren't descriptive enough.


Navigation through a page-list  

Type: code fragment
Added by: klbecke
Entered: 04/12/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8138
Function, which automaticly prints a page-navigation, when there are more entries which are returned from dabase then should be printed on a page


Nested menus  

Type: class
Added by: zakj
Entered: 20/07/2000
Last modified: 08/12/1999
Rating: **** (26 votes)
Views: 25249
Yet another menu-generation class. As the name suggests, it allows for nested menus in addition to normal link items. Comments and suggestions are welcome.


Object generating JS rollovers ...  

Type: class
Added by: nayco
Entered: 10/09/2001
Last modified: 31/10/2000
Rating: - (fewer than 3 votes)
Views: 8688
maybe a good tutorial ??? I took me 2 days to make this, because it's the first time i use classes in PHP ... I first started to code like in JAVA, and PHP doesn't use 'static' variables or functions in classes... but i finally found !!! maybe some cut/paste/modiiy errors or typos, because i had to generalise the code here (instances name).


Page Numbers  

Type: code fragment
Added by: tebrino
Entered: 01/07/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 6162
This script enables you to create page number links and previous / next links. It is useful when displaying search results or large amount of data. It also allows user to choose how many records to display per page. To use it simply replace MySQL queries with your own. With small changes you can use it with any database server. If you have any questions, comments, or if you find any bugs please feel free to contact me: Author: Ilir Fekaj Contact: tebrino@hotmail.com Created: July 01. 2003. Modified: July 01. 2003. If you like it, use it, you can also give me a credit


PHP Tabs  

Type: code fragment
Added by: mbourque
Entered: 24/01/2005
Last modified: 01/12/2004
Rating: * (3 votes)
Views: 13709
This little script will allow you to add tabs to the tops of your pages.


PHP-ACTION WRAPPER 0.2  

Type: code fragment
Added by: steo
Entered: 13/07/2003
Last modified: 07/12/2002
Rating: - (fewer than 3 votes)
Views: 4050
PHP code for easy pass a long list of boolean variable over the pages.


Recursive menu  

Type: code fragment
Added by: vardhan
Entered: 04/03/2005
Last modified: 03/12/2004
Rating: **** (9 votes)
Views: 10618
A demonstration of how you can quickly edit your navigation menu (sub-menu, sub-sub-menu, sub-sub-sub-menu, sub...) and display them dynamically with PHP using a Multidimensional array and a recursive function.


Search Engine Safe URL Parser  

Type: code fragment
Added by: jeffreyharrell
Entered: 23/01/2004
Last modified: 01/12/2003
Rating: *** (3 votes)
Views: 6526
Add this to the top of your page and it will allow you to create search engine safe urls like so: thispage.php/this/equalsthis/andthat/equalsthat


show result with paging and staging  

Type: code fragment
Added by: hermawan
Entered: 04/04/2001
Last modified: 04/12/2000
Rating: ***** (6 votes)
Views: 9764
You have a query results number about 100000 record, then what you should do to view all of them ?, paging ?...yah good, but how many page would it shown in your page if every page is only view 100 record ? 1000 link page ? get real!!!.


Simple expandable html menu demonstration  

Type: code fragment
Added by: linuxberg
Entered: 25/01/2002
Last modified: 01/12/2001
Rating: - (fewer than 3 votes)
Views: 14010
A simple example on hard-coded expandable menus with a maximum of two levels. You could read the menu data from a file or from a database of course. HTML only. No JavaScript used.


simple pagination using ODBC and MS Access,  

Type: code fragment
Added by: liyam
Entered: 07/04/2005
Last modified: 04/12/2004
Rating: - (fewer than 3 votes)
Views: 7660
For those of you who does'nt know, pagination (in the Web world) is usually dividing a large list of items into several pages, and then providing a nifty link for it. You usually see pagination link displayed like this: PREV 1 2 3 4 5 NEXT


Spider-safe index.php/URL/decoding  

Type: application
Added by: yaragn1
Entered: 28/08/2001
Last modified: 08/12/2000
Rating: ***** (6 votes)
Views: 15922
Spider-safe index.php/URL/decoding. See John Coggeshall's excellent example of this.


Tree of categories  

Type: code fragment
Added by: atur
Entered: 07/06/2003
Last modified: 06/12/2002
Rating: **** (3 votes)
Views: 7084
This code print out an hierarchical categories tree structure with indents of the kind ID, ID_PARENT, TITLE.


URHere  

Type: class
Added by: flinn
Entered: 18/02/2002
Last modified: 02/12/2001
Rating: - (fewer than 3 votes)
Views: 7176
Displays "you are here" information in text, and link form ralative to your path in the following format: Site > Directory > Sub Directory > Page Currently truncates the .php file extension, and uses > seperators, but can be changed easily. This is BSD Licensed.


Word link navigation  

Type: code fragment
Added by: atur
Entered: 07/06/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 4845
Build from a word list, html links from the first letter of this words.



Search



This Category All Categories