<%-- 
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd. 
 Title     : ServerConductor WebConsole 
 Version   : 08-00 
 Name      : inventoryHeader.jsp 
 Date      : 2006/04/12 
 Author    : Praveen P
--%> 
<!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"%>
<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %> 
<%@ 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" %>
<%-- <% response.addHeader("Cache-control","NO CACHE"); %> --%>					<% // 800WA_WEBCONSOLE308 %>
<% response.addHeader("Cache-control","no-cache"); %> 							<% // 800WA_WEBCONSOLE308 %>
<util:checkURL/>

<%-- Get ProductLogoDisplayFlag from the InternalProperties file and set it 
into the pageContext implicit object as an attribute --%>
<util:set name = "ProductLogoDisplayFlag">
	<util:sanitize>
	<bean:message bundle = '<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>' 
		key = "internal.product.logo.display.flag"/>
	</util:sanitize>
</util:set>

<%-- Get ProductLogo from the InternalProperties file and set it into the 
pageContext implicit object as an attribute --%>
<util:set name = "ProductLogo">
	<util:sanitize>
	<%-- <%= Const.PATH_IMAGES %><%= Const.IMAGE_PRODUCT_NAME %> --%>			<% // 800WA_WEBCONSOLE414 %>
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.product.logo.image.path"/>									<% // 800WA_WEBCONSOLE414 %>
	</util:sanitize>
</util:set>

<util:set name = "AltProductLogo">                                              <%-- 800WA_WEBCONSOLE470 --%>
	<bean:message key = "alt.product.logo"
	 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT %>" />                       <%-- 800WA_WEBCONSOLE470 --%>
</util:set>                                                                     <%-- 800WA_WEBCONSOLE470 --%>

<%-- Get CorporateLogoDisplayFlag from the InternalProperties file and set it 
into the pageContext implicit object as an attribute --%>
<util:set name = "CorporateLogoDisplayFlag">
	<util:sanitize>
	<bean:message bundle = '<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>' key = 
		"internal.corporate.logo.display.flag"/>
	</util:sanitize>
</util:set>

<%-- Get CorporateLogo from the InternalProperties file and set it into the 
pageContext implicit object as an attribute --%>
<util:set name = "CorporateLogo">
	<util:sanitize>
	<%-- <%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %> --%>			<% // 800WA_WEBCONSOLE414 %>
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.corporate.logo.image.path"/>								<% // 800WA_WEBCONSOLE414 %>
	</util:sanitize>
</util:set>

<util:set name = "AltCorporateLogo">
	<util:sanitize>
	<bean:message bundle = '<%= Const.MESSAGE_RESOURCES_KEY_ALT %>' 
		key = "alt.company.logo"/>
	</util:sanitize>
</util:set>

<%-- Get url of help in inventory header from the InternalProperties file and 
set it into the pageContext implicit object as an attribute --%>
<util:set name = "InventoryHelp">
	<util:sanitize>
	<bean:message bundle = '<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>' key = 
		"internal.inventory.header.help.url"/>
	</util:sanitize>
</util:set>

<util:set name = "HelpActionClass">
	<util:rewrite action = "help" />
</util:set>

<util:set name = "FnOpenHelp">
	openHelp('<%= pageContext.getAttribute("HelpActionClass").toString() %>',
    '<%= pageContext.getAttribute("InventoryHelp").toString() %>',
    '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS %>',								<% // 800WA_WEBCONSOLE158 %>				
    '<%= request.getSession().getId() %>help');									<% // 800WA_WEBCONSOLE158 %>
</util:set>

<%
    String l_stProductLogoDisplayFlag = pageContext
    	.getAttribute("ProductLogoDisplayFlag").toString();
    String l_stCorporateLogoDisplayFlag = pageContext
    	.getAttribute("CorporateLogoDisplayFlag").toString();
	String agentName = (String) request.getParameter("agentName");
%>

<html:html locale = "true">
	<head>
		<link rel = "stylesheet" type = "text/css" href = "css/header.css">
		<link rel = "stylesheet" type = "text/css" href = "css/common.css">
		<script src = "js/header.js"></script>
		<script src = "js/common.js"></script>
	</head>
	<%-- <body> --%>															<% // 800WA_WEBCONSOLE404 %>
	<%-- <body onResize = "resetHeader(true)"> --%>							    <% // 800WA_WEBCONSOLE404 %><% // 800WA_WEBCONSOLE445 %>
	<body onResize = "resetHeader(true)" onclick = "releaseSelection()">        <% // 800WA_WEBCONSOLE445 %>
	<%-- <table border = "0" width = "100%" cellspacing = "0" cellpadding = "0"> --%> <% // 800WA_WEBCONSOLE404 %>
	<%-- <tr> --%>																<% // 800WA_WEBCONSOLE404 %>
	<%--	<td align = "left"> --%>											<% // 800WA_WEBCONSOLE404 %>
	<div style="width:100%" id="logo">                             				<% // 800WA_WEBCONSOLE404 %>
				<% if (l_stProductLogoDisplayFlag.equals(
					Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%>
					<%-- <html:img src = '<%= pageContext.getAttribute("ProductLogo")
						.toString() %>' border = "0"/> --%>						<% // 800WA_WEBCONSOLE404 %>
                    <%-- <html:img styleId = "product_logo" src = 
                         	"<%=pageContext.getAttribute("ProductLogo")
                         	.toString()%>" />     							--%><% // 800WA_WEBCONSOLE404 %><%-- 800WA_WEBCONSOLE470 --%>
                         <html:img styleId = "product_logo" 
                          src = "<%=pageContext.getAttribute("ProductLogo")
                                                                 .toString()%>" 
                          alt = "<%=pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE470 --%>
                                                                
				<% } else {                                                     // 800WA_WEBCONSOLE404
                %> <%-- <div id="product_logo">&nbsp;</div> --%>                <% // 800WA_WEBCONSOLE404 %><%-- 800WA_WEBCONSOLE496 --%>
                <html:img styleId = "product_logo" style="visibility:hidden"
                          src = "<%=pageContext.getAttribute("ProductLogo")
                                                                 .toString()%>" 
                          alt = "<%=pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
				<%}%>
				 
				<%-- <br> --%>													<% // 800WA_WEBCONSOLE404 %>
				<%-- <span class = "large"> --%>								<% // 800WA_WEBCONSOLE404 %>
				<%-- <util:sanitize> --%>										<% // 800WA_WEBCONSOLE404 %>
				<%-- <bean:message bundle = 									<% // 800WA_WEBCONSOLE404 %>
						'<%= Const.MESSAGE_RESOURCES_KEY_INVENTORY %>'			<% // 800WA_WEBCONSOLE404 %>
						key = "inventory.header.window.name" 					<% // 800WA_WEBCONSOLE404 %>
						arg0 = "<%= agentName %>"/> --%>						<% // 800WA_WEBCONSOLE404 %>
				<%-- </util:sanitize> --%>										<% // 800WA_WEBCONSOLE404 %>
				<%-- </span> --%>												<% // 800WA_WEBCONSOLE404 %>
			<%-- </td> --%>														<% // 800WA_WEBCONSOLE404 %>
			<%-- <td align = "right"> --%>										<% // 800WA_WEBCONSOLE404 %>
				<% if (l_stCorporateLogoDisplayFlag.equals(
					Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%>
					<%-- <html:img border = "0" --%>							<% // 800WA_WEBCONSOLE404 %>
					<html:img border = "0" styleId = "company_logo"
					src = '<%= pageContext.getAttribute("CorporateLogo")
																 .toString() %>' 
					alt = '<%= pageContext.getAttribute("AltCorporateLogo")
                                                               .toString() %>'/><% // 800WA_WEBCONSOLE404 %>

				<% } else { %>													<% // 800WA_WEBCONSOLE404 %>
                <%-- <div id="company_logo">&nbsp;</div> --%>                   <% // 800WA_WEBCONSOLE404 %><%-- 800WA_WEBCONSOLE496 --%>
                <html:img border = "0" styleId = "company_logo" style="visibility:hidden"
					src = '<%= pageContext.getAttribute("CorporateLogo")
																 .toString() %>' 
					alt = '<%= pageContext.getAttribute("AltCorporateLogo")
                                                               .toString() %>'/><%-- 800WA_WEBCONSOLE496 --%>
				<%}%>
			</div>																<% // 800WA_WEBCONSOLE404 %>
			<%-- <table id = "menuTable" border = "0" 
				width = "700" cellspacing = "0" cellpadding = "0"> --%> 		<% // 800WA_WEBCONSOLE404 %><% // 800WA_WEBCONSOLE428 %>
			<table id = "menuTable" border = "0" 
				width = "100%" cellspacing = "0" cellpadding = "0">				<% // 800WA_WEBCONSOLE428 %>
				<tr><td>														<% // 800WA_WEBCONSOLE404 %>
				<div class="page_title">										<% // 800WA_WEBCONSOLE404 %>
				<util:sanitize>													<% // 800WA_WEBCONSOLE404 %>
				<bean:message bundle = 											
						'<%= Const.MESSAGE_RESOURCES_KEY_INVENTORY %>'			
						key = "inventory.header.window.name" 					
						arg0 = "<%= agentName %>"/>								<% // 800WA_WEBCONSOLE404 %>
				</util:sanitize>												<% // 800WA_WEBCONSOLE404 %>
				</div>															<% // 800WA_WEBCONSOLE404 %>
               <div class="close_button" id="close_button">                     <% // 800WA_WEBCONSOLE404 %>
				<%-- <br> --%>													<% // 800WA_WEBCONSOLE404 %>
				<html:link href = "#" styleClass = "small" onclick = "<%= 
					pageContext.getAttribute("FnOpenHelp").toString() %>">
		            <util:sanitize>
					<bean:message bundle = 
						'<%= Const.MESSAGE_RESOURCES_KEY_INVENTORY %>' 
						key = "inventory.header.help"/>
					</util:sanitize>
				</html:link>
				<html:button property = "Close" onclick = "parent.close()">
					<util:sanitize>
					<bean:message bundle = 
						'<%= Const.MESSAGE_RESOURCES_KEY_INVENTORY %>' 
						key = "inventory.header.close"/>
					</util:sanitize>
				</html:button>		
			</div>																<% // 800WA_WEBCONSOLE404 %>				
			</td>
		</tr> 
		</table>
	</body>
<script>                                                                       <% // 800WA_WEBCONSOLE404 %>    
	resetHeader('false') ;                                                      <% // 800WA_WEBCONSOLE404 %>
</script>                                                                       <% // 800WA_WEBCONSOLE404 %>    
</html:html>