35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
$sub_menu = '400400';
|
|
include_once('./_common.php');
|
|
|
|
//print_r2($_POST); exit;
|
|
|
|
for ($i=0; $i<count($_POST['chk']); $i++)
|
|
{
|
|
// 실제 번호를 넘김
|
|
$k = $_POST['chk'][$i];
|
|
$od_id = $_POST['od_id'][$k];
|
|
|
|
$od = sql_fetch(" select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' ");
|
|
if (!$od) continue;
|
|
|
|
$data = serialize($od);
|
|
|
|
$sql = " insert {$g5['g5_shop_order_delete_table']} set de_key = '$od_id', de_data = '$data', mb_id = '{$member['mb_id']}', de_ip = '{$_SERVER['REMOTE_ADDR']}', de_datetime = '".G5_TIME_YMDHIS."' ";
|
|
sql_query($sql, true);
|
|
|
|
$sql = " delete from {$g5['g5_shop_order_table']} where od_id = '$od_id' ";
|
|
sql_query($sql);
|
|
}
|
|
|
|
$qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search";
|
|
$qstr .= "&od_status=$search_od_status";
|
|
$qstr .= "&od_settle_case=$od_settle_case";
|
|
$qstr .= "&od_misu=$od_misu";
|
|
$qstr .= "&od_cancel_price=$od_cancel_price";
|
|
$qstr .= "&od_receipt_price=$od_receipt_price";
|
|
$qstr .= "&od_receipt_point=$od_receipt_point";
|
|
$qstr .= "&od_receipt_coupon=$od_receipt_coupon";
|
|
|
|
goto_url("./orderlist.php?$qstr");
|
|
?>
|