Rev 12 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 14 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
4 | 4 | ||
5 | if (($aktion == 'new') || ($aktion == 'edit')) |
5 | if (($aktion == 'new') || ($aktion == 'edit')) |
6 | { |
6 | { |
7 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'fserver\').focus();"', $header); |
7 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'fserver\').focus();"', $header); |
8 | 8 | ||
9 | if ($aktion == 'new') echo '<h1>Neues Confixx-Konto</h1>'; |
9 | if ($aktion == 'new') echo '<h1>Neues Confixx-Konto</h1>'; |
10 | if ($aktion == 'edit') echo '<h1>Confixx-Konto bearbeiten</h1>'; |
10 | if ($aktion == 'edit') echo '<h1>Confixx-Konto bearbeiten</h1>'; |
11 | 11 | ||
12 | if ($aktion == 'edit') |
12 | if ($aktion == 'edit') |
13 | { |
13 | { |
14 | $res = db_query("SELECT * FROM `".$mysql_zugangsdaten['praefix']."confixx` WHERE `id` = '".db_escape($id)."' AND `user` = '".$benutzer['id']."'"); |
14 | $res = db_query("SELECT * FROM `".$mysql_zugangsdaten['praefix']."confixx` WHERE `id` = '".db_escape($id)."' AND `user` = '".$benutzer['id']."'"); |
15 | if (db_num($res) == 0) |
15 | if (db_num($res) == 0) |
16 | die($header.'Auf diesen Datensatz kann nicht zugegriffen werden. Entweder ist er nicht mehr verfügbar, oder die Zugriffsberechtigungen sind falsch.'.$footer); |
16 | die($header.'Auf diesen Datensatz kann nicht zugegriffen werden. Entweder ist er nicht mehr verfügbar, oder die Zugriffsberechtigungen sind falsch.'.$footer); |
17 | $row = db_fetch($res); |
17 | $row = db_fetch($res); |
18 | 18 | ||
19 | $auszuwaehlen = (isset($row['folder'])) ? $row['folder'] : ''; |
19 | $auszuwaehlen = (isset($row['folder'])) ? $row['folder'] : ''; |
20 | $fusername = (isset($row['username'])) ? $row['username'] : ''; |
20 | $fusername = (isset($row['username'])) ? $row['username'] : ''; |
21 | $fpasswort = (isset($row['passwort'])) ? $row['passwort'] : ''; |
21 | $fpasswort = (isset($row['passwort'])) ? $row['passwort'] : ''; |
22 | $fserver = (isset($row['server'])) ? $row['server'] : ''; |
22 | $fserver = (isset($row['server'])) ? $row['server'] : ''; |
23 | } |
23 | } |
24 | else |
24 | else |
25 | { |
25 | { |
26 | $auszuwaehlen = (isset($folder)) ? $folder : ''; |
26 | $auszuwaehlen = (isset($folder)) ? $folder : ''; |
27 | $fusername = ''; |
27 | $fusername = ''; |
28 | $fpasswort = ''; |
28 | $fpasswort = ''; |
29 | $fserver = ''; |
29 | $fserver = ''; |
30 | } |
30 | } |
31 | 31 | ||
32 | echo '<form method="POST" name="mainform" action="'.$_SERVER['PHP_SELF'].'"> |
32 | echo '<form method="POST" name="mainform" action="'.$_SERVER['PHP_SELF'].'"> |
33 | <input type="hidden" name="seite" value="kraftsetzung"> |
33 | <input type="hidden" name="seite" value="kraftsetzung"> |
34 | <input type="hidden" name="aktion" value="'.$aktion.'"> |
34 | <input type="hidden" name="aktion" value="'.$aktion.'"> |
35 | <input type="hidden" name="modul" value="'.$modul.'">'; |
35 | <input type="hidden" name="modul" value="'.$modul.'">'; |
36 | 36 | ||
37 | if ($aktion == 'edit') |
37 | if ($aktion == 'edit') |
38 | echo '<input type="hidden" name="id" value="'.$id.'">'; |
38 | echo '<input type="hidden" name="id" value="'.$id.'">'; |
39 | 39 | ||
40 | echo '<table cellspacing="0" cellpadding="0" border="0"> |
40 | echo '<table cellspacing="0" cellpadding="0" border="0"> |
41 | <tr> |
41 | <tr> |
42 | <td colspan="2"><b>Allgemeine Informationen</b><br><br></td> |
42 | <td colspan="2"><b>Allgemeine Informationen</b><br><br></td> |
43 | </tr> |
43 | </tr> |
44 | <tr> |
44 | <tr> |
45 | <td valign="top">In Ordner:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
45 | <td valign="top">In Ordner:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
46 | <td valign="top">'; |
46 | <td valign="top">'; |
47 | 47 | ||
48 | gfx_zeichneordnerbox($modul, 'ORDER BY id', 0, 0, $auszuwaehlen); |
48 | gfx_zeichneordnerbox($modul, 'ORDER BY id', 0, 0, $auszuwaehlen); |
49 | 49 | ||
50 | if (!isset($danach)) $danach = 'A'; |
50 | if (!isset($danach)) $danach = 'A'; |
51 | 51 | ||
52 | echo '</td> |
52 | echo '</td> |
53 | </tr> |
53 | </tr> |
54 | <tr> |
54 | <tr> |
55 | <td colspan="2"><br><b>Zugangsdaten</b><br><br></td> |
55 | <td colspan="2"><br><b>Zugangsdaten</b><br><br></td> |
56 | </tr> |
56 | </tr> |
57 | <tr> |
57 | <tr> |
58 | <td valign="top">Server:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
58 | <td valign="top">Server:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
59 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fserver" id="fserver" value="'.$fserver.'" size="50"></td> |
59 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fserver" id="fserver" value="'.$fserver.'" size="50"></td> |
60 | </tr> |
60 | </tr> |
61 | <tr> |
61 | <tr> |
62 | <td valign="top">Benutzername:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
62 | <td valign="top">Benutzername:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
63 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fusername" value="'.$fusername.'" size="50"></td> |
63 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fusername" value="'.$fusername.'" size="50"></td> |
64 | </tr> |
64 | </tr> |
65 | <tr> |
65 | <tr> |
66 | <td valign="top">Passwort:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
66 | <td valign="top">Passwort:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
67 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fpasswort" value="'.$fpasswort.'" size="50"></td> |
67 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="fpasswort" value="'.$fpasswort.'" size="50"></td> |
68 | </tr> |
68 | </tr> |
69 | <tr> |
69 | <tr> |
70 | <td colspan="2"><br><b>Nach Speicherung</b><br><br></td> |
70 | <td colspan="2"><br><b>Nach Speicherung</b><br><br></td> |
71 | </tr> |
71 | </tr> |
72 | <tr> |
72 | <tr> |
73 | <td valign="top">Aktion: </td> |
73 | <td valign="top">Aktion: </td> |
74 | <td><select name="danach"> |
74 | <td><select name="danach"> |
75 | <option value="A"'; if ($danach == 'A') echo ' selected'; echo '>Zurück zum Hauptmenü</option> |
75 | <option value="A"'; if ($danach == 'A') echo ' selected'; echo '>Zurück zum Hauptmenü</option> |
76 | <option value="B"'; if ($danach == 'B') echo ' selected'; echo '>Neuer Eintrag in Kategorie</option> |
76 | <option value="B"'; if ($danach == 'B') echo ' selected'; echo '>Neuer Eintrag in Kategorie</option> |
77 | <option value="C"'; if ($danach == 'C') echo ' selected'; echo '>Neuer Eintrag im Ordner</option> |
77 | <option value="C"'; if ($danach == 'C') echo ' selected'; echo '>Neuer Eintrag im Ordner</option> |
78 | </select></td> |
78 | </select></td> |
79 | </tr> |
79 | </tr> |
80 | </table><br> |
80 | </table><br> |
81 | <a href="javascript:document.mainform.submit();">'; |
81 | <a href="javascript:document.mainform.submit();">'; |
82 | 82 | ||
83 | if ($aktion == 'new') echo 'Eintragung hinzufügen'; |
83 | if ($aktion == 'new') echo 'Eintragung hinzufügen'; |
84 | if ($aktion == 'edit') echo 'Eintragung aktualisieren'; |
84 | if ($aktion == 'edit') echo 'Eintragung aktualisieren'; |
85 | 85 | ||
86 | echo '</a> | <a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a> |
86 | echo '</a> | <a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a> |
87 | 87 | ||
88 | </form>'; |
88 | </form>'; |
89 | 89 | ||
90 | echo $footer; |
90 | echo $footer; |
91 | 91 | ||
92 | } |
92 | } |
93 | 93 | ||
94 | ?> |
94 | ?> |
95 | 95 |