관리자 상품문의에서 선택수정 기능 제거

This commit is contained in:
chicpro
2013-07-01 15:01:14 +09:00
parent e786be4628
commit 554f173807
2 changed files with 1 additions and 16 deletions

View File

@ -174,7 +174,6 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
</table>
<div class="btn_list">
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
</div>
</form>

View File

@ -8,21 +8,7 @@ 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'] == "선택삭제") {
if ($_POST['act_button'] == "선택삭제") {
auth_check($auth[$sub_menu], 'd');