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

@ -5,12 +5,12 @@ include_once('./_common.php');
if($w == 'd') {
auth_check($auth[$sub_menu], 'd');
$sql = " select pp_id from {$g4['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ";
$sql = " select pp_id from {$g5['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
alert('삭제하시려는 자료가 존재하지 않습니다.');
sql_query(" delete from {$g4['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ");
sql_query(" delete from {$g5['shop_personalpay_table']} where pp_id = '{$_GET['pp_id']}' ");
goto_url('./personalpaylist.php?'.$qstr);
} else {
@ -26,7 +26,7 @@ if($w == 'd') {
alert('주문금액은 숫자만 입력해 주십시오.');
if($_POST['od_id']) {
$sql = " select od_id from {$g4['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$sql = " select od_id from {$g5['shop_order_table']} where od_id = '{$_POST['od_id']}' ";
$row = sql_fetch($sql);
if(!$row['od_id'])
alert('입력하신 주문번호는 존재하지 않는 주문 자료입니다.');
@ -45,19 +45,19 @@ if($w == 'd') {
if($w == '') {
$pp_id = get_uniqid();
$sql = " insert into {$g4['shop_personalpay_table']}
$sql = " insert into {$g5['shop_personalpay_table']}
set pp_id = '$pp_id',
$sql_common ,
pp_ip = '{$_SERVER['REMOTE_ADDR']}',
pp_time = '".G4_TIME_YMDHIS."' ";
pp_time = '".G5_TIME_YMDHIS."' ";
sql_query($sql);
} else if($w == 'u') {
$sql = " select pp_id from {$g4['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' ";
$sql = " select pp_id from {$g5['shop_personalpay_table']} where pp_id = '{$_POST['pp_id']}' ";
$row = sql_fetch($sql);
if(!$row['pp_id'])
alert('수정하시려는 자료가 존재하지 않습니다.');
$sql = " update {$g4['shop_personalpay_table']}
$sql = " update {$g5['shop_personalpay_table']}
set $sql_common
where pp_id = '{$_POST['pp_id']}' ";
sql_query($sql);