<%@  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: WizProgress.jsp %
%version: 11 %
%date_modified: Tue May 20 17:28:26 2003 %
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.
***************************************************************************  */


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


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE>
			<%= c.string("CfgWiz.Progress.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">
			<!--
				<jsp:include page="WizProgress_js.jsp" flush="true" />
			//-->
		</SCRIPT>
	</HEAD>


	<BODY
			onKeyDown="return onKeyDown_Accelerator();"
			onLoad="setFocusAndInitializeForm()">
		<FORM
				name="Wiz_MainForm"
				method=post
				action="<%= c.var("Wiz.ActionURL") %>"
				onSubmit="return( false )">
			<jsp:include page="WizHiddenVariables_inc.jsp" flush="true" />
			<INPUT type="hidden" name="Hidden_AnswerCount"    value="<%= c.toHTML(c.var("Question_MaxInput")) %>" />
			<% c.set("qi", "0");
			   while ((c.lt(c.var("qi"), c.var("Question_MaxInput")))) {
				   c.set("qn", c.plus("Hidden_Answer.", c.var("qi")));
				   if ((c.lt("0", c.var("qi")))) { %><BR /><% } %>
				<INPUT type="hidden" name="<%= c.var("qn") %>" value="" />

				<% c.inc("qi");
			   } %>
			<jsp:include page="WizErrorDisplay_inc.jsp" flush="true" />


			<%/* Generate the in progress/completed graphic and  */
			  /* associated text.                                */%>
			<NOBR>
				<% if ("true".equals(c.var("Operation.Active"))) { %>
					<IMG
						height="32"
						width="32"
						align="absmiddle"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_InProgress.gif"
						title="<%= c.string("CfgWiz.Common.InProgress") %>"
						alt="<%= c.string("CfgWiz.Common.InProgress") %>"/>
					<SPAN class="head3a">
						<% if ("question".equals(c.var("Progress_Type"))) { %>
							  <%= c.string("CfgWiz.Progress.WaitingForAnswer") %>
						<% } else { %><%= c.string("CfgWiz.Progress.InProgress") %>
						<% } %>
					</SPAN>

				<% } else { %>
					<IMG
						height="32"
						width="32"
						align="absmiddle"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_Completed.gif"
						title="<%= c.string("CfgWiz.Common.Completed") %>"
						alt="<%= c.string("CfgWiz.Common.Completed") %>"/>
					<SPAN class="head3a">
						<%= c.string("CfgWiz.Progress.Completed") %>
					</SPAN>
				<% } %>

				&nbsp;&nbsp;
				<%= c.string("CfgWiz.Progress.Operation") %>
			</NOBR>


			<%/* Generate a push button allowing the user to update the progress  */%>
			<BR />
			<% if ((("true".equals(c.var("Operation.Active"))) && ("question".equals(c.var("Progress_Type")) == false))) { %>
				<A href="javascript:handleUpdate()"><IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_Update_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.Update") %>"
						alt="<%= c.string("CfgWiz.Common.Update") %>"
						name="WizPB_Update"/></A>
				<A href="javascript:handleUpdateInterval()"><IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_UpdateInterval_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.UpdateInterval") %>"
						alt="<%= c.string("CfgWiz.Common.UpdateInterval") %>"
						name="WizPB_UpdateInterval"/></A>

				&nbsp;&nbsp;
<!-- we dont want to let them cancel since there is no rollback or cleanup code
				<A href="javascript:parent.window.Wiz_NavigationFrame.handleNavigationPB( 'WizPB_Cancel' )"><IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_Cancel_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.Cancel") %>"
						alt="<%= c.string("CfgWiz.Common.Cancel") %>"
						name="WizPB_Cancel"/></A>
-->

			<% } else { %>
				<IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_UpdateDis_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.Update") %>"
						alt="<%= c.string("CfgWiz.Common.Update") %>"/>
				<IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_UpdateIntervalDis_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.UpdateInterval") %>"
						alt="<%= c.string("CfgWiz.Common.UpdateInterval") %>"/>

				&nbsp;&nbsp;
				<IMG
						border="0"
						src="<%= c.getModulesUrl() %>/fw/images/wiz_CancelDis_<%= c.string("CfgWiz.LangID") %>.gif"
						title="<%= c.string("CfgWiz.Common.Cancel") %>"
						alt="<%= c.string("CfgWiz.Common.Cancel") %>"/>
			<% }


			  /* Generate the panel"s header that describes what"s  */
			  /* being displayed.                                   */%>
			<BR /><BR />
			<SPAN class="formdescriptextml0">
				<DIV class="width400">
					<%= c.string("CfgWiz.Progress.Header") %>
				</DIV>
			</SPAN>


			<%/* Generate the eMBox progress messages...  */%>
			<NOBR>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<TEXTAREA
						name="msgText"
						class="progressarea"
						style="width:90%"
						rows="10"
						readonly
						wrap="off">
					<% c.set("ri", "0");
					   while ((c.lt(c.var("ri"), c.var("CfgWiz.Response.Count")))) {
						   c.set("rn", c.plus("CfgWiz.Response.", c.var("ri")));  c.set("rv", c.var(c.var("rn"))); %>
<%= c.toHTML(c.var("rv")) %><% c.inc("ri");} %>
				</TEXTAREA>
				<% c.set("ri", c.var("null"));
				   c.set("rn", c.var("null"));
				   c.set("rv", c.var("null")); %>
			</NOBR>


			<%/* Finally, generate a message telling the user what  */
			  /* their options are from here.                       */%>
			<BR />
			<SPAN class="formdescriptextml0">
				<DIV class="width400">
					<% if ("true".equals(c.var("Operation.Active"))) {
						   if ("question".equals(c.var("Progress_Type"))) { %>
							<%= c.string("CfgWiz.Progress.ProgressFooter.Waiting") %>
						<% } else { %>
							<%= c.string("CfgWiz.Progress.ProgressFooter.Active") %>
						<% }

					   } else { %>
				 		<%= c.string("CfgWiz.Progress.ProgressFooter.Complete") %>
				 	<% } %>
				</DIV>
			</SPAN>

		</FORM>


		<%/* The following form is used to launch a question in a popup  */%>
		<FORM
				name="Wiz_QuestionForm"
				target=""
				method=post
				action=""
				onSubmit="return( false )">
			<INPUT type=hidden name="Question_List"       value="<%= c.toHTML(c.var("Question_List")) %>" />
			<INPUT type=hidden name="Question_List_Count" value="<%= c.toHTML(c.var("Question_List_Count")) %>" />
			<INPUT type=hidden name="Question_MaxInput"   value="<%= c.toHTML(c.var("Question_MaxInput")) %>" />
			<INPUT type=hidden name="Question_Message"    value="<%= c.toHTML(c.var("Question_Message")) %>" />
			<INPUT type=hidden name="Question_Type"       value="<%= c.toHTML(c.var("Question_Type")) %>" />
		</FORM>
	</BODY>
</HTML>



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