Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
||
4 | |||
5 | echo $header; |
||
6 | |||
7 | if (!isset($vonmodul)) $vonmodul = $modul; |
||
8 | if (!isset($vonseite)) $vonseite = 'main'; |
||
9 | |||
10 | echo '<h1>'.htmlentities($module_information->caption).'</h1>'; |
||
11 | echo 'Hier können Sie Konfigurationen an Personal WebBase-Modulen manuell vornehmen. Dies wird jedoch nicht empfohlen, da auch Fehlkonfigurationen mit ungültigen Werten angenommen werden.<br><br>'; |
||
12 | |||
13 | wb_draw_table_begin(); |
||
14 | wb_draw_table_content('', '<b>Modul</b>', '', '<b>Eigenschaft</b>', '', '<b>Wert</b>', '', '<b>Aktionen</b>', '', ''); |
||
15 | $res = db_query("SELECT `id`, `name`, `value`, `module` FROM `".$WBConfig->getMySQLPrefix()."configuration` ORDER BY `module` ASC, `name` ASC"); |
||
16 | while ($row = db_fetch($res)) |
||
17 | { |
||
18 | if (isset($only) && ($row['module'] == $only)) |
||
19 | { |
||
20 | $s1 = '<span class="red">'; |
||
21 | $s2 = '</span>'; |
||
22 | } |
||
23 | else |
||
24 | { |
||
25 | $s1 = ''; |
||
26 | $s2 = ''; |
||
27 | } |
||
28 | if (is_dir('modules/'.$row['module'])) |
||
29 | { |
||
30 | $z = ''; |
||
31 | $x = 'Standard herstellen'; |
||
32 | } |
||
33 | else |
||
34 | { |
||
35 | $z = ' (Nicht mehr installiert)'; |
||
36 | $x = 'Wert entfernen'; |
||
37 | } |
||
38 | wb_draw_table_content('', $s1.htmlentities($row['module']).$z.$s2, '', $s1.htmlentities($row['name']).$s2, '', $s1.htmlentities($row['value']).$s2, '', '<a href="'.$_SERVER['PHP_SELF'].'?modul='.$modul.'&seite=edit&id='.$row['id'].'" class="menu">'.$s1.'Bearbeiten'.$s2.'</a>', '', '<a href="javascript:abfrage(\''.$_SERVER['PHP_SELF'].'?modul='.$modul.'&seite=operate&aktion=delete&id='.$row['id'].'\');" class="menu">'.$s1.$x.$s2.'</a>'); |
||
39 | } |
||
40 | wb_draw_table_end(); |
||
41 | |||
42 | echo '<input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.$vonmodul.'&seite='.$vonseite.'\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück">'; |
||
43 | |||
44 | echo $footer; |
||
45 | |||
46 | ?> |