그누보드5 정식버전
This commit is contained in:
27
adm/sms_admin/form_multi_update.php
Normal file
27
adm/sms_admin/form_multi_update.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
$sub_menu = "900600";
|
||||
include_once("./_common.php");
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
check_token();
|
||||
|
||||
if($atype == "del"){
|
||||
$count = count($_POST['fo_no']);
|
||||
if(!$count)
|
||||
alert('선택삭제 하실 항목을 하나이상 선택해 주세요.');
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
// 실제 번호를 넘김
|
||||
$fo_no = $_POST['fo_no'][$i];
|
||||
if (!trim($fo_no)) continue;
|
||||
|
||||
$res = sql_fetch("select * from {$g5['sms5_form_table']} where fo_no='$fo_no'");
|
||||
if (!$res) continue;
|
||||
|
||||
sql_query("delete from {$g5['sms5_form_table']} where fo_no='$fo_no'");
|
||||
sql_query("update {$g5['sms5_form_group_table']} set fg_count = fg_count - 1 where fg_no='{$res['fg_no']}'");
|
||||
}
|
||||
}
|
||||
goto_url('./form_list.php');
|
||||
Reference in New Issue
Block a user