<%@  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></TITLE>
<LINK rel='stylesheet' href='<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>'>
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<jsp:include page='<%= c.getPath("dev/OSScripts_inc.jsp") %>' flush="true" />
		<SCRIPT Language="javascript">
<!--
				function LeftClicked( id )
				{
					var leftcheckbox = document.getElementById( "Left." + id );
					var rightcheckbox = document.getElementById( "Right." + id );

					if( leftcheckbox != null && rightcheckbox != null )
					{
						if( leftcheckbox.checked )
							rightcheckbox.checked = false;
					}
				}

				function RightClicked( id )
				{
					var leftcheckbox = document.getElementById( "Left." + id );
					var rightcheckbox = document.getElementById( "Right." + id );

					if( leftcheckbox != null && rightcheckbox != null )
					{
						if( rightcheckbox.checked )
							leftcheckbox.checked = false;
					}
				}
//-->
		</SCRIPT>

</HEAD>
<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF">
<FORM name="ModifyTrusteesForm" method=post action="webacc">
   <input type=hidden name="taskId" value="<%= c.var("taskId") %>">
   <input type=hidden name="merge" value="dev.GenConf">
   <input type=hidden name="error" value="dev.GenErr">
   <input type=hidden name="nextState" value="SaveFlags">
   <!-- End of hidden tags -->

   <% c.set("TaskHeader.title", c.string("ViewAdmin.EditViewFlagsDisplayName"));
	   c.set("TaskHeader.iconUrl", "dir/bullet_default_16.gif");%>

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

   	<BR>
	<div class="formdescriptextml0"><%= c.string("ViewAdmin.EditViewFlagsDescription") %></div>
	<div class="mediumtext" style="margin-top: 1em"><b><%= c.string("eDirRights.ObjectNameLabel") %></b>&nbsp;<%= c.var("ObjectDisplayName") %></div>
	<TABLE width="100%" border="0" cellspacing="0" cellpadding="3">
      	<TR class="tablehead1">
      		<TD colspan="4"><%= c.string("ViewAdmin.FlagsHeading") %></TD>
 		</TR>
		<tr class="tablesubhead1">
			<td style="border-bottom: 1px solid black" align="center"><%= c.string("ViewAdmin.IconHeader") %></td>
			<td style="border-bottom: 1px solid black"><%= c.string("ViewAdmin.ViewNameHeader") %></td>
			<td style="border-bottom: 1px solid black"><%= c.string("ViewAdmin.FlagHeader") %></td>
			<td width="100%" style="border-bottom: 1px solid black"><%= c.string("ViewAdmin.DescriptionHeader") %></td>
		</tr>
		 
    	<!-- Load table info -->
      	<% c.set("i", "0");
			  c.set("count", c.var("Flags.Count"));
			  c.set("last", c.var("Flags.Count"));
			while (c.lte(c.var("i"), c.var("count"))) { %>
	  		<TR>
			  	<TD align="center"><IMG src="<%=c.var("Flags."+c.var("i")+ ".Icon")%>.png" border="0" alt="<%=c.var("Flags."+c.var("i")+ ".DisplayName") %>"/></TD>
	    		<TD><div style="white-space: nowrap" class="mediumtext"><%=c.var("Flags."+c.var("i")+ ".DisplayName") %></div></TD>
				<TD>
					<select name="<%= c.var("Flags."+c.var("i")+ ".Name") %>" size="1">
						<option value="1" <% if (c.var("Flags."+c.var("i")+ ".Show").equals("1")) { %> selected="true" <% } %>><%= c.string("ViewAdmin.ShowView") %>&#160;&#160;&#160;</option>
						<option value="0" <% if (c.var("Flags."+c.var("i")+ ".Show").equals("0")) { %> selected="true" <% } %>><%= c.string("ViewAdmin.HideView") %>&#160;&#160;&#160;</option>
						<option value="2" <% if (c.var("Flags."+c.var("i")+ ".Show").equals("2")) { %> selected="true" <% } %>><%= c.string("ViewAdmin.DoNotSetFlagForThisView") %>&#160;&#160;&#160;</option>
					</select>
				</TD>
				<TD class="smalltext" width="100%"><%=c.var("Flags."+c.var("i")+ ".Description") %></TD>
			</TR>
		   	<% c.inc("i"); } %>
			<TR>
				<TD colspan="4">
					<input type="checkbox" name="<%= c.var("Flags.ReadParent.Name") %>" <% if (!c.var("Flags.ReadParent.Show").equals("0")) { %> checked="true" <% } %>/>&nbsp;<%=c.string("ViewAdmin.ReadParentContainersForFlags") %>
            	</TD>
        	</TR>
		</TABLE>
		<div class="ruleabove">
			<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
				<TR>
				<TD align="left">
				   <INPUT type=image name="Modify" alt="<%= c.string("ViewAdmin.SaveFlags") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0><jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
				 </TD>
			  </TR>
			</TABLE>
		</div>
	</FORM>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
</BODY></HTML>

