<%@ page language="java"%>
<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc"%>
<%@taglib uri="/WEB-INF/lib/sa.tld" prefix="sa"%>

<jato:useViewBean className="com.sun.netstorage.mgmt.fm.storade.ui.viewbeans.reports.SEConfigureArrayViewBean">

<cc:header name="Header"
    pageTitle = "Reserve Device"
    baseName="com.sun.netstorage.mgmt.fm.storade.ui.resources.ApplicationResources"
    bundleID="appBundle"
    isPopup="true">

<cc:form name="arrayForm" method="post">

<script language="javascript">
// This function will toggle the disabled state of action buttons
// depending on single or multiple selections.

function toggleDisabledState() {
   // Action button and menu names.
   var configureButton = "SEConfigureArray.configureButton";
   var unconfigureButton = "SEConfigureArray.unconfigureButton";
	
   // Element name (prefix) of selection checkbox/radiobutton.
   var elementName = "SEConfigureArray.ArrayTable.Selection";
  
   // Document form.
   var form = document.arrayForm;
 
   // Flag indicating to disable action button and menu options.
   var disabled = true;
   var numChecked = 0;
   // Set flags according to single or multiple selections.
   for (i = 0; i < form.elements.length; i++) {
        var e = form.elements[i];

        if (e.name.indexOf(elementName) != -1) {
             if (e.checked) {
                disabled = false;
                numChecked ++;
            }
        }
   }
  
   // Toggle action button disabled state.
   ccSetButtonDisabled(configureButton, "arrayForm", disabled);
   ccSetButtonDisabled(unconfigureButton, "arrayForm", disabled);	   

}
</script>


<div class="ConMgn">                            
<!-- Alert -->
<br /><cc:alertinline name="Alert" bundleID="appBundle" />
</div>


<!-- Page Title -->
<cc:pagetitle
  name="PageTitle"
  bundleID="appBundle"
  pageTitleText="page.title.seConfigureArray"
  showPageTitleSeparator="true"
  showPageButtonsTop="true"
  showPageButtonsBottom="false">

<cc:spacer name="spacer" height="15" newline="true"/>

<cc:actiontable 
 name="ArrayTable" 
 bundleID="appBundle" 
 title="table.title.seConfigureArray" 
 summary="table.summary.seConfigureArray" 
 empty="table.empty.seConfigureArray" 
 selectionType="multiple"
 selectionJavascript="toggleDisabledState()"
 showAdvancedSortingIcon="false" 
 showLowerActions="false" 
 showPaginationControls="false" 
 showPaginationIcon="false" 
 showSelectionIcons="false" 
 page="1" />


</cc:pagetitle>

</cc:form>

</cc:header>

</jato:useViewBean>

