<th>#</th> <th>Groothandel</th> <th>Productlijst</th> </tr> <tr> <td><?php echo $gebruiker_productlijst->getProperty('Gebruiker_ProductlijstID'); ?> </td> <td><?php echo Bedrijf::get(Gebruiker::get($gebruiker_productlijst->getProperty('GebruikerID'))->getProperty('BedrijfID'))->getProperty('Bedrijfsnaam'); ?> </td> <td><?php echo Productlijst::get($gebruiker_productlijst->getProperty('ProductlijstID'))->getProperty('Naam'); ?> </td> </tr> </table> <form name="frmDelete" method="POST"> <input type="submit" name="submit" class="button" value="Ontkoppelen" /> </form><br /> <?php } else { ?> <div class="notification_info">U heeft nog geen productlijst aan een groothandel gekoppeld.</div> <?php } } else {
<a href="index.php?c=productlijst&p=add" class="button">Productlijst aanmaken</a> <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>
</form> <?php } else { if (productlijstExists($_POST['Naam'])) { echo notification('Er bestaat al een productlijst met de door uw gekozen naam. Ga terug en kies een andere naam.', 'error'); } else { $option['Artikelnummer'] = $_POST['Artikelnummer']; $option['Artikelnaam'] = $_POST['Artikelnaam']; $option['Kleur'] = $_POST['Kleur']; $option['Maat'] = $_POST['Maat']; $option['Verkoopprijs'] = $_POST['Verkoopprijs']; $option['Omschrijving'] = $_POST['Omschrijving']; $option['Afbeelding'] = $_POST['Afbeelding']; $properties_values = array('Naam' => $_POST['Naam']); Productlijst::create($properties_values); $productlijsten = Productlijst::getAll(); foreach ($productlijsten as $productlijst) { if ($productlijst->getProperty('Naam') == $_POST['Naam']) { $ProductlijstID = $productlijst->getProperty('ProductlijstID'); } } unset($sheetData['1']); $properties['Artikelnummer'] = ''; $properties['Artikelnaam'] = ''; $properties['Kleur'] = ''; $properties['Maat'] = ''; $properties['Verkoopprijs'] = ''; $properties['Omschrijving'] = ''; $properties['Afbeelding'] = ''; $properties['ProductlijstID'] = $ProductlijstID; foreach ($sheetData as $array => $key) {