function productlijstExists($naam)
{
    $productlijsten = productlijst::getAll();
    foreach ($productlijsten as $productlijst) {
        if ($productlijst->getProperty('Naam') == $naam) {
            return true;
            break;
        }
    }
    return false;
}
		oTable = $('#table').dataTable({
			"bJQueryUI": true,
			"sPaginationType": "full_numbers"
		});
	});
</script>
<?php 
if (!defined('isIncluded')) {
    header('location: index.php');
}
if (isset($_GET['id'])) {
    if ($_GET['id'] == 'ok') {
        echo notification('Productlijst succesvol verwijderd', 'ok');
    } else {
        echo notification('weet u zeker dat u de volgende produclijst wilt verwijderen?', 'warning');
        $productlijst = productlijst::get($_GET['id']);
        $naam = $productlijst->getProperty('Naam');
        echo '<b>' . $naam . ' verwijderen?</b>';
        echo '<br/>';
        echo '<br/>';
        echo '<form method="post"/>';
        echo '<input type="submit" name="ja" value="Ja" class="button"/>';
        echo '<input type="submit" name="nee" value="Nee" class="button"/>';
        echo '</form>';
        if (isset($_POST['ja'])) {
            $producten = Product::getAll();
            foreach ($producten as $product) {
                if ($product->getProperty('ProductlijstID') == $_GET['id']) {
                    $product->delete();
                }
            }