| | |||||||
| |||||||
| |||||||
|
|
|
|
|
|
|
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
More Content Management Code Articles |
| |
| |