<%@  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: WizErrorDisplay_inc.jsp %
%version: 7 %
%date_modified: Thu May 22 17:20:08 2003 %
Copyright (c) 2001 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.
***************************************************************************  */


  /* Do we need to display an error message?  */
   if ((c.string("CfgWiz.Error.Error").equals(c.var("CfgWiz.ErrorStatus")))) { %>
	<NOBR>
		<IMG
				height="32"
				width="32"
				src="<%= c.getModulesUrl() %>/fw/images/wiz_Error.gif"
				align="absmiddle"/>
		<SPAN class="head3a">
			<%= c.string("CfgWiz.ErrTitle.Error") %>
		</SPAN>
		<SPAN class="errorlink2"><NOBR>
			<%= c.string("CfgWiz.Error.CfgError") %>
		</NOBR></SPAN>
	</NOBR>

	<BR />
	<DIV class="width400">
		<P class="marginleft3">
			<%/* Does the error message need to be patched?  */
			   c.set("numPatches", c.var("CfgWiz.ErrorMsgArgsVar"));

			   if ((c.var("CfgWiz.ErrorMsg").equals("") == false)) {
				  /* We have an error message that was already formatted by the servlet -- */
				  /* so just display the error.  */%>
				<%= c.toHTML(c.var("CfgWiz.ErrorMsg")) %>

			<% } else if (("0".equals(c.var("numPatches")))) {
				  /* No!  Simply display the error.  */
				   c.set("msgV", c.string(c.var("CfgWiz.ErrorMsgVar"))); %>
				<%= c.toHTML(c.var("msgV")) %>

			<% } else {
				  /* Yes, the error message needs to be patched!  Scan  */
				  /* the patches...                                     */
				   c.set("i", "0");
				   while ((c.lt(c.var("i"), c.var("numPatches")))) {
					  /* ...adding each to an array... */
					   c.set("pi", c.plus("CfgWiz.ErrorMsgVar.Patch.", c.var("i")));
					   c.set(("p."+c.var("i")), c.var(c.var("pi"))); 
					   c.inc("i");
				   }
				   while ((c.lt(c.var("i"), "10"))) {
					  /* ...that always contains 10 entries...  */
					   c.set(("p."+c.var("i")), ""); 
					   c.inc("i");
				   }

				  /* ...and display the patched error message.  */
				   c.set("msg", c.string(c.var("CfgWiz.ErrorMsgVar")));
				   c.set("msgV", c.formatMessage(c.var("msg"), new String[]{c.var("p."+"0"), c.var("p."+"1"), c.var("p."+"2"), c.var("p."+"3"), c.var("p."+"4"), c.var("p."+"5"), c.var("p."+"6"), c.var("p."+"7"), c.var("p."+"8"), c.var("p."+"9")})); %>
				<%= c.toHTML(c.var("msgV")) %>
			<% } %>
		</P>
	</DIV>


	<%/* ...and put some space between the error and the remainder of  */
	  /* ...the panel.                                                 */%>
	<BR />
<% }



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