コード例 #1
0
ファイル: action_delOrder.php プロジェクト: piyangkul/WBOMS
<?php

require_once dirname(__FILE__) . '/../function/func_addorder.php';
$idorder = $_GET['idorder'];
//echo $idproduct;
$chkDel = chkDelete($idorder);
$status = $chkDel['status_checktransport'];
if ($status === 'check' || $status === 'postpose') {
    header("location: ../order.php?p=product&action=delError");
} else {
    $delProduct_Order = deleteProduct_Order($idorder);
    echo $delProduct_Order;
    if ($delProduct_Order) {
        $delOrder = deleteOrder($idorder);
        //echo "55";
        if ($delOrder) {
            header("location: ../order.php?p=product&action=delCompleted");
        } else {
            header("location: ../order.php?p=product&action=delError");
        }
    } else {
        header("location: ../order.php?p=product&action=delError");
    }
}
コード例 #2
0
ファイル: action_delOrder.php プロジェクト: piyangkul/WBOMS
<?php

require_once dirname(__FILE__) . '/../function/func_addorder.php';
$idorder_product_refunds = $_GET['idorder'];
//echo $idproduct;
$chkDel = chkDelete($idorder_product_refunds);
$status = $chkDel['status_product_refund'];
echo $status;
if ($status === 'returned') {
    header("location: ../product_refunds.php?p=product&action=delErrorStatus");
} else {
    $delProduct_refunds = deleteProduct_Refunds_Order($idorder_product_refunds);
    $delOrder = deleteOrderProduct_Refunds($idorder_product_refunds);
    if ($delOrder) {
        header("location: ../product_refunds.php?p=product_refunds&action=delCompleted");
    } else {
        header("location: ../product_refunds.php?p=product_refunds&action=delCompleted");
        echo "Error1";
        header("location: ../product_refunds.php?p=product_refunds&action=delError");
    }
}