git-svn-id: http://xe-core.googlecode.com/svn/trunk@278 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-06 03:19:02 +00:00
parent 87cd70b321
commit 9a7eee1f4f
5 changed files with 57 additions and 16 deletions

View file

@ -164,5 +164,26 @@
exit();
}
/**
* @brief 관리자 페이지에서 선택된 파일들을 삭제
**/
function procDeleteChecked() {
// 선택된 글이 없으면 오류 표시
$cart = Context::get('cart');
if(!$cart) return $this->stop('msg_cart_is_null');
$file_srl_list= explode('|@|', $cart);
$file_count = count($file_srl_list);
if(!$file_count) return $this->stop('msg_cart_is_null');
// 글삭제
for($i=0;$i<$file_count;$i++) {
$file_srl = trim($file_srl_list[$i]);
if(!$file_srl) continue;
$this->deleteFile($file_srl, true);
}
$this->setMessage( sprintf(Context::getLang('msg_checked_file_is_deleted'), $file_count) );
}
}
?>