<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class comment_updateAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		global $conn;
		$form_id=$_POST['form_id'];
		if($form_id){
			$form=new model_Form();
			$form->setSubsection('WHERE form_id='.$form_id);
			$results=$form->doSelectOne();
		}

		if($results)
		{
			$form->setIsopen($_POST['isopen']);
			$form->setContent(MiceFilterQuote($_POST['content']));
			$results=$form->doUpdate();
			if($results)
				$exeresult='更新成功';
			else
				$exeresult='更新失败';
		}

		$jsstring='Dialog.alert(\''.$exeresult.'\',function(){window.location.href="'.MICE_URL.'admin.php/comment";window.event.returnValue = false;},300,100,"返回评论列表");';
		MessageBox($jsstring);

		exit;
	}
}
?>