<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit,
                  java.util.ResourceBundle,
                  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" %>

<%--Manually edited this--%>


<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="dev/MVNetworkAddrScripts_inc.jsp"/>
   <iman:uihandlerTools/>
   <iman:pageScripts/>
   <iman:eMFrameScripts/>
   <iman:validateNumberScripts/>
   <iman:mvedScripts mode="mvsel"/><%-- Always include for the description field --%>
   <c:if test="${DeviceType=='browser'}">
      <iman:mvedScripts mode="mvie"/>
   </c:if>

   <SCRIPT>
      function onInit()
      {
         <%-- Other name --%>
         <c:if test="${taskIsMoo=='false'}">
            mvLoadFromPack("_CN", "<iman:toScript><c:out value="${otherName}"/></iman:toScript>");
         </c:if>

         form._Status.value = (form._Status.value==2 ? "<iman:string key="Status.Up"/>" : "<iman:string key="Status.Down"/>")
      }

      function isPageValid()
      {
         var form=document.forms[0];

         <%-- Other name --%>
         <c:if test="${taskIsMoo=='false'}">
            form.otherName.value = mvGetValuesAsPack("_CN" );
         </c:if>

         return notifyAllOfExit();
      }

   </SCRIPT>
</HEAD>

<BODY onLoad="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">

      <%-- Other name --%>
      <c:if test="${taskIsMoo=='false'}">
      <TR>
         <TD align="left">
            <iman:string key="OtherName"/>:&nbsp;
         </TD>
      <c:if test="${DeviceType=='pocket'}"></TR><TR></c:if>
         <TD>
            <c:if test="${otherNameRights=='RW'  || taskIsMoo=='true'}">
               <INPUT type="hidden" name="otherName" value="">
            </c:if>
            <iman:mved name="_CN" minLength="1" maxLength="64" ignoreCase="true" enforceUnique="true" readonly="${otherNameRights!='RW'}"  />
         </TD>
         <TD valign="top">
         </TD>
      </TR>
      <TR><TD height="9"></TD></TR>
      </c:if>

         <%-- L --%>
         <TR>
            <TD align=left>
               <c:out value="${LDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
               <c:if test="${edasRights.target.L.writeable  || taskIsMoo=='true'}">
                  <INPUT type="hidden" name="eDir$target$L" value="<c:out value="${eDir$target$L}" escapeXml="false"/>">
                  <SCRIPT>addToNotificationList('L', 'uih_mvStringEditor');</SCRIPT>
               </c:if>
               <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/L" scope="request"/>
               <iman:mved maxLength="128" readonly="${!edasRights.target.L.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_L"               />
            </TD>
            <TD valign=top>
               <c:set var="mode"><x:out select="$edasXml/edas/L/@mode"/></c:set>
               <iman:mooMode name="_L_mode" value="${mode}" multi="true" />
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>
         <%-- Network Address --%>
         <TR>
            <TD align=left>
               <c:out value="${Network_AddressDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <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>
            <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>
         <TR><TD height="8"></TD></TR>
         <%-- O --%>
         <TR>
            <TD align=left>
               <c:out value="${ODisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
               <c:if test="${edasRights.target.O.writeable  || taskIsMoo=='true'}">
                  <INPUT type="hidden" name="eDir$target$O" value="<c:out value="${eDir$target$O}" escapeXml="false"/>">
                  <SCRIPT>addToNotificationList('O', 'uih_mvStringEditor');</SCRIPT>
               </c:if>
               <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/O" scope="request"/>
               <iman:mved maxLength="64" readonly="${!edasRights.target.O.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_O"               />
            </TD>
            <TD valign=top>
               <c:set var="mode"><x:out select="$edasXml/edas/O/@mode"/></c:set>
               <iman:mooMode name="_O_mode" value="${mode}" multi="true" />
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>
         <%-- OU --%>
         <TR>
            <TD align=left>
               <c:out value="${OUDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
               <c:if test="${edasRights.target.OU.writeable  || taskIsMoo=='true'}">
                  <INPUT type="hidden" name="eDir$target$OU" value="<c:out value="${eDir$target$OU}" escapeXml="false"/>">
                  <SCRIPT>addToNotificationList('OU', 'uih_mvStringEditor');</SCRIPT>
               </c:if>
               <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/OU" scope="request"/>
               <iman:mved maxLength="64" readonly="${!edasRights.target.OU.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_OU"               />
            </TD>
            <TD valign=top>
               <c:set var="mode"><x:out select="$edasXml/edas/OU/@mode"/></c:set>
               <iman:mooMode name="_OU_mode" value="${mode}" multi="true" />
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>
         <%-- Status --%>
         <TR>
            <TD align=left>
               <c:out value="${StatusDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
               <c:if test="${edasRights.target.Status.writeable  || taskIsMoo=='true'}">
                  <INPUT type="hidden" name="eDir$target$Status" value="<c:out value="${eDir$target$Status}" escapeXml="false"/>">
               </c:if>
               <INPUT type="text" name="_Status" value="<x:out select="$edasXml/edas/Status/value"/>" size=<iman:string key="UI.numberboxSize"/> style="width:<iman:string key="UI.numberboxPixel"/>" DISABLED >
            </TD>
            <TD valign=top>
               <c:set var="mode"><x:out select="$edasXml/edas/Status/@mode"/></c:set>
               <iman:mooMode name="_Status_mode" value="${mode}" multi="false" />
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>
         <%-- Version --%>
         <TR>
            <TD align=left>
               <c:out value="${VersionDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test=" ${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
               <c:if test="${edasRights.target.Version.writeable  || taskIsMoo=='true'}">
                  <INPUT type="hidden" name="eDir$target$Version" value="<c:out value="${eDir$target$Version}" escapeXml="false"/>">
               </c:if>
               <INPUT type="text" name="_Version" value="<x:out select="$edasXml/edas/Version/value"/>" size=<iman:string key="UI.textboxSize"/> style="width:<iman:string key="UI.textboxPixel"/>"   maxlength=64 onChange='validateLengthField(this, 1, 64)' DISABLED >
            </TD>
            <TD valign=top>
               <c:set var="mode"><x:out select="$edasXml/edas/Version/@mode"/></c:set>
               <iman:mooMode name="_Version_mode" value="${mode}" multi="false" />
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>

         <%-- Description --%>
         <TR>
            <TD align=left>
               <c:out value="${DescriptionDisplayName}"/>:&nbsp;&nbsp;
            </TD>
            <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>
            <TD>
              <c:if test="${edasRights.target.Description.writeable}">
                 <INPUT type="hidden" name="eDir$target$Description" value="<c:out value="${eDir$target$Description}" escapeXml="false"/>" >
                 <SCRIPT>addToNotificationList('Description', 'uih_mvStringEditor');</SCRIPT>
              </c:if>

              <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/Description" scope="request"/>
              <c:set var="MVStringEditor_bigEditBox" value="true" scope="request"/>
              <iman:mved mode="mvsel" maxLength="1024" readonly="${!edasRights.target.Description.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_Description"/>
            </TD>
            <TD valign=top>
              <c:set var="mode"><x:out select="$edasXml/edas/Description/@mode"/></c:set>
              <iman:mooMode name="_Description_mode" value="${mode}" multi="true"/>
            </TD>
         </TR>
         <TR><TD height="8"></TD></TR>

   </TABLE>

</FORM>
<iman:include page="dev/OSFooter_inc.jsp"/>
</BODY>
</HTML>
