<%@  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("BaseResources");
   c.stringTable("FwResources");
 %>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x" %>
<x:parse xml="${edas}" var="edasXml"/>

<HTML>
<HEAD>
   <TITLE><%= c.string("ProductName") %></TITLE>
   <iman:stylesheet/>
   <iman:uihandlerTools/>
   <iman:pageScripts/>

   <jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/XmlScripts_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/OSScripts_inc.jsp") %>' flush="true" />
   <jsp:include page='<%= c.getPath("dev/MVStringEditorScripts_inc.jsp") %>' flush="true" />

   <iman:include page="dev/MVNetworkAddrScripts_inc.jsp"/>
   <iman:mvedScripts mode="mvsel"/><%-- Always include for the description field --%>

   <c:if test="${DeviceType=='browser'}">
      <iman:mvedScripts mode="mvie"/>
   </c:if>

   <SCRIPT language="JavaScript">
      function onInit()
      {
         var form=document.forms[0];

        // initWidgetFromXml(form._Host_Server, "<%= c.toScript(c.var("eDir$target$Host_Server")) %>");   // for Host Server
        // initWidgetFromXml(form._Revision, "<%= c.toScript(c.var("eDir$target$Revision")) %>");   // for Revision
        // initWidgetFromXml(form._Host_Resource_Name, "<%= c.toScript(c.var("eDir$target$Host_Resource_Name")) %>");   // for Host Resource Name
       }

      function isPageValid() // called when user leaves this page or applys changes
      {
         return notifyAllOfExit();
      }
   </SCRIPT>
</HEAD>

<BODY onLoad="onInit();">
<FORM name="form" method=post action="webacc">
   <jsp:include page='<%= c.getPath("dev/Messagebar_inc.jsp") %>' flush="true" />
	<jsp:include page='<%= c.getPath("dev/BookVars_inc.jsp") %>' flush="true" />

   <!---- UI Created by UiHandlers ---->

      <TABLE class="mediumtext" border="0" cellpadding="0" cellspacing="0">
	  
      <TR>
		   <TD align="left" colspan="2">
		      <c:out value="${LanguageDisplayName}"/>:&nbsp;&nbsp;
		   </TD>
		</TR>
		<TR>
		   <TD>
		      <c:if test="${edasRights.target.Language.writeable}">
		         <INPUT type="hidden" name="eDir$target$Language" value="<x:out select="$edasXml/edas/Language/value"/>">
		      </c:if>
		      <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="true" />
		   </TD>
		</TR>
		<SCRIPT>
		   window.uiObject_Language = new UiObject();
		   <c:if test="${edasRights.target.Language.writeable}">
		      addToNotificationList('Language', 'uih_mvStringEditor');
		   </c:if>
		</SCRIPT>
		<TR><TD height="9"></TD></TR>

		<%-- Network_Address --%>
		<TR>
		   <TD align="left" colspan="2">
		      <c:out value="${Network_AddressDisplayName}"/>:
		   </TD>
		</TR>
		<TR>
		   <TD>
		      <c:if test="${edasRights.target.Network_Address.writeable}">
		         <INPUT type="hidden" name="eDir$target$Network_Address" value="<c:out value="${eDir$target$Network_Address}" escapeXml="false"/>">
		      </c:if>
		      <c:set var="MVNetworkAddr_name" value="_Network_Address"  scope="request"/>
		      <c:set var="MVNetworkAddr_readonly" value="${!edasRights.target.Network_Address.writeable}"  scope="request"/>
		      <x:set var="MVNetworkAddr_xmlNodeSet" select="$edasXml/edas/Network_Address" scope="request"/>
		      <iman:include page="dev/MVNetworkAddr_inc.jsp"/>
		   </TD>
		   <TD valign="top">
		      <c:set var="mode"><x:out select="$edasXml/edas/Network_Address/@mode"/></c:set>
		      <iman:mooMode name="_Network_Address_mode" value="${mode}" multi="true" />
		   </TD>
		</TR>
		<SCRIPT>
		   window.uiObject_Network_Address = new UiObject();
		   <c:if test="${edasRights.target.Network_Address.writeable}">
		      addToNotificationList('Network_Address', 'uih_netAddressMV');
		   </c:if>
		</SCRIPT>   

      <TR><TD height=9></TD></TR>
      </TABLE>


</FORM>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY>
</HTML>
