예제 #1
0
            $id = $_GET['id'];
            $any = new Anylist();
            $any->createlist('Supplier_Scope');
            $anys = new Anylist();
            $anys->createlist('Supplier_Status');
            echo '<tr><td>';
            $sel = new selectlist("Scope_ID[" . $id . "]", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', 'class="required"', '', '');
            echo '</td><td><input id="appdate[' . $id . ']" name="appdate[' . $id . ']" class="required" >';
            echo '<input type="hidden" id="appdatedb[' . $id . ']" name="appdatedb[' . $id . ']" ></td><td>';
            $sel = new selectlist("Status_ID[" . $id . "]", $anys->anylist, 'Select Status', 'Status_ID', 'Status', 'class="required"', '', '');
            echo '</td><td><input id="sremarks[' . $id . ']" name="sremarks[' . $id . ']"></td></tr>';
        }
        if (isset($_GET['rating'])) {
            $supplier->setSID($_GET['cid']);
            $supplier->listSupplierRating();
        }
        if (isset($_GET['sid'])) {
            $supplier->setValue('id', $_GET['sid']);
            $supplier->showScopeList();
        }
        if (isset($_GET['showlist'])) {
            if (isset($_GET['showinlist'])) {
                $supplier->setValue('showinlist', 1);
            }
            if (isset($_GET['scopeid'])) {
                $supplier->setValue('scopeidl', $_GET['scopeid']);
            }
            $supplier->showSupplierList();
        }
    }
}