<%@  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("AttrInfo.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" />
</HEAD>
<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()
   <% } %>
}

function setFocus()
{
   document.ShowAttrInfoForm.AttrName.focus();
}
</SCRIPT>

<BODY text="#000000" LINK="#000000" VLINK="#000000" ALINK="#000000" bgcolor="#FFFFFF" onLoad="setFocus();" >
<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="strClassAttrs" value="<%= c.var("strClassAttrs") %>">
<INPUT type="hidden" name="SelectedAttribute" value="<%= c.var("SelectedAttribute") %>">
<INPUT type="hidden" name="SelectedClass" value="<%= c.var("SelectedClass") %>">

<% c.set("TaskHeader.title", c.string("AttrInfo.Title"));
   c.set("TaskHeader.iconUrl", "dir/schema.gif");
   c.set("TaskHeader.iconAlt", c.string("SchemaManagementDisplayName"));
   c.set("TaskHeader.helpFile", "base/schemaattr_info.html"); %>
<jsp:include page='<%= c.getPath("dev/TaskHeader_inc.jsp") %>' flush="true" />

<!-------------------------------- CONTENT TABLE --------------------------------------->

<TABLE border="0" cellspacing="0" cellpadding="2">
   <TR valign="baseline">
      <TD align="left" class="mediumtext"><BR><%= c.toDisplay(c.string("ShowAttr.Name")) %></TD>
      <TD align="left" class="mediumtext"><BR><%= c.toDisplay(c.string("ShowAttr.Syntax")) %></TD>
   </TR>
   <TR valign="baseline">
      <TD valign=top class="mediumtext"><INPUT class="gray"type="text" name="AttrName" value="<%= c.toDisplay(c.var("AttrName")) %>"  size="25" readonly></TD>
      <TD valign=top class="mediumtext"><INPUT class="gray" type="text" name="Syntax" value="<%= c.toDisplay(c.var("AttrSyntax")) %>" size="25" readonly></TD>
   </TR>
   <TR valign="baseline">
      <TD align="left" class="mediumtext"><BR><%= c.toDisplay(c.string("ShowAttr.Flags")) %></TD>
   </TR>
   <TR valign="baseline">
      <TD rowspan=2 class="mediumtext"><TEXTAREA class="gray" name="AttrFlags" rows="4" cols="22" readonly><% c.set("i", "0");    while (c.lt(c.var("i"), c.var("AttrFlags.Count"))) { %><%= c.toDisplay(c.var("AttrFlags.Element."+c.var("i"))) %><% out.print("\n");%><% c.inc("i");
   } %></TEXTAREA></TD>
   </TR>
</TABLE>

<TABLE>
   <TR>
   <TD align="left" class="mediumtext"><BR><%= c.toDisplay(c.string("ShowAttr.ClsUsingAttr")) %></TD>
   </TR>
</TABLE>

<% if (c.gt(c.var("ClsUsingAttr.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("ClsUsingAttr.Count"))) { %>
               <TR>
                  <TD valign="baseline" align="left" class="mediumtext"><img src="<%= c.getModulesUrl() %>/dev/images/dir/<%= c.var("ClsUsingAttr.Element."+c.var("i")+ ".image") %>" alt="<%= c.toDisplay(c.var("ClsUsingAttr.Element."+c.var("i"))) %>" title="<%= c.toDisplay(c.var("ClsUsingAttr.Element."+c.var("i"))) %>"></TD>
                  <TD valign="baseline" align="left" class="mediumtext"><%= c.toDisplay(c.var("ClsUsingAttr.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="ClsUsingAttr" rows="4" cols="25" readonly><% c.set("i", "0");    while (c.lt(c.var("i"), c.var("ClsUsingAttr.Count"))) { %><%= c.toDisplay(c.var("ClsUsingAttr.Element."+c.var("i"))) %><% c.inc("i");
   } %></TEXTAREA></TD>
<% } %>
</TR>
</TABLE>

<TABLE>
   <TR valign="baseline">
      <TD class="mediumtext">&nbsp;&nbsp;</TD>
   </TR>
   <TR valign="baseline">
      <TD class="mediumtext"><%= c.toDisplay(c.string("SchemaID")) %></TD>
   </TR>
   <TR valign="baseline">
      <TD class="mediumtext"><INPUT class="gray"type="text" name="ASNID" value="<%= c.toDisplay(c.var("AttrID")) %>" size="25" readonly>
   </TR>
</TABLE>

<!------------------------- BUTTON TABLE --------------------------->

<TABLE width="100%" border="0" cellspacing="0" cellpadding="2" height="25">
   <TR valign="baseline" bgcolor="#FFFFFF">
      <TD>&nbsp;</TD><TD>&nbsp;</TD>
   </TR>
   <TR valign="baseline" bgcolor="#FFFFFF">
      <TD height="16" align="left" valign="middle" colspan="2" class="mediumtext">
      <jsp:include page='<%= c.getPath("dev/Bar_inc.jsp") %>' flush="true" />
      </TD>
   </TR>
   <TR>
      <TD>
         <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>

