<?php

if ($_SESSION['GroepID'] > 1) {
    ?>
 <a href="index.php?c=nieuwsitem&p=list" class="button">Lijstweergave</a>
 <a href="index.php?c=nieuwsitem&p=add" class="button">Nieuwsitem aanmaken</a><br /><br />
<?php 
}
if (!defined('isIncluded')) {
    header('location: index.php');
}
if (!empty($_GET['id'])) {
    $nieuwsitem = Nieuwsitem::get($_GET['id']);
    $gebruiker = Gebruiker::get($nieuwsitem->getProperty('OntvangerID'));
    if ($nieuwsitem->getProperty('AuteurID') == $_SESSION['GebruikerID']) {
        ?>
					<table class="list">
					<tr>
						<th>#</th>
						<td><?php 
        echo $nieuwsitem->getProperty('NieuwsitemID');
        ?>
</td>
					</tr>

					<tr>
						<th>Datum</th>
						<td><?php 
        echo $nieuwsitem->getProperty('Datum');
        ?>
</td>