<%@  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); 
   c.stringTable("DevResources"); 
   c.stringTable("FwResources"); 
   c.stringTable("BaseResources"); %>
<HTML>
<HEAD>
<TITLE><%= c.toDisplay(c.string("DevelopersForm.Task.DisplayName")) %></TITLE>
<LINK   href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>"
        rel="styleSheet"
        type="text/css">
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<script language="JavaScript">

    //Global variables
    var myWindow = null;
 
   
    /*******************
     * FUNCTION HEADER *
     *******************/   
    function nextSelected()
    {
        var form = document.FinishPageForm;
        
        form.elements["merge"].value="fw.DeveloperCreate";
        form.elements["nextState"].value="DeveloperCreatePage";
        form.elements["Task.SelectedButton"].value="NextFinishButton";
        form.submit();
    }
   
   
    /*******************
     * FUNCTION HEADER *
     *******************/   
    function backSelected()
    {
        var form = document.FinishPageForm;
                
        form.elements["merge"].value="fw.DeveloperSummary";
        form.elements["nextState"].value="DeveloperSummaryPage";
        form.elements["Task.SelectedButton"].value="BackFinishButton";
        form.submit();
    }
   
 
    /*******************
     * FUNCTION HEADER *
     *******************/   
    function saveSelected()
    {
        var form = document.FinishPageForm;
        var browser = form.Browser_name.value;
        
         if ((myWindow == null) || myWindow.closed)
         {
             var strUrl = "webacc?taskId=fw.Developer&merge=fw.XMLFileData&User.context=<%= c.var("User.context") %>&nextState=OutputXML&Task.SelectedButton=SaveFinishButton";
             var winOptions = "toolbar=no,location=no,directories=no,menubar=yes,scrollbars=yes,resizable=yes,width=575,height=600";
             myWindow = window.open(strUrl, "", winOptions);
         }
         else
         {
             myWindow.focus();
         }

    }
   

</SCRIPT>
</HEAD>

<BODY   TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF">
<form   name="FinishPageForm"
        method="post"
        action="webacc">
        
        <input  type=hidden
                name="taskId"
                value="fw.Developer">
            
        <input  type=hidden
                name="merge"
                value="">
                    
        <input  type=hidden
                name="error"
                value="dev.GenErr">
                    
        <input  type=hidden
                name="User.context"
                value="<%= c.var("User.context") %>">
                    
        <input  type=hidden
                name="nextState"
                value="">
                    
        <input  type=hidden
                name="Task.SelectedButton"
                value="">
                    
        <input  type=hidden
                name="XML_File_Content_Name"
                value="<%= c.toDisplay(c.var("XML_File_Content_Value")) %>">
                    
        <input  type=hidden
                name="Browser_name"
                value="<%= c.toDisplay(c.var("Browser.name")) %>">
 
	<!-- ************ -->
	<!-- HEADER TABLE -->
	<!-- ************ -->
    <% c.set("WizardHeader.title", c.toDisplay(c.string("DevelopersForm.Wizard.Header"))); 
       c.set("WizardHeader.subtitle", c.toDisplay(c.string("Schema.Step8"))); 
       c.set("WizardHeader.instruction", c.toDisplay(c.string("DevelopersForm.Finish.Step"))); 
       c.set("WizardHeader.helpFile", "base/xmlinstallfile_save.html"); %>
    <jsp:include page='<%= c.getPath("dev/WizardHeader_inc.jsp") %>' flush="true" />
                
	<!-- ************************* -->
	<!-- STEPS & INSTRUCTION TABLE -->
	<!-- ************************* -->
    <table border="0" cellspacing="0" cellpadding="2" width="90%">
        <tr valign="baseline"> 
            <td height="16" colspan="7" align="center" valign="middle" class="instructions"> 
                <div align="left"><%= c.toDisplay(c.string("DevelopersForm.Finish.Instruction")) %></div>
            </td>
        </tr>
        <tr valign="baseline"> 
            <td height="16" colspan="7" align="center" valign="middle" class="instructions">
                &nbsp;
            </td>
        </tr>
        </tr>
        <tr valign="baseline">
            <td>
               <A href="webacc?taskId=fw.DownloadFile&file=temp/<%= c.var("TempInstall.XML.FileName") %>" target="Empty"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.SaveAs.image") %>" alt="<%= c.string("Button.SaveAs.alt") %>" title="<%= c.string("Button.SaveAs.alt") %>" border=0></A>
            </td>
        </tr>
   </table>
   <table>
        <tr valign="baseline">
            <td height="16" colspan="7" align="center" valign="middle" class="mediumtext">
                 <IMG src="<%= c.getModulesUrl() + "/fw/images/" + c.string("StatusNotice.image") %>"
                    alt="<%= c.toDisplay(c.string("StatusNotice.alt")) %>"
                    title="<%= c.toDisplay(c.string("StatusNotice.alt")) %>" border=0>&nbsp
                    <%= c.toDisplay(c.string("DevelopersForm.Finish.MustSave")) %>
            </td>
        </tr>
    </table>

	<!-- ************ -->
	<!-- BUTTON TABLE -->
	<!-- ************ -->
    <table width="85%" border="0" cellspacing="0" cellpadding="0" height="25">
        <tr valign="baseline" bgcolor="#FFFFFF">
            <td height="16" colspan="5" align="center" valign="middle" class="mediumtext">
                &nbsp;
            </td>
            <td height="16" align="left" valign="middle" colspan="2" class="mediumtext">
                &nbsp;
            </td>
        </tr>
        <tr> 
            <td colspan="2" height="23" class="ruleabove">
                <a href="#" onClick="javascript:backSelected();return false">
                    <IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Back.image") %>"
                    alt="<%= c.string("Button.Back.alt") %>"
                    title="<%= c.string("Button.Back.alt") %>"
                    border=0></a>
                <a href="#" onClick="javascript:nextSelected();return false">
                    <IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Next.image") %>"
                    alt="<%= c.string("Button.Next.alt") %>"
                    title="<%= c.string("Button.Next.alt") %>"
                    border=0></a><jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
            </td>
        </tr>
    </table>
</form>
</BODY></HTML>

