shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 16:23:29 +09:00
parent fbe71caa80
commit 90ee89b4f5
217 changed files with 933 additions and 1624 deletions

View File

@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], "r");
$token = get_token();
$sql_common = " from {$g5['shop_coupon_table']} ";
$sql_common = " from {$g5['g5_shop_coupon_table']} ";
$sql_search = " where (1) ";
if ($stx) {
@ -112,12 +112,12 @@ $colspan = 8;
for ($i=0; $row=sql_fetch_array($result); $i++) {
switch($row['cp_method']) {
case '0':
$sql3 = " select it_name from {$g5['shop_item_table']} where it_id = '{$row['cp_target']}' ";
$sql3 = " select it_name from {$g5['g5_shop_item_table']} where it_id = '{$row['cp_target']}' ";
$row3 = sql_fetch($sql3);
$cp_target = get_text($row3['it_name']);
break;
case '1':
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '{$row['cp_target']}' ";
$sql3 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '{$row['cp_target']}' ";
$row3 = sql_fetch($sql3);
$cp_target = get_text($row3['ca_name']);
break;
@ -133,7 +133,7 @@ $colspan = 8;
$link2 = '</a>';
// 쿠폰사용회수
$sql = " select count(*) as cnt from {$g5['shop_coupon_log_table']} where cp_id = '{$row['cp_id']}' ";
$sql = " select count(*) as cnt from {$g5['g5_shop_coupon_log_table']} where cp_id = '{$row['cp_id']}' ";
$tmp = sql_fetch($sql);
$used_count = $tmp['cnt'];
?>