[Typo3] nested tables

raluca oprean raluca at sds.ro
Mon Jun 13 09:26:37 CEST 2005


Hi list

I am trying to create nested tables with exttablesetvice extension ... but I get the following error:

Fatal error: Call to undefined function: insetrows() in ...\typo3conf\ext\page_php_content\pi1\class.tx_pagephpcontent_pi1.php(109) : eval()'d code on line 17

My code 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');

$table1 = t3lib_div::makeInstance('tx_thexttableservice');
$table1->loadDefinitions(t3lib_extMgm::extPath('th_exttableservice') .'exttabledefinitions.xml');

$table1 -> setTableAttribute('width', '100%');
$table1 -> setTableAttribute('height', '100%');
$table1 -> setTableAttribute('background', "fileadmin/smeralda/images/16.gif");
$table1 -> setTableAttribute('style', 'background-position: top; background-repeat: no-repeat;');
$table1 -> setTableAttribute('border', none);
$table1 -> insetRows(0, 0);
$table1 -> insertCols(0, 0);
$table -> setTableAttribute('border', none);
$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', none);
$table -> setCellContent(0, 1, '<div style="padding-top: 6px; padding-left: 32px;"><img src="fileadmin/smeralda/images/text1.gif"></div>');
$table -> setCellAttribute(0, 1, 'border', none);
$table -> setCellAttribute(0, 1 , 'background', "fileadmin/smeralda/images/11.gif");
$table -> setCellAttribute(0, 1, 'width', 360);
$table -> setCellAttribute(0, 1, 'height', 19);
$table -> setCellContent(0, 2, '<img src="fileadmin/smeralda/images/12.gif" width=360 height=8>');
$table -> setCellAttribute(0, 2, 'border', none);
$table -> setCellContent(0, 3, $table1);
$table -> setCellAttribute(0, 3, 'border', none);
$table -> setCellAttribute(0, 3, 'background', "fileadmin/smeralda/images/bak3.gif");
$table -> setCellAttribute(0, 4, 'width', 360);
$table -> setCellAttribute(0, 4, 'height', 106);
$table -> setCellAttribute(0, 4, 'border', none);

$table -> setCellAttribute(0, 5, 'border', none);
echo $table -> getXHTML();
echo $table1 -> getXHTML();


Can anyone help me? 
Thanks!


- raluca oprean (raluca)

-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
				



More information about the TYPO3-english mailing list