aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-common/src/main/webapp/common/login.html
blob: ad6cafdaa6eee9f4a7ac23e472eadcf16d5a7d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!--
    Copyright 2016, CMCC Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title id="com_zte_ums_ict_portal_login_title" name_i18n="com_zte_ums_ict_framework_ui_i18n_login"></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta content="" name="description"/>
<meta content="" name="author"/>
<link href="../component/thirdparty/fakeLoader/fakeLoader.css" rel="stylesheet" type="text/css" />
<script> 
   if(top != window){
       top.location.href = location.href;
   }
</script>
<link href="../component/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="../component/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="../component/thirdparty/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
<link href="./css/style-custom.css" rel="stylesheet" type="text/css"/>
<link href="./css/style.css" rel="stylesheet" type="text/css"/>
<link href="./css/style-responsive.css" rel="stylesheet" type="text/css"/>
<link href="./css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="./css/login.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon"  href="./img/integration/zte_logo_16.gif"/>
<script type="text/javascript" src="../component/thirdparty/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="./js/core/const.js" ></script>
<script type="text/javascript" src="./js/security/security.js"></script>
<script type="text/javascript" src="../component/thirdparty/fakeLoader/fakeLoader.min.js"></script>
<script type="text/javascript" src="./js/core/hk.min.js" ></script>
<script type="text/javascript" src="./js/tools.js"></script>
<script type="text/javascript">
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
(s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] :
(s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] :
(s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] :
(s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;


function judgeVersion(configVer,localVer){
    var configs= configVer.split(".");
    var locals= localVer.split(".");
    var length = 0;
    if(configs.length >= locals.length){
    	length = locals.length;
    }else{
    	length = configs.length;
    }
    for(var i = 0; i < length; i++){
    	var tempConfig = parseInt(configs[i],10);
    	var tempLocal = parseInt(locals[i],10);
    	if(tempConfig > tempLocal){
    		return true;
    	}
    }
    return false;
	
	
}

function showPrompt(flag){
    if(flag == "chromeFrame"){
    	document.getElementById("downloadChromeFrame").style.display="";
		
		$("#chromedown").attr("href","https://www.google.com/intl/"+getLanguage()+"/chrome/browser/");
    }
}
function hidetip(tipid) {
	var tip = $("#" + tipid);
	tip.hide();
	tip.attr("tipstatus", "close");
}
</script>
</head>
<body class="login"><div id="pageLoading" class="fakeloader" ></div>
		<script type="text/javascript">
			$("#pageLoading").fakeLoader({text:"",bgColor:"#1178ee",opacity:'1',spinner:"spinner2",zIndex:99999999});
		</script>	
<div class="logo">
	<a href="./default.html">
		<img id="com_zte_ums_ict_framework_img_login_logo" src="./img/integration/ztelogo.png" name_img="com_zte_ums_ict_framework_img" style="display:none" alt=""/>
		<img id="com_zte_ums_ict_framework_img_login_logo_white" src="./img/integration/zte_logo_white.png" name_img="com_zte_ums_ict_framework_img" style="display:none" alt=""/>
  	</a>
</div>
<div class="content">
	<form class="login-form" method="post" id="fm1" action="./login">
		<h3 class="form-title"><span id="com_zte_ums_ict_portal_login_welcome" name_i18n="com_zte_ums_ict_framework_ui_i18n_login"></span> </h3>
		<div class="alert display-hide" id="nameOrpwdError" tipstatus="normal">
			<button class="close" data-close="alert" onclick="hidetip('nameOrpwdError');"></button>
			<div id="com_zte_ums_ict_portal_login_userPassword" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" style="display:inline"></div>
		</div>
		<div class="alert display-hide" id="loginConnError" tipstatus="normal">
			<button class="close" data-close="alert" onclick="hidetip('loginConnError');"></button>
			<div id="com_zte_ums_ict_portal_login_serv_error" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" style="display:inline"></div>
		</div>
		<div class="form-group">
			<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
			<label id="com_zte_ums_aos_portal_login_username" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" class="control-label visible-ie8 visible-ie9" i18n-html="com_zte_ums_aos_portal_login_username"></label>
			<div class="input-icon">
				<i class="fa fa-user"></i>
				<input class="form-control placeholder-no-fix" id="inputUserName" type="text" autocomplete="off" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" placeholder="" name="username"/>
			</div>
		</div>
		<div class="form-group">
			<label id="com_zte_ums_aos_portal_login_password" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" class="control-label visible-ie8 visible-ie9" i18n-html="com_zte_ums_aos_portal_login_password"></label>
			<div class="input-icon">
				<i class="fa fa-lock"></i>
				<input class="form-control placeholder-no-fix" id="inputPassword" type="password" autocomplete="off" name_i18n="com_zte_ums_ict_framework_ui_i18n_login" placeholder="" name="password"/>
			</div>
		</div>
		<div class="form-actions">
			<label class="checkbox"><input type="checkbox" name="remember" value="1"><span id="com_zte_ums_ict_portal_login_rememberMe" name_i18n="com_zte_ums_ict_framework_ui_i18n_login">
			</span></label>
			<button type="submit" i18n-value="com_zte_ums_aos_portal_login_login" id="submitBtn" class="btn blue pull-right">
			<span id="com_zte_ums_aos_portal_login_login" name_i18n="com_zte_ums_ict_framework_ui_i18n_login">
			</span> <i class="m-icon-swapright m-icon-white"></i>
			</button>
		</div>		
	</form>
</div>
<center>
<div class="download" id="downloadChromeFrame" style="display:none">
    <p id="notice3" i18n-html="com_zte_ums_aos_portal_login_notice_about_chromeFrame"></p>
    <div id="chromeFrameUrl">
    	<image class="browser_logo" src="./img/chrome_icon.png"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://www.google.com/intl/en_US/chrome/browser/" id="chromedown">Chrome</a>&nbsp;&nbsp;&nbsp;&nbsp;<image class="browser_logo" src="./img/firefox_icon.png"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.mozilla.org/" id="firefoxdown">Firefox</a>&nbsp;&nbsp;&nbsp;&nbsp;<br/>
    </div>
</div>
</center>
<div class="copyright">
	 <span id="com_zte_ums_ict_portal_login_companyName" name_i18n="com_zte_ums_ict_framework_ui_i18n_login">
			</span>.
</div>

<!--[if lt IE 9]>
	<script src="/ngict/iui/component/thirdparty/respond/respond.min.js"></script>
	<script src="/ngict/iui/component/thirdparty/excanvas/excanvas.min.js"></script> 
	<![endif]-->
<script src="../component/thirdparty/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../component/thirdparty/jquery-blockui/jquery.blockui.min.js" type="text/javascript"></script>
<script src="../component/thirdparty/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="../component/thirdparty/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="../component/thirdparty/backstretch/jquery.backstretch.min.js" type="text/javascript"></script>
<script src="./js/security/aes.js" type="text/javascript"></script>
<script src="./js/security/framework-util.js" type="text/javascript"></script>
<script src="./js/login.js" type="text/javascript"></script>
<script src="../component/thirdparty/jquery.i18n/jquery.i18n.properties-1.0.9.js" type="text/javascript"></script>
<script src="./js/international/loadi18n-login.js" type="text/javascript"></script>

<script>
		jQuery(document).ready(function() {
		  var lang = getLanguage();
		  //lang = "en-US";
		  loadi18n_login(lang);
		  $("#com_zte_ums_ict_framework_img_login_logo").css('display','inline');
		  $("#com_zte_ums_ict_framework_img_login_logo_white").css('display','inline');
		  Login.init();
		  		  
		  if(store("inputUserName")){
			$("#inputUserName").val(store("inputUserName"));
		  }
		/*$.ajax({ 	
			url : FrameConst.REST_GET_USERNAME,  
			type : "GET",
			cache:false,			
			contentType : 'application/json; charset=utf-8',
			success: function(data){
				var userName = data;
				if(userName && userName !=""){ 
						window.location = FrameConst.DEFAULT_LOGINSKIP_PAGE;
				}
			} 
		});	*/
		$("#pageLoading").setToHide();		
		});
</script>

</html>