$i++; } } else { if (isset($_GET['ui'])) { if (isset($_GET['poid'])) { $po->setValue('poid', $_GET['poid']); } $po->setValue('supplierid', $_GET['sid']); $po->showPurchaseOrderUI(); } if (isset($_GET['newtmrow'])) { $po->addItemRow($_GET['id']); } if (isset($_GET['getlist'])) { $po->setValue('supplierid', $_GET['sid']); $po->getSuppliedItemList(); } if (isset($_GET['scope'])) { $any = new Anylist(); $any->createlist('Supplier_Scope'); $sel = new selectlist("Scope_ID", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', '', '', '1'); } if (isset($_GET['pregister'])) { if (isset($_GET['sid'])) { $po->setValue('supplierid', $_GET['sid']); } if (isset($_GET['scopeid'])) { $po->setValue('scopeid', $_GET['scopeid']); } $po->listPurchases(); }