<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : start.jsp
 Date      : 2006/04/10
 Author    : Kimura
 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language = "java"%>
<%@ page session = "false"%>
<%@ page errorPage = "errorDialog.jsp" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const"%>
<%@ taglib prefix = "bean"  uri = "/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix = "html"  uri = "/WEB-INF/struts-html.tld" %>
<%@ taglib prefix = "util"  uri = "/WEB-INF/common-tags.tld" %>
<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %>
<% response.addHeader("Cache-Control","no-cache"); %>
<util:checkURL/>

<%-- Get data from the properties file and set it into the pageContext --%>
<util:set name = "CommonProductName">
    <bean:message 
     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
     key = "internal.common.product.name"/>
</util:set>
<html:html locale = "true">
<head>
<title>
    <bean:message
     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>"
     key = "start.window.title"
     arg0 = "<%= request.getServerName() %>"
     arg1 = "<%= pageContext.getAttribute("CommonProductName")
                                                           .toString() %>"/>
</title>
<script src = "js/common.js"></script>
<script src = "js/login.js"></script>
<link rel = "stylesheet" type = "text/css" href = "css/common.css">
</head>

<%-- Create JavaScript to open the login screen --%>
<util:set name = "FnOpenLogin">
    openLoginScreen('<util:rewrite action = "login"/>',GoLoginBtn)
</util:set>
<%-- <body style = "background:lightcyan"
 onLoad = "<%= pageContext.getAttribute("FnOpenLogin").toString() %>"> --%>     <%-- 800WA_WEBCONSOLE428 --%>
<body style = "background:lightcyan"
 onLoad = "<%= pageContext.getAttribute("FnOpenLogin").toString() %>" 
 onResize="resetHeader('Start')">                                               <%-- 800WA_WEBCONSOLE428 --%>

    <%-- <div align = "center"> --%>                                            <%-- 800WA_WEBCONSOLE428 --%>
        <div style = "width:100%;margin-top:20px;margin-bottom:10px">
        
            <%-- Get the flag from property file and set it 
                                                      into the pageContext --%>
            <util:set name = "ProductLogoDisplayFlag">
                <bean:message 
                 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                 key = "internal.product.logo.display.flag"/>
            </util:set>
            <%-- <%if(pageContext.getAttribute("ProductLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%> --%><%-- 800WA_WEBCONSOLE496 --%>
                <%-- <util:set name = "ImgProductLogo">
                     <%= Const.PATH_IMAGES %><%= Const.IMAGE_PRODUCT_NAME %>
                </util:set> --%>                                                <%-- 800WA_WEBCONSOLE427 --%>
                
                <util:set name = "ImgProductLogo">
		             <bean:message 
		                 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
		                 key = "internal.product.logo.image.path"/>
		       </util:set>                                                      <%-- 800WA_WEBCONSOLE427 --%>

                <util:set name = "AltProductLogo">                              <%-- 800WA_WEBCONSOLE470 --%>
                    <bean:message
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" 
                     key = "alt.product.logo"/>                                 <%-- 800WA_WEBCONSOLE470 --%>
                </util:set>                                                     <%-- 800WA_WEBCONSOLE470 --%>
		            
                <%-- <html:img border = "0" align = "left" style = "margin-top:14px"
                 src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                           .toString()%>"/> --%><%-- 800WA_WEBCONSOLE428 --%>
                <%-- <html:img border = "0" styleId = "product_logo"
                 src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                           .toString()%>"/> --%><%-- 800WA_WEBCONSOLE428 --%><%-- 800WA_WEBCONSOLE470 --%>
                <%if(pageContext.getAttribute("ProductLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%><%-- 800WA_WEBCONSOLE496 --%>
                <html:img border = "0" styleId = "product_logo"
                 src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                                .toString()%>"
                 alt = "<%= pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE470 --%>

            <%-- <%}%> --%>                                                     <%-- 800WA_WEBCONSOLE428 --%>
             <%}
             else {
             %>                                                                 <%-- 800WA_WEBCONSOLE428 --%>
             <%-- <div id="product_logo">&nbsp;</div> --%>                      <%-- 800WA_WEBCONSOLE428 --%><%-- 800WA_WEBCONSOLE496 --%>
             <html:img border = "0" styleId = "product_logo" style="visibility:hidden"
                 src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                                .toString()%>"
                 alt = "<%= pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
             <% } %>                                                            <%-- 800WA_WEBCONSOLE428 --%>

            <%-- Get the flag from property file and set it 
                                                       into the pageContext --%>
            <util:set name = "CorporateLogoDisplayFlag">
                <bean:message 
                 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                 key = "internal.corporate.logo.display.flag"/>
            </util:set>
            <%-- <%if(pageContext.getAttribute("CorporateLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%> --%><%-- 800WA_WEBCONSOLE496 --%>
               <%-- <util:set name = "ImgCompanyLogo">
                    <%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>
                </util:set> --%>                                                <%-- 800WA_WEBCONSOLE427 --%>
                
                <util:set name = "ImgCompanyLogo">
	                 <bean:message 
	                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	                     key = "internal.corporate.logo.image.path"/>
                </util:set>                                                     <%-- 800WA_WEBCONSOLE427 --%> 
        
                <util:set name = "AltCompanyLogo">
                    <bean:message
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" 
                     key = "alt.company.logo"/>
                </util:set>
                <%-- <html:img align = "right" border = "0"
                 src = "<%= pageContext.getAttribute("ImgCompanyLogo")
                                                                .toString()%>"
                 alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                                                           .toString()%>"/> --%><%-- 800WA_WEBCONSOLE428 --%>
                <%if(pageContext.getAttribute("CorporateLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%><%-- 800WA_WEBCONSOLE496 --%>
                <html:img styleId = "company_logo"
                 src = "<%= pageContext.getAttribute("ImgCompanyLogo")
                                                                .toString()%>"
                 alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                                                                .toString()%>"/>
            <%-- <%}%> --%>                                                     <%-- 800WA_WEBCONSOLE428 --%>
             <%}
             else {
             %>                                                                 <%-- 800WA_WEBCONSOLE428 --%>
             <%-- <div id="company_logo">&nbsp;</div> --%>                      <%-- 800WA_WEBCONSOLE428 --%><%-- 800WA_WEBCONSOLE496 --%>
             <html:img styleId = "company_logo" style="visibility:hidden"
                 src = "<%= pageContext.getAttribute("ImgCompanyLogo")
                                                                .toString()%>"
                 alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
             <% } %>                                                            <%-- 800WA_WEBCONSOLE428 --%>
        </div>

        <%-- <hr> --%>                                                          <%-- 800WA_WEBCONSOLE428 --%>
      
        <div align = "center" class="start_title">                              <%-- 800WA_WEBCONSOLE428 --%>

        <%-- <div class = "small" style = "margin-top:20px"> --%>               <%-- 800WA_WEBCONSOLE428 --%>
        <div class = "small" style = "margin-top:20px" id="start-Msg">          <%-- 800WA_WEBCONSOLE428 --%>
             <bean:message
              bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>"
              key = "start.message"/>
        </div>

        <%-- <div style = "margin-top:20px"> --%>                               <%-- 800WA_WEBCONSOLE428 --%>
        <div style = "margin-top:20px" id="start-Btn">                          <%-- 800WA_WEBCONSOLE428 --%>
            <html:button property = "GoLoginBtn"
             tabindex = "1" styleClass = "small" 
             onclick = "<%= pageContext.getAttribute("FnOpenLogin")
                                                                 .toString()%>">
                <bean:message
                 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>"
                 key = "start.login.button"/>
            </html:button>
        </div>
        <%-- <div class = "small" style = "margin-top:100px"> --%>              <% // 800WA_WEBCONSOLE119  %><%-- 800WA_WEBCONSOLE428 --%>
        <div class = "small" style = "margin-top:100px" id="start-CopyRight">   <%-- 800WA_WEBCONSOLE428 --%>
            <bean:message key = "internal.common.copyright"
             bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" />           <% // 800WA_WEBCONSOLE119  %>
        </div>                                                                  <% // 800WA_WEBCONSOLE119  %>
    </div>
    <hr class="start-hr" id="start-hr">                                         <%-- 800WA_WEBCONSOLE428 --%>
</body>
<script>                                                                        <%-- 800WA_WEBCONSOLE428 --%>
    resetHeader('Start');                                                       <%-- 800WA_WEBCONSOLE428 --%>
</script>                                                                       <%-- 800WA_WEBCONSOLE428 --%>
</html:html>
