foreach ($table2->columns as $key => $value) { $column = $value->getColumnMetaData(); if ($column['appearsInLists']) { $columnsToShow = $column['name']; } } $htmlFragment = '<li><a class="treeItemLevel@@@level@@@" href="administration.php?__address=1_' . $table->getTableId() . '&' . $table->getLocalGroupColumn() . '=@@@' . $table->getRemoteGroupColumn() . '@@@&wooofParent=@@@' . $table->getRemoteGroupColumn() . '@@@&action=read">@@@' . $columnsToShow . '@@@</a> @@@subItems@@@</li>'; $row = $wo->db->getRow($table2->getTableName(), $_GET[$table->getLocalGroupColumn()]); if ($table->getHasDeletedColumn()) { $where = ' and isDeleted!=\'1\''; } else { $where = ''; } $content = '<div id="treeDiv">' . $table2->presentTree($columnsToShow, $htmlFragment, $row['id']) . '</div><div id="listDiv"> ' . $wo->doTableList($table, ' where ' . $table->getLocalGroupColumn() . '=\'' . $wo->cleanUserInput($_GET[$table->getLocalGroupColumn()]) . '\' ' . $where, $wo->cleanUserInput($_GET[$table->getLocalGroupColumn()])) . '</div>'; } else { if ($table->getAdminPresentation() == '3') { $content = '<div class="listTitle"><a href="administration.php?action=edit&__address=1_' . $addressItems[1] . '_&wooofParent=-1">Προσθήκη Κεντρικού Κόμβου <img src="images/add.png" alt="Create new item" border="0" align="top"></a></div>'; foreach ($table->columns as $key => $value) { $column = $value->getColumnMetaData(); if ($column['appearsInLists']) { $columnsToShow = $column['name']; } } $htmlFragment = '<li class="normalTreeItemLevel@@@level@@@">@@@' . $columnsToShow . '@@@ @@@activation@@@<a href="administration.php?__address=1_@@@tableId@@@_@@@id@@@&action=edit"><img border="0" align="top" alt="edit" src="images/edit.png"></a>@@@upDown@@@ <a href="javascript:confirmDelete(\'administration.php?__address=1_@@@tableId@@@_@@@id@@@&action=delete\');"><img border="0" align="top" alt="Delete" src="images/delete.png"></a> @@@subItems@@@</li>'; $content .= $table->presentTree($columnsToShow, $htmlFragment, null, 'catOn', 'catOff'); } elseif ($table->getAdminPresentation() == '2') { } elseif ($table->getAdminPresentation() == '5') { require_once 'improvedTree.php';