From 872147782a2c2d79fff0da3ada7e91be21d9f3bc Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 17 Jan 2014 10:48:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EB=AC=B8=EC=9D=98=20?= =?UTF-8?q?=EB=8B=B5=EB=B3=80=EC=97=90=20=EC=B2=A8=EB=B6=80=EB=90=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EB=8F=84=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=ED=86=A0=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 --- shop/itemqaformupdate.php | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/shop/itemqaformupdate.php b/shop/itemqaformupdate.php index f7ea42867..150747724 100644 --- a/shop/itemqaformupdate.php +++ b/shop/itemqaformupdate.php @@ -40,7 +40,7 @@ if ($w == "") iq_ip = '$REMOTE_ADDR' "; sql_query($sql); - alert_opener("상품문의가 등록 되었습니다.", $url); + $alert_msg = '상품문의가 등록 되었습니다.'; } else if ($w == "u") { @@ -61,7 +61,7 @@ else if ($w == "u") where iq_id = '$iq_id' "; sql_query($sql); - alert_opener("상품문의가 수정 되었습니다.", $url); + $alert_msg = '상품문의가 수정 되었습니다.'; } else if ($w == "d") { @@ -77,7 +77,7 @@ else if ($w == "d") } // 에디터로 첨부된 이미지 삭제 - $sql = " select iq_question from {$g5['g5_shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' "; + $sql = " select iq_question, iq_answer from {$g5['g5_shop_item_qa_table']} where iq_id = '$iq_id' and md5(concat(iq_id,iq_time,iq_ip)) = '{$hash}' "; $row = sql_fetch($sql); $imgs = get_editor_image($row['iq_question']); @@ -95,9 +95,29 @@ else if ($w == "d") @unlink($destfile); } + $imgs = get_editor_image($row['iq_answer']); + + for($i=0;$i