mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 20:00:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
38
sources/app/admin/views/layout.phtml
Normal file
38
sources/app/admin/views/layout.phtml
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Alerte mail pour Leboncoin.fr</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="none">
|
||||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="static/styles.css?v=<?php echo APPLICATION_VERSION; ?>" />
|
||||
</head>
|
||||
<body>
|
||||
<?php if ($userAuthed) : ?>
|
||||
<header>
|
||||
<h1><a href="./">Système d'alerte Leboncoin</a></h1>
|
||||
<ul class="topmenu">
|
||||
<li<?php echo $action === "users"?' class="active"':''; ?>><a href="?mod=admin&a=users">Utilisateurs</a></li>
|
||||
<li<?php echo $action === "storage"?' class="active"':''; ?>><a href="?mod=admin&a=storage">Stockage</a></li>
|
||||
<li<?php echo $action === "proxy"?' class="active"':''; ?>><a href="?mod=admin&a=proxy">Proxy</a></li>
|
||||
<li<?php echo $action === "mail"?' class="active"':''; ?>><a href="?mod=admin&a=mail">Mail</a></li>
|
||||
<li<?php echo $action === "upgrade"?' class="active"':''; ?>><a href="?mod=admin&a=upgrade">Mise à jour</a></li>
|
||||
<li<?php echo $action === "log"?' class="active"':''; ?>><a href="?mod=admin&a=log">Log</a></li>
|
||||
<li style="float: right;"><a href="?a=logout">Déconnexion <span>(<?php echo htmlspecialchars($userAuthed->getUsername()); ?>)</span></a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<div class="content">
|
||||
<?php echo $content; ?>
|
||||
</div>
|
||||
<?php if ($userAuthed) : ?>
|
||||
<footer>
|
||||
<?php if ($userAuthed->getUsername() == "admin") : ?>
|
||||
<a href="?mod=admin&a=users" style="color: #EF0000;">Administration</a> |
|
||||
<?php endif; ?>
|
||||
Version <?php echo APPLICATION_VERSION; ?>
|
||||
| <a href="https://github.com/Blount/LBCAlerte/issues">Rapporter un bug</a>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user