테이블 변수명에서 yc4_를 shop_로 변경

This commit is contained in:
chicpro
2013-04-09 15:34:05 +09:00
parent 512c8feaf8
commit 4d95a696cd
149 changed files with 722 additions and 740 deletions

View File

@ -24,7 +24,7 @@ include_once(G4_ADMIN_PATH.'/admin.head.php');
if (!isset($cart_not_delete)) {
if (!$hours) $hours = 6;
$beforehours = date("Y-m-d H:i:s", ( G4_SERVER_TIME - (60 * 60 * $hours) ) );
$sql = " delete from {$g4['yc4_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
$sql = " delete from {$g4['shop_cart_table']} where ct_status = '$cart_title1' and ct_time <= '$beforehours' ";
sql_query($sql);
}
//------------------------------------------------------------------------------
@ -37,7 +37,7 @@ if (!isset($cart_not_delete)) {
//------------------------------------------------------------------------------
if (!isset($order_not_point)) {
$beforedays = date("Y-m-d H:i:s", ( time() - (60 * 60 * 24 * (int)$default['de_point_days']) ) );
$sql = " select * from {$g4['yc4_cart_table']}
$sql = " select * from {$g4['shop_cart_table']}
where ct_status = '$cart_title2'
and ct_point_use = '0'
and ct_time <= '$beforedays' ";
@ -45,7 +45,7 @@ if (!isset($order_not_point)) {
for ($i=0; $row=sql_fetch_array($result); $i++)
{
// 회원 ID 를 얻는다.
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['yc4_order_table']} where uq_id = '{$row['uq_id']}' ");
$tmp_row = sql_fetch("select od_id, mb_id from {$g4['shop_order_table']} where uq_id = '{$row['uq_id']}' ");
// 회원이면서 포인트가 0보다 크다면
if ($tmp_row['mb_id'] && $row['ct_point'] > 0)
@ -55,7 +55,7 @@ if (!isset($order_not_point)) {
insert_point($tmp_row['mb_id'], $po_point, $po_content, "@delivery", $tmp_row['mb_id'], "{$tmp_row['od_id']},{$row['uq_id']},{$row['ct_id']}");
}
sql_query("update {$g4['yc4_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
sql_query("update {$g4['shop_cart_table']} set ct_point_use = '1' where ct_id = '{$row['ct_id']}' ");
}
}
//------------------------------------------------------------------------------
@ -64,7 +64,7 @@ if (!isset($order_not_point)) {
//------------------------------------------------------------------------------
// 주문서 정보
//------------------------------------------------------------------------------
$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$od = sql_fetch($sql);
if (!$od['od_id']) {
alert($alt_msg1);
@ -83,7 +83,7 @@ if ($default['de_card_test']) {
// 로그인 아이디 / 비번
// 일반 : test1234 / test12345
// 에스크로 : escrow / escrow913
$g4['yc4_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
$g4['shop_cardpg']['kcp'] = "http://testadmin8.kcp.co.kr";
}
$sql = " select a.ct_id,
@ -102,7 +102,7 @@ $sql = " select a.ct_id,
a.it_opt5,
a.it_opt6,
b.it_name
from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '{$od['uq_id']}'
and a.it_id = b.it_id
order by a.ct_id ";
@ -388,7 +388,7 @@ if ($od['od_receipt_point'] > 0)
<tr><td colspan=2 height=1 bgcolor=#84C718></td></tr>
<?
$sql = " select dl_company, dl_url, dl_tel from {$g4['yc4_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$sql = " select dl_company, dl_url, dl_tel from {$g4['shop_delivery_table']} where dl_id = '{$od['dl_id']}' ";
$dl = sql_fetch($sql);
?>
<tr class=ht>
@ -444,7 +444,7 @@ if ($od['od_receipt_point'] > 0)
<? if ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') { ?>
<?
// 주문서
$sql = " select * from {$g4['yc4_order_table']} where od_id = '$od_id' ";
$sql = " select * from {$g4['shop_order_table']} where od_id = '$od_id' ";
$result = sql_query($sql);
$od = sql_fetch_array($result);
@ -486,7 +486,7 @@ if ($od['od_receipt_point'] > 0)
<?
if ($od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')
{
$pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
echo "&nbsp;<a href='$pg_url' target=_new>결제대행사</a>";
}
?>
@ -524,7 +524,7 @@ if ($od['od_receipt_point'] > 0)
<td>
<input type=text class=ed name=od_receipt_hp size=10 value='<? echo $od['od_receipt_hp'] ?>'>원
<?
$pg_url = $g4['yc4_cardpg'][$default['de_card_pg']];
$pg_url = $g4['shop_cardpg'][$default['de_card_pg']];
echo "&nbsp;<a href='$pg_url' target=_new>결제대행사</a>";
?>
</td>
@ -549,7 +549,7 @@ if ($od['od_receipt_point'] > 0)
value='<? echo $od['od_receipt_card'] ?>'>원
&nbsp;
<?
$card_url = $g4['yc4_cardpg'][$default['de_card_pg']];
$card_url = $g4['shop_cardpg'][$default['de_card_pg']];
?>
<a href='<? echo $card_url ?>' target=_new>결제대행사</a>
</td>
@ -599,7 +599,7 @@ if ($od['od_receipt_point'] > 0)
<select name=dl_id>
<option value=''>배송시 선택하세요.
<?
$sql = "select * from {$g4['yc4_delivery_table']} order by dl_order desc, dl_id desc ";
$sql = "select * from {$g4['shop_delivery_table']} order by dl_order desc, dl_id desc ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
echo "<option value='{$row['dl_id']}'>{$row['dl_company']}\n";