Zend - The PHP Company




Tables

Add Code


Alt background color  

Type: code fragment
Added by: adamprince1
Entered: 20/08/2005
Last modified: 08/12/2004
Rating: - (fewer than 3 votes)
Views: 3386
KISS = "keep it simple stupid" This is a pretty simple if statement that I did for a cobol program works like a champ


Alternate row color from MySQL query  

Type: code fragment
Added by: tlongren
Entered: 26/12/2000
Last modified: 01/12/2000
Rating: **** (8 votes)
Views: 16558
This code puts results from a mysql_query into rows and the colors of the rows alternate. Useful for displaying information such as schedules or lists.


Alternate Row colors in a table  

Type: code fragment
Added by: pauldy
Entered: 13/05/2000
Last modified: 08/12/1999
Rating: **** (11 votes)
Views: 17781
This is a simple way to alternate row colors in php


Alternate Row colors in a table (2 colors, ulimited colors, gradient, shade) don t look further  

Type: code fragment
Added by: amelhedi
Entered: 19/04/2001
Last modified: 04/12/2000
Rating: ***** (3 votes)
Views: 13521
if u need to put some colors in your tables or any where else this code can help you, Any comment or opinion email me


Alternating colours with unlimited colours...  

Type: code fragment
Added by: richardsmith
Entered: 14/11/2000
Last modified: 01/12/2000
Rating: *** (5 votes)
Views: 6900

This nifty little pice of code is probably the best method, because it means you can have unlimted colours, 4, 4, or 5 colours...

There's nothing complicated about it either... it's but 2 lines of code at the end of a loop...



Alternating row background colors when printing results from a database query  

Type: application
Added by: nova2
Entered: 22/03/2000
Last modified: 08/12/1999
Rating: *** (8 votes)
Views: 11132
This small bit of code is an effecient way of alternating colors in an HTML table when printing the results of a database query.


Alternating table row colors  

Type: application
Added by: vnath
Entered: 13/04/2000
Last modified: 08/12/1999
Rating: *** (4 votes)
Views: 8879
An simple function designed to alternate row colors in a table.


Alternative Colored Rows  

Type: code fragment
Added by: saidbakr
Entered: 06/02/2003
Last modified: 02/12/2002
Rating: - (fewer than 3 votes)
Views: 4572
This code will show you how easily to handle an alternative colored rows using defined function I called it as foxcol($x) where $x is int


Another way to alternate table rows :)  

Type: code fragment
Added by: richardsmith
Entered: 14/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6968

This nifty technique can be used for generating alternating colours using 2 colours...

It's small. It's quick and it's faster than most methods i've seen.

Pretty simple really, use the % (mod) operator in conjunction with the ? : triniary operator and bingo! Alternating row colours...!



complete Table class  

Type: class
Added by: Erdal
Entered: 30/04/2003
Last modified: 05/12/2002
Rating: - (fewer than 3 votes)
Views: 8237
complex Table class for gegeration of HTML Tables with most of Tag-features. Table can flexible resized ( add rows or columns ) during script, so that it is not possible to know how many lines you need in the Table ( e.g. select statement from database ). Values of the TD's can be assigned in every order you want. also overwriting of values is possible, because the HTML code is sent at the end of code and not everytime you change the table definitions. All tags are used ( e.g. rowspan, colspan, backgroundcolor .... ) at least for ns 4.78. Everything can be viewed in most Browsers ( tested i.e 4.0 and upper, NS 4.78 and upper, Opera ) Every row may be a header. maybe some small bugs, but is working in productive system.


Create tables from ASCII files  

Type: application
Added by: gwolanin
Entered: 17/07/2002
Last modified: 07/12/2001
Rating: - (fewer than 3 votes)
Views: 6842
This PHP script will take the contents of a character delimited text file and create a nice looking table for it.


DynTable 0.1  

Type: class
Added by: massimilianowosz
Entered: 14/11/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 7434
This class create a ajax-driven dynamic table. Data are retrieved fron an SQLite database and updated on-the-fly as the user changes them. Full package downloadable here http://www.evolvetechnologies.it/duepuntozero/esempi/dyntable_sqlite.zip


every other  

Type: code fragment
Added by: abb
Entered: 27/12/2002
Last modified: 02/12/2002
Rating: - (fewer than 3 votes)
Views: 4285
A simple code to present data from the database with altering background color


Fix all Table Class  

Type: application
Added by: aaroncampbell
Entered: 11/08/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3247
PHP 5 Class to generate HTML tables. Fixes most of the common problems with tables (empty cells, different number of columns per row, etc). Supports all w3 standard tags and attributes. Allows for alternating row colors (any number of colors may be used).


Format db query result into a table  

Type: class
Added by: mnasato
Entered: 30/04/2000
Last modified: 08/12/1999
Rating: **** (4 votes)
Views: 10745
Why yet another table formatter? Because this allows to put more than one db field in the same table cell, or to use the same field in more than one cell. The example should explain better than my English.


Function to alternate background color of rows  

Type: code fragment
Added by: anderson
Entered: 05/03/2000
Last modified: 08/12/1999
Rating: ** (5 votes)
Views: 7674
This example shows a table with 15 rows. Each row alternates the background color between light blue and dark blue.


HTML_table  

Type: class
Added by: imperator_mundi
Entered: 01/10/2001
Last modified: 31/10/2000
Rating: **** (4 votes)
Views: 9732
a PHP class that allow to generate table with e.g alternate row and columns colors, various cells dimensions, alignement, set header properties, ecc.


QueryPrint  

Type: application
Added by: daniel1
Entered: 31/10/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 6194
QueryPrint is a PHP class that prints the results of a SQL query in HTML format. The printing is defined in a seperate module class that can be modified or replaced. QueryPrint also supports multiple page queries allowing the user to decide how many records to show on each page. The previous and next buttons are added automaticaly and as defined by the printing module.


Smart Table Generator  

Type: class
Added by: ghanicTwo
Entered: 08/06/2001
Last modified: 01/12/2001
Rating: **** (3 votes)
Views: 11992
Generate almost any HTML table very quickly and painless.


Table Creator  

Type: code fragment
Added by: DerTom
Entered: 03/03/2003
Last modified: 03/12/2002
Rating: - (fewer than 3 votes)
Views: 5233
Creating a Table with $x cols per row


Yet Another Table Row color swapper  

Type: code fragment
Added by: MarcusG
Entered: 07/03/2001
Last modified: 03/12/2000
Rating: - (fewer than 3 votes)
Views: 6007
A simple one line row color swapper.



Search



This Category All Categories