<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class plugin_changeAction extends security_login {
	function action(){
		//接收参数并放入Session
		ModuleLimit(__CLASS__);
		global $conn;
		$plugin_id=$this->_getParam('plugin_id');
		$orderid=$this->_getParam('orderid');

		$exeresult='更改插件序号失败';
		if($plugin_id)
		{
			$plugin=new model_Plugin();
			$plugin->setSubsection('WHERE plugin_id='.$plugin_id);
			$plugin->setOrderid($orderid);
			$results=$plugin->doUpdate();
			if($results){
				$exeresult='更改插件序号成功';
			}
		}

		

		$jsstring='Dialog.alert("'.$exeresult.'",function(){history.back(-1);});';
		MessageBox($jsstring);
		exit;
	}
}
?>