case 'nclog': //machine list $ncl = new NCLog(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } if (isset($_GET['showall'])) { $ncl->setValue('showall', 1); } if (isset($_GET['nclt'])) { $ncl->setValue('nctypeid', $_GET['nclt']); } $ncl->createNCList(); $sel = new selectlist('NonConformance_ID', $ncl->getNCList(), 'Select NC Log', 'NonConformance_ID', 'pd', $class, '', '1'); break; case 'notation': //machine list $not = new OpeNotation(); $not->createList(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } $sel = new selectlist('Notation_ID', $not->getList(), 'Select Notation', 'Notation', 'description', $class, '', ''); break; case 'ecn': //machine list $ecn = new ECN();