2021-08-30 15:17:53 +00:00
|
|
|
<?php
|
2021-09-11 18:12:29 +00:00
|
|
|
// This file should serve as an example showing current implemented features
|
2021-10-09 20:01:18 +00:00
|
|
|
require_once("app/common.php");
|
2021-09-06 06:51:21 +00:00
|
|
|
|
2021-09-11 18:12:29 +00:00
|
|
|
// Parameters that will be used in the template files
|
2021-10-09 20:01:18 +00:00
|
|
|
// For more options and explanations, check the 'app/template.php' file
|
2021-09-11 18:12:29 +00:00
|
|
|
$templateParameters["title"] = "Eksempel side";
|
2021-08-30 15:17:53 +00:00
|
|
|
|
2021-10-11 07:37:39 +00:00
|
|
|
// Alerts which will be executed from the template
|
|
|
|
$_SESSION['alert'][] = ['info', 'Eksempel!'];
|
|
|
|
$_SESSION['alert'][] = ['success', 'Eksempel!'];
|
|
|
|
$_SESSION['alert'][] = ['warning', 'Eksempel!'];
|
|
|
|
$_SESSION['alert'][] = ['danger', 'Eksempel!'];
|
2021-10-11 08:34:32 +00:00
|
|
|
$_SESSION['alert'][] = ['foo', 'Eksempel!'];
|
|
|
|
|
2021-10-11 07:37:39 +00:00
|
|
|
|
2021-08-30 15:17:53 +00:00
|
|
|
// Include the top of page
|
2021-10-09 20:01:18 +00:00
|
|
|
require_once("template/_header.php");
|
2021-08-30 15:17:53 +00:00
|
|
|
?>
|
2021-09-11 18:12:29 +00:00
|
|
|
|
2021-10-09 20:01:18 +00:00
|
|
|
<h1>Eksempel side</h1>
|
2021-09-11 18:12:29 +00:00
|
|
|
<p>Dette er en eksempel side</p>
|
|
|
|
|
2021-08-30 15:17:53 +00:00
|
|
|
<?php
|
|
|
|
// Include the rest of the page
|
2021-10-09 20:01:18 +00:00
|
|
|
require_once("template/_footer.php");
|
2021-08-30 15:17:53 +00:00
|
|
|
?>
|