추가배송비 선택 삭제 오류 수정

This commit is contained in:
chicpro
2015-01-26 09:28:19 +09:00
parent 7c10f74dae
commit 9a4ac77efb
2 changed files with 7 additions and 7 deletions

View File

@ -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']);