Esempio n. 1
0
while ($table->columns[$counter]->getAppearsInLists() != '1') {
    $counter++;
}
$path = '';
foreach ($table->columns as $key => $value) {
    $column = $value->getColumnMetaData();
    if ($column['appearsInLists']) {
        $columnsToShow = $column['name'];
    }
}
if (count($addressItems) == 2 || $addressItems[2] == '') {
    $whereClauses['parent_id'] = '-1';
    $table->getResult($whereClauses, 'ord');
    //$innerStuff ='<div id="listTitle"><a href="administration.php?action=edit&__address=1_'. $table->getTableId() .'_&wooofParent=-1">Προσθήκη '. $table->getTableDescription() .'</a></div>';
    $actualRow['name'] = 'Μενού';
    $additionLabel = '<a href="administration.php?action=edit&__address=1_' . $table->getTableId() . '_&wooofParent=-1">Προσθήκη ' . $table->getTableDescription() . '</a>';
} else {
    $actualRow = $wo->db->getRow($table->getTableName(), $addressItems[2]);
    $whereClauses['parent_id'] = $addressItems[2];
    $table->getResult($whereClauses, $table->getOrderingColumnForListings());
    $current_row['parent_id'] = $addressItems[2];
    $treeLevel = 0;
    do {
        $treeLevel++;
        $current_row = $wo->db->getRow($table->getTableName(), $current_row['parent_id']);
        if ($addressItems[2] == $current_row['id']) {
            $path = ' > ' . $current_row[$table->columns[$counter]->getName()] . $path;
        } else {
            $path = ' > <a href="improvedTree.php?__address=1_' . $table->getTableId() . '_' . $current_row['id'] . '&action=read">' . $current_row[$table->columns[$counter]->getName()] . '</a>' . $path;
        }
    } while ($current_row['parent_id'] != '-1');
Esempio n. 2
0
    $localGroupColumn = '';
    $tablesGroupedByThis = '';
    $hasActivationFlag = '';
    $availableForSearching = '';
    $hasGhostTable = '';
    $hasDeletedColumn = '';
    $hasEmbededPictures = '0';
    $columnForMultipleTemplates = '';
    $showIdInAdminLists = '';
    $showIdInAdminForms = '';
    $dbEngine = '';
} else {
    if (isset($_GET['table'])) {
        $table = new WOOOF_dataBaseTable($wo->db, $wo->db->escape(trim($_GET['table'])));
        $action = 'edit';
        $description = $table->getTableDescription();
        $subtableDescription = $table->getSubTableDescription();
        $presentationDefault[1] = '';
        $presentationDefault[2] = '';
        $presentationDefault[3] = '';
        $presentationDefault[4] = '';
        $presentationDefault[5] = '';
        $presentationDefault[$table->getAdminPresentation()] = ' selected';
        $tableName = $table->getTableName();
        $orderingColumnForListings = $table->getOrderingColumnForListings();
        $appearsInAdminMenu = $table->getAppearsInAdminMenu();
        if ($appearsInAdminMenu == '1') {
            $appearsInAdminMenu = ' checked';
        } else {
            $appearsInAdminMenu = '';
        }