1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php $sub_menu = '400200'; include_once('./_common.php');
check_demo();
if (!count($_POST['chk'])) { alert($_POST['act_button']." 하실 항목을 하나 이상 체크하세요."); }
if ($_POST['act_button'] == "선택수정") { auth_check($auth[$sub_menu], 'w'); } else if ($_POST['act_button'] == "선택삭제") { auth_check($auth[$sub_menu], 'd'); } else { alert("선택수정이나 선택삭제 작업이 아닙니다."); }
for ($i=0; $i<count($_POST['chk']); $i++) { $k = $_POST['chk'][$i]; // 실제 번호를 넘김 if ($_POST['act_button'] == "선택수정") { $sql = "update {$g5['g5_shop_item_use_table']} set is_score = '{$_POST['is_score'][$k]}', is_confirm = '{$_POST['is_confirm'][$k]}' where is_id = '{$_POST['is_id'][$k]}' "; sql_query($sql); } else if ($_POST['act_button'] == "선택삭제") { $sql = "delete from {$g5['g5_shop_item_use_table']} where is_id = '{$_POST['is_id'][$k]}' "; sql_query($sql); }
update_use_cnt($_POST['it_id'][$k]); update_use_avg($_POST['it_id'][$k]); }
goto_url("./itemuselist.php?sca=$sca&sst=$sst&sod=$sod&sfl=$sfl&stx=$stx&page=$page"); ?>
|