TabView
Version 1.0
Description:
This PHP component class is used to generate navigable tabs.
Usage:
e.g. require(“path/to/tree_view.php”)
e.g. $TabView = new TabView;
Default: #EEEEFF
Sets the background color for tabs that are not selected.
Default: #FFFFFF
Sets the background color for the TabView area to match the background color of the page.
The name of the style sheet class name that defines the styles for the tabs.
The relative path to the TabView images.
Default: 0
0 = left aligns the tabs
1 = right aligns the tabs
The query string to append to each of the tab URLs.
Default: #CCCCFF
Sets the background color for the tab that has been selected.
Default: false
When set to true, bolds the text of the selected tab.
Sets the font color for the tab that has been selected.
Sets the tab that is selected when the page is first loaded by using the tab’s key value.
Sets the image for all unselected tabs. This setting can be overridden by each tab’s Image property.
Sets the image for the selected tab. This setting is overridden by each tab’s SelectedImage property.
Adds user defined DHTML to each tab’s URL. That is, you can add properties to the anchor tag <a> of each tab such as the onClick event.
Omits the href property of the anchor tag and uses only the DHTML property value for each tab’s URL.
$Tab =& $TabView->Add($strKey, $strText, $strURL, $strTarget, $strCaption);
Where the given variables are defined as the following:
|
strKey |
Unique key identifying a given tab. |
|
strText |
Text to display on the tab. |
|
strURL |
Web address to fetch when the tab is clicked. |
|
strTarget |
Target frame or window name when fetching the address. |
|
strCaption |
Text Tool Tip to display when the mouse hovers over the tab’s text. |
Sets the font color for the given tab.
Controls whether or not the tab’s text is bold.
Sets the image for the tab when it is not selected. This setting overrides the TabView class Image property.
Sets the image for the tab when it is selected. This setting is overrides the TabView class SelectedImage property.
Adds user defined DHTML to the given tab’s URL. That is, you can add properties to the anchor tag <a> of this tab such as the onClick event.
Omits the href property of the anchor tag and uses only the DHTML property value for the given tab’s URL.
Defines the width of the given tab measured in pixels.
e.g. $TabView->Show();