<html>
<body bgcolor="#ffffff">

<table border="1" cellpadding="0" cellspacing="0"><tr><td>
	<table bgColor="#ffffff" border="0" cellPadding="3" cellSpacing="3" width="500" valign="top">
	  <tr>
		<td align="left" bgColor="navy"><b><font color="#ffffff" size="2" face="Tahoma,Arial,Helvetica">
<%unless link_id%>Validate <%endif%>Reviews
		</font></b></td>
	  </tr>
	  <tr>
		<td>
		  <p align="center"><b><font color="#000000" size="2" face="Tahoma,Arial,Helvetica">
<%unless link_id%>Validate <%endif%>Reviews
		  </font></b></p>
		  <p><font size="2" face="Tahoma,Arial,Helvetica">
<%navbar%>
		  </font></p>
          </td>
	  </tr>
	</table>
	</td></tr>
</table>

<p><font size="2" face="Tahoma,Arial,Helvetica">
  <form action="<%if is_admin%>admin.cgi<%else%><%db_cgi_url%>/browser.cgi<%endif%>">
    <input type="hidden" name="category_id" value="<%category_id%>">
    <input type="hidden" name="action" value="review_list">
    <input type="hidden" name="set-cookie" value="1" />
    <%if mh%><input type="hidden" name="mh" value="<%mh%>"><%endif%>
    <%if not link_id and category_id != 0%><input type="checkbox" name="only_this_category"<%if only_this_category%> checked<%endif%>> Only show reviews from this category and <%endif%>Sort reviews by
    <select name="cookie-review_sb">
      <option value="Review_Date"<%if sb eq 'Review_Date'%> selected<%endif%>>Review Date</option>
      <option value="Review_Owner"<%if sb eq 'Review_Owner'%> selected<%endif%>>Review Owner</option>
      <option value="Review_Subject"<%if sb eq 'Review_Subject'%> selected<%endif%>>Review Subject</option>
    </select>
    <select name="cookie-review_so">
      <option value="DESC"<%if so eq 'DESC'%> selected<%endif%>>Descending</option>
      <option value="ASC"<%if so eq 'ASC'%> selected<%endif%>>Ascending</option>
    </select>
    <input type="submit" value="Sort Reviews">
  </form>
</font></p>

<%if toolbar%>
	<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>
<%if links%>
	<table border=1 cellpadding=3 cellspacing=0>
		<tr><td colspan=6><font size="2" face="Tahoma,Arial,Helvetica"><%if link_id%>This link has <b><%count%></b> reviews.<%else%>There are <b><%count%></b> reviews waiting to be validated.<%endif%></font></td></tr>
                <tr>
                  <th><font face="Tahoma,Arial,Helvetica" size="2">Link</font></th>
                  <th><font face="Tahoma,Arial,Helvetica" size="2">Review Subject</font></th>
                  <th><font face="Tahoma,Arial,Helvetica" size="2">Review Owner</font></th>
                  <th><font face="Tahoma,Arial,Helvetica" size="2">Actions</font></th>
                </tr>
		<%links%>
	</table>
<%else%>
	<p><font size="2" face="Tahoma,Arial,Helvetica"><%if link_id%>This link has no reviews.<%else%>There are no reviews waiting to be validated.<%endif%></font></p>
<%endif%>
<%if toolbar%>
	<p><font size="2" face="Tahoma,Arial,Helvetica">Pages: <%toolbar%></font></p>
<%endif%>

</body>
</html>
