-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_panel.php
31 lines (27 loc) · 897 Bytes
/
admin_panel.php
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
<?php include 'header/header.php';
redirect_if_logged_out();
if (!logged_in () || $user_data['usertype'] != 'administrator') header('Location: index.php');
$useri = mysql_query("select * from users");
echo '<br/>
<table class = "table table-hover">
<th class = "success">
<td><b>Nume</b></td>
<td><b>Actiune</b></td>
</th>';
while ($row = mysql_fetch_assoc($useri))
{
echo '<tr>
<td></td>
<td>'.$row["username"].'</td>
<td><a href = "edit_user.php?user_id='.$row["user_id"].'"><input type = "button" class = "btn btn-info" value = "Editeaza"/></a>
<a href = "edit_user.php?delete_user_id='.$row["user_id"].'"><input type = "button" class = "btn btn-danger" value = "Sterge"/></a></td>
</tr>';
}
echo
'</table>
<br/>';
if (isset($_GET['user_id']) && !empty($_GET['user_id']))
{
}
?>
<?php include 'footer/footer.php';?>