<%--
/* $Header: relatedLinks.jspf 13-jul-2005.02:07:20 andyao Exp $ */

/* Copyright (c) 2004, 2005, Oracle. All rights reserved.  */

/*
   DESCRIPTION
   The relatedLinks 

   PRIVATE CLASSES

   NOTES

   MODIFIED    (MM/DD/YY)
    andyao      07/13/05 - add oem license 
    andyao      07/12/05 - standardize related links
    andyao      06/14/05 - andyao_p3fixes3
    andyao      05/27/05 - Creation
 */

/**
 *  @version $Header: relatedLinks.jspf 13-jul-2005.02:07:20 andyao Exp $
 *  @author  andyao  
 *  @since   release specific (what release of product did this appear in)
 */

--%>
<uix:dataScope>
  <uix:bundle name="sdkMsg" class="oracle.sysman.emSDK.eml.SDKUIMsg"/>

<%-- copied from target/groupHomepage --%>
<%
java.util.List relatedLinks = (java.util.List)request.getAttribute("relatedLinks");
if (relatedLinks != null) 
{
int len = relatedLinks.size();
%>
<uix:header textBinding="RELATED_LINKS@sdkMsg" >
  <uix:tableLayout>
    <uix:rowLayout vAlign="top" width="100%">
      <uix:cellFormat width="33%">
        <uix:stackLayout>
          <% 
          for (int i = 0; i < len ; i++) {
          if (i%3 != 0)
          {
          continue;
          }
          java.util.Map map = (java.util.Map) relatedLinks.get(i);
          String name = (String)map.get("name");
          String desc = (String)map.get("desc");
          String dest = (String)map.get("link");
          %>
          <oem:license>
            <uix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=dest%>" />
          </oem:license>
          <% } // end for %>
        </uix:stackLayout>
      </uix:cellFormat>
      <uix:spacer width="20" />
      <uix:cellFormat width="33%">
        <uix:stackLayout>
          <% for (int i = 0; i != len ; i++) {
          if (i%3 != 1)
          continue;
          java.util.Map map = (java.util.Map) relatedLinks.get(i);
          String name = (String)map.get("name");
          String desc = (String)map.get("desc");
          String dest = (String)map.get("link");
          %>
          <oem:license>
            <uix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=dest%>" />
          </oem:license>
          <% } // end for %>
        </uix:stackLayout>
      </uix:cellFormat>
      <uix:spacer width="20" />
      <uix:cellFormat width="33%">
        <uix:stackLayout>
          <% for (int i = 0; i != len ; i++) {
          if (i%3 != 2)
          continue;
          java.util.Map map = (java.util.Map) relatedLinks.get(i);
          String name = (String)map.get("name");
          String desc = (String)map.get("desc");
          String dest = (String)map.get("link");
          %>
          <oem:license>
            <uix:link text="<%=name%>" shortDesc="<%=desc%>" destination="<%=dest%>" />
          </oem:license>
          <% } // end for %>
        </uix:stackLayout>
      </uix:cellFormat>
    </uix:rowLayout>
  </uix:tableLayout>
</uix:header>
<%
} // end if(relatedLinks != null)
%>
</uix:dataScope>
