<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "%Z%%M%    %I%    %E%     SMI"
   * 
   */
 --%>
<%@ include file="layout/toptags.jsp"%>
<%@ page import="com.sun.netstorage.array.mgmt.cfg.ui.forms.T4Form"%>
<!-- 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.system.title"/>
    </title>
</head>

<%@include file="/layout/bodytag.jsp"%>
<%@include file="layout/top.jsp"%>
<%@include file="layout/breadcrumb.jsp"%>
<%@include file="layout/spacer.jsp"%>

<html:form action="root.menu.item0.item1express.do">

<!-- hidden element which specifies the action for this form -->
<input type="hidden" name="request_action" value="<%=request.getAttribute("request_action")%>">
<input type="hidden" name="index" value="<%=request.getParameter("index")%>">

<%
   T4Form form = (T4Form)session.getAttribute("t4Form");
%>
<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.system.section.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>

<!-- spacer between two sections -->
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><img alt border="0" height="8" width="1" src="images/general/dot.gif"></td>
  </tr>
  <tr>
    <bean:message key="storage.mgmt.system.instructions"/>
  </tr>
</table>



<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>

    <td align="left" valign="middle">
      <table border="0" cellpadding="0" cellspacing="0">
         <tr>            
            <td>
              <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                 <tr>
                   <td>
                      <table border="0" cellpadding="0" cellspacing="0" class="button-content-enabled">
                        <tr>
                           <td align="center" valign="middle" nowrap>
                              <component:button text="button.save" href="javascript:submitForm('save');" title="button.save" isEnabled="<%=!readOnly%>" />
                           </td>
                        </tr>
                      </table>
                   </td>                                      
                 </tr>
               </table>
             </td>   
             <td><img alt border="0" height="20" width="10" src="images/general/dot.gif"></td> 
             <td>
              <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                 <tr>
                   <td>
                      <table border="0" cellpadding="0" cellspacing="0" class="button-content-enabled">
                        <tr>
                           <td align="center" valign="middle" nowrap>
                              <component:button text="button.cancel" href="javascript:document.forms[0].action='root.menu.item0.item1.do';document.forms[0].submit();" title="button.cancel" isEnabled="true" />
                           </td>
                        </tr>
                      </table>
                   </td>                                      
                 </tr>
               </table>
             </td>   
             <td><img alt border="0" height="20" width="10" src="images/general/dot.gif"></td> 
            <td>
              <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                 <tr>
                   <td>
                      <table border="0" cellpadding="0" cellspacing="0" class="button-content-enabled">
                        <tr>
                           <td align="center" valign="middle" nowrap>
                              <component:button text="storage.mgmt.system.chgprofile.button" href="javascript:changeProfileWizard();" title="storage.mgmt.system.chgprofile.wizard.title" isEnabled="<%=!readOnly%>" />
                           </td>
                        </tr>
                      </table>
                   </td>                                      
                 </tr>
               </table>
             </td>   
             <td><img alt border="0" height="20" width="10" src="images/general/dot.gif"></td>              
             <td>
              <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                 <tr>
                   <td>
                      <table border="0" cellpadding="0" cellspacing="0" class="button-link-enabled-text">
                        <tr>
                           <td align="center" valign="middle" nowrap>
                              <component:button text="storage.mgmt.system.addprofile.button" href="javascript:document.forms[0].action='root.menu.item0.item1addToProfile.do';document.forms[0].submit();" title="storage.mgmt.system.addprofile.button" isEnabled="<%=!readOnly%>" />
                           </td>
                        </tr>
                      </table>
                   </td>                                      
                 </tr>
               </table>
             </td>
             <td><img alt border="0" height="20" width="10" src="images/general/dot.gif"></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 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 align="left">
                          <div class="table-header-text">
                            <bean:message key="detail.property"/>
                          </div>
                        </td>                                                
                        <td align="left">
                          <div class="table-header-text">
                            <bean:message key="detail.value"/>
                          </div>
                        </td>                        
                      </tr>
                      <logic:present name="t4Form">                     
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.name" />
                          </div>
                        </td>                        
                        <td align="left" nowrap>
                          <div class="table-normal-text"> 
                              <bean:write name="t4Form" property="name"/> 
                          </div>
                        </td>
                      </tr>                        
                      
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.description" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">    
                             <html:text disabled="<%=readOnly%>" name="t4Form" property="description" size="30" maxlength="39"/>                      
                          </div>
                        </td>
                      </tr>     
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.health" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">                                                   
                            <%                                
                                String health = "array.health.code." + 
                                  ((T4Interface)session.getAttribute(
                                     Constants.HttpSessionFields.CURRENT_T4)).getHealthStatus();
                             %>
                            <bean:message key="<%=health%>"/>                           
                          </div>
                        </td>
                      </tr>  
                      <!-- start of profile information -->
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.profileinfo.table.name" />
                          </div>
                        </td>                        
                        <td align="left" nowrap>
                          <div class="table-normal-text"> 
                             <bean:message key="<%=form.getProfile().getName()%>"/>
                          </div>
                        </td>
                      </tr>                        
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.profileinfo.table.raid" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                              <bean:message key='<%="array.raid." + form.getProfile().getRaidLevel()%>'/>
                          </div>
                        </td>
                      </tr>  
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.profileinfo.table.segmentsize" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                             <bean:message key='<%="array.segmentSize." + form.getProfile().getSegmentSize()%>'/>
                          </div>
                        </td>
                      </tr>  
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.profileinfo.table.readahead" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                             <% int readaheadmode = 0;
                                if(form.getProfile().getReadaheadMode() > 0) {
                                    readaheadmode = 1;
                                }
                                String raMode = "array.readahead." + readaheadmode;
                             %>
                             <bean:message key="<%=raMode%>"/>
                          </div>
                        </td>
                      </tr>  
                      </logic:present>                                   
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

</div>
</html:form>



</body>
</html:html> 
