2022-10-26 12:45:36 +02:00
|
|
|
<!DOCTYPE html>
|
2022-10-24 18:41:28 +02:00
|
|
|
<html lang="en">
|
2022-10-25 15:48:11 +02:00
|
|
|
<head>
|
|
|
|
<title>Address Book
|
|
|
|
<?php if (!empty($user->getNick())): ?>
|
2022-10-24 18:41:28 +02:00
|
|
|
- <?= $user->getNick() ?>
|
2022-10-25 15:48:11 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</title>
|
|
|
|
<link rel="stylesheet" href="/assets/styles/main.css">
|
2022-10-24 18:41:28 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-10-25 15:48:11 +02:00
|
|
|
<h1>Address Book</h1>
|
2022-10-26 12:23:52 +02:00
|
|
|
<a href="<?= $router->path('app_main'); ?>">⌂ Home</a>
|
|
|
|
<a href="<?= $router->path('app_admin'); ?>">⚙ Admin</a>
|
2022-10-25 15:48:11 +02:00
|
|
|
<?php if (empty($user) || $user->getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?>
|
2022-10-26 12:23:52 +02:00
|
|
|
<a href="<?= $router->path('app_login'); ?>">⎆ Login</a>
|
2022-10-25 15:48:11 +02:00
|
|
|
<?php else: ?>
|
2022-10-26 12:23:52 +02:00
|
|
|
<a href="<?= $router->path('app_logout'); ?>">⎋ Logout</a>
|
2022-10-25 15:48:11 +02:00
|
|
|
<?php endif; ?>
|
2022-10-28 16:58:58 +02:00
|
|
|
<br>
|
|
|
|
<div id="info_box">Info</div>
|
|
|
|
<div id="error_box">
|
|
|
|
<span class="close_button" onclick="closeError()">×</span>
|
|
|
|
<div id="error_text"></div>
|
|
|
|
</div>
|
2022-10-24 18:41:28 +02:00
|
|
|
<br>
|