PHP Classes

Panel_Fichas tab control: Deploys and handle HTML Tab Control using pure PHP

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 41%Total: 1,657 This week: 1All time: 2,369 This week: 571Up
Version License PHP version Categories
panel_fichas 1.0GNU General Publi...3HTML
Description 

Author

This class generates an HTML table that acts like the Tab Control we use in GUIs. It has a tab bar in first top row with the appropiate links and names of every tab is defined. The second row of the table deploys the contents of the active tab, which can turn out to be a string contained in a variable, a PHP constant o a file (which will be included right in place).

The class provides functions to add a tab, remove a tab, and set or get the active tab.

The class outputs the navigation bar as pure HTML code. NO layers or dynamic HTML is used, and the active tab is reloaded dynamically from PHP each time a link in the bar is pressed.

The presentation styles of the active and inactive tabs are customizable.

The code and comments of the class are in Spanish.

Hope you enjoy it!

Atributes
+---- CFG// Configuration array
+---- Activa // Key of active tab
+---- Filas // Height of tab row (reserved)
+---- TAttr // String with atributes for table (width, style, class, etc.)
+---- ACAttr // String with atributes for active tab
+---- ICAttr // String with atributes for inactive tab
+---- FA_name // Name of variable to GET for active tab

Methods (see code for parameters detailed)
+---- panelFichas(...) // Constructor
+---- nuevaFicha(...) // Adds a new tab
+---- borrarFicha(...) // Deletes a tab
+---- estadoFicha(...) // Gets or Sets the state of a tab (enabled or not)
+---- cambiarActiva(...) // Sets the active tab
+---- htmlPanel() // Outputs the tab control and contents itself

Picture of Alfredo Rahn
Name: Alfredo Rahn <contact>
Classes: 4 packages by
Country: Venezuela Venezuela
Age: 49
All time rank: 9782 in Venezuela Venezuela
Week rank: 420 Up4 in Venezuela Venezuela Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.php Example Proof-of-concept demo of class
Accessible without login Plain text file panel_fichas.php Class Main panel_fichas class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,657
This week:1
All time:2,369
This week:571Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:41%StarStarStar
Rank:3604