Exemple #1
0
             $dsp->AddFieldsetStart(t('Weitere Aktionen'));
             $dsp->AddDoubleRow('', $dsp->FetchSpanButton('Modul-Datenbank zurücksetzen', 'index.php?mod=install&action=mod_cfg&step=41&module=' . $_GET['module'] . '&tab=2'));
             $dsp->AddFieldsetEnd();
             break;
     }
 }
 $dsp->EndTab();
 $dsp->StartTab(t('Menü'), 'tree');
 if ($_GET['step'] == 31) {
     $db->qry("INSERT INTO %prefix%menu SET caption = 'Neuer Eintrag', requirement = '0', hint = '', link = 'index.php?mod=', needed_config = '', module=%string%, level = 1", $_GET["module"]);
 }
 include_once 'inc/classes/class_masterform.php';
 $mf = new masterform();
 $res = $db->qry('SELECT * FROM %prefix%menu WHERE module = %string% AND caption != \'\' ORDER BY level, requirement, pos', $_GET['module']);
 while ($row = $db->fetch_array($res)) {
     $mf->AddDBLineID($row['id']);
     $mf->AddField(t('Titel'), 'caption');
     $mf->AddField(t('Link'), 'link');
     $mf->AddField(t('Popup-Hinweis'), 'hint', '', '', FIELD_OPTIONAL);
     $mf->AddGroup($row['caption']);
 }
 $db->free_result($res);
 $mf->SendForm('', 'menu', 'id', "module = '" . $_GET['module'] . "' AND caption != ''");
 $dsp->AddDoubleRow('', $dsp->FetchSpanButton(t('Link hinzufügen'), 'index.php?mod=install&action=mod_cfg&step=31&module=' . $_GET['module'] . '&tab=3'));
 $dsp->EndTab();
 $dsp->StartTab(t('Übersetzung'), 'translate');
 $dsp->AddFieldSetStart(t('Sprache wechseln. Achtung, nicht gesicherte Änderungen gehen verloren.'));
 if ($_POST['target_language']) {
     $_SESSION['target_language'] = $_POST['target_language'];
 }
 if ($_SESSION['target_language'] == '') {