}
     doTheExit();
 } else {
     if ($action == 'moveDown' && count($addressItems) == 3) {
         $targetRow = $wo->db->getRow($table->getTableName(), $addressItems[2]);
         $ordering = $table->getOrderingColumnForListings();
         if ($table->getGroupedByTable() != '') {
             $table2 = new WOOOF_dataBaseTable($wo->db, $table->getGroupedByTable());
             if ($table2->getAdminPresentation() == WOOOF_tablePresentationTypes::CompositeTree) {
                 if ($targetRow[$table->getLocalGroupColumn()] != '-1') {
                     $header = 'Location: administration.php?action=edit&__address=1_' . $table2->getTableId() . '_' . $targetRow[$table->getLocalGroupColumn()] . '&parentNode=' . $targetRow[$table->getLocalGroupColumn()];
                 } else {
                     $header = 'Location: improvedTree.php?action=read&__address=1_' . $table2->getTableId() . '&parentNode=' . $targetRow[$table->getLocalGroupColumn()];
                 }
             } else {
                 if (stripos($table2->getTablesGroupedByThis(), $table->getTableName()) !== null && $_GET['from'] == 'edit') {
                     $header = 'Location: administration.php?action=edit&__address=1_' . $table2->getTableId() . '_' . $targetRow[$table->getLocalGroupColumn()];
                 } else {
                     $header = '';
                 }
             }
             $extraURLBit = '&wooofParent=' . $targetRow[$table->getLocalGroupColumn()] . '&' . $table->getLocalGroupColumn() . '=' . $targetRow[$table->getLocalGroupColumn()];
             $extraQueryBit = ' and ' . $table->getLocalGroupColumn() . '=\'' . $targetRow[$table->getLocalGroupColumn()] . '\' ';
         } else {
             $extraURLBit = '';
             $extraQueryBit = '';
             $header = '';
         }
         if (stripos($ordering, 'desc')) {
             //echo 'has DESC<br/>';
             $ordering2 = trim(str_replace('desc', '', $ordering));
Exemple #2
0
 $presentationDefault[$table->getAdminPresentation()] = ' selected';
 $tableName = $table->getTableName();
 $orderingColumnForListings = $table->getOrderingColumnForListings();
 $appearsInAdminMenu = $table->getAppearsInAdminMenu();
 if ($appearsInAdminMenu == '1') {
     $appearsInAdminMenu = ' checked';
 } else {
     $appearsInAdminMenu = '';
 }
 $adminItemsPerPage = $table->getAdminItemsPerPage();
 $adminListMarkingCondition = $table->getAdminListMarkingCondition();
 $adminListMarkedStyle = $table->getAdminListMarkedStyle();
 $groupedByTable = $table->getGroupedByTable();
 $remoteGroupColumn = $table->getRemoteGroupColumn();
 $localGroupColumn = $table->getLocalGroupColumn();
 $tablesGroupedByThis = $table->getTablesGroupedByThis();
 $hasActivationFlag = $table->getHasActivationFlag();
 $columnForMultipleTemplates = $table->getColumnForMultipleTemplates();
 $dbEngine = $table->getDbEngine();
 if ($hasActivationFlag == '1') {
     $hasActivationFlag = ' checked';
 } else {
     $hasActivationFlag = '';
 }
 $availableForSearching = $table->getAvailableForSearching();
 if ($availableForSearching == '1') {
     $availableForSearching = ' checked';
 } else {
     $availableForSearching = '';
 }
 $hasGhostTable = $table->getHasGhostTable();