[Typo3] advanced table

raluca oprean raluca at sds.ro
Thu Jun 9 14:15:48 CEST 2005


Hi Thomas				

I've installed the th_exttableservice and I seem to have a problem, maybe you can help me.
My php script looks like this:

require_once(t3lib_extMgm::extPath('th_exttableservice') .'class.tx_thexttableservice.php');
$table = t3lib_div::makeInstance('tx_thexttableservice');
$table->loadDefinitions(t3lib_extMgm::extPath('th_exttableservice') .'exttabledefinitions.xml');
$table -> setTableAttribute('border', 0);
$table -> setTableAttribute('width', 360);
$table -> setTableAttribute('cellpadding', 0);
$table -> setTableAttribute('cellspacing', 0);
$table -> insertRows(0, 5);
$table -> insertCols(0, 0);
$table -> setCellContent(0, 0, '<div style="padding-top: 13px; padding-right: 15px;" align="right"><form><strong>Cauta dupa categorie</strong> &nbsp; <select style="width: 140px; color: #FFFFFF;"></select></form></div>');
$table -> setCellAttribute(0, 0 , 'background', "fileadmin/smeralda/images/10.gif");
$table -> setCellAttribute(0, 0, 'width', 360);
$table -> setCellAttribute(0, 0, 'height', 36);
$table -> setCellAttribute(0, 0, 'border', 0);
.....

The output I get from this is:

<table border="border" width="360" cellpadding="cellpadding" cellspacing="cellspacing">
  <tbody>
    <tr valign="top">
      <td background="fileadmin/smeralda/images/10.gif" width="360" height="36"><div style="padding-top: 13px; padding-right: 15px;" align="right"><form><strong>Cauta dupa categorie</strong> &nbsp; <select style="width: 140px; color: #FFFFFF;"></select></form></div></td>
    </tr>
......


Why does the value from the border attribute is a string and not 0 as I've put it in the scipt? Same thing happens with cellpadding and cellspacing ...

Thanks!
- raluca oprean (raluca)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110126315/
					



More information about the TYPO3-english mailing list