메일목록 선택삭제 기능 추가

This commit is contained in:
chicpro committed 2013-02-15 17:49:43 +09:00
1 parent 7c02b02430
commit 4a24af57db
2 files changed
+41 -23

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
$sub_menu = '200300';
include_once('./_common.php');
check_demo();
auth_check($auth[$sub_menu], 'd');
check_token();
$count = count($_POST['chk']);
if(!$count)
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
for($i=0; $i<$count; $i++) {
$ma_id = $_POST['chk'][$i];
$sql = " delete from {$g4['mail_table']} where ma_id = '$ma_id' ";
sql_query($sql);
}
goto_url('./mail_list.php');
?>