| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
- <%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
- <%@ page import="java.net.URLEncoder"%>
- <%@ page import="java.util.Locale,java.util.Map,java.util.Iterator,java.util.HashMap,java.util.List,java.util.TreeMap"%>
- <%@ page import="org.apache.struts.Globals"%>
- <%@ page import="com.kingdee.util.Configuration,com.kingdee.util.ConfigurationItem"%>
- <%@ page import="com.kingdee.util.StringUtils,com.kingdee.util.Uuid"%>
- <%@ page import="com.kingdee.util.LocaleUtils"%>
- <%@ page import="com.kingdee.bos.Context"%>
- <%@ page import="com.kingdee.bos.BOSLocaleUtil"%>
- <%@ page import="com.kingdee.bos.ContextUtils"%>
- <%@ page import="com.kingdee.eas.base.common.DCInfo"%>
- <%@ page import="com.kingdee.eas.base.security.SecurityAuthParamManagerFactory"%>
- <%@ page import="com.kingdee.eas.cp.common.web.util.WebContextUtil"%>
- <%@ page import="com.kingdee.eas.cp.eip.sso.util.EASWebContextUtil"%>
- <%@ page import="com.kingdee.eas.cp.common.web.util.PortalPersonalSetUtil"%>
- <%@ page import="com.kingdee.eas.cp.common.web.util.DataCenterManager"%>
- <%@ page import="com.kingdee.eas.cp.common.web.util.LocaleConvertor"%>
- <%@ page import="com.kingdee.eas.cp.common.web.config.PortalXmlConfiguration"%>
- <%@ page import="com.kingdee.eas.cp.eip.sso.util.LocaleManager"%>
- <%@ page import="com.kingdee.eas.cp.eip.sso.EasMultiAuthManager"%>
- <%if(SecurityAuthParamManagerFactory.getLocalInstance(null).isEnableFingerprintAuth()){%>
- <%@ include file = "/fingerprint/finger_login.jsp"%>
- <%}%>
- <%@ include file="common/include/usbkey.jsp"%>
- <%
- String ctxPath = request.getContextPath();
-
- //language
- String defaultLanguage = getServletConfig().getServletContext().getInitParameter("com.kingdee.eas.portal.defaultLanguage");
- String selectLang = request.getParameter("selectLang");
- String dcNumber_cloud = request.getParameter("dcNumber_cloud");
- String dcName_cloud = request.getParameter("dcName_cloud");
-
- System.out.print("dcName_cloud----------="+dcName_cloud);
- if(selectLang!=null && !"".equals(selectLang)){
- defaultLanguage = selectLang;
- }else{
- defaultLanguage = request.getParameter("locale");
- if(defaultLanguage == null || "".equals(defaultLanguage))
- {
- defaultLanguage = "L2";
- }
- }
-
- Locale locale = new Locale(defaultLanguage);
- // set language to Env
- ContextUtils.setLocaleToEnv(locale);
- Locale.setDefault(BOSLocaleUtil.getOriginalLocale(locale));
- LocaleUtils.setDefaultLocale(locale);
- BOSLocaleUtil.setDefaultLocale(locale);
- session.setAttribute(Globals.LOCALE_KEY,locale);
-
- Context userCtx = new Context();
- userCtx.setLocale(locale);
- locale = LocaleConvertor.getOriginalLocale(locale,userCtx);
- String strlocale = locale.toString().toLowerCase();
- String urlHelp="/eashelp/"+strlocale+"/eashelp.htm";
-
- StringBuffer lang = new StringBuffer("");
-
- Map sortedLangMap = LocaleManager.getAllSupportLanguage();
- //sort by language
- Iterator iterator = sortedLangMap.entrySet().iterator();
-
- while(iterator.hasNext()){
- Map.Entry entry = (Map.Entry)iterator.next();
- String key = (String)entry.getKey();
-
- //support old config
-
- String[] locales = key.split("#");
- lang.append("<option value='");
- lang.append(locales[0]);
- lang.append("' value='");
- lang.append(locales[0]);
- lang.append("'");
- if(locales[0].equalsIgnoreCase(defaultLanguage)){
- lang.append(" selected='true'");
- }
- lang.append(">");
- lang.append((String)entry.getValue());
- lang.append("</option>");
- lang.append("/>\n");
- }
-
- //datacenter
- DataCenterManager dc = new DataCenterManager(userCtx);
- String selectDataCenter = request.getParameter("selectDataCenter");
-
- StringBuffer dcStr = new StringBuffer("") ;
- int ndatacenter = 0;
- if(dc != null){
- try{
- if(selectDataCenter!=null && !"".equals(selectDataCenter)){
- ndatacenter = Integer.parseInt(selectDataCenter);
- }
- }catch(NumberFormatException en){
- ndatacenter = 0;
- }
-
- try{
- if(dcNumber_cloud == null || dcNumber_cloud.length() == 0 || dcName_cloud == null || dcName_cloud.length() == 0){
- List dcList=dc.getDCList();
-
- if(dcList != null){
- for(int i=0; i<dcList.size() ; i++){
- DCInfo di = (DCInfo) dcList.get(i);
- dcStr.append("<option value='");
- dcStr.append(di.getNumber());
- dcStr.append("' ");
- if(i==ndatacenter){
- dcStr.append(" selected=true");
- }
- dcStr.append(">");
- dcStr.append(di.getName(userCtx.getLocale().toString().toUpperCase()));
- dcStr.append("</option>\n");
- }
- }
- }else{
- dcStr.append("<option value='");
- dcStr.append(dcNumber_cloud);
- dcStr.append("' ");
- dcStr.append(" selected=true");
- dcStr.append(">");
- dcStr.append(dcName_cloud);
- dcStr.append("</option>\n");
- }
-
- }
- catch(Exception e){
- System.err.println("[EAS Portal] data center connect fail,cann't fetch data center data.");
- }
- }
- //added by linhh on 2005.11.21
- //for auto login
- boolean autoLogin = false ;
- String autoLoginUser = (String) session.getAttribute("autoLoginUser") ;
- String autoLoginCheckFlag = (String) session.getAttribute("autoLoginCheckFlag") ;
- String autoLoginDefaultLocale = (String) session.getAttribute("autoLoginDefaultLocale");
- String autoLoginDataCenter = (String) session.getAttribute("autoLoginDataCenter");
- //added by linhh on 2005.11.21
- //for multi auth
- String authPattern = (String) session.getAttribute("authPattern");
- if (authPattern == null || "".equals(authPattern)){
- try{
- authPattern = EasMultiAuthManager.getDefaultAuthPattern().getName();
- }
- catch(Exception e){
- System.err.println("[EAS Multi Auth] Eas multi auth patterns init fail.");
- }
- }
-
- //clear auto login flag session
- //must move to success.jsp because login.jsp will be reloaded frequently
- if(autoLoginUser != null && !"".equals(autoLoginUser)){
- //authPattern = "BaseADWithAutoLogin" ;
- autoLogin = true ;
- }
-
- //serverName
- String _serverName = request.getServerName();
- if(_serverName == null || "".equals(_serverName)){
- _serverName = "localhost";
- }
-
- //serverPort
- String _serverPort = Integer.toString(request.getServerPort());
- if(_serverPort == null || "".equals(_serverPort)){
- _serverPort = "6888";
- }
-
- //_webSite
- String _webSite = PortalXmlConfiguration.getInstance().getEasWebClientConfigItem().getUrl() ;
- //if don't set in web.xml,set the same value as self jsp
- if(_webSite == null || "".equals(_webSite)){
- _webSite = "http://" + _serverName + ":" + _serverPort ;
- }
-
- //webControlUrl
- String webControlUrl = PortalXmlConfiguration.getInstance().getEasWebClientConfigItem().getKingdeeEasWebControlUrl() ;
- if(webControlUrl == null && "".equals(webControlUrl)){
- webControlUrl = "/easWebClient/download/webControl_2-11-15-0.exe";
- }
- webControlUrl = _webSite + webControlUrl ;
-
- //errInfo
- String errInfo=(String)request.getAttribute("edu.yale.its.tp.cas.badUsernameOrPassword");
-
- //service url
- String serviceStr = "";
- if(!StringUtils.isEmpty(request.getParameter("service"))){
- serviceStr = "?" + "service=" + URLEncoder.encode(request.getParameter("service"), "UTF-8");
- }
-
- //picture url
- String loginLogoUrl = PortalPersonalSetUtil.getAttribute(request, "picture" , "loginCompanyLogo", "color", WebContextUtil.getColorSchema(request), 1, locale);
- String loginTitleUrl = PortalPersonalSetUtil.getAttribute(request, "picture" , "loginEasProductLogo", "color", WebContextUtil.getColorSchema(request), 1, locale);
- String loginIocn1Url = PortalPersonalSetUtil.getAttribute(request, "picture" , "loginEasProductIntroduceLogo1", "color", WebContextUtil.getColorSchema(request), 0, null);
- String loginIocn2Url = PortalPersonalSetUtil.getAttribute(request, "picture" , "loginEasProductIntroduceLogo2", "color", WebContextUtil.getColorSchema(request), 0, null);
- String loginKingdeeLogoUrl = PortalPersonalSetUtil.getAttribute(request, "picture" , "loginKingdeeLogo", "color", WebContextUtil.getColorSchema(request), 0, null);
-
- String loginTitle_Text = PortalPersonalSetUtil.getAttribute("text" , "loginTitle", "content", locale);
-
- //link url
- String loginPageLink1_Url = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink1", "linkAddress");
- String loginPageLink2_Url = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink2", "linkAddress");
- String loginPageLink3_Url = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink3", "linkAddress");
- String contactUs_Url = PortalPersonalSetUtil.getAttribute("text" , "contactUs", "linkAddress");
-
- if(loginPageLink1_Url != null && loginPageLink1_Url.indexOf("://")<0){
- loginPageLink1_Url = WebContextUtil.getPortalContextPath(request) + loginPageLink1_Url;
- }
- if(contactUs_Url != null && contactUs_Url.indexOf("://")<0){
- contactUs_Url = WebContextUtil.getPortalContextPath(request) + contactUs_Url;
- }
- //link tips
- String loginPageLink1_Tips = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink1", "linktips",locale);
- String loginPageLink2_Tips = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink2", "linktips",locale);
- String loginPageLink3_Tips = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink3", "linktips",locale);
- String contactUs_Tips = PortalPersonalSetUtil.getAttribute("text" , "contactUs", "linktips",locale);
-
- //link text
- String loginPageLink1_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink1", "content",locale);
- String loginPageLink2_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink2", "content",locale);
- String loginPageLink3_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink3", "content",locale);
- String contactUs_Text = PortalPersonalSetUtil.getAttribute("text" , "contactUs", "content",locale);
- String copyRightInfo_Text = PortalPersonalSetUtil.getAttribute("text" , "copyRightInfo", "content",locale);
- String loginPageProductIntroduction1_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction1", "content",locale);
- String loginPageProductIntroduction2_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction2", "content",locale);
- String loginPageProductIntroduction3_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction3", "content",locale);
- String loginPageProductIntroduction4_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction4", "content",locale);
- String loginPageProductIntroduction5_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction5", "content",locale);
- String loginPageProductIntroduction6_Text = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction6", "content",locale);
- String welcomeLogin = PortalPersonalSetUtil.getAttribute("text" , "welcomeLogin", "content",locale);
-
- String formActionUrl = "login" + serviceStr;
-
- // modify by liang yongyuan for BUG BT399642 in 2010.06.23
- String loginLogoVisible = PortalPersonalSetUtil.getAttribute("picture", "loginCompanyLogo", "visible");
- String loginTitleVisible = PortalPersonalSetUtil.getAttribute("picture", "loginEasProductLogo", "visible");
- String loginIocn1Visible = PortalPersonalSetUtil.getAttribute("picture", "loginEasProductIntroduceLogo1", "visible");
- String loginIocn2Visible = PortalPersonalSetUtil.getAttribute("picture", "loginEasProductIntroduceLogo2", "visible");
- String loginKingdeeLogoVisible = PortalPersonalSetUtil.getAttribute("picture", "loginKingdeeLogo", "visible");
- String loginTitle_TextVisible = PortalPersonalSetUtil.getAttribute("text" , "loginTitle", "visible");
- String loginPageLink1Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink1", "visible");
- String loginPageLink2Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink2", "visible");
- String loginPageLink3Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageLink3", "visible");
- String contactUsVisible = PortalPersonalSetUtil.getAttribute("text" , "contactUs", "visible");
- String copyRightInfoVisible = PortalPersonalSetUtil.getAttribute("text" , "copyRightInfo", "visible");
- String loginPageProductIntroduction1Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction1", "visible");
- String loginPageProductIntroduction2Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction2", "visible");
- String loginPageProductIntroduction3Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction3", "visible");
- String loginPageProductIntroduction4Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction4", "visible");
- String loginPageProductIntroduction5Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction5", "visible");
- String loginPageProductIntroduction6Visible = PortalPersonalSetUtil.getAttribute("text" , "loginPageProductIntroduction6", "visible");
- String welcomeLoginVisible = PortalPersonalSetUtil.getAttribute("text" , "welcomeLogin", "visible");
-
- %>
- <html>
- <head>
- <% if(loginTitle_TextVisible != null && "true".equals(loginTitle_TextVisible)) { %>
- <title><%=loginTitle_Text%></title>
- <%} %>
- <meta http-equiv="Content-Type" CONTENT="text/html; charset=UTF-8">
- <meta content="no-cache" http-equiv="Cache-Control">
- <meta content="no-cache" http-equiv="Pragma">
- <meta content="0" http-equiv="Expires">
- <link type="text/css" rel="stylesheet" href="<%= EASWebContextUtil.render(request,"/skin/01/css/login.css")%>">
- <script type="text/javascript" src="<%= EASWebContextUtil.render(request,"/common/js/login_withForm.js") %>"></script>
- <script type="text/javascript">
- try {
- document.execCommand('BackgroundImageCache', false, true);
- } catch(e) {}
- </script>
- </head>
- <body bgcolor="#3f88bd" style="height:100%;" onresize="reSize();">
- <div>
- <div id="top" style="width:100%;height:70px;">
- <div class="top_fill"></div>
- <div class="top_img_link" style="width:100%">
- <%if(loginLogoVisible != null && "true".equals(loginLogoVisible)) { %>
- <div class="top_img" style="float:left;">
- <img src="<%=EASWebContextUtil.render(request, loginLogoUrl)%>"/>
- </div>
- <%} %>
- <div class="top_link" style="float:right;margin-right:5px;">
- <%if(loginPageLink1Visible != null && "true".equals(loginPageLink1Visible)) { %>
- <div class="login_help_label"><a href="<%=loginPageLink1_Url%>?locale=<%=defaultLanguage%>" target="_blank" tabIndex="-1" title="<%=loginPageLink1_Tips%>" ><span class="login_help"><%=loginPageLink1_Text%></span></a></div>
- <%} %>
- <%if(loginPageLink2Visible != null && "true".equals(loginPageLink2Visible)) { %>
- <div class="login_help_label"><a href="<%=loginPageLink2_Url%>" target="_blank" title="<%=loginPageLink2_Tips%>"><span class="login_kingdee"><%=loginPageLink2_Text%></span></a></div>
- <%} %>
- <%if(loginPageLink3Visible != null && "true".equals(loginPageLink3Visible)) { %>
- <div class="login_help_label"><a href="<%=loginPageLink3_Url%>" target="_blank" title="<%=loginPageLink3_Tips%>"><span class="login_youshang"><%=loginPageLink3_Text%></span></a></div>
- <%} %>
- </div>
- </div>
- </div>
- <div id="center" style="width:100%;">
- <div style="width:667px;height:416px;overflow-y:hidden;position:relative;margin-left:-334px;left:50%;top:50%;margin-top:-189px;">
- <!--left-->
- <div class="center_item" style="width:294px;">
- <div style="width:100%;height:46px;"></div>
- <%if(loginTitleVisible != null && "true".equals(loginTitleVisible)) { %>
- <div style="width:100%;"><img src="<%=EASWebContextUtil.render(request, loginTitleUrl)%>"></div>
- <%} %>
- <div style="width:100%;height:20px;"></div>
- <div style="width:100%;height:73px;">
- <%if(loginIocn1Visible != null && "true".equals(loginIocn1Visible)) { %>
- <div style="float:left;width:40px;"><img src="<%=EASWebContextUtil.render(request, loginIocn1Url)%>"></div>
- <%} %>
- <div style="float:left;vertical-align:middle;">
- <%if(loginPageProductIntroduction1Visible != null && "true".equals(loginPageProductIntroduction1Visible)) { %>
- <div><span class="login_frame_left_title"><%=loginPageProductIntroduction1_Text%></span></div>
- <%} %>
- <%if(loginPageProductIntroduction2Visible != null && "true".equals(loginPageProductIntroduction2Visible)) { %>
- <div><span class="login_frame_left_content"><%=loginPageProductIntroduction2_Text%></span></div>
- <%} %>
- </div>
- </div>
- <div style="width:100%;height:239px;">
- <%if(loginIocn2Visible != null && "true".equals(loginIocn2Visible)) { %>
- <div style="float:left;width:40px;"><img src="<%=EASWebContextUtil.render(request, loginIocn2Url)%>"></div>
- <%} %>
- <div style="float:left;vertical-align:middle;">
- <%if(loginPageProductIntroduction3Visible != null && "true".equals(loginPageProductIntroduction3Visible)) { %>
- <div><span class="login_frame_left_title"><%=loginPageProductIntroduction3_Text%></span></div>
- <%} %>
- <%if(loginPageProductIntroduction4Visible != null && "true".equals(loginPageProductIntroduction4Visible)) { %>
- <div><span class="login_frame_left_content"><%=loginPageProductIntroduction4_Text%></span></div>
- <%} %>
- <%if(loginPageProductIntroduction5Visible != null && "true".equals(loginPageProductIntroduction5Visible)) { %>
- <div><span class="login_frame_left_content"><%=loginPageProductIntroduction5_Text%></span></div>
- <%} %>
- <%if(loginPageProductIntroduction6Visible != null && "true".equals(loginPageProductIntroduction6Visible)) { %>
- <div><span class="login_frame_left_content"><%=loginPageProductIntroduction6_Text%></span></div>
- <%} %>
- </div>
- </div>
- </div>
- <!--left-->
-
- <!--center-->
- <div class="center_item" style="width:3px;">
- <img src="<%=EASWebContextUtil.renderSkin(request, "/image/login/logging_middle.gif")%>">
- </div>
- <!--center-->
-
- <!--right-->
- <div class="center_item" style="width:370px;">
- <form method=post name="LoginForm" action="<%=formActionUrl%>">
- <div style="width:100%;height:39px;padding-left:70px;margin-top:50px;">
- <%if(welcomeLoginVisible != null && "true".equals(welcomeLoginVisible)) { %>
- <span class="login_welcome"><%=welcomeLogin%></span>
- <%} %>
- </div>
- <div style="width:100%;padding-left:70px;">
- <div style="width:100%;">
- <div class="input_text">
- <span class="login_inputlabel">
- <bean:message bundle="ssoLogin" key="lblLanguage.text"/>
- </span>
- </div>
- <div class="input_control">
- <select id="locale" name='locale' tabIndex='1' class="inputElement" onchange="indexChange()">
- <%=lang%>
- </select>
- </div>
- </div>
- <div style="width:100%;">
- <div class="input_text">
- <span class="login_inputlabel">
- <bean:message bundle="ssoLogin" key="lblDataCenter.text"/>
- </span>
- </div>
- <div class="input_control">
- <select id="dataCenter" name='dataCenter' tabIndex='2' class="inputElement">
- <%=dcStr%>
- </select>
- </div>
- </div>
- <div style="width:100%;">
- <div class="input_text">
- <span class="login_inputlabel">
- <bean:message bundle="ssoLogin" key="lblUserName.text"/>
- </span>
- </div>
- <div class="input_control">
- <input id='username' name='username' class="inputElement" tabIndex='3' value="">
- </div>
- </div>
- <div style="width:100%;">
- <div class="input_text">
- <span class="login_inputlabel">
- <bean:message bundle="ssoLogin" key="lblPassword.text"/>
- </span>
- </div>
- <div class="input_control">
- <input id='password' name='password' class="inputElement" tabIndex='4' type=password value="" onKeyDown="JavaScript:loginEnterPassword()">
- </div>
- </div>
-
- <input type="hidden" id="lt" name="lt" value="<%=request.getAttribute("flowExecutionKey")%>" />
- <input type="hidden" id="_eventId" name="_eventId" value="submit" />
- <input type="hidden" id="isPureWeb" name="isPureWeb" value="true">
- <input type="hidden" id="solutionName" name="solutionName" value="eas">
- <input type="hidden" id="dbType" name="dbType" value="0">
- <input type="hidden" id="easSessionId" name="easSessionId" value="">
- <input type="hidden" id="userAuthPattern" name="userAuthPattern" value="<%=authPattern%>">
- <input type="hidden" id="loginFlow" name="loginFlow" value="true">
- <input type="hidden" id="clientHostIP" name="clientHostIP" value="<%=request.getRemoteAddr()%>">
- <input type="hidden" name="usbkeyInfo" value="">
- <input type="hidden" name="usbkeyPinVerifyResult" value="">
-
- <div style="width:100%;margin-top:8px;">
- <div>
- <%if(SecurityAuthParamManagerFactory.getLocalInstance(null).isEnableFingerprintAuth()){ %>
- <input type='button' tabIndex='5' value="指纹登陆" onclick='javascript:fingerLogin();' id="fingerLoginSubmit" name="fingerLoginSubmit"/>
- <%}%>
- </div>
- <div>
- <input type='button' tabIndex='5' value="<bean:message bundle="ssoLogin" key="btnLogin.text"/>" onclick='javascript:login();' id="loginSubmit" name="loginSubmit">
- <%if(SecurityAuthParamManagerFactory.getLocalInstance(null).isEnableFingerprintAuth()){ %>
- <!--<span id="fingercheckbox" class="login_inputlabel">
- <input type='checkbox' name="fingerprint" value="false"
- id="fingerprint" tabindex1="3"
- onclick="fingerSelected()"
- indeterminate="false"
- width="75" labelFontSize="10pt">
- <bean:message bundle="ssoLogin" key="FingerPrintLogin"/>
- </span>-->
- <%}%>
- </div>
- </div>
- </div>
- </form>
- <div style="width:100%;margin-top:20px;padding-left:70px;height:200px;">
- <div id="loginErrorID" style="width:100%;floag:left;" class="processbar_label">
- <spring:hasBindErrors name="credentials">
- <%
- String str = request.getAttribute("errors").toString();
- String v=str.substring(str.lastIndexOf("[")+1, str.lastIndexOf("]"));
- if (!"null".equals(v))
- out.println(v);
- %>
- </spring:hasBindErrors>
- </div>
- <div id="loginProcceBarID" style="width:100%;float:left;visible:hidden;">
- </div>
- </div>
- </div>
- <!--right-->
- </div>
- </div>
- <div id="bottom" style="width:100%;height:25px;">
- <div style="font-size:1px;width:100%;height:1px; background-color:#cbcbcb;overflow:hidden;"></div>
- <div class="bottom_img_link" style="height:24px;">
- <%if(loginKingdeeLogoVisible != null && "true".equals(loginKingdeeLogoVisible)) { %>
- <div style="float:left;height:24px;overflow-y:hidden;">
- <img width="85px" height="22px" src="<%=EASWebContextUtil.render(request, loginKingdeeLogoUrl)%>">
- </div>
- <%} %>
- <div style="height:24px;float:left;">
- <%if(contactUsVisible != null && "true".equals(contactUsVisible)) { %>
- <div class="login_bottom_link"><a target="_blank" href="<%=contactUs_Url%>?locale=<%=defaultLanguage%>" title="<%=contactUs_Tips%>"><span class="login_bottom"><%=contactUs_Text%></span></a></div>
- <%} %>
- <%if(contactUsVisible != null && "true".equals(contactUsVisible) && copyRightInfoVisible != null && "true".equals(copyRightInfoVisible)) { %>
- <div class="bottom_text" >
- <span class="login_bottom">|</span>
- </div>
- <%} %>
- <%if(copyRightInfoVisible != null && "true".equals(copyRightInfoVisible)) { %>
- <div class="bottom_text"><span class="login_bottom"><%=copyRightInfo_Text%></span></div>
- <%} %>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- redirectToTopFrame();
- if (!document.all){
- document.all = function(id){
- return document.getElementByID(id);
- }
- }
-
- var dbType = new Array();
- <%
- if(dc != null){
- try{
- out.println(dc.getDBTypeScript(0));
- }catch(Exception e){
- System.err.println("[EAS Portal] data center connect fail,cann't fetch data center data.");
- }
- }
- %>
- var sessionId = "<%=Uuid.create()%>";
-
- var autoLogon = false ;
- var tempLoginName = "";
- var autoLoginDefaultLocale = "<%=autoLoginDefaultLocale%>";
- var defaultLanguage = "<%=defaultLanguage%>";
- var autoLoginDataCenter = "<%=autoLoginDataCenter%>";
- var autoLoginUser = "<%=autoLoginUser%>";
- var autoLoginCheckFlag = "<%=autoLoginCheckFlag%>";
- var authPattern = "<%=authPattern%>";
- var loadingApplet_Text = "<bean:message bundle="ssoLogin" key="loadingApplet.text"/>";
-
- var langIndexChangeUrl = "./login" + "<%=serviceStr%>";
-
- var selectDataCenterFlag = <%=selectDataCenter==null || "".equals(selectDataCenter)%>;
-
- var selectLangFlag = <%=selectLang==null || "".equals(selectLang)%>;
-
- var autoLoginDataCenterFlag = <%=(autoLoginDataCenter!=null)%>;
-
- var autoLoginUserFlag = <%=autoLoginUser!=null && autoLoginUser!="" %>
-
- var autoLoginPrompt_Text = "<div><span><img src='<%=EASWebContextUtil.render(request, "/images/login/coffeecup_move.gif")%>'></span><span class='txtcontent'><bean:message bundle='ssoLogin' key='autoLoginPrompt'/></span></div>";
-
- var logining_Text = "<div style='width:auto;'><span><img src='<%= EASWebContextUtil.render(request, "/images/login/coffeecup_move.gif")%>'></span><span class='txtcontent'><bean:message bundle='ssoLogin' key='logining'/></span></div>";
- document.onkeydown = enterkey;
-
- enabledComponent(false);
- initLoginFormValue();
- <%
- System.out.println("................ in login_withForm.jsp autoLogin is: " + autoLogin + " errInfo is:" + errInfo);
- if(autoLogin==true && errInfo== null){
- %>
- autoLogin();
- <%
- }
- %>
- autoLogin = false;
- displayProcessBar("none");
- reSize();
-
- </script>
- </html>
|