<?php
require(dirname(__FILE__) .'/check.php');
$skin->CheckIframe();


/* **** 版权所有 ****

 程序开发：网钛科技
 网钛CMS官网：http://otcms.com
 网钛IDC官网：http://idccms.com
 ＱＱ：877873666
 微信：QQ877873666
 邮箱：877873666@qq.com

 **** 版权所有 **** */



//用户检测
$MB->Open('','login');


switch($mudi){
	case 'rev':
		$MB->IsAdminRight('alertBack');
		Rev();
		break;

	default:
		die('err');
}

$MB->Close();
$DB->Close();





//添加与修改
function Rev(){
	global $DB,$skin,$mudi;

	$backURL	= OT::PostStr('backURL');
	$dataID		= OT::PostInt('dataID');
	$rank		= OT::PostInt('rank');
	$themeB			= OT::PostInt('theme'. $dataID .'B');
	$themeColor		= OT::PostStr('theme'. $dataID .'Color');
	$themeStyle		= '';
		if ($themeB==1){ $themeStyle .= 'font-weight:bold;'; }
		if ($themeColor!=''){ $themeStyle .= 'color:'. $themeColor .';'; }

	$record = array();
	$record['MT_themeStyle']	= $themeStyle;
	$record['MT_rank']			= $rank;

	$DB->UpdateParam('menuTree',$record,'MT_ID='. $dataID);

	JS::AlertHrefEnd('修改成功！',$backURL);

}

?>