-
Notifications
You must be signed in to change notification settings - Fork 0
/
infoskjerm.php
31 lines (25 loc) · 1.08 KB
/
infoskjerm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?
// ------------------------------------
// Vis bilde hvis det er sommerferie
$today = date('d-m-Y', time());
$summerEnd = date('04-08-2014');
if (strtotime($today) < strtotime($summerEnd)) {
require('static/sommer.html');
die;
}
// ------------------------------------
$ROOT = $_SERVER['DOCUMENT_ROOT'];
require_once 'helpers/templater.php';
require_once 'helpers/database.php';
$stylesheet1 = '<link href="static/css/mainview.css" rel="stylesheet">';
$stylesheet2 = '<link href="static/css/infoskjerm.css" rel="stylesheet">';
$script1 = '<script src="static/js/infoskjerm.js"></script>';
$script2 = '<script src="static/js/mainview.js"></script>';
$templater = new Templater;
$templater->title = 'Møteromsoversikt';
$templater->date = utf8_encode(strftime('%A %d. %B %Y'));
$templater->last_updated = utf8_encode(strftime('%A %d. %B kl %H:%M', strtotime(extract_last_updated())));
$templater->meeting_data = extract_meetings_all_rooms();
$templater->extra_headers = array($stylesheet1, $stylesheet2);
$templater->extra_footers = array($script1, $script2);
$templater->render('mainviewTmpl.php');