경로 및 전체테이블명 변경

This commit is contained in:
gnuboard
2013-02-07 16:56:29 +09:00
parent d7b9aab47a
commit f7855b165c
184 changed files with 711 additions and 708 deletions

View File

@ -11,7 +11,7 @@ for ($i=0; $i<$cnt; $i++)
{
$ct_id = $_POST[ct_id][$i];
$sql = " select * from $g4[yc4_cart_table]
$sql = " select * from $g4[shop_cart_table]
where on_uid = '$on_uid'
and ct_id = '$ct_id' ";
$ct = sql_fetch($sql);
@ -24,7 +24,7 @@ for ($i=0; $i<$cnt; $i++)
{
$stock_use = 0;
// 재고에 다시 더한다.
$sql =" update $g4[yc4_item_table] set it_stock_qty = it_stock_qty + '$ct[ct_qty]' where it_id = '$ct[it_id]' ";
$sql =" update $g4[shop_item_table] set it_stock_qty = it_stock_qty + '$ct[ct_qty]' where it_id = '$ct[it_id]' ";
sql_query($sql);
}
}
@ -36,14 +36,14 @@ for ($i=0; $i<$cnt; $i++)
{
$stock_use = 1;
// 재고에서 뺀다.
$sql =" update $g4[yc4_item_table] set it_stock_qty = it_stock_qty - '$ct[ct_qty]' where it_id = '$ct[it_id]' ";
$sql =" update $g4[shop_item_table] set it_stock_qty = it_stock_qty - '$ct[ct_qty]' where it_id = '$ct[it_id]' ";
sql_query($sql);
}
/* 주문 수정에서 "품절" 선택시 해당 상품 자동 품절 처리하기
else if ($ct_status == '품절') {
$stock_use = 1;
// 재고에서 뺀다.
$sql =" update $g4[yc4_item_table] set it_stock_qty = 0 where it_id = '$ct[it_id]' ";
$sql =" update $g4[shop_item_table] set it_stock_qty = 0 where it_id = '$ct[it_id]' ";
sql_query($sql);
} */
}
@ -62,7 +62,7 @@ for ($i=0; $i<$cnt; $i++)
// 히스토리에 남길때는 작업|시간|IP|그리고 나머지 자료
$ct_history="\n$ct_status|$now|$REMOTE_ADDR";
$sql = " update $g4[yc4_cart_table]
$sql = " update $g4[shop_cart_table]
set ct_point_use = '$point_use',
ct_stock_use = '$stock_use',
ct_status = '$ct_status',
@ -78,7 +78,7 @@ $qstr = "sort1=$sort1&sort2=$sort2&sel_field=$sel_field&search=$search&page=$pag
$url = "./orderform.php?od_id=$od_id&$qstr";
// 1.06.06
$od = sql_fetch(" select od_receipt_point from $g4[yc4_order_table] where od_id = '$od_id' ");
$od = sql_fetch(" select od_receipt_point from $g4[shop_order_table] where od_id = '$od_id' ");
if ($od[od_receipt_point])
alert("포인트로 결제한 주문은,\\n\\n주문상태 변경으로 인해 포인트의 가감이 발생하는 경우\\n\\n회원관리 > 포인트관리에서 수작업으로 포인트를 맞추어 주셔야 합니다.\\n\\n만약, 미수금이 발생하는 경우에는 DC에 금액을 음수로 입력하시면 해결됩니다.", $url);
else