<%--
 The contents of this file are subject to the terms 
 of the Common Development and Distribution License 
 (the License).  You may not use this file except in
 compliance with the License.
 
 You can obtain a copy of the license at 
 https://glassfish.dev.java.net/public/CDDLv1.0.html or
 glassfish/bootstrap/legal/CDDLv1.0.txt.
 See the License for the specific language governing 
 permissions and limitations under the License.
 
 When distributing Covered Code, include this CDDL 
 Header Notice in each file and include the License file 
 at glassfish/bootstrap/legal/CDDLv1.0.txt.  
 If applicable, add the following below the CDDL Header, 
 with the fields enclosed by brackets [] replaced by
 you own identifying information: 
 "Portions Copyrighted [year] [name of copyright owner]"
 
 Copyright 2006 Sun Microsystems, Inc. All rights reserved.
--%>

<%@ page info="webServicePublish" language="java" contentType="text/html; charset=UTF-8" %>
<%@taglib uri="/jato.tld" prefix="jato"%>
<%@taglib uri="/cc.tld" prefix="cc"%>

<jato:useViewBean type="com.iplanet.jato.view.ViewBean" className="webServicePublish">

<cc:header pageTitle="webServicePublish.PageTitle" copyrightYear="2005" name="HtmlHeader"
 baseName="com.sun.enterprise.tools.admingui.resources.Resources" bundleID="testBundle">

<!-- Form -->
<jato:form name="Form">

<script type="text/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 pathPrefix = "<cc:text name='pathPrefix' />";
    var elementName = pathPrefix + ".SelectionCheckbox";

    // Document form.
    var form = document.Form; // must match form name above.

    // Flag indicating to disable action button and menu options.
    var disabled = true;

    // Set flag if a selection has been made.
    for (i = 0; i < form.elements.length; i++) {
        var e = form.elements[i];
        if (e.name != null && e.name.indexOf(elementName) != -1) {
 	    if (e.checked == true) {
		disabled = false;
		break;
	    }
	}
    }

    // Toggle action button disabled state.
    ccSetButtonDisabled((pathPrefix + ".unpublishButton"), "Form", disabled);
}
</script>

<!-- Bread Crumb component -->
<cc:breadcrumbs name="BreadCrumb" bundleID="testBundle" useGrayBg="true" />

<cc:tabs name="WebServiceTabs" bundleID="testBundle" />

<div class="ConMgn">
<cc:alertinline name="Alert" bundleID="testBundle" />
</div>

<!-- Page Title --> 
<cc:pagetitle name="PageTitle" bundleID="testBundle"
 pageTitleText="webServicePublish.PageTitle" 
 showPageTitleSeparator="true"
 showPageButtonsTop="true"
 showPageButtonsBottom="false" 
 pageTitleHelpMessage="webServicePublish.PageHelp">

<!-- Action Table -->
<cc:actiontable
 name="webServicePublishTable"
 bundleID="testBundle"
 title="webServicePublish.RegistriesPublishedTo"
 empty="webServicePublish.empty"
 selectionJavascript="setTimeout('toggleDisabledState()', 0)"
 selectionType="multiple"
 showAdvancedSortIcon="false"
 showLowerActions="true"
 showPaginationControls="true"
 showPaginationIcon="true"
 showSelectionIcons="true"
 showSelectionSortIcon="true"
 maxRows="25"
 page="1" />

<BR> 
 
<cc:helpinline type="page">
&nbsp;&nbsp;&nbsp;&nbsp;<cc:text name="registryHelpText" bundleID="testBundle" defaultValue="webServicePublish.RegistriesPublishedToHelp"/>
<cc:href name="registryHref" >
    <cc:text name="registryPage" bundleID="testBundle" defaultValue="webServicePublish.RegistriesPublishedToHelpLink"/>
</cc:href>
</cc:helpinline>

<jato:content name="extra">
</jato:content>
</cc:pagetitle>
</jato:form>
</cc:header>
</jato:useViewBean>
