<!--

   Name:  NGSettingsPage.jsp



   Copyright (c) 2007-2013 Novell, Inc.  All Rights Reserved.



   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.

   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT

   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK.

   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A

   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS

   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET,

   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S

   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S

   CUSTOMERS WITH RESPECT TO THIS CODE.



-->

<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils,

	java.util.Hashtable, com.novell.emframe.dev.eMFrameFactory" %>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>

<% JSPConduit c = new JSPConduit(request); %>





<iman:stringtable bundle="BaseResources"/>

<iman:stringtable bundle="DevResources"/>


<html>

	<head>

    	<title><iman:string key="NestedGroup.SettingsPageName"/></title>

      	<link rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">

      	<iman:eMFrameScripts/>

      	<iman:osScripts/>

     	<iman:include page="dev/ASScripts_inc.jsp"/>

      	<iman:include page="dev/PageScripts_inc.jsp"/>

	<script language="JavaScript">

	function isPageValid()
    {    	
	}

	function EnableDisableNestedSetting()
	{
		with( document.forms[0] )
		{
	        if ( useNestedSettingsCheckbox.checked == true )
            {
               	useNestedSettingsCheckbox.checked = true;
               	useNestedSettings.value = "true";
				nestedConfigCheckbox.disabled = false;
			}
            else
            {
               	useNestedSettingsCheckbox.checked = false;
               	useNestedSettings.value = "false";
				nestedConfigCheckbox.disabled = true;
            }		
		}
	}
	
	function EnableDisableNestedConfig()
	{
		with( document.forms[0] )
		{
	        if ( nestedConfigCheckbox.checked == true )
            {
               	nestedConfigCheckbox.checked = true;
               	useNestedConfig.value = "0";				
			}
            else
            {
               	nestedConfigCheckbox.checked = false;
               	useNestedConfig.value = "1";
            }		
		}
	}
	
	</script>
	</head>

	<body TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="returnFromOS();">
		
		<form name="NGSettingsPageForm" method=post action="<c:out value= "${ContextPath}"/>/servlet/frameservice">
			<input type=hidden name="taskId" value="<c:out value="${taskId}"/>">
			<input type=hidden name="asHiddenField" value="">
			<input type=hidden name="hiddenActionField" value="">
			<input type=hidden name="useNestedSettings" value="<c:out value="${IsNestedSettingParam}"/>">			
			<input type=hidden name="useNestedConfig" value="<c:out value="${NestedConfigParam}"/>">			
			<input type=hidden name="hasNestedRoleAssignments" value="<c:out value="${hasNestedRoleAssignmentsParam}"/>">
			
			<iman:include page="dev/Messagebar_inc.jsp"/>
			<iman:include page="dev/BookVars_inc.jsp"/>

			<table width="100%" border="0" cellspacing="0" cellpadding="2" class="mediumtext">
	            <tr><td><div align="left">
					<input alt="<iman:string key="NestedGroup.UseNestedSettings"/>"
						type="checkbox"
						name="useNestedSettingsCheckbox"
		              	width="16"
	                   	height="16"
						onClick="EnableDisableNestedSetting()"
	                   	<c:if test="${IsDynamicParam == 'true'}">disabled</c:if>
	                   	<c:if test="${CanChangeNestedParam == 'false'}">disabled</c:if>
						<c:if test="${IsNestedSettingParam == 'true'}">checked</c:if> />
					<iman:string key="NestedGroup.UseNestedSettings"/>
				</div></td></tr>
				<tr><td class="instructions">
				<%= c.string("CreateGroup.NestedCheckBoxHint") %>
				</td></tr>
				<tr><td><div align="left" >
                     <input 
                     	type="checkbox" 
                     	name="nestedConfigCheckbox" 
                     	width="16" 
                     	height="16" 
						onClick="EnableDisableNestedConfig()"
						<c:if test="${IsNestedSettingParam == 'false'}"> disabled </c:if> 
                     	<c:if test="${NestedConfigParam == '0'}"> CHECKED </c:if> />
                     <iman:string key="NestedGroup.NestedConfigLabel"/>
				</div></td></tr>
				<tr><td class="instructions">
				<%= c.string("NestedGroup.NestedConfigCheckBoxHint") %>
				</td></tr>
				
			</table>
		</form>

		<iman:osFooter/>

   </body>

</html>

