$extraHidden = '<input type="hidden" name="wooofParent" value="' . $wo->cleanUserInput($_GET['wooofParent']) . '"/>';
           } elseif (isset($_GET['table'])) {
               $extraHidden = '<input type="hidden" name="table" value="' . $wo->cleanUserInput($_GET['table']) . '"/><input type="hidden" name="itemId" value="' . $wo->cleanUserInput($_GET['itemId']) . '"/>';
           } else {
               $extraHidden = '';
           }
           if (isset($htmlFragment[1]) && $htmlFragment[1] != '') {
               $extraScripts .= $htmlFragment[1];
           }
           if (trim($table->getTablesGroupedByThis()) != '' && trim($addressItems[2]) != '') {
               $rowToEdit = $wo->db->getRow($table->getTableName(), trim($addressItems[2]));
               $pieces = explode(' ', $table->getTablesGroupedByThis());
               foreach ($pieces as $piece) {
                   $tableTmp = new WOOOF_dataBaseTable($wo->db, $piece);
                   //$content .='<section class="formFields">'; //<div class="listTitle">'. $tableTmp->getTableDescription() .' &nbsp; &nbsp; <a href="administration.php?action=edit&__address=1_'. $tableTmp->getTableId() .'_&wooofParent='. $rowToEdit[$tableTmp->getRemoteGroupColumn()] .'">Προσθήκη &nbsp;<img src="images/add.png" alt="Create new item" border="0" align="top"></a></div>';
                   if ($tableTmp->getHasDeletedColumn()) {
                       $where = ' and isDeleted!=\'1\'';
                   } else {
                       $where = '';
                   }
                   $content .= $wo->doTableList($tableTmp, ' where ' . $tableTmp->getLocalGroupColumn() . ' = \'' . $rowToEdit[$tableTmp->getRemoteGroupColumn()] . '\'' . $where, $rowToEdit[$tableTmp->getRemoteGroupColumn()]);
                   //$content .= '</section>';
               }
           }
           $content = $before . '<form method="POST" action="administration.php" enctype="multipart/form-data"><div class="itemEditForm"><input type="hidden" name="__address" value="1_' . $addressItems[1] . '_' . $addressItems[2] . '"><input type="hidden" name="action" value="' . $action . '">' . $extraHidden . '</div>' . $content . '<div class="itemEditForm"><section class="formFields">
 <div class="adminButton"><input type="submit" name="submit" value="' . $buttonValue . '"></div>
 </section></div></form>';
           $content .= $after;
       } else {
           if ($action == 'insert' && count($addressItems) == 3) {
               $insertColumns = $table->getInsertableColumns();
Exemple #2
0
 } else {
     $hasActivationFlag = '';
 }
 $availableForSearching = $table->getAvailableForSearching();
 if ($availableForSearching == '1') {
     $availableForSearching = ' checked';
 } else {
     $availableForSearching = '';
 }
 $hasGhostTable = $table->getHasGhostTable();
 if ($hasGhostTable == '1') {
     $hasGhostTable = ' checked';
 } else {
     $hasGhostTable = '';
 }
 $hasDeletedColumn = $table->getHasDeletedColumn();
 if ($hasDeletedColumn == '1') {
     $hasDeletedColumn = ' checked';
 } else {
     $hasDeletedColumn = '';
 }
 $hasEmbededPictures = $table->getHasEmbededPictures();
 if ($hasEmbededPictures == '1') {
     $hasEmbededPictures = ' checked';
 } else {
     $hasEmbededPictures = '';
 }
 $showIdInAdminLists = $table->getShowIdInAdminLists();
 if ($showIdInAdminLists == '1') {
     $showIdInAdminLists = ' checked';
 } else {