コード例 #1
0
ファイル: qplannotes.php プロジェクト: sknagesh/divyaeng2
    print_r($_POST);
    if (isset($_POST['opeqpnote'])) {
        $dimn->setValue('opeqpnote', addslashes($_POST['opeqpnote']));
    }
    if (isset($_POST['Ope_Rev_ID'])) {
        $dimn->setValue('opedrawingid', $_POST['Ope_Rev_ID']);
    }
    if (isset($_POST['Operation_ID'])) {
        $dimn->setValue('operationid', $_POST['Operation_ID']);
    }
    if (isset($_POST['Ope_Quality_Plan_ID'])) {
        $dimn->setValue('opeqpid', $_POST['Ope_Quality_Plan_ID']);
    }
    $dimn->saveOpqQPNote();
} else {
    if (isset($_GET['ui'])) {
        if (isset($_GET['opeqpid'])) {
            $dimn->setValue('opeqpid', $_GET['opeqpid']);
        }
        $dimn->showQualityPlanNotesUI();
    }
    if (isset($_GET['list'])) {
        $dimn->setValue('opedrawingid', $_GET['revid']);
        $dimn->createQPList();
        $sel = new selectlist("Ope_Quality_Plan_ID", $dimn->opeqpnotelist, 'Select Note to Edit', 'Ope_Quality_Plan_ID', 'note', '', '', '1');
    }
    if (isset($_GET['qplan'])) {
        $dimn->setValue('drawingid', $_GET['did']);
        $dimn->showQualityPlan();
    }
}