<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)sm_profile_summary.jsp    1.1    03/05/30     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.profile.summary.crumb"/>
    </title>
</head>
<%@include file="/layout/bodytag.jsp"%>
<%@include file="/layout/top.jsp"%>
<%@include file="/layout/breadcrumb.jsp"%>

<html:form action="root.menu.item0.item3.do">
<% 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 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.profile.summary.header"/> 
              </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>
    <tr>
      <td><bean:message key="storage.mgmt.profile.summary.msg"/></td>
    </tr>

  </table>

      <table>
          <tr>
            <td><img alt border="0" src="images/general/dot.gif" width="1" height="5"></td>
          </tr>
          <tr>
            <td nowrap>
              <table class="back-table" border="0" cellspacing="0" cellpadding="1" width="100%">
                <tr>
                  <td>
                    <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%">
                      <tr class="header-row">
                        <td nowrap>
                       <div class="table-header-text">
                          <bean:message key="storage.mgmt.system.name" />
                       </div>
                     </td>
                     <td nowrap>
                       <div class="table-header-text">
                          <bean:message key="storage.mgmt.system.profileinfo.table.raid" />
                       </div>
                     </td>
                     <td nowrap>
                       <div class="table-header-text">
                          <bean:message key="storage.mgmt.system.profileinfo.table.segmentsize" />
                       </div>
                     </td>
                     <td nowrap>
                       <div class="table-header-text">
                          <bean:message key="storage.mgmt.system.profileinfo.table.readahead" />
                       </div>
                     </td>
                    </tr><!-- end column header row -->

                      <!-- Begin profile row listing -->
                      <% // if no profiles show message in table
                          if(false) {
                      %>
                           <tr>
                             <td colspan="4">
                               <div class="table-normal-text">
                                 <bean:message key="storage.mgmt.profile.summary.noprofiles"/>
                               </div>
                             </td>
                           </tr>
                      <% } else { %>
                            <logic:iterate id="profile" indexId="index" name="<%=Constants.HttpSessionFields.ALL_PROFILES_LIST%>" type="StorageProfile">
                              <tr>
                                <td>
                                 <div class="table-normal-text">
                                   <bean:message key="<%=profile.getName()%>"/>
                                 </div>
                                </td>
                                <td>
                                 <div class="table-normal-text">
                                   <% String raid = "array.raid." + profile.getRaidLevel();%>
                                   <bean:message key="<%=raid%>"/>
                                 </div>
                                </td>
                                <td align="right">
                                 <div class="table-normal-text">
                                   <% String segSize = "array.segmentSize." + profile.getSegmentSize();%>
                                   <bean:message key="<%=segSize%>"/>
                                 </div>
                                </td>
                                <td>
                                 <div class="table-normal-text">
                                   <% String ra = "array.readahead." + profile.getReadaheadMode();%>
                                   <bean:message key="<%=ra%>"/>
                                 </div>
                                </td>

                              </tr>
                              <tr height="1">
                                 <td class="line-row" height="1" colspan="4">
                                 <img src="images/general/dot.gif" border="0" width="1" height="1"></td>
                              </tr>

                            </logic:iterate>
                      <% } %>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      
</div>

<% } catch (Exception e) {Trace.verbose(this, "JSP Page", e);} %>
</html:form>


</body>
</div>
</html:html> 
