2022-01-14 06:43:31 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2022-01-15 10:26:02 +00:00
|
|
|
|
<title><?=htmlspecialchars($title);?> – Stafett for livet</title>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-01-20 08:34:52 +00:00
|
|
|
|
<link rel="stylesheet" href="<?=$this->config['root_url']?>static/style/main.css">
|
2022-02-15 11:58:17 +00:00
|
|
|
|
<link rel="icon" href="<?=$this->config['root_url']?>static/img/cropped-kf-propell-ikon-32x32.png">
|
2022-01-14 06:43:31 +00:00
|
|
|
|
<body>
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<div id="header">
|
2022-01-23 21:56:36 +00:00
|
|
|
|
<a href="<?=$this->config['root_url']?>">Stafett for livet tellesystem</a>
|
2022-01-16 16:12:04 +00:00
|
|
|
|
</div>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<hr class="hidden">
|
|
|
|
|
|
|
|
|
|
<div id="menu">
|
|
|
|
|
<small>
|
2022-01-23 21:56:36 +00:00
|
|
|
|
|
|
|
|
|
<?php if ($this->user->loggedIn): ?>
|
|
|
|
|
<span><?=htmlspecialchars($this->user->username)?></span>
|
2022-02-02 11:56:17 +00:00
|
|
|
|
<a href="<?=$this->config['root_url']?>confirm-logout.php">Logg ut</a>
|
2022-01-23 21:56:36 +00:00
|
|
|
|
<?php else: ?>
|
|
|
|
|
<span>Ikke pålogget</span>
|
|
|
|
|
<a href="<?=$this->config['root_url']?>login.php">Logg inn</a>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
</small>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<hr class="hidden">
|
|
|
|
|
|
|
|
|
|
<div id="container">
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<div id="nav">
|
2022-02-06 02:35:20 +00:00
|
|
|
|
<h4>Felles</h4>
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<ul>
|
2022-01-20 08:34:52 +00:00
|
|
|
|
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
|
2022-02-07 10:05:53 +00:00
|
|
|
|
</ul>
|
2022-02-27 08:05:52 +00:00
|
|
|
|
|
|
|
|
|
<?php if ($this->user->loggedIn): ?>
|
|
|
|
|
<?php if ($this->user->powerLevel > 0): ?>
|
|
|
|
|
<h4>Tillatelser</h4>
|
|
|
|
|
<ul>
|
2022-03-15 17:20:50 +00:00
|
|
|
|
<li><a href="<?=$this->config['root_url']?>race/simulator.php">Simulator</a></li>
|
2022-03-19 21:22:24 +00:00
|
|
|
|
<li><a href="<?=$this->config['root_url']?>race/configure/index.php">Konfigurer</a></li>
|
2022-02-27 08:05:52 +00:00
|
|
|
|
</ul>
|
|
|
|
|
<?php endif; ?>
|
2022-02-15 11:29:40 +00:00
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
2022-01-14 06:43:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<hr class="hidden">
|
|
|
|
|
|
|
|
|
|
<div id="main">
|
2022-01-23 21:56:36 +00:00
|
|
|
|
<?php
|
|
|
|
|
// Display flashed messages
|
|
|
|
|
$msgs = $this->session->getFlashedMessages();
|
|
|
|
|
if ($msgs)
|
|
|
|
|
{
|
|
|
|
|
foreach ($msgs as $msg)
|
|
|
|
|
{
|
2022-02-14 01:52:59 +00:00
|
|
|
|
echo "<div class=\"alert {$msg["type"]}\" role=\"alert\">{$msg["message"]}</div>";
|
2022-01-23 21:56:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|