<%@  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">


    /*******************
     * FUNCTION HEADER *
     *******************/
    function nextSelected()
    {
        var form = document.DeveloperModuleForm;

        form.elements["merge"].value="fw.DeveloperRoleList";
        form.elements["nextState"].value="DeveloperRoleListPage";
        form.elements["Task.SelectedButton"].value="NextModuleButton";

        if(checkRequiredFields() == false)
        {
            document.DeveloperModuleForm.DM_ModuleName_Name.focus();
            return false;
        }

        form.submit();
    }


    /*******************
     * FUNCTION HEADER *
     *******************/
    function backSelected()
    {
        if(confirm("<%= c.toScript(c.string("DevelopersForm.Module.DataLost")) %>")== false)
        {
            return;
        }

        var form = document.DeveloperModuleForm;

        form.elements["merge"].value="fw.DeveloperFile";
        form.elements["nextState"].value="DeveloperFilePage";
        form.elements["Task.SelectedButton"].value="BackModuleButton";
        form.submit();
    }


    /*******************
     * FUNCTION HEADER *
     *******************/
    function checkRequiredFields()
    {
        var moduleName = document.DeveloperModuleForm.DM_ModuleName_Name.value;
        if ((moduleName == null) || (moduleName.length == 0))
        {
            alert("<%= c.toScript(c.string("DevelopersForm.Module.NameRequired")) %>");
            return false;
        }

        return true;
    }


    /*******************
     * FUNCTION HEADER *
     *******************/
    function onPageLoad()
    {
        document.DeveloperModuleForm.DM_ModuleName_Name.focus();
    }


    /*******************
     * FUNCTION HEADER *
     *******************/
	function checkDefaultKey(evt)
   {
      var keyCode = evt.which ? evt.which : evt.keyCode;
      // 13 is the Enter key code
      if (keyCode == 13)
      {
         return(nextSelected());
      }
      return true;
   }



</SCRIPT>
</HEAD>

<BODY   TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF"
        onLoad="onPageLoad()">
<form   name="DeveloperModuleForm"
        method="post"
        onSubmit="return(nextSelected())"
        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="">

	<!-- ************ -->
	<!-- HEADER TABLE -->
	<!-- ************ -->
    <% c.set("WizardHeader.title", c.toDisplay(c.string("DevelopersForm.Wizard.Header")));
       c.set("WizardHeader.subtitle", c.toDisplay(c.string("Schema.Step2")));
       c.set("WizardHeader.instruction", c.toDisplay(c.string("DevelopersForm.Module.Step")));
       c.set("WizardHeader.helpFile", "base/xmlinstallfile_fileinfo.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.Module.Instruction")) %></div>
            </td>
        </tr>
        <tr valign="baseline">
            <td height="16" colspan="5" align="center" valign="middle" class="mediumtext">
                &nbsp;
            </td>
        </tr>
    </table>

    <!-- ************* -->
    <!-- CONTENT TABLE -->
    <!-- ************* -->
    <table width="90%" border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td colspan="2" class="formhead1">
                <%= c.toDisplay(c.string("DevelopersForm.Module.ModuleForm")) %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                &nbsp;
            </td>
            <td width="70%">
                <div align="right">
                    <font color="#FF0000" class="smalltext">
                        <%= c.toDisplay(c.string("DevelopersForm.RequiredField")) %>
                    </font>
                </div>
            </td>
        </tr>
        <tr>
            <td width="30%" class="mediumtext">
                <%= c.toDisplay(c.string("DevelopersForm.Module.ModuleId")) %>
            </td>
            <td width="70%">
                <input  type="text"
                        name="DM_ModuleName_Name"
                        value="<%= c.toDisplay(c.var("DM_ModuleName_Value")) %>"
                        size="30"
                        onkeypress="return checkDefaultKey(event)">&nbsp;<font color="#FF0000">*</font>
            </td>
        </tr>
        <tr>
            <td width="30%" valign="top">&nbsp; </td>
            <td width="70%" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" height="17" class="tablesubhead1">
                <%= c.toDisplay(c.string("DevelopersForm.Module.Versioniong")) %>
            </td>
        </tr>
        <tr>
            <td colspan="2" height="11">
            </td>
        </tr>
        <tr>
            <td width="30%" class="mediumtext">
                <%= c.toDisplay(c.string("DevelopersForm.Module.VersionNumber")) %>
            </td>
            <td width="70%">
                <input  type="text"
                        name="DM_Version_Name"
                        value="<%= c.toDisplay(c.var("DM_Version_Value")) %>"
                        size="4"
                        onkeypress="return checkDefaultKey(event)">
            </td>
        </tr>
        <tr>
            <td width="30%" valign="bottom">&nbsp; </td>
            <td width="70%">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" class="tablesubhead1">
                <%= c.toDisplay(c.string("DevelopersForm.ResourceFile")) %>
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top" height="9">
            </td>
        </tr>
        <tr>
            <td width="30%" valign="top" class="mediumtext">
                <%= c.toDisplay(c.string("DevelopersForm.Module.FileName")) %>
            </td>
            <td width="70%" valign="middle" class="smalltext2d">
                <input  type="text"
                name="DM_ResourceBundle_Name"
                value="<%= c.toDisplay(c.var("DM_ResourceBundle_Value")) %>"
                size="30"
                onkeypress="return checkDefaultKey(event)">
                <br>
                <%= c.toDisplay(c.string("DevelopersForm.Module.FileNameExample")) %>
            </td>
        </tr>
        <tr>
            <td width="30%" valign="top">&nbsp;</td>
            <td width="70%" bgcolor="#FFFFFF">&nbsp;</td>
        </tr>

        <tr>
            <td colspan="2" class="tablesubhead1">
                <%= c.toDisplay(c.string("DevelopersForm.Description")) %>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top">
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top" height="11">
            </td>
        </tr>
        <tr>
            <td width="30%" valign="top" class="mediumtext">
                <%= c.toDisplay(c.string("DevelopersForm.Module.ModuleDescription")) %>
            </td>
            <td width="70%" valign="bottom">
                <textarea   name="DM_DescriptionData_Name"
                            rows="4"
                            cols="30"
                            maxlength="64"
                            onkeypress="return checkDefaultKey(event)"
                            wrap=virtual><%= c.toDisplay(c.var("DM_DescriptionData_Value")) %></textarea>
            </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>

