<!--
//   Name:  TaskLaunchingExampleTemplate.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:pageScripts/>
   <iman:eMFrameScripts/>
   <script>

   function popupServerSideWindow()
   {
      var url = "frameservice?NPService=fw.LaunchService&NPAction=Launch&launch=sdk.TaskLaunchingExampleServerSide&launcher=fw.LaunchService&lifecycle=New&repeatable=true&firstTextValue=" + document.forms[0].firstTextValue.value;
      var date = new Date();
      url += "&unique=" + date.getTime();
      window.open(url, "ServerSideExample", "toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=200");
   }

   function popupClientSideWindow()
   {
      var url = "frameservice?NPService=fw.LaunchService&NPAction=Launch&launch=sdk.TaskLaunchingExampleClientSide&launcher=fw.LaunchService&lifecycle=New&repeatable=true&secondTextValue=" + document.forms[0].secondTextValue.value;
      var date = new Date();
      url += "&unique=" + date.getTime();
      window.open(url, "ClientSideExample", "toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=200");
   }
   </script>
</HEAD>

<BODY>
<form>
<iman:bookvars/>
<input type="hidden" name="firstTextValue" value="<c:out value="${firstTextValue}"/>">
<iman:string key="TaskLaunchingExample.Description2"/>
<br/>
<br/>
<b><iman:string key="TaskLaunchingExample.ServerExample"/>
:</b>
<br/>
<iman:string key="TaskLaunchingExample.ServerExampleDescription"/>
<br/>
<iman:string key="TaskLaunchingExample.ServerExampleValue"/>: <c:out value="${firstTextValue}"/>
<br/>
<a href="" onClick="popupServerSideWindow();return false;"><iman:string key="TaskLaunchingExample.ServerExampleLink"/>
</a>
<br/>
<br/>
<b><iman:string key="TaskLaunchingExample.ClientExample"/>:</b>
<br/>
<iman:string key="TaskLaunchingExample.ClientExampleDescription"/>
<br/>
<iman:string key="TaskLaunchingExample.ClientExampleValue"/>: <input type="text" name="secondTextValue" size="15" value="<c:out value="${secondTextValue}"/>">
<br/>
<a href="" onClick="popupClientSideWindow();return false;"><iman:string key="TaskLaunchingExample.ClientExampleLink"/></a>

<br/>
<br/>
<iman:string key="TaskLaunchingExample.Description3"/>

</form>
</BODY>
</HTML>
