<%-- 
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd. 
 Title     : ServerConductor WebConsole 
 Version   : 08-00 
 Name      : agentRegistHeader.jsp
 Date      : 2006/05/29
 Author    : Sukumaran.R
--%> 

<!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/>

<%-- Set the  product logo display flag as a page 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>

<%-- Set the path to product Logo as a page attribute. --%>
 <%-- <util:set name = "ProductLogo">												
	<util:sanitize>																						
	    <%= Const.PATH_IMAGES %><%= Const.IMAGE_PRODUCT_NAME %>
   </util:sanitize>																					
</util:set> --%>																<%-- 800WA_WEBCONSOLE414 --%>

<util:set name = "ProductLogo">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.product.logo.image.path"/>
</util:set>                                                                     <%-- 800WA_WEBCONSOLE414 --%>

<%-- Set the corporate logo diaplay flag as a page 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>

<%-- Set the path to corporate logo as a page attribute. --%>
 <%-- <util:set name = "CorporateLogo">
	<util:sanitize>
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>
	</util:sanitize>
</util:set>  --%>																<%-- 800WA_WEBCONSOLE414 --%>

<util:set name = "CorporateLogo">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
	key = "internal.corporate.logo.image.path"/>
</util:set>																		<%-- 800WA_WEBCONSOLE414 --%>

<%-- Set the alt property of corporate logo as a page attribute. --%>
<util:set name = "AltCorporateLogo">
	<util:sanitize>
	<bean:message bundle = '<%= Const.MESSAGE_RESOURCES_KEY_ALT %>' 
		key = "alt.company.logo"/>
	</util:sanitize>
</util:set>

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


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

<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>
<%--    <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 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{                                                      
                     %> <%-- <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 --%>
                     <%}%>                                                      <%-- 800WA_WEBCONSOLE404 --%>


			<%																										
//				    if (l_stProductLogoDisplayFlag.equals(		     			// 800WA_WEBCONSOLE404
//					    Const.ATTRIBUTE_DISPLAY_FLAG_ON)){						// 800WA_WEBCONSOLE404
			    %>
<%--				    <html:img														
					         src = '<%= pageContext.getAttribute("ProductLogo").
					                toString() %>' 
					         border = "0"
					    />	--%>												<%-- 800WA_WEBCONSOLE404 --%>
					    
				<%																	
//				    }	                                     					// 800WA_WEBCONSOLE404
//		      		else                                                        //800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
//		      		{                                                           //800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
		     	%>
			      	<%--	<td>&nbsp</td>    --%>                              <% //800WA_WEBCONSOLE263 %> <% //800WA_WEBCONSOLE283 %> <%-- 800WA_WEBCONSOLE404 --%>
			      	<%--    &nbsp	--%> 										<% //800WA_WEBCONSOLE283 %> <% //800WA_WEBCONSOLE404 %>
		      	<%                                                              // 800WA_WEBCONSOLE263 
//		      	    }                                                           // 800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
		      	%>                                                              <% //800WA_WEBCONSOLE263 %>


				  <%if(l_stCorporateLogoDisplayFlag.equals(
                         Const.ATTRIBUTE_DISPLAY_FLAG_ON)){%>                   <%-- 800WA_WEBCONSOLE404 --%>
                         <html:img 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 styleId = "company_logo" style="visibility:hidden"
                         src = "<%=pageContext.getAttribute("CorporateLogo")
                                                               .toString()%>"   
                         alt = "<%=pageContext.getAttribute("AltCorporateLogo")
                                                              .toString()%>" /> <%-- 800WA_WEBCONSOLE496 --%>
                     <% } %>                                                    <%-- 800WA_WEBCONSOLE404 --%>
                 </div>    
				  <div class="page_title">                                      <%-- 800WA_WEBCONSOLE404 --%>
                     <bean:message 
                         bundle = "<%=Const.MESSAGE_RESOURCES_KEY_RGTAGT%>"    
                         key = "regist.agent.header.window.name" />    
                 </div>															<%-- 800WA_WEBCONSOLE404 --%>




<%--		<br>			--%>												<%-- 800WA_WEBCONSOLE404 --%>
<%--			<span class = "large">		--%>								<%-- 800WA_WEBCONSOLE404 --%>
<%--			<util:sanitize>
					<bean:message bundle = 
					               '<%= Const.MESSAGE_RESOURCES_KEY_RGTAGT %>'
						key = "regist.agent.header.window.name" />		--%>	<%-- 800WA_WEBCONSOLE404 --%>
<%--			</util:sanitize>		--%>									<%-- 800WA_WEBCONSOLE404 --%>
<%--			</span>			--%>											<%-- 800WA_WEBCONSOLE404 --%>
<%--		</td>			--%>												<%-- 800WA_WEBCONSOLE404 --%>

<%--   	    <td align = "right">		--%>									<%-- 800WA_WEBCONSOLE404 --%>
				<% 
//				    if (l_stCorporateLogoDisplayFlag.equals(                    // 800WA_WEBCONSOLE404
//					                 Const.ATTRIBUTE_DISPLAY_FLAG_ON))          // 800WA_WEBCONSOLE404
//					{                                                           // 800WA_WEBCONSOLE404
				%>																<%-- 800WA_WEBCONSOLE404 --%>
<%--				<html:img 
					    border = "0"
					    src = '<%= pageContext.getAttribute("CorporateLogo")
														    .toString() %>' 
					    alt = '<%= pageContext.getAttribute("AltCorporateLogo")
                                                            .toString() %>'/>--%><%-- 800WA_WEBCONSOLE404 --%>
				<%
//				    }
//		      		else                                                        //800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
//		      		{                                                           //800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
		     	%>																<%-- 800WA_WEBCONSOLE404 --%>
			      	<%--	<td>&nbsp</td>    --%>                              <% //800WA_WEBCONSOLE263 %> <% //800WA_WEBCONSOLE283 %>	<%-- 800WA_WEBCONSOLE404 --%>
			      	<%--    &nbsp	 --%>										<% //800WA_WEBCONSOLE283 %><%-- 800WA_WEBCONSOLE404 --%>
		      	<%                                                              //800WA_WEBCONSOLE263
//		      	    }                                                           //800WA_WEBCONSOLE263 // 800WA_WEBCONSOLE404
		      	%>                                                              <% //800WA_WEBCONSOLE263 %>
<%--		</td>			--%>												<%-- 800WA_WEBCONSOLE404 --%>
<%--	</tr>				--%>												<%-- 800WA_WEBCONSOLE404 --%>
<%--	</table> 			--%>												<%-- 800WA_WEBCONSOLE404 --%>
		</body>
</html:html>