<!--
//   Name:  FileUploadExampleEntryTemplate.jsp
//
//   Copyright (c) 1997-2004 Novell, Inc.  All Rights Reserved.
//
//   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
//   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT
//   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK.
//   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A
//   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS
//   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET,
//   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S
//   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S
//   CUSTOMERS WITH RESPECT TO THIS CODE.
-->

<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" 
		import="com.novell.emframe.dev.eMFrameUtils" %>


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

<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="com.company.plugins.iManagerCodeExamplesResources"/>


<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">
   <iman:eMFrameScripts/>

   <script language="JavaScript">
        function verifyInput(){
            if(document.uploadForm.fileToUpload.value.length<1){
                alert("<iman:string key='FileUploadExample.Alert'/>");
                return false;
            }
            else
                return true;
        }
   </script>
</HEAD>

<BODY>
   <iman:taskHeader titleKey="FileUploadExample.TaskDisplayName" />

   <form name="uploadForm" method="post" action="webacc?Autoparse=true" enctype="multipart/form-data" onSubmit="return(verifyInput())">
      <INPUT type="hidden" name="error" value="dev.GenErr">
      <INPUT type="hidden" name="User.context" value="<c:out value="${User.context}" />">
      <INPUT type="hidden" name="taskId" value="sdk.FileUploadExample">
      <INPUT type="hidden" name="nextState" value="doUpload">
		
	  <iman:string key="FileUploadExample.Description"/>
	  <br><br>

      <iman:string key="FileUploadExample.Prompt"/>:
      <br>
      <INPUT type="file" name="fileToUpload">
      <br>

      <BR><BR>
      <iman:bar/>
      <iman:button key="OK" type="input"/>
      <iman:cancelBtn/>
   </form>
</BODY>
</HTML>
