<!--
   Name:  DGMembersPage.jsp

   Copyright (c) 1997-2003 Novell, Inc.  All Rights Reserved.

   THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
   USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE AGREEMENT
   ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS THIS WORK.
   PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO DEVELOPER A
   ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE CODE IN ITS
   PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS TO MARKET,
   DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF DEVELOPER'S
   PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR DEVELOPER'S
   CUSTOMERS WITH RESPECT TO THIS CODE.

-->
<%@ 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="BaseResources"/>

<html>
   <head>
      <title><iman:string key="DynamicGroup.MembersPageTitle"/></title>
      <LINK rel="stylesheet" href="<c:out value="${ContextPath}" />/portal/modules/dev/css/hf_style.css">

      <iman:eMFrameScripts/>
      <iman:osScripts/>
      <iman:mvedScripts mode="mvsel"/>
      <iman:include page="dev/PageScripts_inc.jsp"/>
      <script language="JavaScript">

         function onInit()
         {
            <c:if test="${IsDynamicParam == 'true'}">
				if ( "<c:out value="${ExcludedMembersParam}"/>" != "" )
				{
               mvLoadFromPack("excludedMembersControl","<c:out value="${ExcludedMembersParam}"/>");
				}
            </c:if>
            <c:if test="${UniqueMembersParam != ''}">
				if ( "<c:out value="${UniqueMembersParam}"/>" != "" )
				{
               mvLoadFromPack("uniqueMembersControl","<c:out value="${UniqueMembersParam}"/>");
				}
            </c:if>
         }

         function isPageValid()
         {
				with ( document.DGMembersPageForm )
				{
					uniqueMembersHiddenField.value   = mvGetValuesAsPack( "uniqueMembersControl" );
					<c:if test="${IsDynamicParam == 'true'}">
					excludedMembersHiddenField.value = mvGetValuesAsPack( "excludedMembersControl" );
					</c:if>
				}
         }

      </script>
   </head>
   <body TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="returnFromOS();onInit();">
      <form name="DGMembersPageForm" method=post action="<c:out value= "${ContextPath}"/>/servlet/frameservice">
         <input type=hidden name="taskId" value="<c:out value="${taskId}"/>"/>
         <input type=hidden name="uniqueMembersHiddenField" value="">
         <input type=hidden name="excludedMembersHiddenField" value="">

         <iman:include page="dev/Messagebar_inc.jsp"/>
         <iman:include page="dev/BookVars_inc.jsp"/>

			<c:if test="${IsDynamicParam == 'true'}">
				<div style="width: 70%;" class="formdescriptextml0"><iman:string key="DynamicGroup.ViewMembers.Description"/></div>
			</c:if>

         <table border=0 class="mediumtext">
				<c:if test="${IsDynamicParam == 'true'}">
            <tr>
               <td align=left >
                  <br><iman:string key="DynamicGroup.DynamicMemberLabel"/><br>
                  <select name="dynamicMembersControl" size="6" style="WIDTH: 450px" >
	                  <c:forEach items="${DynamicMembersParam}" var="element">
	                     <option style="color: #808080;"> <c:out value="${element}"/> </option>
	                  </c:forEach>
						</select><br>
                  <iman:string key="DynamicGroup.CountLabel"/> <INPUT type="text" id="<c:out value="${DynamicMembersParamCount}"/>" value="<c:out value="${DynamicMembersParamCount}"/>" style="border:none;background:white;color:black;" disabled="true">
               </td>
            </tr>
            <tr>
               <td align=left >
                  <br><iman:string key="DynamicGroup.ExcludedMemberLabel"/><br>
	                  <iman:mved
	                  	mode="mvsel"
	                  	name="excludedMembersControl"
	                  	enforceUnique="true"
								size="5"
	                  	width="450"
	                  	history="true"
	                  	objectTypeName="*"/>
                     <iman:string key="DynamicGroup.CountLabel"/> <INPUT type="text" id="<c:out value="${ExcludedMembersParamCount}"/>" value="<c:out value="${ExcludedMembersParamCount}"/>" style="border:none;background:white;color:black;" disabled="true">
                </td>
            </tr>
				</c:if>
            <tr>
               <td align=left >
						<c:if test="${IsDynamicParam == 'true'}">
                  <br><iman:string key="DynamicGroup.UniqueMemberLabel"/><br>
                  <iman:mved
                  	mode="mvsel"
                  	name="uniqueMembersControl"
                  	size="5"
                  	enforceUnique="true"
                  	width="450"
                  	history="true"
                  	objectTypeName="*"/>
						</c:if>
						<c:if test="${IsDynamicParam == 'false'}">
						<br><c:out value="${attributeDisplayName}"/>:<br>
                  <iman:mved
                  	mode="mvsel"
                  	name="uniqueMembersControl"
                  	size="15"
                  	enforceUnique="true"
                  	width="450"
                    	history="true"
	                	objectTypeName="User"/>
						</c:if>
                  <iman:string key="DynamicGroup.CountLabel"/> <INPUT type="text" id="<c:out value="${UniqueMembersParamCount}"/>" value="<c:out value="${UniqueMembersParamCount}"/>" style="border:none;background:white;color:black;" disabled="true">
               </td>
            </tr>
				<c:if test="${IsDynamicParam == 'true'}">
            <tr>
               <td align=left >
                  <br><iman:string key="DynamicGroup.AllMemberLabel"/><br>
                  <select name="allMembersControl" size="6" style="WIDTH: 450px" >
	                  <c:forEach items="${AllMembersParam}" var="element">
	                     <option style="color: #808080;"> <c:out value="${element}"/> </option>
	                  </c:forEach>
						</select>
						<br>
                  <iman:string key="DynamicGroup.CountLabel"/> <INPUT type="text" id="<c:out value="${AllMembersParamCount}"/>" value="<c:out value="${AllMembersParamCount}"/>" style="border:none;background:white;color:black;" disabled="true">
               </td>
            </tr>
				</c:if>
         </table>
      </form>
      <iman:osFooter/>
   </body>
</html>
