Problems with TreeMultitableConnector

Version Connector 1.0 for php.
Using mysql database.

PHP code

[code]require_once(‘codebase/connector/treemultitable_connector.php’);
$tree = new TreeMultitableConnector($res);
$tree->setMaxLevel(1);
$level = $tree->get_level();
$tree->enable_log(“temp.log”,true);

switch ($level) {
case 0:
$tree->render_table(“fakult”,“isn_fakult”,“name”,“”,“”);
break;
case 1:
$tree->render_table(“group”,“isn”,“name”,“”,“isn_fakult”);
break;
}[/code]

The error is that I have only the first level and rendered the first table.

temp.log

[code]====================================
Log started, 18/07/2011 10:07:43

SELECT isn_fakult,name FROM fakult
Done in 0.0083088874816895s
[/code]

XML

<tree id="0"> <item id="0#11" text="Строительства и управления недвижимостью" child="1"/> <item id="0#3" text="ИНГЭБ(т)" child="1"/> <item id="0#4" text="Машиностроения и автосервиса" child="1"/> <item id="0#8" text="Компьютерных технологий, автоматизированных систем" child="1"/> <item id="0#12" text="Автомобильно-дорожных и кадастровых систем" child="1"/> <item id="0#13" text="Институт пищевой и перерабатывающей промышленности(И)" child="1"/> <item id="0#14" text="Институт пищевой и перерабатывающей промышленности(П)" child="1"/> <item id="0#15" text="ИНГЭБ(х)" child="1"/> <item id="0#16" text="Экономики, управления и бизнеса" child="1"/> <item id="0#17" text="Социально-гуманитарный" child="1"/> <item id="0#18" text="Институт информационных технологий и безопасности" child="1"/> </tree>




I need big investments, but for example I’ve shown so far this.

Hi.
Generated XML contains the first level. But this mode is used just with dynamic loading and another levels will be loaded when some node will be expanded.
This type of connector doesn’t provide all xml tree by one call and works properly.

Tell me how do I make a drop-down tree consisting of 3 levels?

$tree = new TreeConnector($res); $tree->enable_log("temp.log",true); $tree->render_sql("SELECT isn,name from `fakult+group` order by name asc","isn","name","","isn_fakult");

<tree id="0"> <item id="19" text="1111" child="-1"/> <item id="12" text="Автомобильно-дорожных и кадастровых систем" child="-1"/> <item id="3" text="ИНГЭБ(т)" child="-1"/> <item id="15" text="ИНГЭБ(х)" child="-1"/> <item id="18" text="Институт информационных технологий и безопасности" child="-1"/> <item id="13" text="Институт пищевой и перерабатывающей промышленности(И)" child="-1"/> <item id="14" text="Институт пищевой и перерабатывающей промышленности(П)" child="-1"/> <item id="8" text="Компьютерных технологий, автоматизированных систем" child="-1"> <item id="9" text="09-К-ВМ" child="-1"/> <item id="10" text="09-К-ПИ" child="-1"/> </item> <item id="4" text="Машиностроения и автосервиса" child="-1"/> <item id="17" text="Социально-гуманитарный" child="-1"/> <item id="11" text="Строительства и управления недвижимостью" child="-1"/> <item id="16" text="Экономики, управления и бизнеса" child="-1"/> </tree>

This provides two levels of nesting, and how to get the third?

All figured out, I was a little confused this example, I have made ​​it easier in one table.