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

  /* **************************************************************************
%name: CfgWizModules.jsp %
%version: 17 %
%date_modified: Tue Aug 31 09:10:10 2004 %
Copyright (c) 2001, 2002 Novell, Inc. All Rights Reserved.
THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL PROPRIETARY
AND TRADE SECRET INFORMATION OF NOVELL, INC. ACCESS TO THIS WORK IS
RESTRICTED TO (I) NOVELL, INC. EMPLOYEES WHO HAVE A NEED TO KNOW HOW
TO PERFORM TASKS WITHIN THE SCOPE OF THEIR ASSIGNMENTS AND (II)
ENTITIES OTHER THAN NOVELL, INC. WHO HAVE ENTERED INTO APPROPRIATE
LICENSE AGREEMENTS. NO PART OF THIS WORK MAY BE USED, PRACTICED,
PERFORMED COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, TRANSFORMED
OR ADAPTED WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE
OR EXPLOITATION OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE
PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
***************************************************************************  */

  /*-- outputs --
-- */

  /* Make the global definitions required for "Backup and Restore"  */
  /* template files.  This includes STRINGTABLEs, ...               */
   c.set("Wiz.PanelID", "fw.CfgWizModules"); %>
<jsp:include page="WizDefinitions_inc.jsp" flush="true" />


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>
			<%= c.string("CfgWiz.Wizard.Title") %>
		</title>

		<jsp:include page="WizCommonContent_inc.jsp" flush="true" />
		<jsp:include page="WizCommonStyles_inc.jsp" flush="true" />
		<jsp:include page="WizCommonScripts_inc.jsp" flush="true" />

		<script language="JavaScript">
			<!--
				<%/* Bring in the JavaScript files specific to the main  */
				  /* DS backup template.                                 */%>
				<jsp:include page="CfgWizModules_js.jsp" flush="true" />
			//-->
		</script>
	</head>


	<body
			bgcolor="<%= c.string("CfgWiz.Common.BackgroundColor") %>"
			onKeyDown="return onKeyDown_Accelerator();"
			onLoad="setFocusAndInitializeForm();simpleReturnFromOS();">
		<form
				name="Wiz_MainForm"
				method="post"
				action="<%= c.var("Wiz.ActionURL") %>"
				onSubmit="return( false )">
			<jsp:include page="WizHiddenVariables_inc.jsp" flush="true" />
			<jsp:include page="WizErrorDisplay_inc.jsp" flush="true" />

			<% if (c.gt(c.var("CfgWiz.ModulesToUpdate.Count"), "0")) {
			  /* Modules to be updated  */%>
			<table>
            	<tr>
					<td class="mediumtext">
		  	          <%= c.string("CfgWiz.Modules.ModulesToBeUpdated") %>
                    </td>
                </tr>
				<tr>
					<td class="mediumtext">
						<select
                        		name="ModulesToBeUpdated"
                                onChange="this.selectedIndex=-1"
								size="5"
								style="width:400"
								>
						<% c.set("i", "0");
						   while (c.lt(c.var("i"), c.var("CfgWiz.ModulesToUpdate.Count"))) { %>
							<option
                            	disabled
                                style="color:gray"
                                name="<%= c.toHTML(c.var("CfgWiz.ModulesToUpdate."+c.var("i"))) %>"
                                >
                                <%= c.var("CfgWiz.ModulesToUpdate."+c.var("i")) %>
                            </option>
							<% c.inc("i");
						   } %>
						</select>
					</td>
				</tr>
			</table>
				<%/*-- display an HR to divide when both update and install modules are present -- */
				   if (c.gt(c.var("CfgWiz.ModulesToInstall.Count"), "0")) { %>
				<br />
				<hr>
				<% }
			   }

			   if (c.gte(c.var("CfgWiz.ModulesToInstall.Count"), "0")) {
			  /*-- Generate another header for previously not installed modules -- */%>
			<span class="formdescriptextml0">
				<div class="width400">
					<%= c.string("CfgWiz.Modules.NeverInstall") %>
				</div>
			</span>
			<br />
			<table>
            	<tr>
					<td class="mediumtext">
			            <%= c.string("CfgWiz.Modules.ModulesToInstall") %>
                    </td>
                </tr>
				<tr>
					<%/* Modules to be installed  */%>
					<input type="hidden" value="" name="SelectedModulesToInstall">
		            <td class="mediumtext">
						<select name="ModulesToBeInstalled"
								size="5"
								style="width:400"
								multiple>
						<% c.set("i", "0");
						   while (c.lt(c.var("i"), c.var("CfgWiz.ModulesToInstall.Count"))) { %>
							<option name="<%= c.toHTML(c.var("CfgWiz.ModulesToInstall."+c.var("i"))) %>"><%= c.var("CfgWiz.ModulesToInstall."+c.var("i")) %></option>
							<% c.inc("i");
						   } %>
						</select>
		            </td>
		            <td class="mediumtext" valign="top" width="10px">
						<a href="javascript:selectAllInstallModules(true)"><img
                            	src="<%= c.getModulesUrl() + "/fw/images/smbtnselectall_" + c.string("CfgWiz.LangID") %>.gif"
                                border="0"
                                class="margin2"
                                title="<%= c.string("CfgWiz.Modules.SelectAll") %>"
                                alt="<%= c.string("CfgWiz.Modules.SelectAll") %>" />
                        </a>
						<a href="javascript:selectAllInstallModules(false)"><img
                            	src="<%= c.getModulesUrl() + "/fw/images/smbtndeselectall_" + c.string("CfgWiz.LangID") %>.gif"
                                border="0"
                                class="margin2"
                                title="<%= c.string("CfgWiz.Modules.DeselectAll") %>"
                                alt="<%= c.string("CfgWiz.Modules.DeselectAll") %>" />
                        </a>
                    </td>
				</tr>
			</table>
			<% } %>


         <%
         if (c.gt(c.var("CfgWiz.ModulesToInstall.Count"), "0")) { %>
			<%/* Generate a header that describes what the scope is used for  */%>
		    <table width="60%" border="0" cellspacing="0" cellpadding="2">
		        <tr>
		            <td class="mediumtext">
						<nobr>
		                <%= c.string("CfgWiz.Scope.Scope") %>&nbsp;&nbsp;
		                <input  type="text"
		                        name="Scope"
		                        value="<%= c.var("SearchResults") %>"
		                        size="40"
		                        onClick="enableScopeInherited()"
		                        onKeyPress="enableScopeInherited()"
		                        onBlur="enableScopeInherited()"
		                        />
			  			<% c.set("OS.TypeFilter", "[containers],[root]");
                		   c.set("OS.CallBack", "addScope");
				           c.set("OS.Control", "Scope");
                           c.set("OS.CustomProcessing", "true");
                           c.set("OS.Mode", "Browse");
                           c.set("OS.History", "true"); %>
		                <jsp:include page='<%= c.getPath("dev/OS_inc.jsp") %>' flush="true" />
						</nobr>
		            </td>
				</tr>
				<tr>
					<input type="hidden" name="DoAssignRights" value="<%= c.var("DoAssignRights") %>">
					<td class="mediumtext" valign="bottom">
						<input 	type="checkbox"
								name="AssignRights"
                        onClick="changeInherited()"
						/>
						<%= c.string("CfgWiz.Scope.AssignRights") %>
					</td>
				</tr>
				<tr>
					<input type="hidden" name="ScopeIsInherited" value="<%= c.var("ScopeIsInherited") %>">
					<td class="mediumtext" valign="bottom">
						<input 	type="checkbox"
								name="ScopeInheritable"
						/>
						<%= c.string("CfgWiz.Scope.Inheritable") %>
					</td>
				</tr>
		    </table>
			<span class="formdescriptextml0">
				<div class="width400">
					<%= c.string("CfgWiz.Scope.Header") %>
				</div>
			</span>
			<% } else {%>
         <div>
            <table border=0 cellpadding=0 cellspacing=0 width=400>
               <tr class="head4">
                  <td valign="top">
                     <IMG height="32" width="32" src="<%= c.getModulesUrl() %>/dev/images/notice32.gif" valign="top">
                  </td>
                     <span>
                        <td>
                           <span class="typegold1"><%= c.string("HomePage.HiddenTasks.Notice") %></span>&nbsp;&nbsp;<%= c.string("CfgWiz.NoModulesAvailable") %>
                        </td>
                     </span>
                  </tr>
            </table>
         </div>
			<% } %>

		</form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
	</body>
</html>



						   <%/* * * * * * *  */
                             /* End of File  */
                             /* * * * * * *  */%>
