if (isset($_POST['me_action'])) {
    $action = tep_db_prepare_input($_POST['me_action']);
    $design_id = tep_db_prepare_input($_POST['oi_id']);
    $supp_id = tep_db_prepare_input($_POST['supp_id']);
    $status = tep_db_prepare_input($_POST['status']);
    $prio = tep_db_prepare_input($_POST['prio']);
    $new_design_id = tep_db_prepare_input($_POST['design_id']);
    $sort_id = tep_db_prepare_input($_POST['sort_id']);
    $qty = tep_db_prepare_input($_POST['qty']);
    $use_exit = true;
    switch ($action) {
        case 'UPDATEQTY':
            $sp_orders = $class_pp->updateDesignQty($design_id, $qty, $session_userinfo['username']);
            break;
        case 'UPDATEPRIO':
            $sp_orders = $class_pp->updateDesignPriority($design_id, $prio, $session_userinfo['username']);
            break;
        case 'MAKENEWDESIGN':
            $sp_orders = $class_pp->setDesigntoMakeorBuy($design_id, $session_userinfo['username']);
            break;
        case 'CANCELDESIGN':
            $sp_orders = $class_pp->setDesigntoCancel($design_id, $session_userinfo['username']);
            break;
        case 'TODO':
            $sp_orders = $class_pp->setDesigntoTodo($design_id, $session_userinfo['username']);
            break;
        case 'OPENQUESTION1':
            $sp_orders = $class_pp->setDesigntoQuestion1($design_id, $session_userinfo['username']);
            break;
        case 'OPENQUESTION2':
            $sp_orders = $class_pp->setDesigntoQuestion2($design_id, $session_userinfo['username']);