 <%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : hostDetail.jsp
 Date      : 2006/04/12
 Author    : Amruth Rajagopal.V
 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %>
<%@ page errorPage="errorDialog.jsp"%> 
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const"%>
<%@ taglib prefix = "table" uri = "/WEB-INF/table.tld" %>
<%@ taglib prefix = "html"  uri = "/WEB-INF/struts-html.tld" %>
<%@ taglib prefix = "bean" uri = "/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix = "util" uri = "/WEB-INF/common-tags.tld" %>
<% response.addHeader("Cache-Control","no-cache"); %>
<util:checkURL/> 
<%-- <script src= "js/commmon.js"></script> --%>                                      <%-- 800WA_WEBCONSOLE125 --%>      <script src= "js/common.js"></script>                                            <%-- 800WA_WEBCONSOLE125 --%>
<%-- for host operation--%>
<%
   String l_stRef = request.getParameter("ref");
   session.setAttribute(Const.ATTRIBUTE_SESSION_HOST_CLIMB_TRAIL, 
			request.getParameter("climbTrail"));

   if(l_stRef!=null)
   { 
     if(l_stRef.equals("true"))
     {
	// out.write("<script>window.parent.location.href='host.do';</script>");	// 800WA_WEBCONSOLE302
	   out.write("<script>parent.hostList.location.reload();</script>");		// 800WA_WEBCONSOLE302
     }
   }
   else
   {
%>
<%-- Get instance of DisplayDetailBean in page scope--%>
<jsp:useBean id = "displayDetailBean" 
class = "JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.DisplayDetailBean"/>
<html:html locale = "true">
  <head>																		<%// 800WA_WEBCONSOLE359 %>
      <link rel = "stylesheet" type = "text/css" href = "css/header.css">       <%// 800WA_WEBCONSOLE359 %>
      <link rel = "stylesheet" type = "text/css" href = "css/common.css"> 		<%// 800WA_WEBCONSOLE359 %>
      <script src= "js/common.js"></script>                                     <%// 800WA_WEBCONSOLE359 %>
  </head>																		<%// 800WA_WEBCONSOLE359 %>
  <%-- <body> --%>                                                              <%// 800WA_WEBCONSOLE445 %>
  <body onclick = "releaseSelection()">                                         <%// 800WA_WEBCONSOLE445 %>
    <%--Displaying the detailed data in the host management screen using 
                                                      table tag--%>
      <form method="post">
<util:set name = "DetailDisplayCheckBox">
className=JP.co.Hitachi.soft.System_Manager.webconsole.common.DataDecoratorClass,
methodName=getInput,name=nodeId,type=checkbox
</util:set>
<util:set name = "imageUrl">                                                       <%// 800WA_WEBCONSOLE032 %>
className=JP.co.Hitachi.soft.System_Manager.webconsole.common.DataDecoratorClass,  <%// 800WA_WEBCONSOLE032 %>
methodName=getAgentUrl                                                             <%// 800WA_WEBCONSOLE032 %> 
</util:set>                                                                        <%// 800WA_WEBCONSOLE032 %> 
     <table:table scope = "requestscope"  headerData = "tableHeader"  
           detailData = "tableContent" name = "DisplayDetailBean"  
           border = "1" cellpadding = "2" cellspacing = "0"  
           requestURI = "DisplayDetailAction.do" >
           <%-- for the checkbox--%>
       <table:column property = "Node Id" title = "&nbsp;" 
		decorator = '<%=pageContext.getAttribute("DetailDisplayCheckBox")
		.toString()%>'/>
	        <%--for computer name column--%>
	       <util:set name = "hostdetailcomputername">
	       <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_HOST%>" 
	             key = "host.detail.computer.name"/>
           </util:set>
           <%--for host name column--%>
	   <%// <table:column title="Agent Name"%>                                     <%// 800WA_WEBCONSOLE118 %> 
	    <%-- <table:column                                                              
	        property = '<%= pageContext.getAttribute("hostdetailcomputername")%>
	                                                   <%// .toString().trim()%>' 
		    decorator = '<%= pageContext.getAttribute("imageUrl").toString() %>' /> --%> <%// 800WA_WEBCONSOLE032 %><%// 800WA_WEBCONSOLE118 %>
		<%-- <table:column  --%>												<%// 800WA_WEBCONSOLE359 %>
			<table:column  styleClass = "small"                                                       
	        property = '<%= pageContext.getAttribute("hostdetailcomputername")
	                                                    .toString().trim()%>' 
		    decorator = '<%= pageContext.getAttribute("imageUrl").toString() %>'/> <%// 800WA_WEBCONSOLE118 %> <%// 800WA_WEBCONSOLE359 %>
	   	   <util:set name = "hostdetailhostname">
	       <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_HOST%>" 
	                key = "host.detail.host.name"/>
           </util:set>
           <%--for Os name column--%>
		<%-- <table:column  --%>												<%// 800WA_WEBCONSOLE359 %>
			<table:column  styleClass = "small"                                                       
	    property = '<%= pageContext.getAttribute("hostdetailhostname")
	                                                    .toString().trim()%>'/>	<%// 800WA_WEBCONSOLE359 %>
           <util:set name = "hostdetailosname">
	       <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_HOST%>" 
	                                            key = "host.detail.os.name"/>
           </util:set>
      <%--for unconfirmed alert column--%>
		<%-- <table:column  --%>												<%// 800WA_WEBCONSOLE359 %>
			<table:column  styleClass = "small"                                                       
	    property = '<%= pageContext.getAttribute("hostdetailosname")
	                                             .toString().trim()%>'/>		<%// 800WA_WEBCONSOLE359 %>
           <util:set name = "hostdetailunconfirmedalert">
	       <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_HOST%>" 
	            key = "host.detail.unconfirmed.alert"/>
           </util:set>
     <%--for power control column--%>
		<%-- <table:column  --%>												<%// 800WA_WEBCONSOLE359 %>
			<table:column  styleClass = "small"                                                       
	    property = '<%= pageContext.getAttribute("hostdetailunconfirmedalert")
	                                           .toString().trim()%>'/>			<%// 800WA_WEBCONSOLE359 %>
           <util:set name = "hostdetailpowersupplycontrol">
	       <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_HOST%>" 
	            key = "host.detail.power.supply.control"/>
           </util:set>
		<%-- <table:column  --%>												<%// 800WA_WEBCONSOLE359 %>
			<table:column  styleClass = "small"                                                       
	    property = '<%= pageContext.getAttribute("hostdetailpowersupplycontrol")
	                                                   .toString().trim()%>'/>	<%// 800WA_WEBCONSOLE359 %>
	 </table:table>
	 	<input type="hidden" name="hostOperationCode" type="text"/>
	 <form>
 </body>
</html:html>

<%

}
%>
 