<?php
/**
* NOC overview page
*
* @package NOC
* @version 1.0
* @author Martijn Bogaard
* @copyright 2008 SiteWK
*/
require_once('lib/common.php');
$page = $modules->getModuleByName('page');
$db = $modules->getModuleByName('database');
$page->authVisit('overview');
$db->query(new Query("(SELECT 'I', `id`, `title`, `text`, `time_start`, `time_end`, `last_update`, `status`
FROM `interruptions`
WHERE `status` != ".INT_CLOSED.")
UNION
(SELECT 'M', `id`, `title`, `text`, `time_start`, `time_end`, `last_update`, `status`
FROM `maintenance`
WHERE `status` != ".MAIN_CLOSED.")
ORDER BY `last_update` DESC;"));
$tpl->assign('berichten', $db->fetchAll());
$page->parsePage('overview.tpl');