쿠폰 출력관련 G4_TIME 및 G4_PATH 경로 수정

This commit is contained in:
chicpro
2013-02-12 10:36:29 +09:00
parent 9de286782b
commit fbbaae44c0
3 changed files with 10 additions and 10 deletions

View File

@ -134,8 +134,8 @@ $sql = " select *
from {$g4['shop_coupon_table']} from {$g4['shop_coupon_table']}
where cp_use = '1' where cp_use = '1'
and cp_type = '0' and cp_type = '0'
and cp_start <= '{$g4['time_ymd']}' and cp_start <= '".G4_TIME_YMD."'
and cp_end >= '{$g4['time_ymd']}' and cp_end >= '".G4_TIME_YMD."'
and ( it_id = '{$it['it_id']}' or cp_target = '2' ) and ( it_id = '{$it['it_id']}' or cp_target = '2' )
and mb_id in ( '{$member['mb_id']}', '전체회원' ) and mb_id in ( '{$member['mb_id']}', '전체회원' )
and ca_id in ( '{$it['ca_id']}', '{$it['ca_id2']}', '{$it['ca_id3']}', '전체카테고리' ) and ca_id in ( '{$it['ca_id']}', '{$it['ca_id2']}', '{$it['ca_id3']}', '전체카테고리' )
@ -189,7 +189,7 @@ if(!$cnt) {
} }
$g4['title'] = '쿠폰적용'; $g4['title'] = '쿠폰적용';
include_once ($g4['path'].'/head.sub.php'); include_once (G4_PATH.'/head.sub.php');
?> ?>
<style type="text/css"> <style type="text/css">
@ -380,5 +380,5 @@ $(function() {
</script> </script>
<?php <?php
include_once($g4['path'] . '/tail.sub.php'); include_once(G4_PATH . '/tail.sub.php');
?> ?>

View File

@ -210,8 +210,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
from {$g4['shop_coupon_table']} from {$g4['shop_coupon_table']}
where cp_use = '1' where cp_use = '1'
and cp_type = '0' and cp_type = '0'
and cp_start <= '{$g4['time_ymd']}' and cp_start <= '".G4_TIME_YMD."'
and cp_end >= '{$g4['time_ymd']}' and cp_end >= '".G4_TIME_YMD."'
and ( it_id = '{$row['it_id']}' or cp_target = '2' ) and ( it_id = '{$row['it_id']}' or cp_target = '2' )
and mb_id in ( '{$member['mb_id']}', '전체회원' ) and mb_id in ( '{$member['mb_id']}', '전체회원' )
and ca_id in ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}', '전체카테고리' ) "; and ca_id in ( '{$row['ca_id']}', '{$row['ca_id2']}', '{$row['ca_id3']}', '전체카테고리' ) ";

View File

@ -444,8 +444,8 @@ if($is_member) {
where cp_type = '2' where cp_type = '2'
and cp_use = '1' and cp_use = '1'
and mb_id in ( '{$member['mb_id']}', '전체회원' ) and mb_id in ( '{$member['mb_id']}', '전체회원' )
and cp_start <= '{$g4['time_ymd']}' and cp_start <= '".G4_TIME_YMD."'
and cp_end >= '{$g4['time_ymd']}' "; and cp_end >= '".G4_TIME_YMD."' ";
$result = sql_query($sql); $result = sql_query($sql);
for($k=0; $row=sql_fetch_array($result); $k++) { for($k=0; $row=sql_fetch_array($result); $k++) {
// 최소결제금액이 있다면 체크 // 최소결제금액이 있다면 체크
@ -475,8 +475,8 @@ if($is_member) {
where cp_type = '1' where cp_type = '1'
and cp_use = '1' and cp_use = '1'
and mb_id in ( '{$member['mb_id']}', '전체회원' ) and mb_id in ( '{$member['mb_id']}', '전체회원' )
and cp_start <= '{$g4['time_ymd']}' and cp_start <= '".G4_TIME_YMD."'
and cp_end >= '{$g4['time_ymd']}' "; and cp_end >= '".G4_TIME_YMD."' ";
$result = sql_query($sql); $result = sql_query($sql);
for($k=0; $row=sql_fetch_array($result); $k++) { for($k=0; $row=sql_fetch_array($result); $k++) {