From 069650cb4d6082dc144d45184f7482ea83e6294d Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 4 Jun 2013 15:21:00 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=BF=A0=ED=8F=B0=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/couponformupdate.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 97690b60a..3a20dbe94 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -9,10 +9,10 @@ $_POST = array_map('trim', $_POST); if(!$_POST['cp_subject']) alert('쿠폰이름을 입력해 주십시오.'); -if(!$_POST['cp_method'] == 0 && !$_POST['cp_target']) +if($_POST['cp_method'] == 0 && !$_POST['cp_target']) alert('적용상품을 입력해 주십시오.'); -if(!$_POST['cp_method'] == 1 && !$_POST['cp_target']) +if($_POST['cp_method'] == 1 && !$_POST['cp_target']) alert('적용분류를 입력해 주십시오.'); if(!$_POST['mb_id'] && !$_POST['chk_all_mb']) @@ -58,6 +58,9 @@ if($w == '') { for($i=0; $row=sql_fetch_array($result); $i++) { $arr_mb_id[] = $row['mb_id']; } + + if($i == 0) + alert('관리자를 제외한 쿠폰 발급 가능 회원이 없습니다.'); } else { $arr_mb_id[] = $_POST['mb_id']; } @@ -107,7 +110,7 @@ if($w == '') { set cp_subject = '$cp_subject', cp_method = '$cp_method', cp_target = '$cp_target', - mb_id = '$cp_mb_id', + mb_id = '$mb_id', cp_start = '$cp_start', cp_end = '$cp_end', cp_type = '$cp_type', From 9aa5b7450efc59995b989188542e6ce497e53c7b Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 4 Jun 2013 15:22:30 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EC=95=84=EC=9D=B4?= =?UTF-8?q?=EB=94=94=20=EC=A7=81=EC=A0=91=20=EC=9E=85=EB=A0=A5=EC=8B=9C=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=95=84=EC=9D=B4=EB=94=94=20?= =?UTF-8?q?=EC=B2=B4=ED=81=AC=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/couponformupdate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 3a20dbe94..38e4f5140 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -62,6 +62,9 @@ if($w == '') { if($i == 0) alert('관리자를 제외한 쿠폰 발급 가능 회원이 없습니다.'); } else { + if($_POST['mb_id'] == $config['cf_admin']) + alert('관리자를 제외한 회원의 아이디를 입력해 주십시오.'); + $arr_mb_id[] = $_POST['mb_id']; } From d1b94bb26b55307bab881b58e1ee011e0e854c82 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 4 Jun 2013 15:28:37 +0900 Subject: [PATCH 3/3] =?UTF-8?q?#209=20=EC=95=84=EC=9D=B4=EB=94=94=20?= =?UTF-8?q?=EC=A7=81=EC=A0=91=20=EC=9E=85=EB=A0=A5=EC=8B=9C=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC=20=EC=BD=94=EB=93=9C=20=EC=9C=84=EC=B9=98=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/couponformupdate.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/adm/shop_admin/couponformupdate.php b/adm/shop_admin/couponformupdate.php index 38e4f5140..2c4d1f2d6 100644 --- a/adm/shop_admin/couponformupdate.php +++ b/adm/shop_admin/couponformupdate.php @@ -65,6 +65,11 @@ if($w == '') { if($_POST['mb_id'] == $config['cf_admin']) alert('관리자를 제외한 회원의 아이디를 입력해 주십시오.'); + $sql2 = " select mb_id from {$g4['member_table']} where mb_id = '{$_POST['mb_id']}' and mb_leave_date = '' and mb_intercept_date = '' "; + $row2 = sql_fetch($sql2); + if(!$row2['mb_id']) + alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.'); + $arr_mb_id[] = $_POST['mb_id']; } @@ -73,13 +78,6 @@ if($w == '') { for($i=0; $i<$mb_id_count; $i++) { $mb_id = $arr_mb_id[$i]; - if(!$_POST['chk_all_mb']) { - $sql2 = " select mb_id from {$g4['member_table']} where mb_id = '$mb_id' and mb_leave_date = '' and mb_intercept_date = '' "; - $row2 = sql_fetch($sql2); - if(!$row2['mb_id']) - alert('입력하신 회원아이디는 존재하지 않거나 탈퇴 또는 차단된 회원아이디입니다.'); - } - $j = 0; do { $cp_id = get_coupon_id();