<%--
 Copyright : All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.
 Title     : ServerConductor WebConsole
 Version   : 08-00
 Name      : alert.jsp
 Date      : 2006/04/10
 Author    : Lakshmanan/Bavani C T
 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language = "java" %>
<%@ page errorPage = "errorDialog.jsp" %>
<%@ page import = "java.util.ArrayList"  %>
<%@ page 
	import = 
	"JP.co.Hitachi.soft.System_Manager.webconsole.common.MessageConstant" %>
<%@ page import = "JP.co.Hitachi.soft.System_Manager.webconsole.common.Const"%>
<% response.addHeader("Cache-Control","no-cache"); %>                           <% //800WA_WEBCONSOLE182 %>
<%@ taglib prefix = "html"   uri = "/WEB-INF/struts-html.tld" %>
<%@ taglib prefix = "bean"  uri = "/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix = "table"  uri = "/WEB-INF/table.tld" %>
<%@ taglib prefix = "util"     uri = "/WEB-INF/common-tags.tld" %>
<%@ taglib prefix = "logic" uri = "/WEB-INF/struts-logic.tld"%>                 <% //800WA_WEBCONSOLE372 %>
<%@ page contentType = "text/html; charset = UTF-8" pageEncoding = "UTF-8" %> 
<util:checkURL/> 

<%-- Get product name data value from the InternalProperties file --%>

<util:set name = "ProductName">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
		key = "internal.common.product.name"/>
</util:set>

<html:html locale = "true">
<head>
  <title><bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
  	key = "alert.header.window.title" 
  arg0 = '<%=request.getServerName()%>'
  arg1 = '<%=pageContext.getAttribute("ProductName").toString()%>'/>
  </title>
  <script src = "js/common.js"></script>
  <script src = "js/alert.js"></script>
  <script src = "js/header.js"></script>                                        <% // 800WA_WEBCONSOLE100 %>
   
  
  <link rel = "stylesheet" type = "text/css" href = "css/alert.css">
    <link rel = "stylesheet" type = "text/css" href = "css/common.css">         <% // 800WA_WEBCONSOLE086  %>
  
  <util:set name = "NotificationAlertDeletion">
          	<util:rewrite action = "notificationAlertDeletion"/>
  </util:set>
   <util:set name = "NotificationAlertConfirmation">
            	<util:rewrite action = "notificationAlertConfirmation"/>
  </util:set>
  <script>
  	deletionAction ="<%= pageContext.getAttribute("NotificationAlertDeletion").toString() %>" ;
	confirmAction = "<%= pageContext.getAttribute("NotificationAlertConfirmation").toString() %>" ;
  </script>
</head>
<%--<body onload="document.forms[0].fromYear.focus();">  --%>                   <% // 800WA_WEBCONSOLE113 %> <% // 800WA_WEBCONSOLE404 %>
<body onload="document.forms[0].fromYear.focus();" onresize="resetHeader('NotificationAlert')"> <% // 800WA_WEBCONSOLE404 %>
<%-- Get data from the Form for validation --%>
<util:set name = "validateNotificationAlertForm">
		return validateNotificationAlertForm(this,'<util:rewrite action = "notificationAlertPage"/>');
</util:set>                                                                     <% // 800WA_WEBCONSOLE146 %>
<html:form action = "notificationAlertDataAcquisition" 
   onsubmit = '<%=pageContext.getAttribute("validateNotificationAlertForm")
                                                          .toString()%>'>
<input type  =  "hidden" name  =  "actionType" >
<input type  =  "hidden" name  =  "isPagination" value = "false">                                                           
<%--<table border = "0" cellpadding = "0" width = "100%"> --%>                  <% // 800WA_WEBCONSOLE404 %>
<%--<tr>--%>                                                                    <% // 800WA_WEBCONSOLE404 %>
<%--  <td>--%>                                                                  <% // 800WA_WEBCONSOLE404 %>
<%--    <table width = "100%">--%>                                              <% // 800WA_WEBCONSOLE404 %>
<%--       <tr>--%>                                                             <% // 800WA_WEBCONSOLE404 %>
              <%-- Get data from the InternalProperties file and set it 
               into the pageContext implicit object as an attribute --%>
<div id = "logo" style="width:100%">                                            <% // 800WA_WEBCONSOLE404 %>
                <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 --%>
                  <util:set name = "ImageProductName">
                    <%--<%= Const.PATH_IMAGES %><%=Const.IMAGE_PRODUCT_NAME %>--%><% // 800WA_WEBCONSOLE414 %>
                    <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>" 
                	  key = "internal.product.logo.image.path"/>
                  </util:set>                                                   <% // 800WA_WEBCONSOLE414 %>
                  
                 <util:set name = "AltProductLogo">                             <%-- 800WA_WEBCONSOLE470 --%>
             	   <bean:message key = "alt.product.logo"
             	    bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" />         <%-- 800WA_WEBCONSOLE470 --%>
                 </util:set>                                                    <%-- 800WA_WEBCONSOLE470 --%>
                  
				<%--  <td>  --%>                                                <% // 800WA_WEBCONSOLE404 %>
                <%-- <html:img  src = '<%=pageContext --%>                      <% // 800WA_WEBCONSOLE404 %>
                <%-- <html:img styleId = "product_logo"  src = '<%=pageContext
             .getAttribute("ImageProductName").toString()%>' border = "0"/> --%><% // 800WA_WEBCONSOLE404 %><%-- 800WA_WEBCONSOLE470 --%>
              <%
                   if((pageContext.getAttribute("ProductLogoDisplayFlag"))
                   			.equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON))
                   {
              %>                                                                <%-- 800WA_WEBCONSOLE496 --%>
                <html:img styleId = "product_logo"  border = "0"
                 src = "<%=pageContext.getAttribute("ImageProductName")
                                                                 .toString()%>"
                 alt = "<%=pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE470 --%>
                                                                
                 <%--  </td>  --%>                                              <% // 800WA_WEBCONSOLE404 %>
              <%}
      				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("ImageProductName")
                                                                 .toString()%>"
                      alt = "<%=pageContext.getAttribute("AltProductLogo")
                                                                .toString()%>"/><%-- 800WA_WEBCONSOLE496 --%>
      				<%}%>
      				<%-- Get data from the InternalProperties file and set it 
               into the pageContext implicit object as an attribute" --%>
                 <util:set name = "CorporateLogoDisplayFlag">                   <% // 800WA_WEBCONSOLE065 %>
                 <bean:message bundle =                                         
                 		"<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>"
                     	key = "internal.corporate.logo.display.flag"/>          <% // 800WA_WEBCONSOLE065 %>
                  </util:set>                                                   
               
             <%-- <%
               if(((String)pageContext.getAttribute("CorporateLogoDisplayFlag"))// 800WA_WEBCONSOLE065 
                  			.equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON))
                   {
               %> --%>                                                          <%-- 800WA_WEBCONSOLE496 --%>
               
            <%-- <td rowspan = "2" align = "right"> --%>                        <% // 800WA_WEBCONSOLE404 %>
           <util:set name = "imgSrc">
             <%--<%= Const.PATH_IMAGES %><%= Const.IMAGE_COMPANY_LOGO %>--%>    <% // 800WA_WEBCONSOLE414 %>
          	  <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL %>"
         	  key = "internal.corporate.logo.image.path"/>                     
           </util:set>                                                          <% // 800WA_WEBCONSOLE414 %>
           
           <util:set name = "imgAlt">
             	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALT%>"  
                                              key = "alt.company.logo"/>        <% // 800WA_WEBCONSOLE065 %>
           </util:set>
          <%--   <html:img src = "<%= pageContext.getAttribute("imgSrc")    --%>
          <%
              if(((String)pageContext.getAttribute("CorporateLogoDisplayFlag"))
                  			.equals(Const.ATTRIBUTE_DISPLAY_FLAG_ON))
                    {
          %>                                                                    <%-- 800WA_WEBCONSOLE496 --%>
          <html:img styleId = "company_logo" src = "<%= pageContext.getAttribute("imgSrc") 
            	 .toString() %>" 
            	 alt = "<%= pageContext.getAttribute("imgAlt").toString()%>"
            	 	border = "0" styleClass = "leftTurn"/>                     <%-- <!-- 800WA_WEBCONSOLE065-->  --%> <% // 800WA_WEBCONSOLE300 %> <% // 800WA_WEBCONSOLE404 %>
            	 	                   
            	  <%}
      		else{                                                               // 800WA_WEBCONSOLE065 
					%>
      		  <%-- <td> &nbsp; </td>  --%>                                      <% // 800WA_WEBCONSOLE065 %> <% // 800WA_WEBCONSOLE404 %>
      		  <%-- <div id="company_logo">&nbsp;</div> --%>                     <% // 800WA_WEBCONSOLE404 %><%-- 800WA_WEBCONSOLE496 --%>
      		  <html:img styleId = "company_logo" style="visibility:hidden" 
      		  src = "<%= pageContext.getAttribute("imgSrc").toString() %>" 
            	 alt = "<%= pageContext.getAttribute("imgAlt").toString()%>"
            	 	border = "0" styleClass = "leftTurn"/>                      <%-- 800WA_WEBCONSOLE496 --%>
      		<%}%>                                                               <% // 800WA_WEBCONSOLE065 %>
</div>                                                                          <% // 800WA_WEBCONSOLE404 %>
      <%--   </td>                                                              <% // 800WA_WEBCONSOLE404 %>
       </tr>                                                                    <% // 800WA_WEBCONSOLE404 %>
       <tr>                                                                     <% // 800WA_WEBCONSOLE404 %>
         <td class = "large">    --%>                                           <% // 800WA_WEBCONSOLE404 %>
<div class="page_title">                                                        <% // 800WA_WEBCONSOLE404 %>
         <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>"
         	key = "alert.header.window.name"/> </div> <%--</td>                 <% // 800WA_WEBCONSOLE404 %>
       </tr>                                                                    <% // 800WA_WEBCONSOLE404 %>
       <tr>                                                                     <% // 800WA_WEBCONSOLE404 %>
        <td colspan = "2" align = "right">--%>                                  <% // 800WA_WEBCONSOLE404 %>
        <%-- Create JavaScript to open help --%>
                <util:set name = "FnOpenHelp">
                  openHelp('<util:rewrite action = "help"/>',
                        '<bean:message 
                          bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
                          key = "internal.alert.notify.header.help.url"/>',
                        '<%= Const.ATTRIBUTE_REQUEST_HELP_CONTENTS%>','<%= request.getSession().getId() %>help');                                                                        <% //800WA_WEBCONSOLE158 %>
                        
                </util:set>
                <table  id="menu"  class="close_button"><tr><td align="right">  <% // 800WA_WEBCONSOLE404 %>
                <html:link href = "#" styleClass = "small"
                 onclick = "<%= pageContext.getAttribute("FnOpenHelp")
                                                                 .toString()%>">
                        
                        <bean:message
                         bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
                         key = "alert.header.help"/>
                        
                </html:link>
            <html:button property = "submit" styleClass = "small" 
            	onclick = "parent.close()">                                     <% // 800WA_WEBCONSOLE086  %>
                <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
                	key = "alert.header.close.button"/> 
            </html:button>
         </td>
       </tr>
    </table>
<%--  </td>                                                                     <% // 800WA_WEBCONSOLE404 %>
</tr> --%>                                                                      <% // 800WA_WEBCONSOLE404 %>
<hr id = "menu-hr" class="menu-hr" style="top:87px;"/>                          <% // 800WA_WEBCONSOLE404 %>
<br><br><br>                                                                    <% // 800WA_WEBCONSOLE404 %>

<table  border = "0" cellpadding = "0" width = "100%" 
  onresize="resetHeader('NotificationAlert')">                                  <% // 800WA_WEBCONSOLE404 %>
<tr>                                                                            <% // 800WA_WEBCONSOLE404 %>
  <td>                                                                          <% // 800WA_WEBCONSOLE404 %>

<tr>
<jsp:useBean id = "NotificationAlertBean" scope = "request" 
	class = "JP.co.Hitachi.soft.System_Manager.webconsole.model.bean.NotificationAlertBean"/> 

<td class = "line">
  <%-- <table border = "0" width = "100%" cellspacing = "0" cellpadding = "2"> --%> <% // 800WA_WEBCONSOLE404 %>
  <table id="menuTable" border = "0" width = "100%" cellspacing = "0" 
     cellpadding = "2">                                                         <% // 800WA_WEBCONSOLE404 %>
    <tr align = "center">
      <td>&nbsp;</td>
	   <%-- Get the title value for the year from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
	  <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
	  	key = "alert.common.year.title"/>
	   </td>
      <td>&nbsp;</td>
	   <%-- Get the title value for the month from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.month.title"/>
      </td>
      <td>&nbsp;</td>
	   <%-- Get the title value for the day from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.day.title"/>
      </td>
      <td>&nbsp;</td>
	   <%-- Get the title value for the year from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.year.title"/>
      </td>
      <td>&nbsp;</td>
	   <%-- Get the title value for the month from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
      
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.month.title"/>
      	</td>
      <td>&nbsp;</td>
	   <%-- Get the title value for the day from the alert resources 
	  properties --%>
	  <%-- <td styleClass = "item"> --%>                                        <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
	  <td class = "item">                                                       <% // 800WA_WEBCONSOLE262   %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.day.title"/>
      	</td>
      <%-- <td styleClass="small " rowspan = "6" width = "50%" valign = "bottom" align = "left">
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
        	key = "alert.header.timeout.info"/>                                 <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE262   %>
       </td> --%>
      <%-- <td class="small " rowspan = "6" width = "50%" valign = "bottom" align = "left">
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
        	key = "alert.header.timeout.info"/>                                 <% // 800WA_WEBCONSOLE262   %>
       </td> --%>                                                               <% // 800WA_WEBCONSOLE428   %>
       <td rowspan = "3"> &nbsp; </td>                                          <% // 800WA_WEBCONSOLE428 %> 
    </tr>
    <tr>
      <td nowrap class = "middle">                                              <% // 800WA_WEBCONSOLE086  %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.date"/>
      </td>
      <td>
        <html:select property = "fromYear">
          <html:options collection = "fromYearList" property = "value" 
          	labelProperty = "label"/>
        </html:select>
      </td>
      <td>/</td>
      <td align = "center">
        <html:select property = "fromMonth">
           <html:options collection = "fromMonthList" property = "value" 
           	labelProperty = "label"/>
         </html:select>
      </td>
      <td>/</td>
      <td>
        <html:select property = "fromDay">
           <html:options collection = "fromDayList" property = "value" 
           		labelProperty = "label"/>
        </html:select>
      </td>
      <td>-</td>
      <td>
        <html:select property = "toYear">
          <html:options collection = "toYearList" property = "value" 
          	labelProperty = "label"/>
        </html:select>
      </td>
      <td>/</td>
      <td align = "center">
        <html:select property = "toMonth">
                <html:options collection = "toMonthList" property = "value" 
                	labelProperty = "label"/>
        </html:select>
      </td>
      <td>/</td>
      <td>
        <html:select property = "toDay">
                <html:options collection = "toDayList" property = "value" 
                	labelProperty = "label"/>
        </html:select>
      </td>
    </tr>
    <tr>
      <td class = "middle">                                                     <% // 800WA_WEBCONSOLE086  %>
      
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.host"/>
     </td>
      <td colspan = "11">
        <html:select property = "occurrenceHost">
                <html:options collection = "occurrenceHostList" 
                	property = "value" labelProperty = "label"/>
        </html:select>
      </td>
    </tr>
    <tr>
      <td class = "middle">                                                     <% // 800WA_WEBCONSOLE086  %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.level"/>
      	</td>
      <td colspan = "11">
        <html:select property = "alertLevel">
                <html:options collection = "alertLevelList" property = "value" 
                	labelProperty = "label"/>
        </html:select>
      </td>
    </tr>
    <tr>
      <td class = "middle">                                                     <% // 800WA_WEBCONSOLE086  %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.contents"/>
      	</td>
      <td colspan = "11"><html:text size = "60" maxlength = "150" property = "alertContent"/></td> <% // 800WA_WEBCONSOLE086  %>
       <td  class="small " rowspan = "2" width = "50%" valign = "top" align = "left">  <% //800WA_WEBCONSOLE428 %>
        <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>"        
        	key = "alert.header.timeout.info"/>                                 <% //800WA_WEBCONSOLE428 %>
      </td>                                                                     <% //800WA_WEBCONSOLE428 %>
       </tr>
    <tr>
      <td class = "middle">                                                     <% // 800WA_WEBCONSOLE086  %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.id"/>
      	</td>
      <td colspan = "11">
      <%--<html:text size ="10" maxlength ="6" property = "alertID"/>           <% // 800WA_WEBCONSOLE086  %> <% // 800WA_WEBCONSOLE368  %>--%>
      <html:text size ="10" maxlength ="6" property = "alertID" 
      onblur="removeSelection(this)"/>                                          <% // 800WA_WEBCONSOLE368  %>
      </td>
    </tr>
    <tr>
      <td nowrap class = "middle">                                              <% //800WA_WEBCONSOLE262 %>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.state"/>
       </td>
      <%--<td >
        <html:multibox value = "true" property = "confirmationStatus"/>            
         </td>                                                                  <% //800WA_WEBCONSOLE266 %>
       <td colspan="10" class = "middle">  --%>                                 <% //800WA_WEBCONSOLE205 %> <% //800WA_WEBCONSOLE262 %>
       <td colspan="11" class = "middle">                                       <% //800WA_WEBCONSOLE262 %>
       <html:multibox value = "true" property = "confirmationStatus"/>
      <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
      	key = "alert.common.state.label"/>                                      <% //800WA_WEBCONSOLE205 %>
       </td>                                                                    <% //800WA_WEBCONSOLE205 %>
   		        
      <td align  =  "right">

     <util:set name = "NotificationAlertDataAcquisition">
        	<%-- javascript:m_pageFlag = true; submitForm('<util:rewrite action = "notificationAlertDataAcquisition"/>');	--%> <% // 800WA_WEBCONSOLE170 %>
        	javascript:document.forms[0].action ='<util:rewrite action = "notificationAlertDataAcquisition"/>';	<% // 800WA_WEBCONSOLE170 %>
    </util:set>                                                                 <% // 800WA_WEBCONSOLE146  %>
     <util:set name = "Search">                                                 <% //800WA_WEBCONSOLE303 %>
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
		key = "alert.header.search.button"/>                                    <% //800WA_WEBCONSOLE303 %>
    </util:set>                                                                 <% // 800WA_WEBCONSOLE146  %> <% //800WA_WEBCONSOLE303 %>
      <html:submit property = "submit" onclick = '<%= pageContext.getAttribute("NotificationAlertDataAcquisition").toString() %>' value = '<%=pageContext.getAttribute("Search").toString()%>' styleClass="small" /> <% // 800WA_WEBCONSOLE086  %> <% //800WA_WEBCONSOLE303 %>
      </td>
    </tr>
</table>
 </td>
</tr>
<logic:present scope = "request" 
 name = "<%= Const.ATTRIBUTE_REQUEST_ERROR_BEAN%>">                             <% //800WA_WEBCONSOLE372  %>
  <script>                                                                      <% //800WA_WEBCONSOLE372  %>
  	var l_globalFlag = false;
  </script>                                                                     <% //800WA_WEBCONSOLE372  %>
  <jsp:include page="errorDialog.jsp" flush="false" />                          <% //800WA_WEBCONSOLE372  %>
  <%--<input type = "hidden" name = "currentSortedColumnHeader">                <% //800WA_WEBCONSOLE352  %> <% //800WA_WEBCONSOLE388  %>
  <input type = "hidden" name = "currentSortedColumn">                          <% //800WA_WEBCONSOLE352  %> <% //800WA_WEBCONSOLE388  %>
  <input type = "hidden" name = "order">                                        <% //800WA_WEBCONSOLE352  %> <% //800WA_WEBCONSOLE388  %> --%>
</logic:present>                                                                <% //800WA_WEBCONSOLE372  %>
    
<logic:notPresent scope = "request"
 name = "<%= Const.ATTRIBUTE_REQUEST_ERROR_BEAN%>">                             <% //800WA_WEBCONSOLE372  %>  
<tr><td>&nbsp;</td></tr>
<tr>
 <td class = "large">                                                           <% // 800WA_WEBCONSOLE086  %>

<%-- Get data from the Form bean for  obtaining the different alert levels --%>
<util:set name = "alertLevelOrder">
	<%=Const.ALERT_LEVEL_TEXT_INFORMATION %>,<%=Const.ALERT_LEVEL_TEXT_CAUTION %>,<%=Const.ALERT_LEVEL_TEXT_WARNING %>,<%=Const.ALERT_LEVEL_TEXT_FAILURE %> <% // 800WA_WEBCONSOLE215 %>
</util:set>
<%-- Get the sorting order for the confirmed records --%>
<util:set name = "confirmationOrder">
	<%=Const.ALERT_STATUS_TEXT_CONFIRMED %>,&nbsp;
</util:set>
<%-- Get the header value for occurrence date and set the value in the 
table --%>
<util:set name = "OccuranceDate">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(2)%>
</util:set>
<%-- Get the header value for generation host and set the value in the 
table --%>
<util:set name = "GenerationHost">
 <%=((java.util.ArrayList )NotificationAlertBean.getAlertHeader()).get(3)%>
</util:set>
<%-- Get the header value for alert level and set the value in the 
table --%>
<util:set name = "AlertLevel">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(1)%>
</util:set>
<%-- Get the header value for content and set the value in the 
table --%>
<util:set name = "Content">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(5)%>
</util:set>
<%-- Get the header value for alert ID  and set the value in the 
table --%>
<util:set name = "AlertID">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(4)%>
</util:set>
<%-- Get the header value for generation part and set the value in the 
table --%>
<util:set name = "GenerationPart">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(6)%>
</util:set>
<%-- Get the header value for state of confirmation  and set the value in the 
table --%>
<util:set name = "StateOfConfirmation">
 <%=((java.util.ArrayList )NotificationAlertBean.getAlertHeader()).get(0)%>
</util:set>
<%-- Get the header value for alert key and set the value in the 
table --%>
<util:set name = "AlertKey">
 <%=((java.util.ArrayList)NotificationAlertBean.getAlertHeader()).get(7)%>
</util:set>
<%-- Get the header value for notification alert checkbox and set the value in 
the table --%>
<util:set name = "NotificationAlertCheckBox">
className=JP.co.Hitachi.soft.System_Manager.webconsole.common.DataDecoratorClass,
	methodName=getAlertInput,name=alertIndex,type=checkbox
</util:set>
<%-- Get the header value for notification alert host link and set the value in
the table --%>
<util:set name = "Inventory">
  	<util:rewrite action = "inventory"/>
  </util:set>
<util:set name = "NotificationAlertHostLink">
className=JP.co.Hitachi.soft.System_Manager.webconsole.common.DataDecoratorClass,
	methodName=getAlertHref,link=<%= pageContext.getAttribute("Inventory").toString() %>,id=<%= request.getSession().getId() %>Inventory,parameterName=agentName,param1=source,value1=<%=Const.FLAG_ALERT%>  <% // 800WA_WEBCONSOLE158 %> <% // 800WA_WEBCONSOLE166 %>
</util:set>
  <util:set name = "NotificationAlertPage">
  	<util:rewrite action = "notificationAlertPage"/>
  </util:set>
  <util:set name = "Select All">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>" 
	key = "alert.detail.all.select"/>                                           <% //800WA_WEBCONSOLE205 %>
    </util:set> 
    <util:set name = "Release All">
	<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ALERT%>"             
	key = "alert.detail.all.release"/>                                          <% //800WA_WEBCONSOLE205 %>                                         
    </util:set> 
    <util:set name = "columnTitle">
		<table><tr><td>
		<input type = 'button' 
		class = 'small'                                                         
		value = '<%= pageContext.getAttribute("Select All").toString()%>'
    	onclick = 'selectAll(0)'></td><td><input type = 'button' class = 'small'
    	value = '<%= pageContext.getAttribute("Release All").toString()%>' onclick = 'selectAll(1)'> <% // 800WA_WEBCONSOLE262   %>
    	</td></tr></table>   
    </util:set>                                                                 <% //800WA_WEBCONSOLE205 %>
  
  <%-- <table:table scope = "requestscope" headerData = "alertHeader"           <% //800WA_WEBCONSOLE352 %>
  	detailData = "alertData" name = "NotificationAlertBean"                     <% //800WA_WEBCONSOLE352 %>
  	border = "1" cellpadding = "2" cellspacing = "0"                            <% //800WA_WEBCONSOLE352 %>
  	requestURI = "<%= pageContext.getAttribute("NotificationAlertPage").toString() %>"  <% //800WA_WEBCONSOLE352 %>
  		pageSize = "<%=NotificationAlertBean.getAlertsPerPage()%>" defaultSortBy ='<%=pageContext.getAttribute("OccuranceDate").toString()%>' <% //800WA_WEBCONSOLE352 %>
  	delete = "true" confirm = "true" >     --%>                                 <% //800WA_WEBCONSOLE199 %> <% //800WA_WEBCONSOLE352 %>
  	
  <table:table scope = "requestscope" headerData = "alertHeader"
  	detailData = "alertData" name = "NotificationAlertBean"  
  	border = "1" cellpadding = "2" cellspacing = "0"  
  	requestURI = "<%= pageContext.getAttribute("NotificationAlertPage").toString() %>" 
  		pageSize = "<%=NotificationAlertBean.getAlertsPerPage()%>"
  	firstPage = "alert.detail.first.page" previousPage="alert.detail.previous"
  	nextPage="alert.detail.next" lastPage="alert.detail.last.page"
	goButton="alert.detail.move" confirmButton="alert.detail.confirm.button"
  	deleteButton="alert.detail.last.delete" bundle="<%=Const.MESSAGE_RESOURCES_FILE_ALERT%>"
  	delete = "true" confirm = "true"  extraInfo = "occurrenceHost">             <% //800WA_WEBCONSOLE352 %> <% //800WA_WEBCONSOLE426 %>
  	
  	<%-- delete = "true" confirm = "true" > --%>                                <% //800WA_WEBCONSOLE300 %>
   <table:column property = '<%=pageContext.getAttribute("OccuranceDate")
    	.toString()%>' sort = "true" />
    <table:column property = '<%=pageContext.getAttribute("GenerationHost")
    	.toString()%>' sort = "true" 
    	decorator = '<%=pageContext.getAttribute("NotificationAlertHostLink")
          .toString()%>'/>
    <table:column property = '<%= pageContext.getAttribute("AlertLevel")
    	.toString()%>' customsort = "alertLevelSort()" 
    	order = '<%=pageContext.getAttribute("alertLevelOrder").toString()%>'/>
    <%--                                                                        // 800WA_WEBCONSOLE212
    <table:column property = '<%= pageContext.getAttribute("Content")           // 800WA_WEBCONSOLE212
    	.toString()%>' sort = "true"/>                                          // 800WA_WEBCONSOLE212
    --%>                                     
    <table:column property = '<%= pageContext.getAttribute("Content")
    	.toString()%>' sort = "true" sanitize = "true" />                       <% // 800WA_WEBCONSOLE212 %>
    <table:column property = '<%=pageContext.getAttribute("AlertID")
    	.toString()%>' sort = "true" />
    <table:column property = '<%=pageContext.getAttribute("GenerationPart")
    	.toString()%>' sort = "true"/>
    <table:column property = '<%=pageContext.getAttribute
	("StateOfConfirmation").toString()%>' customsort = "confirmationSort()" 
             order = '<%= pageContext.getAttribute("confirmationOrder")
                .toString()%>'/>
    <table:column property = '<%=pageContext.getAttribute("AlertKey")
    	.toString()%>' 
    	decorator = '<%=pageContext.getAttribute("NotificationAlertCheckBox")
		.toString()%>' 
    	title = "<%= pageContext.getAttribute("columnTitle").toString()%>"  styleClass = "centeralign"/> <% //800WA_WEBCONSOLE205 %>
    
  </table:table> </td>
</tr>
</table>
</logic:notPresent>                                                             <% //800WA_WEBCONSOLE372  %>
</html:form>
</body>
<%-- Get the error message information  from the message resources 
property file--%>
<util:set name = "errorArray">
var MSG_ALERT_DATE_NOT_INPUT = "<%=MessageConstant.MSG_ALERT_DATE_NOT_INPUT %>";
var MSG_ALERT_DATE_ERROR = "<%=MessageConstant.MSG_ALERT_DATE_ERROR %>";
var MSG_ALERT_DATE_NOT_EXIST = "<%=MessageConstant.MSG_ALERT_DATE_NOT_EXIST %>";
var MSG_COMMON_RANGE_CHARACTER_CHECK = 
	"<%=MessageConstant.MSG_COMMON_RANGE_CHARACTER_CHECK %>";
var MSG_COMMON_FORMAT_CHECK = "<%=MessageConstant.MSG_COMMON_FORMAT_CHECK %>";
var MSG_PAGE_CHECK = "<%=MessageConstant.MSG_PAGE_CHECK %>";
var MSG_COMMON_POSITIVE_INTEGER_CHECK = 
	"<%=MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>";
var MSG_COMMON_RANGE_CHECK = "<%=MessageConstant.MSG_COMMON_RANGE_CHECK %>";
var MSG_ALERT_CHECK_ANNULMENT = 
	"<%=MessageConstant.MSG_ALERT_CHECK_ANNULMENT %>";
var MSG_ALERT_SELECT_CHECK = "<%=MessageConstant.MSG_ALERT_SELECT_CHECK %>";
var MSG_ALERT_CHECK_CONFIRM = "<%=MessageConstant.MSG_ALERT_CHECK_CONFIRM %>";
var MSG_DELETE_CONFIRM = "<%=MessageConstant.MSG_DELETE_CONFIRM %>";             <% //800WA_WEBCONSOLE062 %>

errorMsg[MSG_ALERT_DATE_NOT_INPUT] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"	key = "<%=MessageConstant.MSG_ALERT_DATE_NOT_INPUT %>"/>';
errorMsg[MSG_ALERT_DATE_ERROR] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_ALERT_DATE_ERROR %>"/>';
errorMsg[MSG_ALERT_DATE_NOT_EXIST] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_ALERT_DATE_NOT_EXIST %>"/>';
errorMsg[MSG_COMMON_RANGE_CHARACTER_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_COMMON_RANGE_CHARACTER_CHECK %>"/>';
errorMsg[MSG_COMMON_FORMAT_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_COMMON_FORMAT_CHECK %>"/> ';
errorMsg[MSG_PAGE_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_PAGE_CHECK %>"/> ';
errorMsg[MSG_COMMON_POSITIVE_INTEGER_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_COMMON_POSITIVE_INTEGER_CHECK %>" arg0 = "{0}"/> ';
<%-- errorMsg[MSG_COMMON_RANGE_CHECK] = ' <bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_COMMON_RANGE_CHECK %>" arg0 = "{0}" arg1 = "{1}" arg2 = "{2}"/> '; --%> <% // 800WA_WEBCONSOLE441 %>
errorMsg[MSG_COMMON_RANGE_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_COMMON_RANGE_CHECK %>" arg0 = "{0}" arg1 = "{1}" arg2 = "{2}"/>'; <% // 800WA_WEBCONSOLE441 %>
errorMsg[MSG_ALERT_CHECK_ANNULMENT] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_ALERT_CHECK_ANNULMENT %>"/> ';
errorMsg[MSG_ALERT_SELECT_CHECK] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_ALERT_SELECT_CHECK %>"/> ';
errorMsg[MSG_ALERT_CHECK_CONFIRM] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_ALERT_CHECK_CONFIRM %>"/> '; <% //800WA_WEBCONSOLE431 %>
<%-- errorMsg[MSG_DELETE_CONFIRM] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_DELETE_CONFIRM %>" arg0 = "alerts " /> '; --%> <% //800WA_WEBCONSOLE062 %> <% //800WA_WEBCONSOLE424 %>
errorMsg[MSG_DELETE_CONFIRM] = '<bean:message bundle = "<%= Const.MESSAGE_RESOURCES_KEY_ERRMESSAGE%>"key = "<%=MessageConstant.MSG_DELETE_CONFIRM %>" arg0 = "<%=Const.DELETE_CONFIRM_ALERT %>" /> '; <% //800WA_WEBCONSOLE424 %>
</util:set>
 <util:set name = "CommonProductName">                                          <% // 800WA_WEBCONSOLE261 %>
	             <bean:message 
	                  bundle = "<%= Const.MESSAGE_RESOURCES_KEY_INTERNAL%>" 
	                  key = "internal.common.product.name"/>                    <% // 800WA_WEBCONSOLE261 %>
                 </util:set>                                                    <% // 800WA_WEBCONSOLE261 %>      
<util:set name="alert">                                                         <% // 800WA_WEBCONSOLE261 %>
	             <bean:message 
	                  bundle="<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" 
	                              key="dialog.confirm.dialog.title" arg0="<%=pageContext.getAttribute("CommonProductName").toString()%>"/> <% // 800WA_WEBCONSOLE261 %>
</util:set>                                                                     <% // 800WA_WEBCONSOLE261 %>
<script>  
<%= pageContext.getAttribute("errorArray").toString()%>


confirmationProperties[0] = '<%=pageContext.getAttribute("alert").toString()%>';<% // 800WA_WEBCONSOLE261 %>
confirmationProperties[1] = '<%=Const.IMAGE_TYPE_CONFIRM%>';                    <% // 800WA_WEBCONSOLE261 %>
confirmationProperties[2] = '<bean:message bundle="<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" key="dialog.confirm.ok"/>'; <% // 800WA_WEBCONSOLE261 %>
confirmationProperties[3] = '<bean:message bundle="<%= Const.MESSAGE_RESOURCES_KEY_DIALOG%>" key="dialog.confirm.terminate"/>'; <% // 800WA_WEBCONSOLE261 %>
confirmationProperties[4] = '<bean:message bundle="<%= Const.MESSAGE_RESOURCES_KEY_ALT%>" key="alt.alert.lv.confirm"/>'; <% // 800WA_WEBCONSOLE261 %>
confirmationProperties[5] = 2;                                                  <% // 800WA_WEBCONSOLE261 %>
resetHeader('NotificationAlert');                                               <% // 800WA_WEBCONSOLE404 %>
</script>

</html:html>
