<%@  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("FwResources"); %>

<HTML>
<HEAD>
<TITLE><%= c.toHTML(c.string("RBSManagement.CreateRoleSummaryTitle")) %></TITLE>
<LINK href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" rel="styleSheet" type="text/css">
<SCRIPT language="JavaScript">


   function onPageLoad()
   {
   	// Set the inital focus
      document.getElementById("FinishButton").focus();
   }


   function setWaitCursor()
   {
	   document.body.style.cursor="wait";
   }


   function backButtonSelected()
   {
      setWaitCursor();

     	document.CreateRoleSummaryForm.elements["merge"].value="fw.AssignUsersAndScopes";
     	document.CreateRoleSummaryForm.elements["nextState"].value="getUsersAndScopes";
     	document.CreateRoleSummaryForm.submit();
   }



</SCRIPT>
</HEAD>

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onload="onPageLoad()">
<FORM name="CreateRoleSummaryForm" method=post action="webacc" onSubmit="setWaitCursor()">
   <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="User.context" value="<%= c.var("User.context") %>">
   <input type=hidden name="nextState" value="updateRole">
   <input type=hidden name="CreateRoleDisplayName" value="<%= c.toHTML(c.var("CreateRoleDisplayName")) %>">
   <input type=hidden name="Role.Member.Count" value="<%= c.var("Role.Member.Count") %>">
   <input type=hidden name="CreateRolePreviousPage" value="CrtRoleSummary">
   <input type=hidden name="RBSAdmin_RoleType" value="<%= c.var("RBSAdmin_RoleType") %>">
   <!-- End of hidden tags -->
   
<% if (session.getAttribute("DeviceType").equals("browser")) { %>
	<DIV id="Layer2" style="position:relative; left:6px; top:4px; width:650px; height:200px;">   
<% } 
      if (c.var("RBSAdmin_RoleType").equals("iManager")) { 
   	   c.set("WizardHeader.title", c.toHTML(c.string("CreateRole.WizardTitle"))); 
      } else { 
   	   c.set("WizardHeader.title", c.toHTML(c.string("CreateEguideRole.WizardTitle"))); 
      } 
      c.set("WizardHeader.subtitle", c.toHTML(c.string("CreateRoleSummary.Summary"))); %>
   <jsp:include page='<%= c.getPath("dev/WizardHeader_inc.jsp") %>' flush="true" />
	<TABLE width="100%" border="0" cellspacing="0" cellpadding="3">
      <TR bgcolor="#FFFFFF">
	   	<TD class="mediumtext" width="14%" nowrap valign="top"><B><%= c.toHTML(c.string("CreateRoleSummary.RoleName")) %></B></TD>
         <TD class="mediumtext" colspan="2" nowrap valign="top"><%= c.toHTML(c.var("RoleDisplayName")) %></TD>
      </TR>
      <% c.set("i", "0"); 
		   while (c.lt(c.var("i"), c.var("Role.Tasks.Count"))) {    
	         if (c.var("i").equals("0")) { %>   
	         <tr bgcolor="#FFFFFF"> 
      			<td class="mediumtext" width="14%" nowrap valign="top" height="9"><b><%= c.toHTML(c.string("CreateRoleSummary.Tasks")) %></b></td>
            	<TD class="mediumtext" colspan="2" nowrap valign="top" height="9"><%= c.toHTML(c.var("Role.Task."+c.var("i")+ ".DisplayName")) %></TD>
       		</TR>
	      <% } else { %>   
	      	<tr bgcolor="#FFFFFF">
	         	<TD width="14%" nowrap valign="top" height="9">&nbsp;</TD>
	            <TD class="mediumtext" colspan="2" nowrap valign="top" height="9"><%= c.toHTML(c.var("Role.Task."+c.var("i")+ ".DisplayName")) %></TD>
         	</tr>
         <% } 
		   c.inc("i"); 
		   } %>
      <% c.set("i", "0");
         while (c.lt(c.var("i"), c.var("Role.Category.Count"))) {
            if (c.var("i").equals("0")) { %>
	         <tr bgcolor="#FFFFFF">
      			<td class="mediumtext" width="14%" nowrap valign="top" height="9"><b><%= c.toHTML(c.string("CreateRoleSummary.Categories")) %></b></td>
            	<TD class="mediumtext" colspan="2" nowrap valign="top" height="9"><%= c.toHTML(c.var("Role.Category."+c.var("i")+ ".DisplayName")) %></TD>
       		</TR>
	      <% } else { %>
	      	<tr bgcolor="#FFFFFF">
	         	<TD width="14%" nowrap valign="top" height="9">&nbsp;</TD>
	            <TD class="mediumtext" colspan="2" nowrap valign="top" height="9"><%= c.toHTML(c.var("Role.Category."+c.var("i")+ ".DisplayName")) %></TD>
         	</tr>
         <% }
         c.inc("i");
         } %>
      <TR bgcolor="#FFFFFF">
      	<TD colspan="5" height="9">&nbsp;</TD>
      </TR>
      </TABLE>
      <!-- Load table info -->
      <TABLE width="65%" border="0" cellspacing="0" cellpadding="3">
      <TR bgcolor="#DFDDD5">
		   <TH nowrap class="head5" align="left" colspan="2" height="9"><%= c.toHTML(c.string("CreateRoleSummary.Members")) %></TH>
		   <TH nowrap class="head5" align="left" width="73%" height="9"><%= c.toHTML(c.string("CreateRoleSummary.Scope")) %></TH>
      </TR>
      <% c.set("color", "#FFFFFF"); 
         c.set("previousName", ""); 
         c.set("i", "0"); 
         while (c.lt(c.var("i"), c.var("Role.Member.Count"))) { %>
         <TR bgcolor=<%= c.var("color") %>>
         	<td nowrap class="mediumtext" colspan="2" height="9">
            <% if (c.toLower(c.var("Role.Member."+c.var("i")+ ".FullName")).equals(c.toLower(c.var("previousName")))) { %>
            	&nbsp;</TD>
            <% } else { %>
            	<%= c.toHTML(c.var("Role.Member."+c.var("i")+ ".FullName")) %></TD>
            <% } 
               c.set("previousName", c.var("Role.Member."+c.var("i")+ ".FullName")); %>
            <td nowrap class="mediumtext" width="73%" height="9"><%= c.toHTML(c.var("Role.Member."+c.var("i")+ ".ScopeFullName")) %></td>
         </TR>
	      <% c.inc("i"); 
	         if (c.toLower(c.var("Role.Member."+c.var("i")+ ".FullName")).equals(c.toLower(c.var("previousName"))) == false) {  
	            if (c.var("color").equals("#FFFFFF")) { 
			         c.set("color", "#EFEEE9"); 
			      } else { 
			    	   c.set("color", "#FFFFFF"); 
			      } 
            } 
		   } %> 
   </TABLE>
<% if (session.getAttribute("DeviceType").equals("browser")) { %>
	</DIV>
   <DIV id="Layer1" style="position:relative; left:6px; top:255px;"> 
<% } %> 
   <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
      <TR>
      	<TD class="ruleabove">
   			<a href="#" onClick="javascript:backButtonSelected();return false"><IMG src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Back.image") %>" alt="<%= c.toHTML(c.string("Button.Back.alt")) %>" title="<%= c.toHTML(c.string("Button.Back.alt")) %>" border=0></a>
            <INPUT type=image name="Finished" id="FinishButton" alt="<%= c.toHTML(c.string("Button.Finish.alt")) %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Finish.image") %>" border=0>
            <jsp:include page='<%= c.getPath("dev/Cancel_inc.jsp") %>' flush="true" />
         </TD>
      </TR>
   </TABLE>
<% if (session.getAttribute("DeviceType").equals("browser")) { %>
	</DIV>
<% } %>
</FORM>
</BODY></HTML>


	
