28 lines
862 B
PHP
28 lines
862 B
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Address Book
|
|
<?php if (!empty($user->getNick())): ?>
|
|
- <?= $user->getNick() ?>
|
|
<?php endif; ?>
|
|
</title>
|
|
<link rel="stylesheet" href="/assets/styles/main.css">
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Address Book</h1>
|
|
<a href="<?= $router->path('app_main'); ?>">⌂ Home</a>
|
|
<a href="<?= $router->path('app_admin'); ?>">⚙ Admin</a>
|
|
<?php if (empty($user) || $user->getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?>
|
|
<a href="<?= $router->path('app_login'); ?>">⎆ Login</a>
|
|
<?php else: ?>
|
|
<a href="<?= $router->path('app_logout'); ?>">⎋ Logout</a>
|
|
<?php endif; ?>
|
|
<br>
|
|
<div id="info_box">Info</div>
|
|
<div id="error_box">
|
|
<span class="close_button" onclick="closeError()">×</span>
|
|
<div id="error_text"></div>
|
|
</div>
|
|
<br>
|