<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : loginHeader.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/>

<html:html locale = "true">
<head>
<title></title>
<script src = "js/common.js"></script>
<script src = "js/header.js"></script>
<script src = "js/login.js"></script>
<link rel = "stylesheet" type = "text/css" href = "css/common.css">
<link rel = "stylesheet" type = "text/css" href = "css/header.css"> 
</head>
<body onresize="resetHeader('true')">                                           <%-- 800WA_WEBCONSOLE404 --%>
    <%-- <table border = "0" width = "100%" cellspacing = "0" cellpadding = "0"> --%><%-- 800WA_WEBCONSOLE404 --%>
        <%-- <tr> --%>                                                          <%-- 800WA_WEBCONSOLE404 --%>
            <%-- <td rowspan = "2" valign = "top"> --%>                         <%-- 800WA_WEBCONSOLE408 --%>
            <%-- <td valign = "top"> --%>                                       <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
            <div style="width:100%" id="logo">                                  <%-- 800WA_WEBCONSOLE404 --%>
                <%-- Get the flag from the property file --%>
                <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 --%>
                    <%-- Create image url --%>
                    <%-- <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"
                     src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                           .toString()%>"/> --%><%-- 800WA_WEBCONSOLE404 --%>
                    <%-- <html:img styleId = "product_logo" 
                     src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                            .toString()%>"/>--%><%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE470 --%>
                    <%if(pageContext.getAttribute("ProductLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%><%-- 800WA_WEBCONSOLE496 --%>
                    <html:img styleId = "product_logo"
                     src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                                 .toString()%>"
                     alt = "<%= pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE470 --%>
                <%}
                else {%>                                                        <%-- 800WA_WEBCONSOLE408 --%>
                <%-- <div> <br><br><br> </div> --%>                             <%-- 800WA_WEBCONSOLE404 --%>
                    <%-- <div id="product_logo">&nbsp;</div> --%>               <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE496 --%>
                    <html:img styleId = "product_logo" style="visibility:hidden"
                     src = "<%= pageContext.getAttribute("ImgProductLogo")
                                                                 .toString()%>"
                     alt = "<%= pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
                <%}%>                                                           <%-- 800WA_WEBCONSOLE408 --%>
                <%-- <div class = "large">
                    <bean:message
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>" 
                     key = "login.header.window.name" 
                     arg0 = "<%= request.getServerName()%>"/>
                </div> --%>                                                     <%-- 800WA_WEBCONSOLE408 --%>
            <%-- </td> --%>                                                     <%-- 800WA_WEBCONSOLE404 --%>
            
            <%-- <td align = "right"> --%>                                      <%-- 800WA_WEBCONSOLE404 --%>
                <%-- Get the flag from the property file --%>
                <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 --%>
                    <%-- Create image url --%>
                   <%-- <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_WEBCONSOLE404 --%>
                    <%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_WEBCONSOLE404 --%>
                <%}
                else {%>                                                        <%-- 800WA_WEBCONSOLE408 --%>
                <%-- <div> <br><br><br></div> --%>                              <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
                     <%-- <div id="company_logo">&nbsp;</div> --%>              <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE496 --%>
                    <html:img styleId = "company_logo" style="visibility:hidden"
                     src = "<%= pageContext.getAttribute("ImgCompanyLogo")
                                                                .toString()%>"
                     alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
                <%}%>
            </div>                                                              <%-- 800WA_WEBCONSOLE404 --%>
            <%-- </td> --%>                                                     <%-- 800WA_WEBCONSOLE404 --%>
        <%-- </tr> --%>                                                         <%-- 800WA_WEBCONSOLE404 --%>
        <%-- <tr> --%>                                                          <%-- 800WA_WEBCONSOLE404 --%>
            <%-- <td class = "large"> --%>                                      <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
                <%-- <bean:message
                bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>"
                key = "login.header.window.name" 
                arg0 = "<%= request.getServerName()%>"/> --%>                   <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
            <%-- </td> --%>                                                     <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
            <%-- <td align = "right"> --%>                                      <%-- 800WA_WEBCONSOLE404 --%>
                <%-- Create JavaScript to open help --%>
                 <%-- <div  id="menuTable" onresize="resetHeader('true')"> --%> <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE428 --%>
                 <div  style="width:100%" id="menuTable" onresize="resetHeader('true')"><%-- 800WA_WEBCONSOLE428 --%>
                     <table width="100%" id="menu"><tr><td class="page_title">  <%-- 800WA_WEBCONSOLE404 --%>
                     <bean:message
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>"
                     key = "login.header.window.name" 
                     arg0 = "<%= request.getServerName()%>"/>                   <%-- 800WA_WEBCONSOLE404 --%>
                     </td><td align="right">                                    <%-- 800WA_WEBCONSOLE404 --%>
                <util:set name = "FnOpenHelp">
                    openHelp(
                    '<util:rewrite action = "loginhelp"/>',
                    '<bean:message 
                      bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                      key = "internal.login.header.help.url"/>',
                    '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS%>',
                    '<%= request.getSession().getId() %>help');                 <%-- 800WA_WEBCONSOLE158 --%>
                </util:set>
                <html:link href = "#" styleClass = "small"
                 onclick = "<%= pageContext.getAttribute("FnOpenHelp")
                                                                 .toString()%>">
                    <bean:message
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_LOGIN%>" 
                     key = "login.header.help"/>
                </html:link>
                     </td>
                     </tr>
                     </table>
                 </div>
            
                <%-- Get the flag from the property file --%>
                <%-- <util:set name = "CorporateLogoDisplayFlag">
                    <bean:message 
                     bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                     key = "internal.corporate.logo.display.flag"/>
                </util:set> --%>                                                <%-- 800WA_WEBCONSOLE404 --%>
                <%-- <%if(pageContext.getAttribute("CorporateLogoDisplayFlag")
                                    .equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%> --%><%-- 800WA_WEBCONSOLE404 --%>
                    <%-- Create image url --%>
                    <%-- <util:set name = "ImgCompanyLogo">
                         <%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>
                    </util:set> --%>                                            <%-- 800WA_WEBCONSOLE404 --%>
                    <%-- <util:set name = "AltCompanyLogo">
                        <bean:message
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" 
                         key = "alt.company.logo"/>
                    </util:set> --%>                                            <%-- 800WA_WEBCONSOLE404 --%>
                    <%-- <html:img align = "right" border = "0"
                     src = "<%= pageContext.getAttribute("ImgCompanyLogo")
                                                                .toString()%>"
                     alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                                                                .toString()%>"/> --%><%-- 800WA_WEBCONSOLE404 --%>
                <%-- <%}
                else {%> --%>                                                   <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
                <%-- <div> <br><br><br></div> --%>                              <%-- 800WA_WEBCONSOLE408 --%><%-- 800WA_WEBCONSOLE404 --%>
                <%-- <%}%> --%>                                                 <%-- 800WA_WEBCONSOLE404 --%>
                <%-- Create JavaScript to open help --%>
                <util:set name = "FnOpenHelp">
                    openHelp(
                    '<util:rewrite action = "loginhelp"/>',
                    '<bean:message 
                      bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                      key = "internal.login.header.help.url"/>',
                    '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS%>',
                    '<%= request.getSession().getId() %>help');                 <%-- 800WA_WEBCONSOLE158 --%>
                </util:set>
<script>                                                                        <%-- 800WA_WEBCONSOLE404 --%>
resetHeader('true') ;                                                             <%-- 800WA_WEBCONSOLE404 --%>
</script>                                                                       <%-- 800WA_WEBCONSOLE404 --%>
</body>
</html:html>
