﻿
/*******************************************************************/
/*                                                                 */
/* Copyright (c) 2005-2007 Jasob.com                               */
/*                                                                 */
/* This obfuscated code was created by Jasob 3.0 Trial Version.    */
/* The code may be used for evaluation purposes only.              */
/* To obtain full rights to the obfuscated code you have to        */
/* purchase the license key (http://www.jasob.com/Purchase.html).  */
/*                                                                 */
/*******************************************************************/

var RedirectUrl="";function CheckBlogLogin(userName,userPwd,url,verifyCode){var l=new Array();l["name"]=userName;l["pwd"]=userPwd;RedirectUrl=url;_error_msg_show("正在登录，请稍候...",null,'smile',"登录");GrowUpEdu.Web.Service.ShareService.CheckBlogLogin(userName,userPwd,verifyCode,onCheckLoginSuccess,onCheckLoginError,l);};function CheckSubSiteLogin(userName,userPwd,url,verifyCode){var l=new Array();l["name"]=userName;l["pwd"]=userPwd;RedirectUrl=url;_error_msg_show("正在登录，请稍候...",null,'smile',"登录");GrowUpEdu.Web.Service.ShareService.CheckSubSiteLogin(userName,userPwd,verifyCode,onCheckLoginSuccess,onCheckLoginError,l);};function onCheckLoginSuccess(result,l){if(result=="0"){_error_msg_show("帐号输入有误!",'','forbid',"登录失败");}else if(result=="2"){_error_msg_show("该帐号已被禁止登录，请联系管理员!",'','forbid',"登录失败");}else if(result=="3"){_error_msg_show("该帐号已被删除，请联系管理员!",'','forbid',"登录失败");}else if(result=="4"){_error_msg_show("序列号不合法，用户不能登录，请联系系统管理员!",'','forbid',"登录失败");}else if(result=="5"){_error_msg_show("系统管理员设置暂时所有用户不能登录，请联系系统管理员!",'','forbid',"登录失败");}else if(result=="6"){_error_msg_show("验证码有误，请重新输入!",'','forbid',"登录失败");}else if(result=="8"){_error_msg_show("你所关联的单位用户需要管理员审核，暂时不能登录!",'','forbid',"登录失败");}else if(result=="-1"){_error_msg_show("你不是子网站管理员，不能登录!",'','forbid',"登录失败");}else if(result=="7"){openWindow("/OperationManage/SelectUnitMemberForLogin.aspx?name="+l["name"],500,300,"选择关联单位用户",true);}else{top.location.href=RedirectUrl;}};function onCheckLoginError(){_error_msg_show("服务连接失败!",'','forbid',"登录失败");};function CheckSystemLogin(userName,userPwd,url,verifyCode){var l=new Array();l["name"]=userName;l["pwd"]=userPwd;RedirectUrl=url;_error_msg_show("正在登录，请稍候...",null,'smile',"登录");GrowUpEdu.Web.Service.SystemService.CheckSystemLogin(userName,userPwd,verifyCode,onCheckSystemLoginSuccess,onCheckLoginError,l);};function onCheckSystemLoginSuccess(result,l){if(result=="0"){_error_msg_show("帐号输入有误!",'','forbid',"登录失败");}else if(result=="2"){_error_msg_show("该帐号已被禁止登录，请联系管理员!",'','forbid',"登录失败");}else if(result=="4"){_error_msg_show("验证码有误，请重新输入!",'','forbid',"登录失败");}else if(result=="6"){_error_msg_show("当前管理员没有关联用户，不能登录!",'','forbid',"登录失败");}else if(result=="8"){_error_msg_show("你所关联的单位用户需要管理员审核，暂时不能登录!",'','forbid',"登录失败");}else if(result=="7"){openWindow("/OperationManage/SelectUnitMemberForLogin.aspx?name="+l["name"],500,300,"选择关联单位用户",true);}else{var url=document.location.search.substr(1);var u=url.request("ReturnUrl");openWindow("/SystemManage/AdminUserLoginNav.aspx?returnUrl="+u,300,180,"系统管理员登录导向",true);}};function openWindow(_sUrl,_sWidth,_sHeight,_sTitle,_sScroll){var oEdit=new dialog();oEdit.init();oEdit.set('title',_sTitle?_sTitle:"系统提示信息");oEdit.set('width',_sWidth);oEdit.set('height',_sHeight);oEdit.open(_sUrl,_sScroll?'no':'yes');};function InitSystemTagData(adminId){GrowUpEdu.Web.Service.SystemService.GetTagByAdminId(adminId,onInitSystemTagDataSuccess);};function onInitSystemTagDataSuccess(result){$("hidTags").value=result;}