Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peter Drinnan  >  PayPal Tabs  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Creates pay pal tabs without requiring rollover images
Class: PayPal Tabs
Generate navigation tabs interface like in Paypal
Author: By
Last change: comments
Date: 2005-03-16 08:18
Size: 756 bytes
 

Contents

Class file image Download
<?

// add the class
require_once("paypaltabs.class.php");

// the item var will determine which tab is raised

if($HTTP_GET_VARS[item] == ""$item 'Yahoo';
else 
$item $HTTP_GET_VARS[item];

/*
// Create an array of tab items with urls, then declare the tabs 
// class and add the array with an image url for the tab images.
// Keep in mind the items are case sensitive.
*/

$tabs_items  = array(    'Google'=>$PHP_SELF.'?item=Google',
                
'Yahoo'=>$PHP_SELF.'?item=Yahoo',
                
'Dmoz'=>$PHP_SELF.'?item=Dmoz',
                
'Dogpile'=>$PHP_SELF.'?item=Dogpile'

);

// specify the location of the images to be used

$tab_images_url "/paypaltabs";

$tabs = new PayPalTabs($tabs_items,$tab_images_url);

$tabs->ShowTabs($item);


?>