프리샵 추가
This commit is contained in:
62
adm/shop_admin/orderreceiptupdate.php
Normal file
62
adm/shop_admin/orderreceiptupdate.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?
|
||||
$sub_menu = "400400";
|
||||
include_once("./_common.php");
|
||||
include_once($g4['path'].'/lib/mailer.lib.php');
|
||||
include_once($g4['path'].'/lib/icode.sms.lib.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
if ($od_bank_time)
|
||||
{
|
||||
if (check_datetime($od_bank_time) == false)
|
||||
alert("무통장 입금일시 오류입니다.");
|
||||
}
|
||||
|
||||
if ($od_card_time)
|
||||
{
|
||||
if (check_datetime($od_card_time) == false)
|
||||
alert("신용카드 결제일시 오류입니다.");
|
||||
}
|
||||
|
||||
if ($od_hp_time)
|
||||
{
|
||||
if (check_datetime($od_hp_time) == false)
|
||||
alert("휴대폰 결제일시 오류입니다.");
|
||||
}
|
||||
|
||||
$sql = " update {$g4['yc4_order_table']}
|
||||
set od_deposit_name = '$od_deposit_name',
|
||||
od_bank_account = '$od_bank_account',
|
||||
od_receipt_time = '$od_receipt_time',
|
||||
od_receipt_amount = '$od_receipt_amount',
|
||||
od_receipt_point = '$od_receipt_point',
|
||||
od_card_cancel = '$od_card_cancel',
|
||||
od_dc_amount = '$od_dc_amount',
|
||||
od_refund_amount = '$od_refund_amount',
|
||||
dl_id = '$dl_id',
|
||||
od_invoice = '$od_invoice',
|
||||
od_invoice_time = '$od_invoice_time' ";
|
||||
if (isset($od_send_cost))
|
||||
$sql .= " , od_send_cost = '$od_send_cost' ";
|
||||
if (isset($od_send_cost_area))
|
||||
$sql .= " , od_send_cost_area = '$od_send_cost_area' ";
|
||||
if (isset($od_send_coupon))
|
||||
$sql .= " , od_send_coupon = '$od_send_coupon' ";
|
||||
$sql .= " where od_id = '$od_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
|
||||
// 메일발송
|
||||
define("_ORDERMAIL_", true);
|
||||
include "./ordermail.inc.php";
|
||||
|
||||
|
||||
// SMS 문자전송
|
||||
define("_ORDERSMS_", true);
|
||||
include "./ordersms.inc.php";
|
||||
|
||||
|
||||
$qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search&page=$page";
|
||||
|
||||
goto_url("./orderform.php?od_id=$od_id&$qstr");
|
||||
?>
|
||||
Reference in New Issue
Block a user