<%@  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("DevResources"); %>

<HTML>
<HEAD>
   <TITLE><%= c.string("ProductName") %></TITLE>
   <% if (session.getAttribute("DeviceType").equals("pocket")) {
      c.set("mvmode", "mvtxt");
   } else {
      c.set("mvmode", "mvsel");
   }
   c.set("MVStringEditor_mode", c.var("mvmode")); %>

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

   <LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
   <jsp:include page='<%= c.getPath("dev/PageScripts_inc.jsp") %>' flush="true" />
   <SCRIPT language="JavaScript">
      function onInit()
      {
         var form=document.forms[0];
         mvLoadFromXml("_Operator", "<%= c.toScript(c.var("eDir$target$Operator")) %>");   // init for Operator
         returnFromOS();
      }

      function isPageValid() // called when user leaves this page or applys changes
      {
         var form=document.forms[0];
         form.eDir$target$Operator.value = mvGetValuesAsXml("_Operator" );   // exit for Operator
         return true;
      }
   </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' bgcolor='#FFFFFF' cellpadding='0' cellspacing='0'>
         <!-- Operator -->
         <TR>
            <TD align=left>
               <%= c.var("OperatorDisplayName") %>:&nbsp;
            </TD>
         </TR>
         <TR>
            <TD>
               <INPUT name='eDir$target$Operator' type=hidden value="<%= c.formatMessage(c.var("toHtml"), new String[]{(c.var("eDir$target$Operator"))}) %>">
               <% c.set("MVStringEditor_name", "_Operator");
//                  c.set("MVStringEditor_xml", c.var("eDir$target$Operator"));
                  c.set("MVStringEditor_objectTypeName", "User, Group");
                  c.set("MVStringEditor_mode", c.var("mvmode"));
                  c.set("MVStringEditor_enforceUnique", "true");
                  c.set("MVStringEditor_history", "true");
                  c.set("MVStringEditor_size", "10");
                  c.set("MVStringEditor_width", "450");
                  if (c.var("eDirRights$target$Operator").equals("R") || c.var("eDirRights$target$Operator").equals("NONE")) {    c.set("MVStringEditor_readonly", "true");    } %>
               <jsp:include page='<%= c.getPath("dev/MVStringEditor_inc.jsp") %>' flush="true" />
            </TD>
            <TD valign=top>
               <% if (c.var("Task.moo").equals("true")) {    c.set("ModeSelectorMV.name", "_Operator_mode"); %>&nbsp;&nbsp;<jsp:include page='<%= c.getPath("dev/ModeSelectorMV_inc.jsp") %>' flush="true" /><% } %>
            </TD>
         </TR>
      <TR><TD height=8></TD></TR>
      </TABLE>


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