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
developerWorks - FREE Tools! |
<a href="http://zeus.developershed.com/shonuff.php?blackbird=3853&zoneid=442&source=&dest=http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fspaces%2Fjazz%3FS_TACT%3D105AGY31%26S_CMP%3DDEVSHED&ismap="><img src="http://images.devshed.com/corp/img/news/jazz01.gif" alt="developerWorks Jazz space" align="left"></a>You've heard the buzz about Jazz... want to know more about it from a developer's perspective? Check out the Jazz space on developerWorks. This space is an up-to-date resource for developers, including technical information about Jazz and products built on Jazz, like Rational Team Concert Express. The Jazz space includes content from a wide variety of sources, including links, feeds, and comments from experts. FREE! Go There Now!
|
|
|
|
Building a software-as-a-service solution requires addressing a few key technical challenges. In this webcast, we'll focus on the role of IBM Tivoli Directory Server and WebSphere Portlet Factory in creating a Software as a Service solution. We will demonstrate how to use Tivoli Directory Server to prevent the user population of one tenant from accessing the virtual portal and portlet components of another tenant. We will also use the dynamic profile capability of WebSphere Portlet Factory to create multiple highly customized applications from one code base. FREE! Go There Now!
|
|
|
|
Download a free trial version of IBM DB2 9.5 for Linux, UNIX, and Windows. DB2 9 is the result of a five-year development project that transformed traditional (static) database technology into an interactive data server that merges the high performance and ease of use of DB2 with the self-describing benefits of XML. FREE! Go There Now!
|
|
|
|
Visit IBM developerWorks to download a free trial version of IBM Rational Business Developer V7.1. Rational Business Developer offers rapid and simplified development of business applications and services through Enterprise Generation Language (EGL) tools, generating Java or mainframe solutions while shielding developers from technical complexities. FREE! Go There Now!
|
|
|
|
Secure your Web applications with IBM Rational AppScan Standard Edition V7.7, previously known as Watchfire AppScan. This Web application security testing tool automates vulnerability assessments and scans and tests for common Web application vulnerabilities. Visit IBM developerWorks to download a free trial of IBM Rational AppScan Standard Edition V7.7. FREE! Go There Now!
|
|
|
|
Ken Krugler, co-founder of code search company Krugle, and Laura Merling, vice president of Marketing and Business Development for Krugle, join to talk about the ins and outs of code search and what it means as a new feature for developerWorks users. FREE! Go There Now!
|
|
|
|
Join this webcast to discover the key requirements for successful change and release management. Learn how to extend your .NET environment to improve productivity and collaboration, and address core problems afflicting team development. In this webcast, we’ll review typical challenges faced by customers and how to resolve them with the IBM Rational Change and Release Management solution, including Rational ClearCase, Rational ClearQuest and Rational Build Forge. Replay is available for 9 months. FREE! Go There Now!
|
|
|
|
Regression testing -- in which code is thoroughly tested to ensure that changes have not produced unexpected results -- is an important part of any development process. But many testing environments neglect the terminal-based applications that still form the backbone of many industries. In this tutorial, you'll learn how the Rational Functional Tester Extension for Terminal-Based Applications works with other Rational Functional Tester to help test terminal-based applications quickly and easily. FREE! Go There Now!
|
|
|
|
This paper is about the critical role that a discipline called integrated requirements management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrating, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way. FREE! Go There Now!
|
|
|
|
Visit IBM developerWorks to try the IBM SOA Sandbox for process. The SOA Sandbox for process focuses on providing a trial environment with the necessary tooling and components required to gain a better understanding of business processes and how to best improve existing business processes to derive value quickly. FREE! Go There Now!
|
|
|
|
All FREE IBM® developerWorks Tools! |