-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
50 lines (43 loc) · 1.69 KB
/
main.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$users = getUsers();
$admins = getAdmins();
?>
<div class="container">
<p>
<a class="btn btn-outline-success" href="/user/create">Добавить пользователя</a>
<a class="btn btn-outline-danger" href="/user/authorization">Выйти</a>
<a href="index.php"><img src="img/123.png" alt="" class="img-thumbnail" align="right" width="100" height="56"></a>
</p>
<table class="table">
<thead>
<tr>
<th>Логин</th>
<th>Имя</th>
<th>Фамилия</th>
<th>Дата рождения</th>
<th>Email</th>
<th>Адрес</th>
<th>Действия</th>
</tr>
</thead>
<tbody>
<?php foreach ($users as $user): ?>
<tr>
<td><?php echo $user['login'] ?></td>
<td><?php echo $user['name'] ?></td>
<td><?php echo $user['surname'] ?></td>
<td><?php echo $user['birthdate'] ?></td>
<td><?php echo $user['email'] ?></td>
<td><?php echo $user['address'] ?></td>
<td>
<a href="user/<?php echo $user['id']?>/view" class="btn btn-sm btn-outline-info">Показать</a>
<a href="user/<?php echo $user['id']?>/update" class="btn btn-sm btn-outline-secondary">Редактировать</a>
<a href="user/<?php echo $user['id']?>/delete" class="btn btn-sm btn-outline-danger">Удалить</a>
</form>
</td>
</tr>
<?php endforeach;; ?>
</tbody>
</table>
</div>
<?php include 'partials/footer.php'; ?>