Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
From the document URL and Path, this script creates progessively deeper links for a "You Are Here" navigation.
Ex. <B>You Are Here: </B><a href="http://www.innercircle.org">Home</a> > <a href="http://www.innercircle.org/members">Members</a> > <a href="http://www.innercircle.org/members/list_members.php">List Members</a>
|
|
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
|
|
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
|
|
A very stripped-down sample of a cascading menu.
|
|
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.
|
|
Class for building outlook-like dynamic menus.
|
|
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!
|
|
a change to "0 A Cool Recursive Links Script- path.php" by fletcher.
|
|
Language is detected according to the browser's language preference settings. User is automatically redirected to preferred language or to a default language
|
|
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.
|
|
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.
|
|
View informaion on local or remote MySQL. Simple SQL commands.
|
|
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.
|
|
Function, which automaticly prints a page-navigation, when there are more entries which are returned from dabase then should be printed on a page
|
|
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.
|
|
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).
|
|
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
|
|
This little script will allow you to add tabs to the tops of your pages.
|
|
PHP code for easy pass a long list of boolean variable over the pages.
|
|
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.
|
|
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
|
|
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!!!.
|
|
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.
|
|
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. See John Coggeshall's excellent example of this.
|
|
This code print out an hierarchical categories tree structure with indents of the kind ID, ID_PARENT, TITLE.
|
|
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.
|
|
Build from a word list, html links from the first letter of this words.
|