<%--
  /**
   * 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 -->


<!-- HTML -->
<head>
<%@include file="/layout/page_head_section.jsp"%>
    <title>
        <bean:message  key="storage.mgmt.system.title"/>
    </title>
<!-- Place Java Script Here -->
<script language="JavaScript">

function changeFilter() {
     document.forms[0].comingFromSubreports.value="true";
     submitForm('show');
}
</script>
</head>

<%@include file="/layout/bodytag.jsp"%>
<%@include file="layout/top.jsp"%>
<%@include file="layout/breadcrumb.jsp"%>
<%@include file="layout/spacer.jsp"%>
<!-- override the selected sub item for the paging mechanism-->
<% selectedSubItem = "root.menu.item0.item1express"; %>

<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")%>">
<input type="hidden" name="comingFromSubreports" value="<%=request.getParameter("comingFromSubreports")%>">

<%
   String formName = Constants.HttpSessionFields.T4FORM_NAME;
   request.setAttribute(Constants.HttpRequestFields.FORM_NAME, formName);

   T4Form form = (T4Form)session.getAttribute(formName);
   T4Interface currentT4 =
    ((T4Interface)session.getAttribute(
      Constants.HttpSessionFields.CURRENT_T4));
%>
<!-- hidden form value to set the page we are coming from (for the manage pools include) -->
<html:hidden name="<%=formName%>" property="comingFrom" value="express"/>

<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>

<!-- jump to anchor --> 
<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.jumpto"/>
    <bean:message key="express.subreports.link"/>
  </tr>
</table>
<%@include file="layout/spacer.jsp"%>

<!-- array details instructions --> 
<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>

<%@include file="layout/spacer.jsp"%>
<!-- array properties header --> 
<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.properties.title" arg0="<%=currentT4.getName()%>"/>                 
  </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.item0.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.applyprofile.button" href="javascript:configStorageByProfileWizard();" title="storage.mgmt.system.applyprofile.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>
<td>
              <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>
                    <table>
                      <tr>
                        <td>
                          <table>
                            <tr>
                              <td >
                                <component:button text="storage.mgmt.system.fcconfig.button" href="javascript:document.forms[0].action='root.menu.item0.item1fcconfig.do';document.forms[0].submit();" title="storage.mgmt.system.fcconfig.button" isEnabled="true" />
                              </td>
                            </tr>
                          </table>
                        </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>

<!-- display the array properties -->
<%@include file="array_properties_include.jsp"%>

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

  <a name="subreports_anchor"></a>
  <!-- sub-reports section header -->
  <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="express.subreports.header"/>                 
              </div>
            </td>
            
            <td valign="bottom" width="100%">
              <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>
		   <td>
		     <a href="#top">
		       <img src="images/props-to-top.gif" border="0" width="16" height="16" ALT="top" title="top"/>
		     </a>
		  </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td><img alt border="0" height="5" src="/images/general/dot.gif" width="1"></td>
    </tr>
  </table>


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

<!-- View selection box table -->
<table >
  <tr>
    <td class="view-label-text">
       <bean:message key="express.subreports.view"/>
    </td>
    <td>
      <html:select name="<%=formName%>" property="subReportFilter" onchange="changeFilter()">
        <html:option key="express.subreports.view.pools" value='<%="" + Constants.T4.POOL_SUBREPORT%>'/>
        <html:option key="express.subreports.view.volumes" value='<%="" + Constants.T4.VOL_SUBREPORT%>'/>
        <html:option key="express.subreports.view.trays" value='<%="" + Constants.T4.TRAY_SUBREPORT%>'/>
   	  </html:select>
    </td>
    <td>&nbsp;</td>
  </tr>
</table>

<%@include file="layout/spacer.jsp"%>
<logic:equal name="<%=formName%>" property="subReportFilter" value='<%="" + Constants.T4.POOL_SUBREPORT%>'>
   <!-- include page for displaying pools and pool buttons -->
   <%@include file="/storage_management/sm_manage_pools_include.jsp"%>
</logic:equal>
<logic:equal name="<%=formName%>" property="subReportFilter" value='<%="" + Constants.T4.VOL_SUBREPORT%>'>
   <!-- include page for displaying volumes and volume buttons -->
   <%@include file="/storage_management/sm_manage_volumes_include.jsp"%>
</logic:equal>
<logic:equal name="<%=formName%>" property="subReportFilter" value='<%="" + Constants.T4.TRAY_SUBREPORT%>'>
   <!-- include page for displaying trays and tray buttons -->
   <%@include file="/storage_management/sm_trays_include.jsp"%>
</logic:equal>

<script>
    function jump() {
        window.location.href = "#subreports_anchor";
    }

    var dojump=document.forms[0].comingFromSubreports.value;
    if(dojump == 'true') {
        window.setTimeout(jump, 300);
    }
</script>
</div>
</html:form>



</body>
</html:html> 
