<%@  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" %>

<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>
<iman:stringtable bundle="BaseResources"/>

<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: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()
      {
         mvFocus("_givenName");
      }

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

         <c:if test="${taskIsMoo!='true'}">
            if(mvGetValueCount("_sn")==0)
            {
               alert("<iman:string key="Identification.lastNameRequired"/>");
               return false;
            }
         </c:if>

         return notifyAllOfExit();
      }
   </SCRIPT>
</HEAD>

<BODY onLoad="onInit();">

<FORM name="form" method=post action="webacc">
   <iman:messagebar/>
   <iman:bookvars/>




   <TABLE class="mediumtext" border="0" cellpadding="0" cellspacing="0">
   <%-- ---------- --%>
   <%-- Given Name --%>
   <%-- ---------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${givenNameDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.givenName.writeable}">
            <INPUT type="hidden" name="eDir$target$givenName" value="<c:out value="${eDir$target$givenName}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('givenName', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/givenName" scope="request"/>
         <iman:mved maxLength="32" readonly="${!edasRights.target.givenName.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_givenName"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/givenName/@mode"/></c:set>
         <iman:mooMode name="_givenName_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- ------- --%>
   <%-- Surname --%>
   <%-- ------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${snDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.sn.writeable}">
            <INPUT type="hidden" name="eDir$target$sn" value="<c:out value="${eDir$target$sn}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('sn', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/sn" scope="request"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.sn.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_sn"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/sn/@mode"/></c:set>
         <iman:mooMode name="_sn_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- --------- --%>
   <%-- Full Name --%>
   <%-- --------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${displayNameDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.displayName.writeable}">
            <INPUT type="hidden" name="eDir$target$displayName" value="<c:out value="${eDir$target$displayName}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('displayName', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/displayName" scope="request"/>
         <iman:mved maxLength="127" readonly="${!edasRights.target.displayName.writeable}" enforceUnique="true" ignoreCase="true" minLength="0" name="_displayName"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/displayName/@mode"/></c:set>
         <iman:mooMode name="_displayName_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- -------- --%>
   <%-- Initials --%>
   <%-- -------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${initialsDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.initials.writeable}">
            <INPUT type="hidden" name="eDir$target$initials" value="<c:out value="${eDir$target$initials}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('initials', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

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

   <%-- ----- --%>
   <%-- title --%>
   <%-- ----- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${titleDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.title.writeable}">
            <INPUT type="hidden" name="eDir$target$title" value="<c:out value="${eDir$target$title}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('title', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/title" scope="request"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.title.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_title"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/title/@mode"/></c:set>
         <iman:mooMode name="_title_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- - --%>
   <%-- l --%>
   <%-- - --%>
   <TR>
      <TD align=left colspan=2>
         <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}">
            <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=9></TD></TR>

   <%-- ------------------ --%>
   <%-- Preferred Language --%>
   <%-- ------------------ --%>
   <!--
   <TR>
      <TD align=left colspan=2>
         <c:out value="${preferredLanguageDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.preferredLanguage.writeable}">
            <INPUT type="hidden" name="eDir$target$preferredLanguage" value="<c:out value="${eDir$target$preferredLanguage}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('preferredLanguage', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/preferredLanguage" scope="request"/>
         <iman:mved maxLength="128" readonly="${!edasRights.target.preferredLanguage.writeable}" enforceUnique="true" ignoreCase="true" minLength="1" name="_preferredLanguage"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/preferredLanguage/@mode"/></c:set>
         <iman:mooMode name="_preferredLanguage_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>
	-->

   <%-- -- --%>
   <%-- ou --%>
   <%-- -- --%>
   <TR>
      <TD align=left colspan=2>
         <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}">
            <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=9></TD></TR>


   <%-- ---------------- --%>
   <%-- Telephone Number --%>
   <%-- ---------------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${telephoneNumberDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.telephoneNumber.writeable}">
            <INPUT type="hidden" name="eDir$target$telephoneNumber" value="<c:out value="${eDir$target$telephoneNumber}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('telephoneNumber', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/telephoneNumber" scope="request"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.telephoneNumber.writeable}" enforceUnique="true" name="_telephoneNumber"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/telephoneNumber/@mode"/></c:set>
         <iman:mooMode name="_telephoneNumber_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- -------------------------- --%>
   <%-- Facsimile Telephone Number --%>
   <%-- -------------------------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${facsimileTelephoneNumberDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.facsimileTelephoneNumber.writeable}">
            <INPUT type="hidden" name="eDir$target$facsimileTelephoneNumber" value="<c:out value="${eDir$target$facsimileTelephoneNumber}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('facsimileTelephoneNumber', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/facsimileTelephoneNumber" scope="request"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.facsimileTelephoneNumber.writeable}" enforceUnique="true" name="_facsimileTelephoneNumber"  />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/facsimileTelephoneNumber/@mode"/></c:set>
         <iman:mooMode name="_facsimileTelephoneNumber_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>


   <%-- ---------------------- --%>
   <%-- Internet EMail Address --%>
   <%-- ---------------------- --%>
   <TR>
      <TD align=left colspan=2>
         <c:out value="${mailDisplayName}"/>:&nbsp;&nbsp;
      </TD>
      <c:if test="${DEVICE_TYPE=='pocket'}"></TR><TR></c:if>

      <TD>
         <c:if test="${edasRights.target.mail.writeable}">
            <INPUT type="hidden" name="eDir$target$mail" value="<c:out value="${eDir$target$mail}" escapeXml="false"/>" >
            <SCRIPT>addToNotificationList('mail', 'uih_mvStringEditor');</SCRIPT>
         </c:if>

         <x:set var="MVStringEditor_xmlNodeSet" select="$edasXml/edas/mail" scope="request"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.mail.writeable}" enforceUnique="true" ignoreCase="true" name="_mail" />
      </TD>
      <TD valign=top>
         <c:set var="mode"><x:out select="$edasXml/edas/mail/@mode"/></c:set>
         <iman:mooMode name="_mail_mode" value="${mode}" multi="true" />
      </TD>
   </TR>
   <TR><TD height=9></TD></TR>

   <%-- ----------- --%>
   <%-- description --%>
   <%-- ----------- --%>
   <TR>
      <TD align=left colspan=2>
         <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"/>
         <iman:mved maxLength="64" readonly="${!edasRights.target.description.writeable}" enforceUnique="true" ignoreCase="true" 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=9></TD></TR>
   </TABLE>

</FORM>
</BODY>
</HTML>
