<%@ page import="com.novell.emframe.dev.*,
                 com.novell.admin.ns.nds.NDSNamespace,
                 com.novell.application.console.snapin.ObjectEntry,
                 com.novell.admin.common.exceptions.SPIException"%>
<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<%@ 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" />


<%
   MContext taskContext = eMFrameFactory.getMContext(request);
%>
<script language="javascript">
var selectToDel = '<iman:toScript><iman:string key="Editor.selectToDelete" /></iman:toScript>';
var selectToEdit = '<iman:toScript><iman:string key="Editor.selectToEdit" /></iman:toScript>';
</script>
<SCRIPT src="<%= session.getAttribute("ModulesPath") %>/fw/javascripts/MultivaluedPathEditorScripts.js"></SCRIPT>

<TABLE cellpadding="0" cellspacing="0">
   <TR>
      <TD>
         <SELECT name="MultiValuedPath_Editor" id="MultiValuedPath_Editor" size=10 style="WIDTH: 350px; height:125px;">
         <x:forEach select="$MultiValuedPathEditor_xmlNodeSet/value">
            <c:set var="type"><x:out select="./type"/></c:set>
            <c:set var="volume"><x:out select="./volume"/></c:set>
            <c:set var="path"><x:out select="./path"/></c:set>

            <%
               String type = (String)pageContext.findAttribute("type");
               String volume = (String)pageContext.findAttribute("volume");
               String path = (String)pageContext.findAttribute("path");
               String pack = eMFrameUtils.pack(new String[]{type, volume, path}, taskContext);
            %>

            <OPTION value="<%= pack %>"><x:out select="./volume"/> - <x:out select="./path"/>
         </x:forEach>
         </SELECT>
      </TD>

      <TD valign="top"><A href="javascript:addMVPathItem()"><IMG alt="<iman:string key="Widgets.addItem"/>" src="<%= session.getAttribute("ModulesPath") %>/dev/images/iconadd.gif" border="0"></a><iman:spacer/></TD>
      <TD valign="top"><A href="javascript:deleteMVPathItem()"><IMG alt="<iman:string key="Widgets.removeItem"/>" src="<%= session.getAttribute("ModulesPath") %>/dev/images/iconremove.gif" border="0"></A><iman:spacer/></TD>
      <TD valign="top"><A href="javascript:editMVPathItem()"><IMG alt="<iman:string key="Widgets.editItem"/>" src="<%= session.getAttribute("ModulesPath") %>/dev/images/iconedit.gif" border="0"></A><iman:spacer/></TD>
   </TR>
</TABLE>


