<%@  page import="com.novell.webaccess.common.JSPConduit,
                  java.util.ResourceBundle,
                  com.novell.emframe.dev.eMFrameUtils" %>

<%   JSPConduit c = JSPConduit.getJSPConduit(request); %>

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

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

<%--manually modified it--%>


<iman:stringtable bundle="DevResources"/>
<x:parse xml="${edas}" var="edasXml"/>


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


   <iman:include page="dev/eMFrameScripts_inc.jsp"/>
   <iman:include page="dev/MVStringEditorScripts_inc.jsp"/>
   <iman:include page="dev/ValidateIntegerScripts_inc.jsp"/>
   <iman:include page="dev/OSScripts_inc.jsp"/>
   <iman:include page="dev/MVNetworkAddrScripts_inc.jsp"/>

<SCRIPT language="JavaScript" src="<%= c.getModulesUrl() + "/dev/javascripts/" %>ParseFileSystemString.js"></script>

   <SCRIPT>
      function onInit()
      {
      }

      function isPageValid()
      {
         return notifyAllOfExit();
      }
      
      function parseHomeDirectory(controlName, resultsArray)
      {
      		var volumeObject = getVolumeObject(resultsArray[0]);
            document.form.elements[controlName].value = volumeObject;
      	  	var fileSystemPath = getFileSystemPath(resultsArray[0]);
      	  	if(fileSystemPath.length ==  0)
      	  	{
      	  		fileSystemPath = "\\";
      	  	}
      	  	
      	  	document.form.elements["_Home_DirectoryPath"].value = fileSystemPath;
      }
   </SCRIPT>
</HEAD>

<BODY onLoad="returnFromOS();onInit();">
<FORM name="form" method=post action="webacc">
   <iman:include page="dev/Messagebar_inc.jsp"/>
   <iman:include page="dev/BookVars_inc.jsp"/>


   <TABLE class="mediumtext" border="0" cellpadding="0" cellspacing="0">

   <!-- Language -->
   <TR>
      <TD align=left colspan=2>
         <c:out value="${LanguageDisplayName}"/>:&nbsp;&nbsp;
      </TD>
   </TR>
   <TR>
      <TD>
         <INPUT type="hidden" name="eDir$target$Language" value="<x:out select="$edasXml/edas/Language/value"/>" >
         <SCRIPT>addToNotificationList('Language', 'uih_mvStringEditor');</SCRIPT>
         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/Language" scope="request"/>
         <iman:mved readonly="${!edasRights.target.Language.writeable}" enforceUnique="true" name="_Language"         />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/Language/@mode"/></c:set>
         <iman:mooMode name="_Language_mode" value="${mode}" multi="false" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>

   <!-- Message Server -->
   <TR>
      <TD align=left colspan=2>
         <c:out value="${Message_ServerDisplayName}"/>:&nbsp;&nbsp;
      </TD>
   </TR>

   <TR>
     <TD>      
         <INPUT type="hidden" name="eDir$target$Message_Server" value="<x:out select="$edasXml/edas/Message_Server/value"/>" >
         <INPUT type="text" name="_Message_Server"  value="<x:out select="$edasXml/edas/Message_Server/value"/>"  size=<iman:string key="UI.textboxSize"/> style="width:<iman:string key="UI.textboxPixel" />"   <c:if test="${!edasRights.target.Message_Server.writeable}">DISABLED</c:if> >         <SCRIPT>addToNotificationList('Message_Server', 'uih_textfield');</SCRIPT>
         <c:if test="${edasRights.target.Message_Server.writeable}" >
            <iman:os typeFilter="NCP Server" control="_Message_Server" history="true"/>
         </c:if>
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/Message_Server/@mode"/></c:set>
         <iman:mooMode name="_Message_Server_mode" value="${mode}" multi="false" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>

   <!-- Network Address - not editable and thus doesn't support MOO -->
   <c:if test="${taskIsMoo!='true'}">
      <TR>
         <TD align=left colspan=2>
            <c:out value="${Network_AddressDisplayName}"/>:&nbsp;&nbsp;
         </TD>
      </TR>
      <TR>
         <TD>
            <c:set var="MVNetworkAddr_name" value="_Network_Address"  scope="request"/>
            <c:set var="MVNetworkAddr_readonly" value="true"  scope="request"/>
            <x:set var="MVNetworkAddr_xmlNodeSet" select="$edasXml/edas/Network_Address" scope="request"/>
            <iman:include page="dev/MVNetworkAddr_inc.jsp"/>
         </TD>
      </TR>
      <TR><TD height=9></TD></TR>
   </c:if>


   <%-- Home Directory --%>
   <TR>
      <TD align="left" colspan="2">
         <c:out value="${Home_DirectoryDisplayName}"/>:&nbsp;&nbsp;
      </TD>
   </TR>
   <TR><TD height=4></TD></TR>
   <TR>
      <TD>
         <c:if test="${edasRights.target.Home_Directory.writeable}">
            <INPUT type="hidden" name="eDir$target$Home_Directory" value="<c:out value="${eDir$target$Home_Directory}" escapeXml="false"/>">
            <SCRIPT>addToNotificationList('Home_Directory', 'uih_path');</SCRIPT>
         </c:if>
         <TABLE border="0" cellpadding="1" cellspacing="0" class="mediumtext">
            <TR>
               <TD >&nbsp;&nbsp;&nbsp;&nbsp;<iman:string key="PathUiHandlerVolume"/>: </TD>
               <TD>&nbsp;<INPUT type="text" size="<iman:string key="UI.textboxSize"/>" style="width:<iman:string key="UI.textboxPixel"/>" name="_Home_DirectoryVolume" value="<x:out select="$edasXml/edas/Home_Directory/value/volume"/>" <c:if test="${!edasRights.target.Home_Directory.writeable}">DISABLED</c:if>>
               <c:if test="${edasRights.target.Home_Directory.writeable}">
                  <iman:os typeFilter="Volume,Directory" control="_Home_DirectoryVolume" history="true" callBack="parseHomeDirectory" />
               </c:if>
               </TD>
            </TR>

            <TR>
               <TD class="mediumtext">&nbsp;&nbsp;&nbsp;&nbsp;<iman:string key="PathUiHandlerPath"/>: </TD>
               <TD>&nbsp;<INPUT type="text" size="<iman:string key="UI.textboxSize"/>" style="width:<iman:string key="UI.textboxPixel"/>" name="_Home_DirectoryPath" value="<x:out select="$edasXml/edas/Home_Directory/value/path"/>" <c:if test="${!edasRights.target.Home_Directory.writeable}">DISABLED</c:if>></TD>
            </TR>
         </TABLE>
      </TD>
      <TD valign="top">
         <c:set var="mode"><x:out select="$edasXml/edas/Home_Directory/@mode"/></c:set>
         <iman:mooMode name="_Home_Directory_mode" value="${mode}" multi="false" />
      </TD>
   </TR>
   <TR><TD height="9"></TD></TR>

   </TABLE>

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