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

<%@ 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="BaseResources"/>


<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <iman:stylesheet/>
   <iman:eMFrameScripts/>
   <iman:osScripts/>

   <SCRIPT>
      	var returnMethodName = "<c:out value="${param.returnMethodName}"/>";
      	var startingPriv = 0;
      
		function onOk()
		{
		   var volName = document.form.volume.value;
		   if(volName == null || volName == "")
		   {
		   		alert("<iman:string key="CreateUser.InvalidVolume"/>");
		   		return false;
		   }

		   var pathName = document.form.path.value;
		   if(pathName == null || pathName == "")
		   {
		   		alert("<iman:string key="CreateUser.InvalidPath"/>");
		   		return false;
		   }
		   
		   var typeName = document.form.type.value;
		   if(typeName == "") typeName = "0";
		   var list = [typeName, volName, pathName];
		   var multivaluedPath = pack(list);
		
		   eval("opener." + returnMethodName + "(\"" + multivaluedPath + "\")");
		   window.close();
		}
   </SCRIPT>
</HEAD>


<c:if test="${param.volume != null}">
  <c:if test="${param.path != null}">
 <!-- 	<BODY onLoad="onInit(<c:out value="${param.volume}"/>, '<iman:toScript><c:out value="${param.type}"/></iman:toScript>' );">
  -->
  </c:if>
</c:if>
<FORM name="form" method=post action="webacc">

   <iman:taskHeader titleKey="PathUiHandlerName" titleBundle="FwResources"/><BR>

   <INPUT type="hidden" name="type" value="<c:out value="${param.type}"/>"><BR><BR>

   <SPAN class="mediumtext"><iman:string key="PathUiHandlerVolume"/>:</SPAN><BR>
   <INPUT type="text" name="volume" value="<c:out value="${param.volume}"/>" style="width: <iman:string key="UI.textboxPixel"/>"><iman:os typeFilter="volume" control="volume" history="true"/><BR><BR>

   <SPAN class="mediumtext"><iman:string key="PathUiHandlerPath"/>:</SPAN><BR>
   <INPUT type="text" name="path" value="<c:out value="${param.path}"/>" style="width: <iman:string key="UI.textboxPixel"/>"><BR><BR>

   <iman:bar/>
   <iman:button key="OK" onClick="onOk();"/>
   <iman:button key="Cancel" onClick="window.close()" />

</FORM>
<iman:osFooter/>
</BODY>
</HTML>
