<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit, com.novell.emframe.dev.eMFrameUtils,
                                                                             java.util.Hashtable,
                                                                             java.util.Enumeration,
                                                                             com.novell.emframe.fw.config.ModuleInfo,
                                                                             com.novell.emframe.dev.config.SystemConfig,
                                                                             com.novell.emframe.fw.config.SystemConfigManager,
                                                                             com.novell.emframe.dev.eMFrameFactory" %>
<%   JSPConduit c = JSPConduit.getJSPConduit(request);
   c.stringTable("DevResources");
   c.stringTable("BaseResources");
   c.stringTable("FwResources");%>

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

<HTML><HEAD><TITLE></TITLE>
<LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
	<script language="javascript">


   function loadRBSConfig()
   {

      var strUrl = "webacc?NPService=fw.LaunchService&NPAction=Delegate" +
      "&delegate=fw.RBS Configuration" +
      "&launcher=" + "fw.ModulesToInstall" +
      "&lifecycle=Recreate" +
      "&nextState=initialState" +
      "&merge=fw.CollectionMain" +
      "&moduleaction=AfterRBSIsInstalled";

      window.location.href = strUrl;
   }

   </script>
</HEAD>
<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF">
<FORM name="ModulesToConfirm" method="post" action="webacc">
   <input type=hidden name="NPService" value="<%= c.var("taskId" ) %>">
   <input type=hidden name="moduleaction" value="AfterRBSIsInstalled">

   <% c.set("TaskHeader.title", c.string("ModulesToInstall.ModulesToInstall"));
	   c.set("TaskHeader.iconUrl", "dir/object16.gif");%>

   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />

   <table><tr style="height:8px"><td></td></tr></table>
	<div class="formdescriptextml0" ><%= c.var("ConfirmBody") %></div>
   <table border=0 cellpadding=0 cellspacing=0>
   <%
      String sSuccess = (String)request.getAttribute( "ConfirmMessage" );
      if( sSuccess != null && sSuccess.length() != 0 )
      { %>

            <tr style="height:8px"><td></td></tr>
            <tr class="head4">
               <td>
                  <img height="32" width="32" align="top"
                     alt="<%= c.string( "Icon.Success.alt" ) %>"
                     border="0"
                     src="<%= c.getModulesUrl() + "/dev/images/success32.gif" %>"/>
               </td>
               <td>
                  <span class="typegold1"><%= c.string("Icon.Success") %>:</span>
                  &nbsp;&nbsp;<%= c.var("ConfirmMessageTitle") %>
               </td>
            </tr>
            <tr style="font-size: 0.81em;">
               <td>&nbsp;</td>
               <td><%= c.var("ConfirmMessage") %></td>
            </tr>
            <tr style="font-size: 0.81em;">
               <td>&nbsp;</td>
               <td><%= c.var("ConfigureRBSMessage") %></td>
            </tr>
            <tr style="height:8px"><td></td></tr>
      <% }

      String sConfig = SystemConfigManager.getSingleSetting(null, "fieldpatch");
      String sTitle = SystemConfigManager.getSingleSetting(null, "fieldpatchtitle");
      eMFrameUtils.setMessage("error", sTitle, sConfig, eMFrameFactory.getMContext(request));
      SystemConfigManager.setSetting(null, "fieldpatch", "");
      SystemConfigManager.setSetting(null, "fieldpatchtitle", "");
      if( sConfig != null && sConfig.length() != 0 )
      { %>
	      <div style="margin:1em"><iman:messagebar /></div>
      <% }
   %>
   </table>
   <jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
   <a href="webacc?NPService=fw.LaunchService&NPAction=Return&returnID=<%= c.var("taskId") %>"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Close.image") %>" border=0 alt="<%= c.string("Button.Close.alt") %>"></a>
   <jsp:include page='/portal/CopyOnStartup.jsp' flush="true" />

</FORM>
</BODY></HTML>
