<?php
$sub_menu = '400620';
include_once('./_common.php');

check_demo();

auth_check($auth[$sub_menu], "w");

check_admin_token();

// 재고 일괄수정
for ($i=0; $i<count($_POST['it_id']); $i++)
{
    $sql = "update {$g5['g5_shop_item_table']}
               set it_stock_qty    = '".sql_real_escape_string($_POST['it_stock_qty'][$i])."',
                   it_noti_qty     = '".sql_real_escape_string($_POST['it_noti_qty'][$i])."',
                   it_use          = '".sql_real_escape_string($_POST['it_use'][$i])."',
                   it_soldout      = '".sql_real_escape_string($_POST['it_soldout'][$i])."',
                   it_stock_sms    = '".sql_real_escape_string($_POST['it_stock_sms'][$i])."'
             where it_id = '".sql_real_escape_string($_POST['it_id'][$i])."' ";
    sql_query($sql);
}

goto_url("./itemstocklist.php?sort1=$sort1&amp;sort2=$sort2&amp;sel_ca_id=$sel_ca_id&amp;sel_field=$sel_field&amp;search=$search&amp;page=$page");
?>
