32 lines
632 B
PHP
32 lines
632 B
PHP
<?php
|
|
$sub_menu = '400650';
|
|
include_once('./_common.php');
|
|
|
|
check_demo();
|
|
|
|
if ($w == 'd')
|
|
auth_check($auth[$sub_menu], "d");
|
|
else
|
|
auth_check($auth[$sub_menu], "w");
|
|
|
|
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
|
|
|
if ($w == "u")
|
|
{
|
|
$sql = "update {$g5['g5_shop_item_use_table']}
|
|
set is_subject = '$is_subject',
|
|
is_content = '$is_content',
|
|
is_confirm = '$is_confirm'
|
|
where is_id = '$is_id' ";
|
|
sql_query($sql);
|
|
|
|
update_use_cnt($_POST['it_id']);
|
|
|
|
goto_url("./itemuseform.php?w=$w&is_id=$is_id&$qstr");
|
|
}
|
|
else
|
|
{
|
|
alert();
|
|
}
|
|
?>
|