addressbook/templates/_header.html.php

28 lines
862 B
PHP
Raw Normal View History

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
&nbsp;-&nbsp;<?= $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'); ?>">&#8962;&nbsp;Home</a>
<a href="<?= $router->path('app_admin'); ?>">&#9881;&nbsp;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'); ?>">&#9094;&nbsp;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'); ?>">&#9099;&nbsp;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()">&times;</span>
<div id="error_text"></div>
</div>
2022-10-24 18:41:28 +02:00
<br>