Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
head("Boxverwaltung Userbereich");
head("Neue Box Anlegen");
echo'
<form method="post" action="">
<table>
<tr>
<td>Name der Box</td>
<td><input type="text" name="name"</td>
</tr>
<tr>
<td>Ordnungszahl</td>
<td><input type="text" size="3" name="ordnung"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="admin_box_save" value="Speichern"></td>
</tr>
</table>
</form>';
foot();
head("Boxen bearbeiten");
echo '
<table width="100%">
<tr>
<td>Name der box</td>
<td>Ordnungszahl</td>
<td>Sichtbarkeit</td>
<td></td>
</tr>';
$bo = db_query("SELECT * FROM ".$db_prefix."_box_admin");
while($boxen = mysqli_fetch_array($bo)){
echo '
<form method="post" action="">
<input type="hidden" name="id" value="'.$boxen['id'].'">
<tr>
<td><input type="text" name="name_neu" value="'.$boxen['name'].'"></td>
<td><input type="text" name="ordnung" size="3" value="'.$boxen['ordnung'].'"></td>
<td><input type="submit" name="admin_box_aendern" value="Ändern"> <input type="submit" name="admin_box_loschen" value="Löschen"></td>
</tr>
</form>';
}
echo '<table>';
foot();
foot();