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,11 +1,11 @@
<?php
include_once('./_common.php');
if ($default['de_hope_date_use']) {
include_once(G4_PLUGIN_PATH.'/jquery-ui/datepicker.php');
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
}
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/orderform.php');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/orderform.php');
return;
}
@ -19,9 +19,9 @@ else {
}
if (get_cart_count($tmp_cart_id) == 0)
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
$g4['title'] = '주문서 작성';
$g5['title'] = '주문서 작성';
include_once('./_head.php');
@ -29,7 +29,7 @@ include_once('./_head.php');
$od_id = get_uniqid();
set_session('ss_order_id', $od_id);
$s_cart_id = $tmp_cart_id;
$order_action_url = G4_HTTPS_SHOP_URL.'/orderformupdate.php';
$order_action_url = G5_HTTPS_SHOP_URL.'/orderformupdate.php';
if (file_exists('./settle_'.$default['de_card_pg'].'.inc.php')) {
include './settle_'.$default['de_card_pg'].'.inc.php';
}
@ -160,11 +160,11 @@ function get_intall_file()
b.ca_id2,
b.ca_id3,
b.it_notax
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
where a.od_id = '$s_cart_id'
and a.ct_select = '1' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
$sql .= " and a.ct_time > '$ctime' ";
}
$sql .= " group by a.it_id ";
@ -185,7 +185,7 @@ function get_intall_file()
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(ct_point * ct_qty) as point,
SUM(ct_qty) as qty
from {$g4['shop_cart_table']}
from {$g5['shop_cart_table']}
where it_id = '{$row['it_id']}'
and od_id = '$s_cart_id' ";
$sum = sql_fetch($sql);
@ -236,10 +236,10 @@ function get_intall_file()
$cp_count = 0;
$sql = " select cp_id
from {$g4['shop_coupon_table']}
from {$g5['shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_start <= '".G4_TIME_YMD."'
and cp_end >= '".G4_TIME_YMD."'
and cp_start <= '".G5_TIME_YMD."'
and cp_end >= '".G5_TIME_YMD."'
and cp_minimum <= '$sell_price'
and (
( cp_method = '0' and cp_target = '{$row['it_id']}' )
@ -287,7 +287,7 @@ function get_intall_file()
if ($i == 0) {
//echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
} else {
// 배송비 계산
$send_cost = get_sendcost($tot_sell_price, $s_cart_id);
@ -597,7 +597,7 @@ function get_intall_file()
<th scope="row"><label for="od_hp">핸드폰</label></th>
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_zip1&amp;frm_zip2=od_zip2&amp;frm_addr1=od_addr1&amp;frm_addr2=od_addr2'; ?>
<tr>
<th scope="row">주소</th>
<td>
@ -664,7 +664,7 @@ function get_intall_file()
$sep = chr(30);
// 기본배송지
$sql = " select *
from {$g4['shop_order_address_table']}
from {$g5['shop_order_address_table']}
where mb_id = '{$member['mb_id']}'
and ad_default = '1' ";
$row = sql_fetch($sql);
@ -676,7 +676,7 @@ function get_intall_file()
// 최근배송지
$sql = " select *
from {$g4['shop_order_address_table']}
from {$g5['shop_order_address_table']}
where mb_id = '{$member['mb_id']}'
order by ad_id desc
limit 2 ";
@ -694,7 +694,7 @@ function get_intall_file()
<th scope="row">배송지선택</th>
<td>
<?php echo $addr_list; ?>
<a href="<?php echo G4_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
</td>
</tr>
<tr>
@ -716,7 +716,7 @@ function get_intall_file()
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
</tr>
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2'; ?>
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&amp;frm_zip1=od_b_zip1&amp;frm_zip2=od_b_zip2&amp;frm_addr1=od_b_addr1&amp;frm_addr2=od_b_addr2'; ?>
<tr>
<th scope="row">주소</th>
<td id="sod_frm_addr">
@ -763,11 +763,11 @@ function get_intall_file()
if($is_member) {
// 주문쿠폰
$sql = " select cp_id
from {$g4['shop_coupon_table']}
from {$g5['shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_method = '2'
and cp_start <= '".G4_TIM_YMD."'
and cp_end >= '".G4_TIME_YMD."' ";
and cp_start <= '".G5_TIM_YMD."'
and cp_end >= '".G5_TIME_YMD."' ";
$res = sql_query($sql);
for($k=0; $cp=sql_fetch_array($res); $k++) {
@ -780,11 +780,11 @@ function get_intall_file()
if($send_cost > 0) {
// 배송비쿠폰
$sql = " select cp_id
from {$g4['shop_coupon_table']}
from {$g5['shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_method = '3'
and cp_start <= '".G4_TIM_YMD."'
and cp_end >= '".G4_TIME_YMD."' ";
and cp_start <= '".G5_TIM_YMD."'
and cp_end >= '".G5_TIME_YMD."' ";
$res = sql_query($sql);
for($k=0; $cp=sql_fetch_array($res); $k++) {
@ -979,7 +979,7 @@ function get_intall_file()
<input type="hidden" name="site_cd" value="SR<?php echo $default['de_kcp_mid']; ?>">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align='center'><img src="<?php echo G4_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
<td align='center'><img src="<?php echo G5_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
</tr>
<tr>
<td style='line-height:150%;'>