<%-- 
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd. 
 Title     : ServerConductor WebConsole 
 Version   : 08-00 
 Name      : groupEditHeader.jsp 
 Date      : 2006/04/10 
 Author    : Sundari Sasindran 
--%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
  
<%@ page errorPage = "errorDialog.jsp"%>
<%@ page language = "java"%>
<%@ 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" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const" %>
<% response.addHeader("Cache-Control","no-cache"); %>
<util:checkURL/> 
 
<jsp:useBean scope = "session" id = "GroupCreateOrEditBean" class =
 "JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.GroupCreateOrEditBean" 
 />	                                                                            <%-- 800WA_WEBCONSOLE243 --%> 
 
<%-- Get data from the InternalProperties file and set it into the pageContext
     implicit object as an attribute" --%>
<util:set name = "ProductLogoDisplayFlag">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>"
	 key = "internal.product.logo.display.flag"/>
</util:set>

<%-- Get data from the InternalProperties file and set it into the pageContext
     implicit object as an attribute" --%>
<util:set name = "CommonProductName">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>"
	 key = "internal.common.product.name"/>
</util:set>

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

<%-- Get the company logo image set it into the pageContext 
     implicit object as an attribute" --%>
<%-- <util:set name = "CorporateLogo">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>
</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 --%>

<%-- Get the product logo image set it into the pageContext
     implicit object as an attribute" --%>
<%-- <util:set name = "ProductLogo">
	<%= Const.PATH_IMAGES %><%= Const.IMAGE_PRODUCT_NAME %>
</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 --%>

<util:set name = "AltCompanyLogo">
      <bean:message bundle = "<%=Const.MESSAGE_RESOURCES_KEY_ALT%>"  key = "alt.company.logo"/>
</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 the Display flag from the  attribute value of pageContext
	String l_stProductLogoDisplayFlag = 
		(String)pageContext.getAttribute("ProductLogoDisplayFlag");
    String l_stCorporateLogoDisplayFlag = 
    	(String)pageContext.getAttribute("CorporateLogoDisplayFlag"); 
    String l_stGroupName =                                                      // 800WA_WEBCONSOLE273
           GroupCreateOrEditBean.getGroupName().replaceAll(" ","&nbsp;");       // 800WA_WEBCONSOLE273	 
%>

<html:html locale = "true"> 
	<head>
 		<link rel = stylesheet type = text/css href = css/common.css>
		<link rel = stylesheet type = text/css href = css/header.css>
                <script src = "js/common.js"></script>
	</head>
	<body>
<%--	<table border = "0" cellpadding = "0" width = "100%">   --%>            <%-- 800WA_WEBCONSOLE404 --%>
<%--		<tr>  --%>                                                          <%-- 800WA_WEBCONSOLE404 --%>
			        <div style="width:100%" id="logo">                          <%-- 800WA_WEBCONSOLE404 --%>
       				<% if(l_stProductLogoDisplayFlag.equals(
       				                     Const.ATTRIBUTE_DISPLAY_FLAG_ON)){ %>
<%--       			 <td>    --%>                                               <%-- 800WA_WEBCONSOLE404 --%>
<%--           		 <html:img src = "<%= 
              			 pageContext.getAttribute("ProductLogo").toString() %>"  
              			 border = "0"/>      --%>                               <%-- 800WA_WEBCONSOLE404 --%>
<%--           		 </td> --%>                                                 <%-- 800WA_WEBCONSOLE404 --%>
<%--           		 <html:img styleId = "product_logo" 
              		    src = "<%= 
                        pageContext.getAttribute("ProductLogo").toString() %>" 
					    border = "0"/>                                      --%><%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE470 --%>
			        <html:img styleId = "product_logo" border = "0"
			           src = "<%= pageContext.getAttribute("ProductLogo")
			                                                   .toString() %>"
			           alt = "<%= pageContext.getAttribute("AltProductLogo")
			                                                   .toString() %>"/><%-- 800WA_WEBCONSOLE470 --%>
      				<%}
      				else {%>
<%--		      		<td>&nbsp</td>      --%>                                <%-- 800WA_WEBCONSOLE404 --%>
		      			<%-- <div id="product_logo">&nbsp;</div> --%>           <%-- 800WA_WEBCONSOLE404 --%><%-- 800WA_WEBCONSOLE496 --%>
		      			<html:img styleId = "product_logo" border = "0"
		      			style="visibility:hidden"
			           src = "<%= pageContext.getAttribute("ProductLogo")
			                                                   .toString() %>"
			           alt = "<%= pageContext.getAttribute("AltProductLogo")
			                                                   .toString() %>"/><%-- 800WA_WEBCONSOLE496 --%>
		      		<%}%>
 				
      				<% if(l_stCorporateLogoDisplayFlag.equals(
      				                    Const.ATTRIBUTE_DISPLAY_FLAG_ON)) { %>
<%--      				<td rowspan = 2>        --%>                            <%-- 800WA_WEBCONSOLE404 --%>
<%--           			<html:img src = "<%= 
              			 pageContext.getAttribute("CorporateLogo").toString()%>" 
              			 border = "0" styleClass = "leftTurn"
              			 alt = "<%= pageContext.getAttribute("AltCompanyLogo")
                            .toString()%>"/>  --%>                              <%-- 800WA_WEBCONSOLE404 --%>
                         <html:img styleId = "company_logo" 
                         src = "<%= 
					     pageContext.getAttribute("CorporateLogo").toString() %>" 					
						 alt = "<%= pageContext.getAttribute("AltCompanyLogo")
	                            .toString()%>"/>                                <%-- 800WA_WEBCONSOLE404 --%>
<%--              		 </td>     --%>                                         <%-- 800WA_WEBCONSOLE404 --%>
      				<%}
      				else {%>
<%-- 		      		<td>&nbsp</td>     --%>                                 <%-- 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("AltCompanyLogo")
	                            .toString()%>"/>                                <%-- 800WA_WEBCONSOLE496 --%>
			      	<%}%>
      				</div>                                                      <%-- 800WA_WEBCONSOLE404 --%>
<%--		</tr>         --%>                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--		<tr>          --%>                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--			<td>      --%>                                                  <%-- 800WA_WEBCONSOLE404 --%>
<%--				<span class = "large">  --%>                                <%-- 800WA_WEBCONSOLE404 --%>
					<div class="page_title">                                    <%-- 800WA_WEBCONSOLE404 --%>
						<bean:message 
						 bundle = "<%= Const.MESSAGE_RESOURCES_KEY_GROUP %>" 
						 key = "group.name.edit.header.window.name" 
						 arg0 = 
						"<%= l_stGroupName %>" />                               <%-- 800WA_WEBCONSOLE243 --%>	 <%-- 800WA_WEBCONSOLE273 --%>  
<%--				</span>   --%>                                              <%-- 800WA_WEBCONSOLE404 --%>
<%--			</td>         --%>                                              <%-- 800WA_WEBCONSOLE404 --%>
<%--		</tr>             --%>                                              <%-- 800WA_WEBCONSOLE404 --%>
<%--	</table>              --%>                                              <%-- 800WA_WEBCONSOLE404 --%>
	</body>
</html:html>