An error occurred while loading the file. Please try again.
-
Eric Laufer authored
Das ist der erste Upload des neuen VMS-SUEE
26044b8a
menue_user.php 3.63 KiB
<?php
head("Menüverwaltung Userbereich");
$oh = db_query("SELECT * FROM ".$db_prefix."_menu_user WHERE ordnung = '0' OR box = '0' ");
if(mysqli_num_rows($oh) > 0){
head("Links ohne Zuordnung");
echo '
<table width="100%">
<tr>
<td>Name</td>
<td>Link</td>
<td>Ordnungszahl</td>
<td>Box</td>
<td></td>
</tr>';
while($ohne = mysqli_fetch_array($oh)){
echo'
<form method="post" action="">
<input type="hidden" name="id" value="'.$ohne['id'].'">
<tr>
<td><input type="text" name="name" value="'.$ohne['name'].'"></td>
<td><input type="text" name="link" value="'.$ohne['link'].'"></td>
<td><input type="text" name="ordnung" size="3" value="'.$ohne['ordnung'].'"></td>
<td>
<select name="box">';
$bo = db_query("SELECT * FROM ".$db_prefix."_box_user");
while($boxen = mysqli_fetch_array($bo)){
echo '<option value="'.$boxen['id'].'">'.$boxen['name'].'</option>';
}
echo '</select>
</td>
<td><input type="submit" name="link_zuordnen_neu" value="Bearbeiten"> <input type="submit" name="link_zuordnen_loschen" value="Löschen"></td>
</tr>
</form>';
}
echo '</table>';
foot();
}
head("Neuen Link eintragen");
echo '
<form method="post" action="">
<table width="80%">
<tr>
<td>Pfad zur Datei</td>
<td>content/<input type="text" name="link">.php</td>
</tr>
<tr>
<td>Name des Links (Für User sichtbar)</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>Box in der der Link stehen soll</td>
<td>
<select name="box">';
$bo = db_query("SELECT * FROM ".$db_prefix."_box_user");
while($boxen = mysqli_fetch_array($bo)){
echo '<option value="'.$boxen['id'].'">'.$boxen['name'].'</option>';
}
echo '</select>
</td>
</tr>
<tr>
<td>Ordnungszahl für Box</td>
<td><input type="text" name="ordnung"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="menue_neu_save"></td>
</tr>
</table>