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 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'spalte1\').focus();"', $header); |
5 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'spalte1\').focus();"', $header); |
6 | 6 | ||
7 | if (isset($sent) && ($sent == '1')) |
7 | if (isset($sent) && ($sent == '1')) |
8 | { |
8 | { |
9 | for ($i=1; $i<=10; $i++) |
9 | for ($i=1; $i<=10; $i++) |
10 | { |
10 | { |
11 | $tmp1 = 'spalte'.$i; |
11 | $tmp1 = 'spalte'.$i; |
12 | $tmp2 = 'id'.$i; |
12 | $tmp2 = 'id'.$i; |
13 | $tmp3 = 'name'.$i; |
13 | $tmp3 = 'name'.$i; |
14 | 14 | ||
15 | if (($$tmp1 != '') || ($$tmp2 != '') || ($$tmp3 != '')) |
15 | if (($$tmp1 != '') || ($$tmp2 != '') || ($$tmp3 != '')) |
16 | db_query("INSERT INTO `".$mysql_zugangsdaten['praefix']."datentraeger_kategorien` (`nummer`, `name`, `spalte`, `user`) VALUES ('".$$tmp2."', '".$$tmp3."', '".$$tmp1."', '".$benutzer['id']."')"); |
16 | db_query("INSERT INTO `".$mysql_zugangsdaten['praefix']."datentraeger_kategorien` (`nummer`, `name`, `spalte`, `user`) VALUES ('".$$tmp2."', '".$$tmp3."', '".$$tmp1."', '".$benutzer['id']."')"); |
17 | } |
17 | } |
18 | } |
18 | } |
19 | 19 | ||
20 | echo '<h1>Neue Kategorien erstellen</h1>'; |
20 | echo '<h1>Neue Kategorien erstellen</h1>'; |
21 | 21 | ||
22 | echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'" name="mainform">'; |
22 | echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'" name="mainform">'; |
23 | echo '<input type="hidden" name="modul" value="'.$modul.'">'; |
23 | echo '<input type="hidden" name="modul" value="'.$modul.'">'; |
24 | echo '<input type="hidden" name="seite" value="'.$seite.'">'; |
24 | echo '<input type="hidden" name="seite" value="'.$seite.'">'; |
25 | echo '<input type="hidden" name="sent" value="1">'; |
25 | echo '<input type="hidden" name="sent" value="1">'; |
26 | 26 | ||
27 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte1" id="spalte1" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id1" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name1" value="" size="60"><br>'; |
27 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte1" id="spalte1" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id1" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name1" value="" size="60"><br>'; |
28 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte2" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id2" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name2" value="" size="60"><br>'; |
28 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte2" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id2" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name2" value="" size="60"><br>'; |
29 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte3" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id3" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name3" value="" size="60"><br>'; |
29 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte3" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id3" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name3" value="" size="60"><br>'; |
30 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte4" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id4" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name4" value="" size="60"><br>'; |
30 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte4" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id4" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name4" value="" size="60"><br>'; |
31 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte5" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id5" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name5" value="" size="60"><br>'; |
31 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte5" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id5" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name5" value="" size="60"><br>'; |
32 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte6" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id6" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name6" value="" size="60"><br>'; |
32 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte6" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id6" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name6" value="" size="60"><br>'; |
33 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte7" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id7" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name7" value="" size="60"><br>'; |
33 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte7" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id7" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name7" value="" size="60"><br>'; |
34 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte8" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id8" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name8" value="" size="60"><br>'; |
34 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte8" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id8" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name8" value="" size="60"><br>'; |
35 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte9" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id9" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name9" value="" size="60"><br>'; |
35 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte9" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id9" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name9" value="" size="60"><br>'; |
36 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte10" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id10" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name10" value="" size="60"><br>'; |
36 | echo '<input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="spalte10" value="" size="2"> <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="id10" value="" size="2"> - <input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="name10" value="" size="60"><br>'; |
37 | 37 | ||
38 | echo '<br><input type="submit" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Kategorien Erstellen"> <input type="button" value="Abbrechen" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=inhalt\'" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';">'; |
38 | echo '<br><input type="submit" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';" value="Kategorien Erstellen"> <input type="button" value="Abbrechen" onclick="document.location.href=\''.$_SERVER['PHP_SELF'].'?modul='.urlencode($modul).'&seite=inhalt\'" class="button" onmouseover="this.className=\'button_act\';" onmouseout="this.className=\'button\';">'; |
39 | 39 | ||
40 | echo '</form>'; |
40 | echo '</form>'; |
41 | 41 | ||
42 | echo $footer; |
42 | echo $footer; |
43 | 43 | ||
44 | ?> |
44 | ?> |
45 | 45 |