<%@  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"); %>
<html>
<head>
<title><%= c.toDisplay(c.string("SuperClass.Title")) %></title>
<LINK rel="stylesheet" href="<%= c.getModulesUrl() + "/dev/css/hf_style.css" %>" type="text/css">
<jsp:include page='<%= c.getPath("dev/eMFrameScripts_inc.jsp") %>' flush="true" />
<style>
.gray
{
   background-color: #bfbfbf;
}
</style>
<jsp:include page='<%= c.getPath("dev/OSScripts_inc.jsp") %>' flush="true" />
<!-------------------------JAVA SCRIPT STARTS HERE--------------------------------------->
<script language="JavaScript">
   function closeSelected()
   {
      <% if (session.getAttribute("DeviceType").equals("default")) { %>
	     var SelectedClass=document.ShowAttrInfoForm.elements["SelectedClass"].value;
	     window.location.href="webacc?taskId=base.ClassInformation"+"&SelectedClass="+urlEncode(SelectedClass)+"&merge=base.ShowClassInfo&nextState=getSelectedClass&Task.SelectedButton=nextSelected&User.context=<%= c.var("User.context") %>"
      <% } else { %>
         window.close()
      <% } %>

   }

</script>
</head>
   <body text="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" >
   <form name="ShowAttrInfoForm" method=post action="webacc">

   <!------------------------ BEGIN WEBACCESS VARIABLES ---------------------------->
   <input type="hidden" name="merge" value="">
   <input type="hidden" name="error" value="dev.GenErr">
   <input type="hidden" name="User.context" value="<%= c.var("User.context") %>">
   <input type="hidden" name="taskId" value="<%= c.var("taskId") %>">
   <input type="hidden" name="nextState" value="">
   <input type="hidden" name="Task.SelectedButton" value="">
   <input type="hidden" name="SelectedClass" value="<%= c.var("SelectedClass") %>">
   <% c.set("TaskHeader.title", c.string("SuperClass.Title"));
      c.set("TaskHeader.iconUrl", "dir/schema.gif");
      c.set("TaskHeader.iconAlt", c.string("SchemaManagementDisplayName")); %>
   <jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />

   <!-------------------------------- CONTENT TABLE --------------------------------------->
<table>
   <tr>
   <td align="left" class="mediumtext"><br><%= c.toDisplay(c.string("SuperClass.Title")) %>:</td>
   </tr>
</table>
 <% if (c.gt(c.var("SuperCls.Count"), "0")) { %>
<TABLE width=222 height=88 border="2" rules="none" bgcolor="#bfbfbf" cellpadding="0" cellspacing="0">
      <tr>
         <td>
            <div id="scroll1" style="width:230;height:85;background-color:#bfbfbf;overflow:auto;">
            <TABLE >
            <% c.set("i", "0");
               while (c.lt(c.var("i"), c.var("SuperCls.Count"))) { %>
               <tr>
                  <td valign="baseline" align="left" class="mediumtext"><img src="<%= c.getModulesUrl() %>/dev/images/dir/<%= c.var("SuperCls.Element."+c.var("i")+ ".image") %>" alt="<%= c.toDisplay(c.var("SuperCls.Element."+c.var("i")+ ".name")) %>" title="<%= c.toDisplay(c.var("SuperCls.Element."+c.var("i")+ ".name")) %>"></td>
                  <td valign="baseline" align="left" class="mediumtext"><%= c.toDisplay(c.var("SuperCls.Element."+c.var("i"))) %></td>
            <% c.inc("i");
               } %>
               </tr>
            </table>
            </div>
         </td>
      </tr>
   </table>
<% } else { %>
      <td valign=top rowspan=2 class="mediumtext"><textarea class="gray" name="SuperCls" rows="4" cols="25" readonly><%= c.toDisplay(c.string("SuperClass.None")) %></textarea></td>
<% } %>
   <!------------------------- BUTTON TABLE --------------------------->
   <table width="85%" border="0" cellspacing="0" cellpadding="2" height="25">
   <tr valign="baseline" bgcolor="#FFFFFF">
      <td height="16" colspan="5" align="center" valign="middle" class="mediumtext">
           &nbsp;
      </td>
      <td height="16" align="left" valign="middle" colspan="2" class="mediumtext">
           &nbsp;
       </td>
   </tr>
   <tr>
      <td colspan="2" height="23" class="ruleabove">
      <a href="#"onClick="javascript:closeSelected();return false"><IMG name="Close" alt="<%= c.toDisplay(c.string("Button.Close.alt")) %>" title="<%= c.toDisplay(c.string("Button.Close.alt")) %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.Close.image") %>" img alt="<%= c.toDisplay(c.string("Button.Close.alt")) %>" title="<%= c.toDisplay(c.string("Button.Close.alt")) %>" border=0></a>
      </td>
   </tr>
 </table>
 </form>
<jsp:include page='<%= c.getPath("dev/OSFooter_inc.jsp") %>' flush="true" />
 </body></html>


