2022-05-09 09:36:01 +00:00
|
|
|
|
<?php
|
|
|
|
|
if (!isset($hide_nav)) {
|
|
|
|
|
$hide_nav = FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!isset($hide_menu)) {
|
|
|
|
|
$hide_menu = FALSE;
|
|
|
|
|
}
|
|
|
|
|
?>
|
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-05-08 20:00:11 +00:00
|
|
|
|
<title><?=htmlspecialchars($title);?> – Stafett for livet tellesystem</title>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-06-26 03:28:14 +00:00
|
|
|
|
<link rel="stylesheet" href="<?=$this->config['root_url']?>static/style/modern-normalize.min.css">
|
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">
|
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
<?php if ($hide_menu == FALSE): ?>
|
|
|
|
|
<div id="menu">
|
|
|
|
|
<small>
|
2022-01-23 21:56:36 +00:00
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
<?php if ($this->user->logged_in): ?>
|
|
|
|
|
<span><?=htmlspecialchars($this->user->username)?></span>
|
|
|
|
|
<a href="<?=$this->config['root_url']?>logout.php">Logg ut</a>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<span>Ikke pålogget</span>
|
|
|
|
|
<a href="<?=$this->config['root_url']?>login.php">Logg inn</a>
|
|
|
|
|
<?php endif; ?>
|
2022-01-23 21:56:36 +00:00
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
</small>
|
|
|
|
|
</div>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<hr class="hidden">
|
|
|
|
|
|
2022-05-09 09:46:17 +00:00
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<div id="container">
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
<?php if ($hide_nav == FALSE): ?>
|
|
|
|
|
<div id="nav">
|
|
|
|
|
|
|
|
|
|
<h4>Felles</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="<?=$this->config['root_url']?>index.php">Forside</a></li>
|
|
|
|
|
<li><a href="<?=$this->config['root_url']?>race/results.php">Resultater</a></li>
|
|
|
|
|
</ul>
|
2022-02-27 08:05:52 +00:00
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
<?php if ($this->user->logged_in): ?>
|
|
|
|
|
<?php if ($this->user->power_level > 0): ?>
|
|
|
|
|
<h4>Admin</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="<?=$this->config['root_url']?>race/configure/index.php">Konfigurer</a></li>
|
|
|
|
|
<li><a href="<?=$this->config['root_url']?>race/configure/simulator.php">Simulator</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php endif; ?>
|
2022-02-27 08:05:52 +00:00
|
|
|
|
<?php endif; ?>
|
2022-02-15 11:29:40 +00:00
|
|
|
|
|
2022-05-09 09:36:01 +00:00
|
|
|
|
</div>
|
2022-01-14 06:43:31 +00:00
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<hr class="hidden">
|
|
|
|
|
|
2022-05-09 09:46:17 +00:00
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
2022-01-16 16:12:04 +00:00
|
|
|
|
<div id="main">
|
2022-01-23 21:56:36 +00:00
|
|
|
|
<?php
|
2022-04-13 19:22:21 +00:00
|
|
|
|
// display flashed messages
|
2022-05-03 10:02:33 +00:00
|
|
|
|
foreach ($this->session->getFlashedMessages() as $msg)
|
2022-01-23 21:56:36 +00:00
|
|
|
|
{
|
2022-05-03 10:02:33 +00:00
|
|
|
|
echo "<div class=\"alert {$msg["type"]}\" role=\"alert\">{$msg["message"]}</div>";
|
2022-01-23 21:56:36 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|