<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)CloneT4.jsp    1.14    03/06/04     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="main.menu.clone.section.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.item2duplicate.do">
<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="system.overview.clone.t4.clonesource"/>
              </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>
</table>
  <%
    com.sun.netstorage.array.mgmt.cfg.ui.forms.CloneT4Form form =
     (com.sun.netstorage.array.mgmt.cfg.ui.forms.CloneT4Form)session.getAttribute("CloneT4");
  %>
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="10"><img alt width="10" height="1" border="0" src="images/general/dot.gif"></td>
      <td nowrap>
        <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="CloneT4" property="sourceT4">   
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="main.menu.t4.summary.name" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:write name="CloneT4" property="sourceT4.name"/>                            
                          </div>
                        </td>
                      </tr>                  
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.profile" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <%
                               String profileName = form.getSourceT4().getProfile().getName();
                            %>
                            <bean:message key="<%=profileName%>"/>
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.segmentsize" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <%
                              String size = "array.blocksize." + form.getSourceT4().getBlockSize();
                            %>                            
                            <bean:message key="<%=size%>"/>
                          </div>
                        </td>
                      </tr> 
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.readahead" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">      
                            <%
                              String readahead = "";
                              if(form.getSourceT4().getReadaheadMode() == 0) {
                                readahead = "array.readahead." + form.getSourceT4().getReadaheadMode();
                              } else {
                                readahead = "array.readahead.1"; 
                              }
                            %>                      
                            <bean:message key="<%=readahead%>"/>                            
                          </div>
                        </td>
                      </tr> 
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.diskrecon" />
                          </div>
                        </td>
                        <td>
	                      <div class="table-normal-text">
                            <%
                              String recon = "array.diskrecon." + form.getSourceT4().getDiskReconRate();
                            %>                      
                            <bean:message key="<%=recon%>"/>                             
                          </div>                        
                        </td>
                      </tr>  
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.failover" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">                            
                               <bean:write name="CloneT4" property="sourceT4.failoverMode"/>                       
                          </div>
                        </td>
                      </tr>   
                      <tr>
                        <td align="left" nowrap>
                          <div class="table-normal-text">
                            <bean:message key="storage.mgmt.system.cache" />
                          </div>
                        </td>
                        <td align="left" nowrap>
                          <div class="table-normal-text">                            
                               <bean:write name="CloneT4" property="sourceT4.cacheMode"/>                       
                          </div>
                        </td>
                      </tr>   
                      </logic:present>                                   
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>

<!-- spacer -->
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><img alt border="0" height="20" width="1" src="images/general/dot.gif"></td>
  </tr>
</table>
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td><img alt border="0" height="20" width="1" src="images/general/dot.gif"></td>
  </tr>
</table>
 
<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="system.overview.clone.t4.selectdest"/> 
              </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><bean:message key="system.overview.clone.t4.destinstructions"/></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="20" width="1" src="images/general/dot.gif"></td>    
  </tr>
</table>

<!-- spacer between two sections -->
<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 width="10"><img alt width="10" height="1" border="0" src="images/general/dot.gif"></td>
                  <td>
                    <table border="0" cellpadding="1" cellspacing="0" class="button-link-enabled-text">
                      <tr>
                        <td>
                          <table>
                            <tr>
                              
                              <td align="center" valign="middle" nowrap>
                              <!-- action used to be clone -->
                                <component:button text="system.overview.clone.t4.configurebutton" href="javascript:document.forms[0].action='root.menu.item0.item2cloneconfirm.do';document.forms[0].submit();" title="system.overview.clone.t4.configurebutton" isEnabled="<%=!readOnly%>" />
                              </td>
                            </tr>
                          </table>
                        </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="1" width="100%">
 <tr>
   <td ><img alt width="1" height="1" border="0" src="images/general/dot.gif"></td>
   <td align="left">
    <table class="back-table" border="0" cellspacing="0" cellpadding="1" width="50%">
     <tr>
    
      <td>
      <table class="front-table" border="0" cellspacing="0" cellpadding="0" width="100%">

        <tr class="header-row">
           <td> </td>
                        
           <td>
             <div class="table-header-text">
               <bean:message key="main.menu.t4.summary.name"/>
             </div>
           </td>                        
                       
           <td>
             <div class="table-header-text">
               <bean:message key="main.menu.t4.summary.description"/>
             </div>
           </td>                        
        </tr>
        <!-- Begin possible T4 destinations row listing -->           
        <logic:present name="CloneT4" property="possibleDestinations">      
          <logic:iterate id="destT4" name="CloneT4" property="possibleDestinations" type="T4Interface" indexId="index">           
               <tr>
                  <td align="center">     
                    <div class="table-label-text">                                       
                      <input type="checkbox" name="<%="dest" + index %>" value="<%= index%>"/>
                    </div>
                  </td>   
                  <td align="left">                         
                    <div class="table-label-text"> 
                     <bean:write name="destT4" property="name"/>
                    </div>
                  </td> 
                  <td align="left">                         
                    <div class="table-label-text"> 
                     <bean:write name="destT4" property="description"/>
                    </div>
                  </td>                                              
               </tr>
          </logic:iterate>
        </logic:present>
      </table>
    </td>

  </tr>
</table>

 </td>
  </tr>
</table>

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

</html:html>
