<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_array_overview.jsp    1.11    03/10/03     SMI"
   * 
   */
 --%>
<%@ include file="/layout/toptags.jsp"%>
<!-- locale stuff -->
<html:html locale="true">
<!-- end locale -->

<!-- Place Java Script Here -->

<!-- HTML -->
<head>
<%@include file="/layout/page_head_section.jsp"%>
    <title>
        <bean:message  key="storage.mgmt.array.overview.title"/>
    </title>
 <script language="JavaScript">
 iun = new Image();
 iun.src="images/icons/d_unassigned.gif";
 ipool = new Image();
 ipool.src = "images/icons/d_pool.gif";
 ioff = new Image();
 ioff.src = "images/icons/d_offline.gif";
 isub = new Image();
 isub.src = "images/icons/d_substituted.gif";
 iahs = new Image();
 iahs.src = "images/icons/d_arrayhs.gif";
 idhs = new Image();
 idhs.src = "images/icons/d_dedicatedhs.gif";
 ihs = new Image();
 ihs.src = "images/icons/d_hs.gif";
 icont = new Image();
 icont.src = "images/icons/controller.gif";
 iexp = new Image();
 iexp.src = "images/icons/expansion.gif";
 inodisk = new Image();
 inodisk.src = "images/icons/no_disk.jpg";
 
 </script>

</head>
<%@include file="/layout/bodytag.jsp"%>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:2000;"></div>
<script language="JavaScript" src="jslib/overlib.js"></script>
<%@include file="/layout/top.jsp"%>
<%@include file="/layout/breadcrumb.jsp"%>
<!-- override the selected sub item for the paging mechanism-->
<% selectedSubItem = "root.menu.item0.overview.do"; 
T4Interface aot4 = (T4Interface)session.getAttribute(Constants.HttpSessionFields.CURRENT_T4);
%>
<form name="t4Overview" action="root.menu.item0.overview.do" method="POST" >
<% try { %>
<!-- hidden element which specifies the action for this form -->
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">

<div class="content-layout">

  <%@ include file="/layout/user_messages.jsp"%>
  
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- row with title -->
<tr>
<td colspan="3">

  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td nowrap>
              <div class="major-category-text">
                <bean:message key="storage.mgmt.array.overview.title"/> 
              </div>
            </td>
            <td valign="bottom" width="99%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                  <td class="property-separator" valign="bottom"><img alt border="0" height="2" src="images/general/dot.gif" width="1"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="images/general/dot.gif" width="1"></td>
    </tr>
  </table>

  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>
        <bean:message key="storage.mgmt.array.overview.help" arg0="<%=aot4.getName()%>" />
      </td>
    </tr>
  </table>

</td>
</tr>
<tr>
<td colspan="3">
<img src="images/dot.gif" alt="" border="0" width="1" height="5"/>
</td>
</tr>
<!-- row with button -->
<tr>
<td>
<component:button text="admin.general.refresh.button" href="javascript:submitForm('refresh');" title="admin.general.refresh.button" isEnabled="true"/>
</td>
<td>&nbsp;</td>
<td>
     <table width="250" border="0" cellspacing="0" cellpadding="0">
     <tr>
     <td>
	<div class="major-category-text">
	<img src="images/cat_diamond.gif" border="0" alt="" title="" width="9" height="9"/> <bean:message key="storage.mgmt.array.overview.legend"/>
	</div>
     </td>
     <td>
     </td>
     </tr>
     </table>
     
</td>
</tr>
<!-- end row with button-->
<tr>
<td colspan="3">
<img src="images/dot.gif" alt="" border="0" width="1" height="5"/>
</td>
</tr>
<tr>
<td valign="top" width="440">
<!-- now goes the table with disks -->

<component:arrayOverviewDisplay isEnabled="<%=!readOnly%>"/>

<!-- end table with disks -->
 
</td>
<td>&nbsp;</td>
<td align="left" valign="top">
<!-- LEGEND -->

<table class="back-table" border="0" cellspacing="0" cellpadding="1" width="200">
                <tr>
                  <td>
                    <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%">
                      <tr class="header-row">
                        <td>
                          <div class="table-header-text">
                           <bean:message key="storage.mgmt.array.overview.legend.icon" />
			   </div>
                        </td>
                        <td>
                          <div class="table-header-text">
                           <bean:message key="storage.mgmt.array.overview.legend.icon.desc" />
                          </div>
                        </td>
			<td width="100%" align="right">
                          <div class="table-header-text">
			  <%Trace.verbose(this, "LEGEND", "HIDE_LEGEND:" + session.getAttribute("hide_array_overview_legend"));
			  %>
<% if(session.getAttribute("hide_array_overview_legend") == null) { //show legend%>
				<a class="masthead-link" href="javascript:submitForm('hide_legend');">
				<img src="images/minimize.jpg" border="0" alt="<bean:message key="close"/>" title="<bean:message key="close"/>" width="16" height="16"/>
				<% } else {%>
				<a class="masthead-link" href="javascript:submitForm('show_legend');">
				<img src="images/open_table.jpg" border="0" alt="<bean:message key="open"/>" title="<bean:message key="open"/>"  width="16" height="16"/>

				<% } %>
				</a>
				</div>
                      </tr>
<% if(session.getAttribute("hide_array_overview_legend") == null) { //show legend%>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_unassigned.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.online.disk.desc" />" title="<bean:message key="storage.mgmt.array.overview.legend.online.disk.desc" />" width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" align="left" colspan="2">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.online.disk.desc" />
			    </div>
                        </td>
                      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_pool.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.online.disk.pool.desc" /> " title="<bean:message key="storage.mgmt.array.overview.legend.online.disk.pool.desc" /> " width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" align="left" colspan="2">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.online.disk.pool.desc" />
                          </div>
                        </td>
                      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
			<tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_offline.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.offline.disk" />" title="<bean:message key="storage.mgmt.array.overview.legend.offline.disk" />" width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" align="left" colspan="2">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.offline.disk" />
                          </div>
                        </td>
                      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
		      	<tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_substituted.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.substituted.disk" />" title="<bean:message key="storage.mgmt.array.overview.legend.substituted.disk" />" width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" colspan="2" align="left">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.substituted.disk" />
                          </div>
                        </td>
                      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
			<%
			//if fw 3.1
			if(aot4.isFeatureSupported(Constants.SupportedFeature.FEATURE_DEDICATED_HOT_SPARE)) {
			%>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_arrayhs.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.ahs.disk" />" title="<bean:message key="storage.mgmt.array.overview.legend.ahs.disk" />" width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" align="left" colspan="2">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.ahs.disk" />
                          </div>
                        </td>
                      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
		    <% } %>
		      <tr>
		         <td align="left">
				<div class="table-normal-text">
                            <img src="images/icons/d_dedicatedhs.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.dhs.disk" />" title="<bean:message key="storage.mgmt.array.overview.legend.dhs.disk" />" width="20" height="79">
				</div>
			 </td>
<td align="left" valign="bottom" align="left" colspan="2">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.dhs.disk" />
                          </div>
                        </td>

		      </tr>
                    <tr> 
                      <td class="table-separator-row" colspan="5" ><img src="images/dot.gif" alt="" width="1" height="1" border="0"></td>
                    </tr>
		      	<tr>
                        <td align="left" nowrap>
                          <div class="table-label-text">
                            <img src="images/icons/d_hs.gif" border="0" alt="<bean:message key="storage.mgmt.array.overview.legend.hs.disk" />" title="<bean:message key="storage.mgmt.array.overview.legend.hs.disk" />" width="20" height="79">
                          </div>
                        </td>
                        <td align="left" valign="bottom" colspan="2" align="left">
                          <div class="table-normal-text">
                           <bean:message key="storage.mgmt.array.overview.legend.hs.disk" />
                          </div>
                        </td>
                      </tr>
	<% } //end hide legend %>
                    </table>
                  </td>
                </tr>
              </table>

</td>
</tr>
</table>
</div>
 
<% } catch (Exception e) {Trace.error(this, "JSP Page", e.toString());} %>
</form>


</body>
</html:html>

