Ejemplo n.º 1
0
                    $do_upload = $upload->upload($_FILES['pdraw'], '', $drev);
                }
            }
        }
        if ($do_upload) {
            $message = '<p>' . $upload->upload_success() . '</p>';
            print "{$message}";
        } else {
            $message = $upload->show_errors();
            print "{$message}";
        }
    }
} else {
    if (isset($_GET['ui'])) {
        if (isset($_GET['opid'])) {
            $operationid = $_GET['opid'];
            $operation->setOperationID($operationid);
        }
        $operation->showOperationUI();
    }
    if (isset($_GET['gl'])) {
        $gage = new Gage();
        $opid = $_GET['opid'];
        $gl = explode(',', $_GET['gl']);
        foreach ($gl as $key => $value) {
            if ($value != '') {
                $gage->saveOPGageList($opid, $value);
            }
        }
    }
}