<table cellpadding="0" cellspacing="0" border="0"  class="display" id="table">
			<thead>
				<tr style="text-align: center">
					<th>#</th>
					<th>Artikelnummer</th>
					<th>Artikelnaam</th>
					<th>Kleur</th>
					<th>Maat</th>
					<th>Verkoopprijs</th>
					<th>Omschrijving</th>
					<th>Afbeelding</th>
				</tr>
			</thead>
			<tbody>
				<?php 
    $producten = Product::getAllByProductlijstId($_GET['lijst'], false, true, $_GET['id']);
    foreach ($producten as $product) {
        echo '<tr style="text-align: center">';
        echo '<td>' . $product->getProperty('ProductID') . '</td>';
        echo '<td>' . $product->getProperty('Artikelnummer') . '</td>';
        echo '<td>' . $product->getProperty('Artikelnaam') . '</td>';
        echo '<td>' . $product->getProperty('Kleur') . '</td>';
        echo '<td>' . $product->getProperty('Maat') . '</td>';
        echo '<td>&euro; ' . $product->getProperty('Verkoopprijs') . '</td>';
        echo '<td>' . $product->getProperty('Omschrijving') . '</td>';
        echo '<td><a href="' . $product->getProperty('Afbeelding') . '">Afbeelding</a></td>';
        echo "</tr>";
    }
    ?>
			</tbody>
		</table>
<a href="index.php?c=productlijst&p=list" class="button">Lijstweergave</a><br />
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		oTable = $('#table').dataTable({
			"bJQueryUI": true,
			"sPaginationType": "full_numbers"
		});
	});
</script>
<?php 
if (!defined('isIncluded')) {
    header('location: index.php');
}
if ($_SESSION['GroepID'] == 4 && !empty($_GET['id'])) {
    $productlijst = Productlijst::get($_GET['id']);
    $producten = Product::getAllByProductlijstId($_GET['id'], 'Artikelnaam');
    if (!empty($productlijst) && $productlijst !== false) {
        ?>
		<h2>Productlijst: <?php 
        echo $productlijst->getProperty('Naam');
        ?>
</h2>
		<table cellpadding="0" cellspacing="0" border="0" class="display" id="table">
			<thead>
				<tr>
					<th>Artikelnaam</th>
				</tr>
			</thead>

			<tbody>
				<?php 
	<div id="demo">
		<table cellpadding="0" cellspacing="0" border="0"  class="display" id="table">
			<thead>
				<tr style="text-align: center">
					<th>#</th>
					<th>Artikelnaam</th>
					<th>Sub-producten</th>
					<th>Selecteer</th>
				</tr>
			</thead>
			<tbody>
				<?php 
$productlijsten = Gebruiker_Productlijst::getByGebruikerId($_SESSION['GebruikerID']);
if (!empty($productlijsten)) {
    foreach ($productlijsten as $productlijst) {
        $producten = Product::getAllByProductlijstId($productlijst->getProperty('ProductlijstID'), true);
        foreach ($producten as $product) {
            echo '<tr style="text-align: center">';
            echo '<td>' . $product->getProperty('ProductID') . '</td>';
            echo '<td>' . $product->getProperty('Artikelnaam') . '</td>';
            echo '<td><a href="index.php?c=product&p=subproduct&lijst=' . $productlijst->getProperty('ProductlijstID') . '&id=' . $product->getProperty('ProductID') . '">Sub-producten</a></td>';
            echo '<td><input type="checkbox" name="' . $product->getProperty('Artikelnaam') . '" value="' . $product->getProperty('Artikelnaam') . '"</td>';
            echo "</tr>";
        }
    }
}
?>
			</tbody>
		</table>

		<table class="list">