From 58478380c0a2db71edbbb370e7ef42924dfe0edf Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 29 May 2013 17:31:50 +0900 Subject: [PATCH 1/2] =?UTF-8?q?#180=20=EB=93=B1=EB=A1=9D=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=ED=95=9C=20=EC=83=81=ED=92=88=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemexcelupdate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adm/shop_admin/itemexcelupdate.php b/adm/shop_admin/itemexcelupdate.php index 2ba7de581..036f77aad 100644 --- a/adm/shop_admin/itemexcelupdate.php +++ b/adm/shop_admin/itemexcelupdate.php @@ -60,6 +60,7 @@ if($_FILES['excelfile']['tmp_name']) { error_reporting(E_ALL ^ E_NOTICE); $dup_it_id = array(); + $fail_it_id = array(); $dup_count = 0; $total_count = 0; $fail_count = 0; @@ -119,6 +120,7 @@ if($_FILES['excelfile']['tmp_name']) { $sql2 = " select count(*) as cnt from {$g4['shop_item_table']} where it_id = '$it_id' "; $row2 = sql_fetch($sql2); if($row2['cnt']) { + $fail_it_id[] = $it_id; $dup_it_id[] = $it_id; $dup_count++; $fail_count++; @@ -129,6 +131,7 @@ if($_FILES['excelfile']['tmp_name']) { $sql2 = " select count(*) as cnt from {$g4['shop_category_table']} where ca_id = '$ca_id' "; $row2 = sql_fetch($sql2); if(!$row2['cnt']) { + $fail_it_id[] = $it_id; $fail_count++; continue; } @@ -159,6 +162,8 @@ include_once(G4_PATH.'/head.sub.php');
실패건수
+
실패상품코드
+
0) { ?>
상품코드중복건수
From 4d485efeeb4173bf7b3b1ef8d8a89cb23edcf2c4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 29 May 2013 18:13:55 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EC=8B=A4=ED=8C=A8=EA=B1=B4=EC=88=98?= =?UTF-8?q?=EA=B0=80=20=EC=9E=88=EC=9D=84=20=EB=95=8C=EB=A7=8C=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=20=EC=83=81=ED=92=88=EC=BD=94=EB=93=9C=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=ED=95=98=EB=8F=84=EB=A1=9D=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/itemexcelupdate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adm/shop_admin/itemexcelupdate.php b/adm/shop_admin/itemexcelupdate.php index 036f77aad..df1e7b92b 100644 --- a/adm/shop_admin/itemexcelupdate.php +++ b/adm/shop_admin/itemexcelupdate.php @@ -162,8 +162,10 @@ include_once(G4_PATH.'/head.sub.php');
실패건수
+ 0) { ?>
실패상품코드
+ 0) { ?>
상품코드중복건수