Пример #1
0
     $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();
 }
 if (isset($_GET['mlist'])) {
     if (isset($_GET['poid'])) {
         $po->setValue('poid', $_GET['poid']);
     }
     $po->listItems();
 }
 if (isset($_GET['receipt'])) {
     if (isset($_GET['poitemid'])) {
         $po->setValue('poitemid', $_GET['poitemid']);
     }
     $po->receiveMaterialUI();
 }
 if (isset($_GET['receiptrow'])) {
     $data[0] = array('id' => $_GET['id'], 'poitemid' => $_GET['poitemid']);
     $po->showReceiptRow($data);
 }
 if (isset($_GET['rdetails'])) {
     if (isset($_GET['poid'])) {
         $po->setValue('poid', $_GET['poid']);
     }