From 9a4ac77efb8183be4f700f3cf804c471279ef8ef Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 26 Jan 2015 09:28:19 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80=EB=B0=B0=EC=86=A1=EB=B9=84?= =?UTF-8?q?=20=EC=84=A0=ED=83=9D=20=EC=82=AD=EC=A0=9C=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=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/sendcostlist.php | 2 +- adm/shop_admin/sendcostupdate.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/adm/shop_admin/sendcostlist.php b/adm/shop_admin/sendcostlist.php index 3e113c00e..9370c564f 100644 --- a/adm/shop_admin/sendcostlist.php +++ b/adm/shop_admin/sendcostlist.php @@ -63,7 +63,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); - + diff --git a/adm/shop_admin/sendcostupdate.php b/adm/shop_admin/sendcostupdate.php index 072308c77..bddc05032 100644 --- a/adm/shop_admin/sendcostupdate.php +++ b/adm/shop_admin/sendcostupdate.php @@ -9,15 +9,15 @@ auth_check($auth[$sub_menu], "w"); $w = $_POST['w']; if($w == 'd') { - if(!count($_POST['chk'])) + $count = count($_POST['chk']); + if(!$count) alert('삭제하실 항목을 하나이상 선택해 주십시오.'); - $count = count($_POST['sc_id']); for($i=0; $i<$count; $i++) { - if($_POST['chk'][$i]) { - $sc_id = $_POST['sc_id'][$i]; - sql_query(" delete from {$g5['g5_shop_sendcost_table']} where sc_id = '$sc_id' "); - } + $k = $_POST['chk'][$i]; + + $sc_id = $_POST['sc_id'][$k]; + sql_query(" delete from {$g5['g5_shop_sendcost_table']} where sc_id = '$sc_id' "); } } else { $sc_name = trim($_POST['sc_name']);