Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2003-11-03 (12 years ago) | Not yet rated by the users | Total: 825 | All time: 4,021 This week: 2,110 |
Version | License | Categories | ||||
class_linkrow 1.0 | GNU General Publi... | HTML |
Description | Author | |
Given a list of description and href URL, generate a row of button in horizontal/vertical, embeded in table/span tag. A simple class good enough for maybe internal web server. For more complex link row please refer to |
CLASS_LINKROW.PHP ================= A simple implementation of drop-down buttons. header1 | header2 | header3 | .... | | V V item11 item21 item12 Mouse hover over header1 will drop down list of item11 and item12. Each button, includer header and item, can be either a http link or just a comment. The presentation of the button are based on CSS style and can be specified individualy. To construct above lists: $linkrow = new LINKROW(); // no parameter needed // Add first column $linkrow->AddColumn(); // start of first column $linkrow->AddItem("header1", "", "header-no-link"); // header button (always display) $linkrow->AddItem("item11", "http://item11", "linkstyle"); // first button with link $linkrow->AddItem("item12", "", "commentstyle"); // second button is just a comment // Add second column $linkrow->AddColumn(); // start of first column $linkrow->AddItem("header2", "http://header2", "header-with-link"); // header button (always display) $linkrow->AddItem("item21", "http://item21", "linkstyle"); // first button with link // Add third column $linkrow->AddColumn(); // start of first column $linkrow->AddItem("header3", "http://header3", "header-with-link"); // header button (always display) // Add fourth column $linkrow->AddColumn(); // start of first column .... You need to create the corresponding style in the html page: <style> .header-no-link {....} .header-with-link {....} .linkstyle {....} .commentstyle {....} :hover { background:white; ...} // nice to have </style> Embeded in the place you want to display the list: <?php $linkrow->GenDropTable(); ?> Tested on IE 6 and Netscape 7. FUNCTION ======== LINKROW() : instantiate the class AddColumn() : Add a column marker AddItem( "Description", "Link", "Style") Description: Text appears on the screen Link: If something is keyed in, it will be put into: <A HREF="Link">DESCRIPTION</A>. If not, only Description will be printed STYLE: the format will use class="Style" in the <DIV> tag. GenDropTable() : return a string |
Files |
File | Role | Description |
---|---|---|
class_linkrow.php | Class | PHP Class to generate button rows |
README | Doc. | How to use LinkRow |
sampleoutput.html | Output | Sample Output |
sample_linkrow.php | Example | Sample script demonstrate functions. |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.