사용후기, 상품문의 코드 수정 완료
This commit is contained in:
39
adm/shop_admin/itemqalistupdate.php
Normal file
39
adm/shop_admin/itemqalistupdate.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
$sub_menu = '400660';
|
||||
include_once('./_common.php');
|
||||
|
||||
check_demo();
|
||||
|
||||
if (!count($_POST['chk'])) {
|
||||
alert($_POST['act_button']." 하실 항목을 하나 이상 체크하세요.");
|
||||
}
|
||||
|
||||
if ($_POST['act_button'] == "선택수정") {
|
||||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++) {
|
||||
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
$sql = "update {$g4['shop_item_qa_table']}
|
||||
set iq_confirm = '{$_POST['iq_confirm'][$k]}'
|
||||
where iq_id = '{$_POST['iq_id'][$k]}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
} else if ($_POST['act_button'] == "선택삭제") {
|
||||
|
||||
auth_check($auth[$sub_menu], 'd');
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
$sql = "delete from {$g4['shop_item_qa_table']} where iq_id = '{$_POST['iq_id'][$k]}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
goto_url("./itemqalist.php?sca=$sca&sst=$sst&sod=$sod&sfl=$sfl&stx=$stx&page=$page");
|
||||
?>
|
||||
Reference in New Issue
Block a user