Ext.BLANK_IMAGE_URL = 'sweb-lib/resource/images/s.gif'; Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'qtip'; Ext.apply(Ext.QuickTips.getQuickTip(), { dismissDelay : 0 }) var extCookiePro = new Ext.state.CookieProvider(); extCookiePro.clear('weblctlogin'); var params = window.location.href; var lang = params.substring(params.indexOf('=') + 1, params.length); var cmd_language = ""; var cmd_languageObj = { en : 0, zh_CN : 1, "zh-cn" : 1 }; var SESSIONID = ""; var challenge = ""; var sweb_browsLang = ''; var copyRight_range = '2009-2011'; (function() { SESSIONID = GetCookie("SESSIONID"); if (SESSIONID.length > 0) { var index = SESSIONID.toString().indexOf("&", 0); if (index != -1) { var SessionArray = SESSIONID.split("&"); if (SessionArray.length >= 3) { SESSIONID = SessionArray[0]; challenge = SessionArray[1]; sweb_browsLang = SessionArray[3]; if(!GetCookie("copyright")){ copyRight_range = (SessionArray[4].split('='))[1]; } } else if (SessionArray.length == 2) { SESSIONID = SessionArray[0]; challenge = SessionArray[1]; } } else { } } else { } if(!GetCookie("copyright")){ SetCookie('copyright',copyRight_range); } })() if ((cmd_language = cmd_languageObj[lang]) == undefined) { var langStr; if ((langStr = extCookiePro.get('fwlangeuage')) && (cmd_language = cmd_languageObj[langStr]) != undefined) { extCookiePro.clear('fwlangeuage'); } else if (sweb_browsLang) { var langarray = sweb_browsLang.split('='); if (langarray.length > 1 && langarray[1]) { cmd_language = cmd_languageObj[langarray[1].toLowerCase()]; } } } var fw_common, sweb_common, sweb_login; if (cmd_language) { fw_common = { ctrl_field_maxLengthText : '最多允许输入字符数是{0}', ctrl_field_minLengthText : '最少允许输入字符数是{0}', ctrl_field_blankText : '该区域为必填项!' } sweb_login = function() { } sweb_login.label_pwd = '密   码'; sweb_login.label_check = '校验码'; sweb_login.label_lang_change = '简体中文'; sweb_login.label_lang_change_value = 'zh_CN'; sweb_login.label_lang = '语   言'; sweb_login.label_lang_chinese = '简体中文'; sweb_login.btn_reset = '重置'; sweb_login.btn_login = '登录'; sweb_login.msg_invalidIP = '对不起,您的IP不合法不允许访问!'; sweb_login.msg_nameblank_limit = '账号不能为空'; sweb_login.msg_nameletters_limit = '该值不合法!'; sweb_login.msg_namelength_limit = '账号的长度不能超过32位'; sweb_login.msg_passwordblank_limit = '密码不能为空'; sweb_login.msg_password_limit = '密码必须包含大小写字母和数字'; sweb_login.msg_password_authentication = '两次密码不一致'; sweb_login.msg_password_same = '新密码与原密码不能相同'; sweb_login.msg_passwordMaxLength_limit = '密码的长度不能超过16位'; sweb_login.msg_passwordLength_limit = '密码的长度应在6-28位之间!'; sweb_login.msg_passwordMaxEqualLength_limit = '密码的长度不能超过28位'; sweb_login.msg_passwordMinLength_limit = '密码的长度不能小于1位'; sweb_login.msg_resetPassword = '您是否确认重置密码?'; sweb_login.msg_modifyPassSuccess = '密码修改成功'; sweb_login.msg_modifyPassFailure = '密码修改失败'; sweb_login.msg_checkblank_limit = '校验码不能为空'; sweb_login.msg_checkPrompt_limit = '校验码必须是4位数字'; sweb_login.msg_checkLength_limit = '校验码必须是4位数字'; sweb_login.msg_wrongcheck = '校验码错误,请重新输入'; sweb_login.msg_noAuthority = '该账号没有任何权限不允许登录'; sweb_login.msg_setAside = '该账号已被停用'; sweb_login.msg_wrongnameOrpass = '账号或密码错误'; sweb_login.msg_passwordExpired = '密码即将过期,是否修改?'; sweb_login.title_passwordExpired = '密码已过有效期,请重置密码'; sweb_login.msg_passwordExpired_startPrompt = '您的密码还有'; sweb_login.msg_passwordExpired_endPrompt = '天过期,是否修改?'; sweb_login.msg_wrongpassword_startPrompt = '密码错误次数已超过'; sweb_login.msg_wrongpassword_endPrompt = '次,账号锁定!'; sweb_login.msg_database_fatalErr = '登陆失败,数据库链接异常,请联系系统管理员恢复数据链接'; sweb_login.msg_not_exist_admin = '管理员不存在'; sweb_login.title = '防火墙'; sweb_login.label_name = '用户名'; sweb_login.msg_nameblank_limit = '用户名不能为空'; sweb_login.msg_nameletters_limit = '用户名允许输入的字符为字母、数字或`~!#$%^&()_+=,.-/\[\{\]\};\'特殊字符'; sweb_login.msg_passwordletters_limit = '密码允许输入的字符为字母、数字或`~!@#$%^&*()_-+=,.:|\\\[\{\]\};\"/\'<>特殊字符'; sweb_login.msg_Browser_IE8 = '使用当前浏览器(不推荐)'; sweb_login.msg_Browser_FireFoxNew = 'Firefox最新版本'; sweb_login.msg_Browser_FireFox3 = 'Firefox 3.0.10'; sweb_login.btn_BrowserInfo_win = '继续'; sweb_login.title_BrowserInfo_win = '使用当前浏览器可能会造成部分复杂页面运行缓慢。为了获得更好的界面体验,建议您使用以下浏览器:'; sweb_login.nativeDownload = '[本地下载]'; sweb_login.netDownload = '[联网下载]'; sweb_login.firefox_download = "http://www.mozilla.org.cn/"; sweb_login.msg_isShowBrowserInfo = '下次访问时不再提示'; sweb_login.msg_browserIcon = '点击进入浏览器下载页面'; sweb_common = function() { } sweb_common.console = '控制台'; sweb_common.language = 'zh_cn'; sweb_common.btn_confirm = '确定'; sweb_common.btn_modify = '修改'; sweb_common.btn_reset = '重置'; sweb_common.btn_cancel = '取消'; sweb_common.btn_close = '关闭'; sweb_common.btn_query = '查询'; sweb_common.buttonText_yes = "是"; sweb_common.buttonText_no = '否'; sweb_common.grid_displayMsg = '显示第{0}条到第{1}条记录,一共{2}条'; sweb_common.grid_emptyMsg = '没有记录'; sweb_common.grid_pageSizeFirst = '每页'; sweb_common.grid_pageSizeLast = '条'; sweb_common.msg_loading = '正在加载数据,请稍侯……'; sweb_common.msg_operating = '正在进行数据操作,请稍侯……' sweb_common.msg_affirm = '确 认'; sweb_common.msg_affirm_modify = '是否确认修改数据?'; sweb_common.msg_affirm_del = '是否确认删除选中数据?'; sweb_common.msg_hint = '提示'; sweb_common.msg_logout = '注销'; sweb_common.msg_logoutPrompt = '是否确定注销当前管理员?'; sweb_common.msg_delete = '删除'; sweb_common.msg_hint_selOne = '请选择要操作的数据!'; sweb_common.msg_hint_selectOne = '请选择一条数据!'; sweb_common.label_all = '全部'; sweb_common.label_valid = '有效'; sweb_common.label_invalid = '停用'; sweb_common.msg_title_warnning = '警告'; sweb_common.msg_title_err = '错误'; sweb_common.msg_title_fatalErr = '严重错误'; sweb_common.regexText_accoutlength_limit = '账号长度为1-32位'; sweb_common.regexText_accoutblank_limit = '账号不能为空'; sweb_common.regexText_passwordblank_limit = '密码不能为空' sweb_common.regexText_confpasswordblank_limit = '确认密码不能为空' sweb_common.regexText_accout_limit = '账号格式不正确,请重新输入'; sweb_common.regexText_namelength_limit = '姓名长度为1-32位'; sweb_common.regexText_nameblank_limit = '姓名不能为空'; sweb_common.regexText_name_limit = '姓名不能以空格开头或结尾,且不能包含如下字符:\' \| \\ \, \< \> \& \; \"'; sweb_common.regexText_nameQuery_limit = '姓名不能包含如下字符:\' \| \\ \, \< \> \& \; \"'; sweb_common.regexText_operation_success = '操作成功!'; sweb_common.regexText_operation_failure = '操作失败!'; sweb_common.title_regarding = '关于'; sweb_common.title_modifyPassword = '修改密码'; sweb_common.msg_modifyPassword_success = '密码修改成功!'; sweb_common.label_oldpassword = '旧密码'; sweb_common.msg_oldpasswordblank_limit = '旧密码不能为空'; sweb_common.msg_oldpassword_maxLength = '旧密码长度不能大于28位'; sweb_common.label_newpassword = '新密码'; sweb_common.msg_newpasswordblank_limit = '新密码不能为空'; sweb_common.msg_newpassword_maxLength = '新密码长度不能大于28位'; sweb_common.msg_newpassword_minLength = '新密码长度不能少于8位'; sweb_common.msg_newpassword_length_limit = '密码长度必须为6-28位'; sweb_common.msg_newpassword_format_limit = '新密码格式不正确'; sweb_common.msg_newpassword_limit = '新密码必须包含大小写字母和数字'; sweb_common.label_newpasswordconfirm = '新密码确定'; sweb_common.msg_password_unconsistent = '两次密码输入不匹配,请核对!'; sweb_common.msg_dataMax_limit = '选择的日期必须大于或等于{0}'; sweb_common.msg_dataMin_limit = '选择的日期必须小于或等于{0}'; sweb_common.title_updateCycle = 'Portalet更新周期'; sweb_common.title_configuration = '配置'; sweb_common.title_alarmStatistics = '告警统计'; sweb_common.title_menu = '菜单'; sweb_common.msg_tabMax_limit = '您打开的Tab页已经达到最大数,请及时关闭!'; sweb_common.title_config = '配置信息'; sweb_common.title_windowConfig = '窗口标题工具栏配置'; sweb_common.title_windowConfigItem = '窗口配置项'; sweb_common.label_config = '配置'; sweb_common.label_expand = '展开'; sweb_common.label_refresh = '刷新'; sweb_common.label_max = '最大化'; sweb_common.label_close = '关闭选项卡'; sweb_common.label_closeOther = '关闭其他选项卡'; sweb_common.title_mainPage = '首页'; sweb_common.msg_footViewInfo = '版权所有 © 华为技术有限公司 2009-2011。保留一切权利。'; sweb_common.msg_footViewInfo_br = '版权所有 © 华为技术有限公司 2009-2011。保留一切权利。'; sweb_common.text_inputMenuName = '请输入菜单名称'; sweb_common.title_collapse = '收缩'; sweb_common.text_collapse = '收缩当前已打开的菜单栏'; sweb_common.title_expand = '展开'; sweb_common.text_expandOneMenu = '展开所有菜单栏'; sweb_common.title_accodin = '切换'; sweb_common.text_accodin = '切换菜单样式'; sweb_common.text_select = '选择'; sweb_common.title_viewPanel = '可视面板'; sweb_common.text_operatePanel = '显示,移动或者隐藏可视面板'; sweb_common.text_mainPage = '首页'; sweb_common.text_topArea_currentAdmin = '当前管理员:'; sweb_common.text_topArea_help = '帮助'; sweb_common.text_topArea_regarding = '关于'; sweb_common.text_topArea_logout = '注销'; sweb_common.text_topArea_modifyPassword = '修改密码'; sweb_common.msg_assignDataAuth_limit = '一次只能对一条数据进行权限分配'; sweb_common.msg_timeout = '会话过期,请重新登录'; sweb_common.msg_ipField_firstLimit = '{0}不是一个有效值,请输入一个1-223之间的值'; sweb_common.core_date_disabledDaysText = '无效'; sweb_common.core_date_disabledDatesText = '无效'; sweb_common.core_date_invalidText = '{0} 是无效时间 - 时间格式必须是: {1}'; sweb_common.core_date_minText = '时间太小'; sweb_common.core_date_maxText = '时间太大'; sweb_common.core_date_todayText = '确定'; sweb_common.core_date_okText = ' 确定 '; sweb_common.core_date_cancelText = '取消'; sweb_common.core_date_nextText = '下个月 (Control+Right)'; sweb_common.core_date_prevText = '上个月 (Control+Left)'; sweb_common.core_date_monthYearText = '选择月份 (Control+Up/Down)'; sweb_common.core_date_disabledDaysText = '无效'; sweb_common.core_date_disabledDatesText = '无效'; sweb_common.core_date_invalidText = '{0} 是无效时间 - 时间格式必须是: {1}'; sweb_common.core_date_minText = '时间太小'; sweb_common.core_date_maxText = '时间太大'; sweb_common.core_date_todayText = '确定'; sweb_common.core_date_okText = ' 确定 '; sweb_common.core_date_cancelText = '取消'; sweb_common.core_date_nextText = '下个月 (Control+Right)'; sweb_common.core_date_prevText = '上个月 (Control+Left)'; sweb_common.core_date_monthYearText = '选择月份 (Control+Up/Down)'; sweb_common.invalidDateText = '时间格式无效!'; sweb_common.msg_ipField_firstLimit = 'IP的第一段值{0}超出范围'; sweb_common.msg_footViewInfo_br = '版权所有 © 华为技术有限公司 2009-2011。保留一切权利。'; sweb_common.msg_footViewInfo = '版权所有 © 华为技术有限公司 2009-2011。保留一切权利。'; sweb_common.msg_helpTopic = '帮助主题'; sweb_common.msg_helpTopicSelecttd = '请选择左侧的帮助主题'; sweb_common.msg_noHelp = '当前没有可供显示的帮助信息'; sweb_common.msg_loginInfo_hw = '版权所有 © 华为技术有限公司 '; sweb_common.msg_loginInfo_hs = '版权所有 © 成都市华为赛门铁克科技有限公司 '; sweb_common.msg_loginInfo_ha = '版权所有 © 成都市华为存储网络安全有限公司 '; sweb_common.msg_copyright_tail = '。保留一切权利。'; } else { fw_common = { ctrl_field_maxLengthText : 'The maximum length for this field is {0}.', ctrl_field_minLengthText : 'The minimum length for this field is {0}.', ctrl_field_blankText : 'This field is required.' } sweb_login = function() { } sweb_login.label_pwd = 'Password'; sweb_login.label_check = 'Check Code'; sweb_login.label_lang_change = 'English'; sweb_login.label_lang_change_value = 'en'; sweb_login.label_lang = 'Language'; sweb_login.label_lang_chinese = 'Simplified Chinese'; sweb_login.btn_reset = 'Reset'; sweb_login.btn_login = 'Login'; sweb_login.msg_invalidIP = 'Your IP address is invalid and you are not allowed to access.'; sweb_login.msg_nameblank_limit = 'The account can not be null.'; sweb_login.msg_nameletters_limit = 'The account can contain 1 to 32 characters, including letters, numerals, and underscores. It must start with a letter and can not end with an underscore.'; sweb_login.msg_namelength_limit = 'The account can not contain more than 32 characters.'; sweb_login.msg_passwordblank_limit = 'The password can not be null.'; sweb_login.msg_password_limit = 'The password must contain numerals and mixed-case letters.'; sweb_login.msg_password_authentication = 'The passwords you entered are inconsistent.'; sweb_login.msg_password_same = 'The new password and the old password can not be the same'; sweb_login.msg_passwordMaxLength_limit = 'The password can not contain more than 28 characters.'; sweb_login.msg_passwordLength_limit = 'The password must contain 6 to 28 characters.'; sweb_login.msg_passwordMaxEqualLength_limit = 'The password can not contain more than 28 characters.'; sweb_login.msg_passwordMinLength_limit = 'The password can not contain less than 1 characters.'; sweb_login.msg_resetPassword = 'Are you sure to reset the password?'; sweb_login.msg_modifyPassSuccess = 'Changing the password succeeded.'; sweb_login.msg_modifyPassFailure = 'Changing the password failed.'; sweb_login.msg_checkblank_limit = 'The check code can not be null.'; sweb_login.msg_checkPrompt_limit = 'The check code must be a four-digit number.'; sweb_login.msg_checkLength_limit = 'The check code must be a four-digit number.'; sweb_login.msg_wrongcheck = 'The check code is incorrect, please try again.'; sweb_login.msg_noAuthority = 'The administrator has no right to login.'; sweb_login.msg_setAside = 'The administrator has been suspended.'; sweb_login.msg_wrongnameOrpass = 'The account or password is incorrect.'; sweb_login.msg_passwordExpired = 'The password will expire soon. Do you want to change it?'; sweb_login.title_passwordExpired = 'The password has expired. Please reset the password.'; sweb_login.msg_passwordExpired_startPrompt = 'Your password will expire '; sweb_login.msg_passwordExpired_endPrompt = ' days later. Do you want to change it?'; sweb_login.msg_wrongpassword_startPrompt = 'You have entered wrong passwords for '; sweb_login.msg_wrongpassword_endPrompt = ' times. The account is locked out.'; sweb_login.msg_database_fatalErr = 'Login unsuccessfully, because of the exception of network or database, please check the network or inform the system administrator to examine the database'; sweb_login.msg_not_exist_admin = 'The administrator was not exist'; sweb_login.title = 'Firewall'; sweb_login.label_name = 'User Name'; sweb_login.msg_nameblank_limit = 'The user name can not be null.'; sweb_login.msg_nameletters_limit = 'The user name allowed input is char or num or`~!#$%^&()_+=,.-/\[\{\]\};\''; sweb_login.msg_passwordletters_limit = 'The user pass allowed input is char or num or`~!@#$%^&*()_-+=,.:|\\\[\{\]\};\"/\'<>'; sweb_login.msg_Browser_IE8 = 'Continue(not recommended)'; sweb_login.msg_Browser_FireFoxNew = 'Firefox latest version'; sweb_login.msg_Browser_FireFox3 = 'Firefox 3.0.10'; sweb_login.btn_BrowserInfo_win = 'Continue'; sweb_login.title_BrowserInfo_win = 'Using the current browser may slow the running speed of certain pages. To obtain better browsing experience, you are recommended to use the following browsers:'; sweb_login.nativeDownload = '[Local Download]'; sweb_login.netDownload = '[Internet Download]'; sweb_login.firefox_download = "http://www.mozilla.com/en-US/"; sweb_login.msg_isShowBrowserInfo = 'Do not prompt on the next access'; sweb_login.msg_browserIcon = 'Click to enter the download page'; sweb_common = function() { } sweb_common.language = 'en_us'; sweb_common.btn_confirm = 'OK'; sweb_common.btn_modify = 'Modify'; sweb_common.btn_reset = 'Reset'; sweb_common.btn_cancel = 'Cancel'; sweb_common.btn_close = 'Close'; sweb_common.btn_query = 'Query'; sweb_common.buttonText_yes = "Yes"; sweb_common.buttonText_no = 'No'; sweb_common.grid_displayMsg = 'Record {0} to {1}; total records: {2}'; sweb_common.grid_emptyMsg = 'No record is found.'; sweb_common.grid_pageSizeFirst = ''; sweb_common.grid_pageSizeLast = 'Records'; sweb_common.msg_loading = 'Loading data. Please wait...'; sweb_common.msg_operating = 'The data operation is in process. Please wait...' sweb_common.msg_affirm = 'Confirm'; sweb_common.msg_affirm_modify = 'Are you sure to modify it?'; sweb_common.msg_affirm_del = 'Are you sure to delete?'; sweb_common.msg_hint = 'Prompt'; sweb_common.msg_logout = 'Logout'; sweb_common.msg_logoutPrompt = 'Are you sure to logout the current administrator?'; sweb_common.msg_delete = 'Delete'; sweb_common.msg_hint_selOne = 'Please select the data.'; sweb_common.msg_hint_selectOne = 'Please select a record.'; sweb_common.label_all = 'All'; sweb_common.label_valid = 'Valid'; sweb_common.label_invalid = 'Invalid'; sweb_common.msg_title_warnning = 'Warning'; sweb_common.msg_title_err = 'Error'; sweb_common.msg_title_fatalErr = 'Serious Error'; sweb_common.regexText_letters_limit = 'You can enter English letters only.'; sweb_common.regexText_accoutlength_limit = 'The account can contain 1 to 32 characters only.'; sweb_common.regexText_accoutblank_limit = 'The account can not be null.'; sweb_common.regexText_passwordblank_limit = 'The password can not be null.' sweb_common.regexText_confpasswordblank_limit = 'The confirm password can not be null.' sweb_common.regexText_accout_limit = 'The format of the account is incorrect. Please enter the account again.'; sweb_common.regexText_namelength_limit = 'The name can contain 1 to 32 characters.'; sweb_common.regexText_nameblank_limit = 'The name can not be null.'; sweb_common.regexText_name_limit = 'The name can not start or end with blank and can not contain:\' \| \\ \, \< \> \& \; \"'; sweb_common.regexText_nameQuery_limit = 'The name can not contain:\' \| \\ \, \< \> \& \; \"'; sweb_common.regexText_operation_success = 'Operation succeeded.'; sweb_common.regexText_operation_failure = 'Operation failed.'; sweb_common.title_regarding = 'About'; sweb_common.title_modifyPassword = 'Change Password'; sweb_common.msg_modifyPassword_success = 'Changing the password succeeded.'; sweb_common.label_oldpassword = 'Old Password'; sweb_common.msg_oldpasswordblank_limit = 'The old password can not be null.'; sweb_common.msg_oldpassword_maxLength = 'The old password can not contain more than 28 characters.'; sweb_common.label_newpassword = 'New Password'; sweb_common.msg_newpasswordblank_limit = 'The new password can not be null.'; sweb_common.msg_newpassword_maxLength = 'The new password can not contain more than 28 characters.'; sweb_common.msg_newpassword_minLength = 'The new password can not contain less than 8 characters.'; sweb_common.msg_newpassword_length_limit = 'The password must contain 6 to 28 characters.'; sweb_common.msg_newpassword_format_limit = 'The format of the new password is incorrect.'; sweb_common.msg_newpassword_limit = 'The new password must contain numerals and mixed-case letters.'; sweb_common.label_newpasswordconfirm = 'Confirm New Password'; sweb_common.msg_password_unconsistent = 'The passwords you entered are inconsistent. Please check.'; sweb_common.msg_dataMax_limit = 'The date can not be earlier than {0}.'; sweb_common.msg_dataMin_limit = 'The date can not be later than {0}.'; sweb_common.title_updateCycle = 'Portalet Update Cycle'; sweb_common.title_configuration = 'Configure'; sweb_common.title_alarmStatistics = 'Alarm Statistics'; sweb_common.title_menu = 'Menu'; sweb_common.msg_tabMax_limit = 'The number of tabs you opened has reached the maximum. Please close tabs in time.'; sweb_common.title_config = 'Configuration Information'; sweb_common.title_windowConfig = 'Configure Window Toolbar'; sweb_common.title_windowConfigItem = 'Window Configuration Item'; sweb_common.label_config = 'Configure'; sweb_common.label_expand = 'Expand'; sweb_common.label_refresh = 'Refresh'; sweb_common.label_max = 'Maximize'; sweb_common.label_close = 'Close Tab'; sweb_common.label_closeOther = 'Close Other Tabs'; sweb_common.title_mainPage = 'Home Page'; sweb_common.msg_footViewInfo = 'Copyright © Huawei Technologies Co., Ltd. 2009-2011. All rights reserved.'; sweb_common.msg_footViewInfo_br = 'Copyright © Huawei Technologies Co., Ltd. 2009-2011.
All rights reserved.'; sweb_common.text_inputMenuName = 'Enter the name of the menu.'; sweb_common.title_collapse = 'Collapse'; sweb_common.text_collapse = 'Collapse Expanded Menu Bar'; sweb_common.title_expand = 'Expand'; sweb_common.text_expandOneMenu = 'Expand All Menu Bar'; sweb_common.title_accodin = 'Switch'; sweb_common.text_accodin = 'Switch menu style'; sweb_common.text_select = 'Select'; sweb_common.title_viewPanel = 'Visual Panel '; sweb_common.text_operatePanel = 'Display, Move, or Hide Visual Panel'; sweb_common.text_mainPage = 'Home Page'; sweb_common.text_topArea_currentAdmin = 'Current Administrator:'; sweb_common.text_topArea_help = 'Help'; sweb_common.text_topArea_regarding = 'About'; sweb_common.text_topArea_logout = 'Logout'; sweb_common.text_topArea_modifyPassword = 'Change Password'; sweb_common.msg_assignDataAuth_limit = 'Only assign data authority of one data for administrator every time'; sweb_common.msg_timeout = 'The session expired. Please login again.'; sweb_common.msg_ipField_firstLimit = '{0} is not valid value ,please input a value between 1 and 223.'; sweb_common.core_date_disabledDaysText = 'Disabled'; sweb_common.core_date_disabledDatesText = 'Disabled'; sweb_common.core_date_invalidText = '{0} is not a valid date - it must be in the format {1}'; sweb_common.core_date_minText = 'This date is before the minimum date'; sweb_common.core_date_maxText = 'This date is after the maximum date'; sweb_common.core_date_todayText = 'OK'; sweb_common.core_date_okText = ' OK '; sweb_common.core_date_cancelText = 'Cancel'; sweb_common.core_date_nextText = 'Next Month (Control+Right)'; sweb_common.core_date_prevText = 'Previous Month (Control+Left)'; sweb_common.core_date_monthYearText = 'Choose a month (Control+Up/Down to move years)'; sweb_common.msg_notExist = 'not exist'; sweb_common.core_date_disabledDaysText = 'Invalid'; sweb_common.core_date_disabledDatesText = 'Invalid'; sweb_common.core_date_invalidText = '{0} is invalid time - the format of time is: {1}'; sweb_common.core_date_minText = 'This date is before the minimum date'; sweb_common.core_date_maxText = 'This date is after the maximum date'; sweb_common.core_date_todayText = 'Submit'; sweb_common.core_date_okText = ' Submit '; sweb_common.core_date_cancelText = 'Concel'; sweb_common.core_date_nextText = 'Next Month (Control+Right)'; sweb_common.core_date_prevText = 'Last Month (Control+Left)'; sweb_common.core_date_monthYearText = 'Select Month (Control+Up/Down)'; sweb_common.invalidDateText = 'Time is invalid!'; sweb_common.msg_ipField_firstLimit = 'The first value of IP{0}out of scope'; sweb_common.msg_footViewInfo_br = 'Copyright © Huawei Technologies Co.,Ltd. 2009-2011. All rights reserved.'; sweb_common.msg_footViewInfo = 'Copyright © Huawei Technologies Co.,Ltd. 2009-2011. All rights reserved.'; sweb_common.msg_helpTopic = 'Help Topic'; sweb_common.msg_helpTopicSelecttd = 'Please select help topic on the left.'; sweb_common.msg_noHelp = 'No Help'; sweb_common.msg_loginInfo_hw = 'Copyright © Huawei Technologies Co., Ltd. '; sweb_common.msg_loginInfo_hs = 'Copyright © Chengdu Huawei Symantec Technologies Co., Ltd. '; sweb_common.msg_loginInfo_ha = 'Copyright © Chengdu Huawei Storage & Network Security Co., Ltd. '; sweb_common.msg_copyright_tail = '. All rights reserved.'; } if (!cmd_language) { var extscript = document.createElement("script"); extscript.src = "ext-lib/ext/locale/ext-lang-en.js"; extscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(extscript); var platscript = document.createElement("script"); platscript.src = "sweb-lib/locale/plat-lang-en.js"; platscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(platscript); var fwscript = document.createElement("script"); fwscript.src = "fw-lib/locale/fw-lang-en.js"; fwscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(fwscript); } else { var extscript = document.createElement("script"); extscript.src = "ext-lib/ext/locale/ext-lang-zh_CN.js"; extscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(extscript); var platscript = document.createElement("script"); platscript.src = "sweb-lib/locale/plat-lang-zh_CN.js"; platscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(platscript); var fwscript = document.createElement("script"); fwscript.src = "fw-lib/locale/fw-lang-zh_CN.js"; fwscript.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(fwscript); } Ext.apply(Ext.form.VTypes, { password : psssValidate, confPass : function(val, field) { if (field.confirmTo) { var pwd = Ext.get(field.confirmTo) return (val == pwd.getValue()); } return true; } }); function psssValidate(val) { var lowercase = false; var captial = false; var num = false; var lowerReg = /^[a-z]+$/; var capReg = /^[A-Z]+$/; var numReg = /^[0-9]+$/; for (var i = 0; i < val.length; i++) { if (lowercase && captial && num) { break; } var c = val.charAt(i); if (lowerReg.test(c)) { lowercase = true; continue; } if (capReg.test(c)) { captial = true; continue; } if (numReg.test(c)) { num = true; continue; } } return lowercase && captial && num; } var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "="; function encode64(input) { var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; if (isNaN(chr2)) { enc2 = (chr1 & 3) << 4; } else { enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); } if (isNaN(chr2)) { enc3 = 64; } else { if (isNaN(chr3)) { enc3 = (chr2 & 15) << 2; } else { enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); } } if (isNaN(chr3)) { enc4 = 64; } else { enc4 = chr3 & 63; } output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4); chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = ""; } while (i < input.length); return output; } function decode64(input) { var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; var base64test = /[^A-Za-z0-9\+\/\=]/g; if (base64test.exec(input)) { alert("There were invalid base64 characters in the input text.\n" + "Valid base64 characters are A-Z, a-z, 0-9, '+', '/', and '='\n" + "Expect errors in decoding."); } var input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); do { enc1 = keyStr.indexOf(input.charAt(i++)); enc2 = keyStr.indexOf(input.charAt(i++)); enc3 = keyStr.indexOf(input.charAt(i++)); enc4 = keyStr.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = ""; } while (i < input.length); return output; } function setMD5Passwd(str) { var i; challenge = decode64(challenge); str = "0" + str + challenge; result = calcMD5(str); return result; } function calcMD5(str) { var str; x = str2blks_MD5(str); a = 1732584193; b = -271733879; c = -1732584194; d = 271733878; for (i = 0; i < x.length; i += 16) { olda = a; oldb = b; oldc = c; oldd = d; a = ff(a, b, c, d, x[i + 0], 7, -680876936); d = ff(d, a, b, c, x[i + 1], 12, -389564586); c = ff(c, d, a, b, x[i + 2], 17, 606105819); b = ff(b, c, d, a, x[i + 3], 22, -1044525330); a = ff(a, b, c, d, x[i + 4], 7, -176418897); d = ff(d, a, b, c, x[i + 5], 12, 1200080426); c = ff(c, d, a, b, x[i + 6], 17, -1473231341); b = ff(b, c, d, a, x[i + 7], 22, -45705983); a = ff(a, b, c, d, x[i + 8], 7, 1770035416); d = ff(d, a, b, c, x[i + 9], 12, -1958414417); c = ff(c, d, a, b, x[i + 10], 17, -42063); b = ff(b, c, d, a, x[i + 11], 22, -1990404162); a = ff(a, b, c, d, x[i + 12], 7, 1804603682); d = ff(d, a, b, c, x[i + 13], 12, -40341101); c = ff(c, d, a, b, x[i + 14], 17, -1502002290); b = ff(b, c, d, a, x[i + 15], 22, 1236535329); a = gg(a, b, c, d, x[i + 1], 5, -165796510); d = gg(d, a, b, c, x[i + 6], 9, -1069501632); c = gg(c, d, a, b, x[i + 11], 14, 643717713); b = gg(b, c, d, a, x[i + 0], 20, -373897302); a = gg(a, b, c, d, x[i + 5], 5, -701558691); d = gg(d, a, b, c, x[i + 10], 9, 38016083); c = gg(c, d, a, b, x[i + 15], 14, -660478335); b = gg(b, c, d, a, x[i + 4], 20, -405537848); a = gg(a, b, c, d, x[i + 9], 5, 568446438); d = gg(d, a, b, c, x[i + 14], 9, -1019803690); c = gg(c, d, a, b, x[i + 3], 14, -187363961); b = gg(b, c, d, a, x[i + 8], 20, 1163531501); a = gg(a, b, c, d, x[i + 13], 5, -1444681467); d = gg(d, a, b, c, x[i + 2], 9, -51403784); c = gg(c, d, a, b, x[i + 7], 14, 1735328473); b = gg(b, c, d, a, x[i + 12], 20, -1926607734); a = hh(a, b, c, d, x[i + 5], 4, -378558); d = hh(d, a, b, c, x[i + 8], 11, -2022574463); c = hh(c, d, a, b, x[i + 11], 16, 1839030562); b = hh(b, c, d, a, x[i + 14], 23, -35309556); a = hh(a, b, c, d, x[i + 1], 4, -1530992060); d = hh(d, a, b, c, x[i + 4], 11, 1272893353); c = hh(c, d, a, b, x[i + 7], 16, -155497632); b = hh(b, c, d, a, x[i + 10], 23, -1094730640); a = hh(a, b, c, d, x[i + 13], 4, 681279174); d = hh(d, a, b, c, x[i + 0], 11, -358537222); c = hh(c, d, a, b, x[i + 3], 16, -722521979); b = hh(b, c, d, a, x[i + 6], 23, 76029189); a = hh(a, b, c, d, x[i + 9], 4, -640364487); d = hh(d, a, b, c, x[i + 12], 11, -421815835); c = hh(c, d, a, b, x[i + 15], 16, 530742520); b = hh(b, c, d, a, x[i + 2], 23, -995338651); a = ii(a, b, c, d, x[i + 0], 6, -198630844); d = ii(d, a, b, c, x[i + 7], 10, 1126891415); c = ii(c, d, a, b, x[i + 14], 15, -1416354905); b = ii(b, c, d, a, x[i + 5], 21, -57434055); a = ii(a, b, c, d, x[i + 12], 6, 1700485571); d = ii(d, a, b, c, x[i + 3], 10, -1894986606); c = ii(c, d, a, b, x[i + 10], 15, -1051523); b = ii(b, c, d, a, x[i + 1], 21, -2054922799); a = ii(a, b, c, d, x[i + 8], 6, 1873313359); d = ii(d, a, b, c, x[i + 15], 10, -30611744); c = ii(c, d, a, b, x[i + 6], 15, -1560198380); b = ii(b, c, d, a, x[i + 13], 21, 1309151649); a = ii(a, b, c, d, x[i + 4], 6, -145523070); d = ii(d, a, b, c, x[i + 11], 10, -1120210379); c = ii(c, d, a, b, x[i + 2], 15, 718787259); b = ii(b, c, d, a, x[i + 9], 21, -343485551); a = add(a, olda); b = add(b, oldb); c = add(c, oldc); d = add(d, oldd); } str = rhex(a) + rhex(b) + rhex(c) + rhex(d); str = encode64(str); return str; } function rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); } function cmn(q, a, b, x, s, t) { return add(rol(add(add(a, q), add(x, t)), s), b); } function ff(a, b, c, d, x, s, t) { return cmn((b & c) | ((~b) & d), a, b, x, s, t); } function gg(a, b, c, d, x, s, t) { return cmn((b & d) | (c & (~d)), a, b, x, s, t); } function hh(a, b, c, d, x, s, t) { return cmn(b ^ c ^ d, a, b, x, s, t); } function ii(a, b, c, d, x, s, t) { return cmn(c ^ (b | (~d)), a, b, x, s, t); } function add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } function str2blks_MD5(str) { nblk = ((str.length + 8) >> 6) + 1; blks = new Array(nblk * 16); for (i = 0; i < nblk * 16; i++) blks[i] = 0; for (i = 0; i < str.length; i++) blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8); blks[i >> 2] |= 0x80 << ((i % 4) * 8); blks[nblk * 16 - 2] = str.length * 8; return blks; } function rhex(num) { chr = ' '; str = ""; for (j = 0; j <= 3; j++) { chr = num & 0xff; str = str + String.fromCharCode(chr); num >>= 8; } return str; } function getCookieVal(offset) { var endstr = document.cookie.indexOf(";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return ""; } function SetCookie(name, value) { var expdate = new Date(); var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; if (expires != null) expdate.setTime(expdate.getTime() + (expires * 1000)); document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + expdate.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } var isIE8 = function() { var ua = navigator.userAgent.toLowerCase(); return (!Ext.isOpera && ua.indexOf("msie 8") > -1); } function funContinue() { var cookieFlag = Ext.getCmp('chk_isShowBrowserInfo').checked; extCookiePro.set('isShowBrowserInfo', cookieFlag); dealMargin(); LoginWindow.render('login_info'); LoginWindow.show(); Ext.getCmp('username').focus(); } function dealMargin() { var lns = document.getElementById("login_nav").style; var width = document.body.clientWidth; var height = document.body.clientHeight; lns.display = "block"; if (width < 711) { lns.marginLeft = 0; } else { lns.marginLeft = (width - 711) / 2; } if (height < 400) { document.body.style.overflow = 'auto'; } else { document.getElementById("login_nav").focus(); lns.marginTop = (height - 400) / 2; document.body.style.overflow = 'hidden'; } } function loginWinAutoSize() { } Ext.onReady(function() { LoginWindow = new Ext.FormPanel({ id : 'loginForm', method : 'post', hidden : true, hideMode : 'offsets', standardSubmit : true, onSubmit : Ext.emptyFn, border : false, listeners : { 'beforeshow' : function() { document.getElementById("login-copyRight").innerHTML = ((document.cookie .indexOf('secospace') != -1) ? sweb_common.msg_loginInfo_hs : ((companylog.indexOf('quidway') != -1) ? sweb_common.msg_loginInfo_hw : sweb_common.msg_loginInfo_ha)) + copyRight_range + sweb_common.msg_copyright_tail; }, 'render' : function() { this.keys = [{ key : 13, fn : this.login, scope : this }]; } }, submit : function() { this.getForm().getEl().dom.action = 'default.html'; this.getForm().getEl().dom.method = 'post'; this.getForm().getEl().dom.submit(); }, labelAlign : 'right', buttonAlign : 'center', bodyStyle : 'background-color:transparent;', height : 130, width : Ext.isIE ? 384 : 380, items : [{ xtype : 'hidden', id : 'spring-security-redirect', name : 'spring-security-redirect', hidden : true }, { xtype : 'hidden', id : 'password', name : 'password' }, { xtype : 'hidden', id : 'language', name : 'language' }, new Ext.form.ComboBox({ labelStyle : 'text-align:right', ctCls : Ext.isIE ? 'x-combobox-list-pos-38' : '', listeners : { beforerender : function(obj) { if (Ext.isIE) { obj.ctCls = ''; } else { obj.labelStyle = 'white-space: nowrap;'; } } }, cls : 'language', fieldLabel : sweb_login.label_lang, width : 170, name : 'lang', id : 'lang', editable : false, disabled : false, store : new Ext.data.SimpleStore({ fields : ['state', 'value'], data : [[sweb_login.label_lang_chinese, 'zh_CN'], ['English', 'en']] }), valueField : 'value', displayField : 'state', typeAhead : true, value : sweb_login.label_lang_change_value, mode : 'local', triggerAction : 'all', allowBlank : false, forceSelection : true, selectOnFocus : true, onSelect : function(record) { var language = record.get("value"); window.location.search = Ext.urlEncode({ "lang" : language }, window.location.autoLoad); } }), { xtype : 'fwtextfield', labelStyle : 'text-align:right', cls : 'user', id : 'username', name : 'username', width : 170, allowBlank : true, allowNumFir : true, labelSeparator : ':', blankText : sweb_login.msg_nameblank_limit, fieldLabel : sweb_login.label_name, regex : /^[a-zA-Z0-9`~!@#$%^&()_+=,.\-\/\[\{\]\};']{1,64}$/,//AQ4D38767 regexText : sweb_login.msg_nameletters_limit, maxLength : 64, minLength : 1 }, { xtype : 'fwtextfield', labelStyle : 'text-align:right', cls : 'key', id : 'platcontent', name : 'platcontent', allowBlank : true, allowNumFir : true, labelSeparator : ':', fieldLabel : sweb_login.label_pwd, width : 170, inputType : 'password', regex : /^[a-zA-Z0-9`~!@#$%^&*()_\-+=,.:|\\\[\{\]\};\"/'<>]{1,16}$/, regexText : sweb_login.msg_passwordletters_limit, blankText : sweb_login.msg_passwordblank_limit, maxLengthText : sweb_login.msg_passwordMaxLength_limit, minLength : 1, maxLength : 16, minLengthText : sweb_login.msg_passwordMinLength_limit, listeners : { 'focus' : function(obj) { obj.selectText(); } } }], buttons : [{ text : sweb_login.btn_login, id : 'btn_login', handler : function() { LoginWindow.login(); }, scope : this }, { text : sweb_login.btn_reset, style : Ext.isIE ? 'margin-left:6px' : 'margin-left:14px', handler : function() { var fp = Ext.getCmp('loginForm'); fp.form.reset(); Ext.getCmp('username').focus(); } }], focus : function() { Ext.get('username').focus(); }, login : function() { var btn = Ext.getCmp('btn_login'); if(btn.disabled){ return; } if (SESSIONID == "" || challenge == "") { location.reload(true); } btn.disable(); var formPane = Ext.getCmp('loginForm'); var f = formPane.getForm(); var value = f.getValues(); if (value.username == "") { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_nameblank_limit, function() { Ext.getCmp('username').focus(); }); btn.enable(); return; } if ((value.username).length > 64) { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_namelength_limit, function() { Ext.getCmp('username').clearInvalid(); Ext.getCmp('username').focus(); }); btn.enable(); Ext.getCmp('username').setValue(''); return; } var rusername = /^[a-zA-Z0-9`~!@#$%^&()_+=,.\-\/\[\{\]\};\']{1,64}$/; if (!rusername.test(value.username)) { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_nameletters_limit, function() { Ext.getCmp('username').focus(); }); Ext.getCmp('username').setValue(''); Ext.getCmp('username').clearInvalid(); btn.enable(); return; } if (value.platcontent == "") { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_passwordblank_limit, function() { Ext.getCmp('platcontent').clearInvalid(); Ext.getCmp('platcontent').focus(); }); btn.enable(); return; } if ((value.platcontent).length < 1) { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_passwordMinLength_limit, function() { Ext.getCmp('platcontent').clearInvalid(); Ext.getCmp('platcontent').focus(); }); Ext.getCmp('platcontent').setValue(''); btn.enable(); return; } if ((value.platcontent).length > 16) { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_passwordMaxEqualLength_limit, function() { Ext.getCmp('platcontent').clearInvalid(); Ext.getCmp('platcontent').focus(); }); Ext.getCmp('platcontent').setValue(''); btn.enable(); return; } var ruserPass = /^[a-zA-Z0-9`~!@#$%^&*()_\-+=,.:|\\\[\{\]\};\"/'<>]{1,16}$/; if (!ruserPass.test(value.platcontent)) { Ext.MessageBox.alert(sweb_common.msg_hint, sweb_login.msg_passwordletters_limit, function() { Ext.getCmp('platcontent').focus(); }); Ext.getCmp('platcontent').setValue(''); Ext.getCmp('platcontent').clearInvalid(); btn.enable(); return; } Ext.Ajax.request({ url : '/get_new_sessionid/', method : 'get', success : function(returnValue) { var index = returnValue.responseText.toString().indexOf( "&", 0); if (index != -1) { var SessionArray = returnValue.responseText.split("&"); if (SessionArray.length == 2) { SESSIONID = SessionArray[0]; challenge = SessionArray[1]; } } if (document.cookie.indexOf('&quidway&') != -1) { SetCookie('hSign', 'quidway'); } else if (document.cookie.indexOf('&secospace&') != -1) { SetCookie('hSign', 'secospace'); } else if (document.cookie.indexOf('&secoway&') != -1){ SetCookie('hSign', 'secoway'); } Ext.state.Manager .setProvider(new Ext.state.CookieProvider()); var pro = Ext.state.Manager.getProvider(); var languageStr = Ext.getCmp('lang').getValue(); pro.set('fwlangeuage', languageStr); var fwloginName = Ext.getCmp('username').getValue(); pro.set('fwloginname', fwloginName); Ext.getCmp('language').setValue(Ext.getCmp('lang') .getValue()); var platcontent = Ext.getCmp('platcontent').getValue(); Ext.getCmp('password').setValue(platcontent); Ext.getCmp('platcontent').setValue(''); document.cookie = 'SESSIONID=' + SESSIONID; SetCookie('curLang', languageStr); SetCookie('fwloginname', fwloginName); Ext.getCmp('loginForm').submit(); }, failure : function(o) { Ext.getCmp('btn_login').enable(); } }); } }); window.onresize = function() { if (document.getElementById("login_nav") && document.getElementById("login_nav").style.display == 'block') { var lns = document.getElementById("login_nav").style; var width = document.body.clientWidth; var height = document.body.clientHeight; if (width < 711) { lns.marginLeft = 0; } else { lns.marginLeft = (width - 711) / 2; } if (height < 400) { document.body.style.overflow = 'auto'; } else { lns.marginTop = (height - 400) / 2; document.body.style.overflow = 'hidden'; } } else { var lfWindow = Ext.getCmp('browserInfoWin'); if (lfWindow && !lfWindow.hidden) { var width = document.body.clientWidth; var height = document.body.clientHeight; browserInfoWin.setPosition((width - lfWindow.width) / 2, (height - 220) / 2); } } } var sweb_login_isShowBrowserInfo = true; document.title = sweb_login.title; { document.getElementById("login_nav").style.display = "block"; dealMargin(); LoginWindow.render('login_info'); LoginWindow.show(); Ext.getCmp('username').focus(); } });