Deprecated: Function split() is deprecated in /home/leinir/public_html/travelsized/shared-urls.php on line 187

Warning: Cannot modify header information - headers already sent by (output started at /home/leinir/public_html/travelsized/shared-urls.php:187) in /home/leinir/public_html/travelsized/theming.php on line 256
Table sample - Travelsized CMS
Travelsized CMS
Travelsized CMS

Table sample

0-0

0-1

0-2

0-3

0-4

0-5

1-0

1-1

1-4

1-5

2-0

2-1

2-2

2-3

2-4

2-5

3-0

3-2

3-3

3-5

4-0

4-1

4-2

4-5

5-0

5-1

5-2

5-3

5-4

5-5


This table was created using the following code:

$testtable = new Table("table", "defaultrow", "defaultcell");
$testtable->addRow( null );
$testtable->addRow( "row2" );
$testtable->addRows( 5 );
$testtable->addColumn();
$testtable->addColumn( "column2" );
$testtable->addColumns( 5 );
$testtable->setContent( 0, 0, "0-0" );
$testtable->setContent( 0, 1, "0-1" );
$testtable->setContent( 0, 2, "0-2" );
$testtable->setContent( 0, 3, "0-3" );
$testtable->setContent( 0, 4, "0-4" );
$testtable->setContent( 0, 5, "0-5" );
$testtable->setRowContent( 1, true, "1-0", "1-1", "1-2", "1-3", "1-4", "1-5" );
$testtable->setRowContent( 2, true, "2-0", "2-1", "2-2", "2-3", "2-4", "2-5" );
$testtable->setRowContent( 3, true, "3-0", "3-1", "3-2", "3-3", "3-4", "3-5" );
$testtable->setRowContent( 4, true, "4-0", "4-1", "4-2", "4-3", "4-4", "4-5" );
$testtable->setRowContent( 5, true, "5-0", "5-1", "5-2", "5-3", "5-4", "5-5" );

$testtable->setSpan( 1, 1, null, 3 );
$testtable->setSpan( 2, 1, 2, null );
$testtable->setSpan( 3, 3, 2, 2 );

echo $testtable->render();

Dan Leinir Turthra Jensen (admin@NOSPAMleinir.dk) May 24, 2007, 9:46 pm