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

<iman:stringtable bundle="DevResources"/>

<HTML>
<HEAD>
   <iman:eMFrameScripts/>
   <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">
   <SCRIPT>
      function returnValue()
      {
         var value = document.getElementById("classList").value;

         <c:choose>
            <c:when test="${empty param.fieldId}">
               opener.mvAddValue("<c:out value="${param.mved}"/>", value);
            </c:when>
            <c:otherwise>
               opener.document.getElementById("<c:out value="${param.fieldId}"/>").value = value;
            </c:otherwise>
         </c:choose>

         window.close();
      }
   </SCRIPT>
</HEAD>
<BODY>
<FORM>

   <iman:taskHeader titleBundle="FwResources" titleKey="ObjectClassSelector.title"/><BR>

   <SELECT id="classList" size="10">
      <c:forEach items="${classes}" var="item">
         <OPTION value="<c:out value="${item}"/>"><c:out value="${item}"/>
      </c:forEach>
   </SELECT>

   <BR><BR>
   <iman:bar/>
   <iman:button key="OK" onClick="returnValue()"/>
   <iman:button key="Cancel" onClick="window.close()"/>

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