Content Management Code

  Home arrow Content Management Code arrow Table generation class
CONTENT MANAGEMENT CODE

Table generation class
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2005-11-29

    Table of Contents:

     
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement
    Table generation class v0.1
    Easy to use with lots of options and clean code.

    By : mgalesic

    includes:

    class.tabledata.php
    readme.txt


    -------------
    Legends:

    [*A] - can take any number of arguments
    [0] - no argument is needed for function to work
    [null] - function has no arguments
    [] - calling a function itself, withoth arguments will set default value

    L: - legends
    D: - description

    -------------

    Prototypes:

    * function beginTable($width='100%', $class_ = '', $align = '', $border = 0, $cellp = 0, $cells = 0);

    D: generate a <table> tag with default values or arguments specified
    L: [0]

    * function row();

    D: generate a <tr><td>data 1</td><td>data 2</td><td>data n</td></tr> tags plus arguments set with other functions
    L: [*A]

    * function endTable(); - [null]

    D: generate a </table> tag
    L: [null]

    * function setTDwidth();

    D: set a width arguments for <td> tags
    L: [*A], []

    * function setTDalign();

    D: set an align arguments for <td> tags
    L: [*A], []

    * function setTDclass();

    D: set a class arguments for <td> tags
    L: [*A], []

    * function setTDstyle();

    D: set a style arguments for <td> tags
    L: [*A], []

    * function setTRclass($class_='');

    D: set a class argument for <tr> tag
    L: []

    * function setTRstyle($style='');

    D: set a style argument for <tr> tag
    L: []

    * function setTRheight($height='');

    D: set a height argument for <tr> tag
    L: []

    * function setTRalign($align='');

    D: set a align argument for <tr> tag
    L: []

    * function setTRvalign($valign='');

    D: set a valign argument for <tr> tag
    L: []

    * function setTRcolor();

    D: you can use this function if you want to color specific number of rows with different color
    L: [*A], []

    * function forceRow();

    D: generate a <tr><td>data 1</td><td>data 2</td><td>data n</td></tr> tags plus arguments set with other force functions
    it is useful if you want only one row to be different from others
    it can be use as a header for you table
    if you set width argument with force function and use it as a heder you don't to set width for other rows

    L: [*A]

    * function setForceTDwidth();

    D: set a width arguments for <td> tags of force function
    L: [*A], []

    * function setForceTDalign();

    D: set a align arguments for <td> tags of force function
    L: [*A], []

    * function setForceTDstyle();

    D: set a style arguments for <td> tags of force function
    L: [*A], []

    * function setForceTDclass();

    D: set a class arguments for <td> tags of force function
    L: [*A], []

    * function setForceTRclass($klasa='');

    D: set a class argument for <tr> tag of force function
    L: []

    * function setForceTRstyle($style='');

    D: set a style argument for <tr> tag of force function
    L: []

    * function setForceTRheight($height='');

    D: set a height argument for <tr> tag of force function
    L: []

    * function setForceTRalign($align='');

    D: set a align argument for <tr> tag of force function
    L: []

    * function setForceTRvalign($valign='');

    D: set a valign argument for <tr> tag of force function
    L: []

    * function emptyRow($col, $color, $height);

    D: generate an empty row
    col is number of <td> tags, color is backround for <tr>




    Click to Download File



    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Content Management Code Articles
    More By Codewalkers

    blog comments powered by Disqus

    CONTENT MANAGEMENT CODE ARTICLES

    - V2 CMS - Content Management System
    - VSNS Lemon
    - Country List For Forms Using SQL
    - eggblog
    - Table generation class
    - STP Simple Template Parser
    - class Vision_To_Form_Elements
    - Cascade Drop Down
    - Cura - CMS
    - Syntax Desktop
    - 216 color table
    - Simple Mini Poll class library (SimPoll)
    - Regex Generator
    - Siteseed
    - Company WebSite Builder PRO

    Developer Shed Affiliates

     



    © 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap