<%@  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("BaseResources"); 
   c.stringTable("FwResources"); %>
<HTML><HEAD><TITLE><%= c.string("eDirRights.ModifyTrusteesTitle") %></TITLE>
<LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<SCRIPT language="JavaScript">

function setAddedProperty()
{
  	var index = document.ModifyTrusteesAssignedRightsPropertiesForm.elements["Property List"].selectedIndex;
	var property="";

	property = document.ModifyTrusteesAssignedRightsPropertiesForm.elements["Property List"].options[index].text;
	window.opener.setAddedProperty(property);
	window.close();
} 

function cancelPressed()
{
	window.close();
}  


function changeProperties()
{
		  
	if (document.ModifyTrusteesAssignedRightsPropertiesForm.elements["changePropertiesCheckBox"].checked)
	{
		document.ModifyTrusteesAssignedRightsPropertiesForm.elements["showProperties"].value = "true";
	} 
	else
	{
		document.ModifyTrusteesAssignedRightsPropertiesForm.elements["showProperties"].value = "false";
	}


	document.ModifyTrusteesAssignedRightsPropertiesForm.elements["merge"].value="base.ModifyTrusteesAssignedRightsProperties";
	document.ModifyTrusteesAssignedRightsPropertiesForm.elements["nextState"].value="buildPropertiesList";
	document.ModifyTrusteesAssignedRightsPropertiesForm.submit();
}


</SCRIPT>
</HEAD>
<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF">
<FORM name="ModifyTrusteesAssignedRightsPropertiesForm" method=post action="webacc">
   <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
   <input type=hidden name="merge" value="base.ModifyTrusteesAssignedRights">
   <input type=hidden name="error" value="dev.GenErr">
   <input type=hidden name="User.context" value="<%= c.var("User.context") %>">
   <input type=hidden name="nextState" value="repostPropertiesTable">
   <input type=hidden name="showProperties" value="">
   <!-- End of hidden tags -->

   <% c.set("TaskHeader.title", c.string("eDirRights.AddPropertyAlt")); 
      c.set("TaskHeader.helpFile", "base/modifytrusteesassignedrightsproperties.html"); 
      c.set("TaskHeader.HelpWindowWidth", "500"); 
      c.set("TaskHeader.HelpWindowHeight", "500"); %>

   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />


    <BR>
 	<TABLE width="100%" border="0" cellspacing="0" cellpadding="3">
      	<TR> 
   			<TD> 
     			<div align="left" class="mediumtext"><%= c.string("eDirRights.PropertyNameLabel") %></div>
   			</TD>
 		</TR>
    	<!-- Load list info -->
		<TR>
			<TD width="100%">
				<select name="Property List" size="10" >
		      	<% c.set("i", "1"); 
			  	   c.set("count", c.var("Property.Count")); 
		    	   while (c.lte(c.var("i"), c.var("count"))) { 
					   if (c.var("i").equals("1")) { %>
	           			<option SELECTED><%= c.var("Property."+c.var("i")+ ".Name") %></option>
					<% } else { %>
	           			<option><%= c.var("Property."+c.var("i")+ ".Name") %></option>
				 	<% } 
				   c.inc("i"); 
		   	  	   } %>
				</select>
			</TD>
		</TR>
		<TR>
			<TD>
				<div align="left" class="mediumtext"><input type="checkbox" name="changePropertiesCheckBox" 
				 width="16" height="16" onClick="changeProperties()" <% if (c.var("ShowProperties").equals("true")) { %> CHECKED <% } %>><%= c.string("eDirRights.ShowAllProperties") %></div>
			</TD>
		</TR>
	</TABLE>
	<BR>
	<div class="ruleabove">
	<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  		<TR>
      	<TD align="left">
			<a href="#" onClick="setAddedProperty();return false"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" alt="<%= c.toHTML(c.string("Button.OK.alt")) %>" title="<%= c.toHTML(c.string("Button.OK.alt")) %>" border=0></a>
			<a href="#" onClick="cancelPressed();return false"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Cancel.image") %>" alt="<%= c.toHTML(c.string("Button.Cancel.alt")) %>" title="<%= c.toHTML(c.string("Button.Cancel.alt")) %>" border=0></a>
         </TD>
      </TR>
   </TABLE>
   </div>
</FORM>
</BODY></HTML>
