From 60bf0a11ca43f4d363ffc8c2d8f374d3924ccb21 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 22 May 2013 13:57:29 +0900 Subject: [PATCH] =?UTF-8?q?#176=20=EC=B6=94=EA=B0=80=EC=98=B5=EC=85=98=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20=EC=84=A0=ED=83=9D=EC=98=B5=EC=85=98=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EC=BF=BC=EB=A6=AC=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/itemformupdate.php | 49 +++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 388c4e552..21819a130 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -316,6 +316,22 @@ if($option_count) { $it_option = implode(',', $arr_opt1); } +// 추가옵션 +sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제 + +$supply_count = count($_POST['spl_id']); +if($supply_count) { + // 추가옵션명 + $arr_spl = array(); + for($i=0; $i<$supply_count; $i++) { + $spl_val = explode(chr(30), $_POST['spl_id'][$i]); + if(!in_array($spl_val[0], $arr_spl)) + $arr_spl[] = $spl_val[0]; + } + + $it_supply_subject = implode(',', $arr_spl); +} + // 상품요약정보 $value_array = array(); for($i=0; $i