<?
$sub_menu = "400400";
include_once("./_common.php");

check_demo();

auth_check($auth[$sub_menu], "d");

if ($od_id && $on_uid) 
{
    // 장바구니 삭제
    sql_query(" delete from $g4[shop_cart_table] where on_uid = '$on_uid' ");

    // 카드결제내역 삭제
    sql_query(" delete from $g4[shop_card_history_table] where od_id = '$od_id' and on_uid = '$on_uid' ");

    // 주문서 삭제
    sql_query(" delete from $g4[shop_order_table] where od_id = '$od_id' and on_uid = '$on_uid' ");
}

if ($return_url) 
{
    goto_url("$return_url");
} 
else 
{
    $qstr = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&sort1=$sort1&sort2=$sort2&page=$page";
    goto_url("./orderlist{$list}.php?$qstr");
}
?>
