added user managment
This commit is contained in:
39
app/public/manage_user.php
Normal file
39
app/public/manage_user.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../scripts/connection.php");
|
||||
include("../scripts/functions.php");
|
||||
$user_data = check_admin($con);
|
||||
|
||||
include('header_footer/header.php');
|
||||
?>
|
||||
|
||||
<body>
|
||||
<div class="headline">
|
||||
<h2>Benutzerverwaltung</h2>
|
||||
</div>
|
||||
<div>
|
||||
<form action="add_user.php" method="get">
|
||||
<input type="submit" value="Benutzer hinzufügen"/>
|
||||
</form>
|
||||
</div>
|
||||
<div class="table-div">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Name</th>
|
||||
<th scope="col">Benutzergruppe</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
load_users($con);
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<?php
|
||||
$con = null;
|
||||
echo file_get_contents("header_footer/footer.html");
|
||||
?>
|
||||
Reference in New Issue
Block a user