Files
firstgarden-web-gnu/adm/shop_admin/orderdelete.php
2013-01-25 11:48:46 +09:00

31 lines
725 B
PHP

<?
$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[yc4_cart_table] where on_uid = '$on_uid' ");
// 카드결제내역 삭제
sql_query(" delete from $g4[yc4_card_history_table] where od_id = '$od_id' and on_uid = '$on_uid' ");
// 주문서 삭제
sql_query(" delete from $g4[yc4_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");
}
?>