-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-users.php
More file actions
executable file
·68 lines (67 loc) · 2.66 KB
/
Copy pathpage-users.php
File metadata and controls
executable file
·68 lines (67 loc) · 2.66 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
include('inc/login.php');
if( (isset($_SESSION['uid']) != '') ){
$page = 'users';
include_once 'inc/check.php'; ?>
<!--header -->
<?php
include_once 'templates/header.php';
require_once 'inc/config.php'; ?>
<body class="sidebar-mini fixed">
<div class="wrapper bg-rd">
<!-- Navbar-->
<?php include_once 'templates/navbar.php'; ?>
<!-- Side-Nav-->
<?php include_once 'templates/sidebar.php'; ?>
<div class="content-wrapper">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<a href="page-add-user.php"><button class="btn btn-primary" type="button"><i class="fa fa-lg fa-user-plus"></i> Benutzer anlegen</button></a>
<table class="table table-hover table-bordered" id="table_users">
<thead>
<tr class="table-header">
<th>Name</th>
<th>E-Mail</th>
<th>Aktiviert</th>
<th class="no--sorting"></th>
</tr>
</thead>
<tbody>
<?php
if(is_array($users) || is_object($users)) {
$i = 0;
foreach($users as $val) {
if(isset($val['id']) ) {
echo '<tr id="idrow'.$val['id'].'"> '
. '<td id="full'.$val['id'].'">'.$val["full"].'</td>'
. '<td>'.$val["email"].'</td>'
. '<td>'.$val["aktiv"].'</td>
<td class="no--border">
<span class="col-md-1"><a href="page-edit-user.php?id='.$val["id"].'"><i class="fa fa-lg fa-edit"></i></a></span>'
. '<span class="col-md-1"><a class="btnDel" value="'.$val['id'].'" name="btnDel'.$val['id'].'" id="btnDel'.$val['id'].'"><i class="fa fa-lg fa-trash"></i></a></span>
</td>
</tr>';
}
}
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer-->
<?php
include_once 'templates/footer.html';
?>
<script type="text/javascript" src="ajax/deluser/del_usr.js"></script>
<?php }else{
header('Location: index.php');
} ?>