Cache Cart CGI Database Date Diff File Functions GUI HTML I18n Loader Mail MailForm Misc Parser Security Session Site Template XML
Usage:
1 <?php2 3 loader_import ('saf.HTML.Table');4 5 $ht = new HtmlTable ();6 7 // set the display properties8 $ht->width = '50%';9 $ht->border = 1;10 $ht->spacing = 1;11 $ht->firstRowHeaders (true);12 $ht->setWidths (array ('50%', '25%', '25%'));13 14 // set the data15 $ht->setData (16 array (17 array ('one', 'two', 'three'),18 array ('four', 'five', 'six'),19 )20 );21 22 // display the table23 echo $ht->render ();24 25 // quick mode:26 echo HtmlTable::render (27 array (28 array ('one', 'two', 'three'),29 array ('four', 'five', 'six'),30 )31 );32 33 ? >
[line 50]
[line 55]
[line 48]
[line 49]
[line 56]
[line 51]
[line 52]
[line 54]
[line 53]
[line 57]
HtmlTable HtmlTable( [mixed $data = array ()])
void firstRowHeaders( [mixed $frh = true])
void render( [mixed $data = null], [mixed $frh = null])
void setData( [mixed $data = array ()])
void setWidths( [mixed $widths = array ()])