<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class job_jobdeleteAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		global $conn;
		$msg='未删除任何内容';
		$form_id=$this->_getParam('form_id');
		if($form_id > 0){
			$form=new model_Form();
			$form->setSubsection('WHERE type=\'job\' and form_id='.$form_id);
			$results=$form->doDelete();
			$msg='删除成功';
		}elseif(sizeof($_POST['checkbox'])){
			foreach($_POST['checkbox'] as $aid){
				$form=new model_Form();
				$form->setSubsection('WHERE type=\'job\' and form_id='.$aid);
				$results=$form->doDelete();
			}
			$msg='删除成功';
		}

		

		$jsstring='Dialog.alert(\''.$msg.'\',function(){window.location.href="'.MICE_URL.'admin.php/job";window.event.returnValue = false;},300,100,"删除结果");';
		MessageBox($jsstring);
		exit;
	}
}
?>