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 str_replace('<body', '<body onload="self.focus();document.getElementById(\'wert\').focus();"', $header); |
||
6 | |||
7 | $res = db_query("SELECT `name`, `value`, `module` FROM `".$WBConfig->getMySQLPrefix()."configuration` WHERE `id` = '".db_escape($id)."'"); |
||
8 | $row = db_fetch($res); |
||
9 | |||
10 | echo '<h1>Konfiguration bearbeiten</h1> |
||
11 | |||
12 | Sie bearbeiten den Wert "'.$row['module'].'/'.$row['name'].'"<br> |
||
13 | |||
14 | <form method="POST" action="'.$_SERVER['PHP_SELF'].'" name="mainform" id="mainform"> |
||
15 | <input type="hidden" name="seite" value="operate"> |
||
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['module'].'"> |
||
20 | |||
21 | <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="wert" id="wert" value="'.$row['value'].'"><br><br> |
||
22 | |||
23 | <input type="button" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.$modul.'&seite=config\';" 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 | ?> |