g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -1,8 +1,8 @@
<?php
$sub_menu = '400500';
include_once('./_common.php');
include_once(G4_LIB_PATH.'/mailer.lib.php');
include_once(G4_LIB_PATH.'/icode.sms.lib.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
include_once(G5_LIB_PATH.'/icode.sms.lib.php');
check_demo();
@ -19,7 +19,7 @@ if ($default['de_sms_use'] == "icode")
}
if($_POST['send_escrow']) {
$sql = " select dl_id, dl_company from {$g4['shop_delivery_table']} order by dl_id asc ";
$sql = " select dl_id, dl_company from {$g5['shop_delivery_table']} order by dl_id asc ";
$result = sql_query($sql);
$dl_comp = array();
for($i=0; $row=sql_fetch_array($result); $i++) {
@ -38,7 +38,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
// 배송회사와 운송장번호가 있는것만 수정
if ($_POST['dl_id'][$m] && trim($_POST['od_invoice'][$m]))
{
$sql = "update {$g4['shop_order_table']}
$sql = "update {$g5['shop_order_table']}
set od_invoice_time = '{$_POST['od_invoice_time'][$m]}',
dl_id = '{$_POST['dl_id'][$m]}',
od_invoice = '{$_POST['od_invoice'][$m]}'
@ -51,7 +51,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
$od_id = $_POST['od_id'][$m];
// 장바구니 상태가 '주문', '준비' 일 경우 '배송' 으로 상태를 변경
$sql = " update {$g4['shop_cart_table']}
$sql = " update {$g5['shop_cart_table']}
set ct_status = '배송'
where ct_status in ('주문', '준비')
and od_id = '$od_id' ";
@ -60,16 +60,16 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
include "./ordermail.inc.php";
// 재고 반영
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g4['shop_cart_table']}
$sql2 = " select it_id, ct_id, ct_stock_use, ct_qty from {$g5['shop_cart_table']}
where od_id = '$od_id'
and ct_stock_use = '0' ";
$result2 = sql_query($sql2);
for ($k=0; $row2=mysql_fetch_array($result2); $k++)
{
$sql3 =" update {$g4['shop_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
$sql3 =" update {$g5['shop_item_table']} set it_stock_qty = it_stock_qty - '{$row2['ct_qty']}' where it_id = '{$row2['it_id']}' ";
sql_query($sql3);
$sql4 = " update {$g4['shop_cart_table']}
$sql4 = " update {$g5['shop_cart_table']}
set ct_stock_use = '1',
ct_history = CONCAT(ct_history,'\n배송일괄|$now|$REMOTE_ADDR')
where od_id = '$od_id'
@ -81,10 +81,10 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
// 일괄배송처리시 SMS 문자 일괄전송
if ($default['de_sms_use4'] && $_POST['send_sms'])
{
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g4['shop_order_table']} where od_id = '$od_id' ";
$sql = " select od_id, od_name, od_invoice, od_hp, dl_id from {$g5['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
$sql = " select dl_company from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$sql = " select dl_company from {$g5['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$dl = sql_fetch($sql);
$sms_contents = $default['de_sms_cont4'];
@ -115,7 +115,7 @@ for ($m=0; $m<count($_POST['od_id']); $m++)
}
else
{
$sql = "update {$g4['shop_order_table']}
$sql = "update {$g5['shop_order_table']}
set od_invoice_time = '',
dl_id = '',
od_invoice = ''