Rev 12 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12 | daniel-mar | 1 | <?php |
2 | |||
14 | daniel-mar | 3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
12 | daniel-mar | 4 | |
5 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'wert\').focus();"', $header); |
||
6 | |||
7 | $res = db_query("SELECT `name`, `wert`, `modul` FROM `".$mysql_zugangsdaten['praefix']."konfig` WHERE `id` = '".db_escape($id)."'"); |
||
8 | $row = db_fetch($res); |
||
9 | |||
10 | echo '<h1>Konfiguration bearbeiten</h1> |
||
11 | |||
12 | Sie bearbeiten den Wert "'.wb_dir_escape($row['modul']).'/'.wb_dir_escape($row['name']).'"<br> |
||
13 | |||
14 | <form method="POST" action="'.$_SERVER['PHP_SELF'].'" name="mainform" id="mainform"> |
||
15 | <input type="hidden" name="seite" value="kraftsetzung"> |
||
16 | <input type="hidden" name="aktion" value="edit"> |
||
17 | <input type="hidden" name="modul" value="'.$modul.'"> |
||
18 | <input type="hidden" name="name" value="'.$row['name'].'"> |
||
19 | <input type="hidden" name="kmodul" value="'.$row['modul'].'"> |
||
20 | |||
21 | <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="wert" id="wert" value="'.$row['wert'].'"><br><br> |
||
22 | |||
23 | <input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=konfig\';" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Zurück"> |
||
24 | |
||
25 | <input type="submit" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Wert ändern"> |
||
26 | |||
27 | </form>'; |
||
28 | |||
29 | echo $footer; |
||
30 | |||
31 | ?> |