<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <title><%site_title%>: Top Rated Links</title>
<%include include_common_head.html%>
</head>
<body id="rate_top">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>Top Rated Links</h2>

<h3 class="noseparator">Top 10 by rating (10 or more votes)</h3>

<table class="ftable">
  <tr>
    <th class="ftablecol">Rating</th>
    <th class="ftablecol">Votes</th>
    <th>Link</th>
  </tr>
<%~loop top_rated_loop%>
  <tr>
    <td class="ftablecol"><%Rating%></td>
    <td class="ftablecol"><%Votes%></td>
    <td><%if detailed_url%><a href="<%detailed_url%>"><%elsif URL ne 'http://'%><a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>"><%endif%><%Title%><%if detailed_url or URL ne 'http://'%></a><%endif%></td>
  </tr>
<%~endloop%>
</table>

<h3 class="noseparator">Top 10 by votes (10 or more votes)</h3>

<table class="ftable">
  <tr>
    <th class="ftablecol">Rating</th>
    <th class="ftablecol">Votes</th>
    <th>Link</th>
  </tr>
<%~loop top_votes_loop%>
  <tr>
    <td class="ftablecol"><%Rating%></td>
    <td class="ftablecol"><%Votes%></td>
    <td><%if detailed_url%><a href="<%detailed_url%>"><%elsif URL ne 'http://'%><a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>"><%endif%><%Title%><%if detailed_url or URL ne 'http://'%></a><%endif%></td>
  </tr>
<%~endloop%>
</table>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
