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

@ -24,8 +24,8 @@ if(!$_POST['cp_start'] || !$_POST['cp_end'])
if($_POST['cp_start'] > $_POST['cp_end'])
alert('사용 시작일은 종료일 이전으로 입력해 주십시오.');
if($_POST['cp_end'] < G4_TIME_YMD)
alert('종료일은 오늘('.G4_TIME_YMD.')이후로 입력해 주십시오.');
if($_POST['cp_end'] < G5_TIME_YMD)
alert('종료일은 오늘('.G5_TIME_YMD.')이후로 입력해 주십시오.');
if(!$_POST['cp_price']) {
if($_POST['cp_type'])
@ -38,12 +38,12 @@ if($_POST['cp_type'] && ($_POST['cp_price'] < 1 || $_POST['cp_price'] > 99))
alert('할인비율을은 1과 99사이 값으로 입력해 주십시오.');
if($_POST['cp_method'] == 0) {
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$cp_target' ";
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_id = '$cp_target' ";
$row = sql_fetch($sql);
if(!$row['cnt'])
alert('입력하신 상품코드는 존재하지 않는 상품코드입니다.');
} else if($_POST['cp_method'] == 1) {
$sql = " select count(*) as cnt from {$g4['shop_category_table']} where ca_id = '$cp_target' ";
$sql = " select count(*) as cnt from {$g5['shop_category_table']} where ca_id = '$cp_target' ";
$row = sql_fetch($sql);
if(!$row['cnt'])
alert('입력하신 분류코드는 존재하지 않는 분류코드입니다.');
@ -53,7 +53,7 @@ if($w == '') {
if($_POST['chk_all_mb']) {
$mb_id = '전체회원';
} else {
$sql = " select mb_id from {$g4['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' ";
$sql = " select mb_id from {$g5['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' ";
$row = sql_fetch($sql);
if(!$row['mb_id'])
alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.');
@ -65,7 +65,7 @@ if($w == '') {
do {
$cp_id = get_coupon_id();
$sql3 = " select count(*) as cnt from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
$sql3 = " select count(*) as cnt from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$row3 = sql_fetch($sql3);
if(!$row3['cnt'])
@ -76,14 +76,14 @@ if($w == '') {
}
} while(1);
$sql = " INSERT INTO {$g4['shop_coupon_table']}
$sql = " INSERT INTO {$g5['shop_coupon_table']}
( cp_id, cp_subject, cp_method, cp_target, mb_id, cp_start, cp_end, cp_type, cp_price, cp_trunc, cp_minimum, cp_maximum, cp_datetime )
VALUES
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_price', '$cp_trunc', '$cp_minimum', '$cp_maximum', '".G4_TIME_YMDHIS."' ) ";
( '$cp_id', '$cp_subject', '$cp_method', '$cp_target', '$mb_id', '$cp_start', '$cp_end', '$cp_type', '$cp_price', '$cp_trunc', '$cp_minimum', '$cp_maximum', '".G5_TIME_YMDHIS."' ) ";
sql_query($sql);
} else if($w == 'u') {
$sql = " select * from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
$sql = " select * from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$cp = sql_fetch($sql);
if(!$cp['cp_id'])
@ -93,7 +93,7 @@ if($w == '') {
$mb_id = '전체회원';
}
$sql = " update {$g4['shop_coupon_table']}
$sql = " update {$g5['shop_coupon_table']}
set cp_subject = '$cp_subject',
cp_method = '$cp_method',
cp_target = '$cp_target',