전체회원에 발급된 쿠폰이 회원의 쿠폰리스트에 나오도록 수정
This commit is contained in:
@ -11,7 +11,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
$cp_count = 0;
|
$cp_count = 0;
|
||||||
$sql = " select cp_id
|
$sql = " select cp_id
|
||||||
from {$g5['g5_shop_coupon_table']}
|
from {$g5['g5_shop_coupon_table']}
|
||||||
where mb_id = '{$member['mb_id']}'
|
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||||
and cp_start <= '".G5_TIME_YMD."'
|
and cp_start <= '".G5_TIME_YMD."'
|
||||||
and cp_end >= '".G5_TIME_YMD."' ";
|
and cp_end >= '".G5_TIME_YMD."' ";
|
||||||
$res = sql_query($sql);
|
$res = sql_query($sql);
|
||||||
|
|||||||
@ -9,7 +9,7 @@ include_once(G5_PATH.'/head.sub.php');
|
|||||||
|
|
||||||
$sql = " select cp_id, cp_subject, cp_method, cp_target, cp_start, cp_end, cp_type, cp_price
|
$sql = " select cp_id, cp_subject, cp_method, cp_target, cp_start, cp_end, cp_type, cp_price
|
||||||
from {$g5['g5_shop_coupon_table']}
|
from {$g5['g5_shop_coupon_table']}
|
||||||
where mb_id = '{$member['mb_id']}'
|
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||||
and cp_start <= '".G5_TIME_YMD."'
|
and cp_start <= '".G5_TIME_YMD."'
|
||||||
and cp_end >= '".G5_TIME_YMD."'
|
and cp_end >= '".G5_TIME_YMD."'
|
||||||
order by cp_no ";
|
order by cp_no ";
|
||||||
|
|||||||
@ -16,7 +16,7 @@ include_once('./_head.php');
|
|||||||
$cp_count = 0;
|
$cp_count = 0;
|
||||||
$sql = " select cp_id
|
$sql = " select cp_id
|
||||||
from {$g5['g5_shop_coupon_table']}
|
from {$g5['g5_shop_coupon_table']}
|
||||||
where mb_id = '{$member['mb_id']}'
|
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||||
and cp_start <= '".G5_TIME_YMD."'
|
and cp_start <= '".G5_TIME_YMD."'
|
||||||
and cp_end >= '".G5_TIME_YMD."' ";
|
and cp_end >= '".G5_TIME_YMD."' ";
|
||||||
$res = sql_query($sql);
|
$res = sql_query($sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user