
  <table cellpadding="4" cellspacing="1" border="0" align="center" width="100%" class="tbl_border">
  <tr>
    <td class="tbl_caption" colspan="2">
      <%$title%>
    </td>
  </tr>
  <tr class="tbl_normal">
    <td>Link ID</td>
    <td><%$link_id%></td>
  </tr>
  <tr class="tbl_normal">
    <td>Title</td>
    <td><%$title%></td>
  </tr>
  <tr class="tbl_normal">
    <td>Url</td>
    <td><a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a></td>
  </tr>
  <tr class="tbl_normal">
    <td valign="top">Description</td>
    <td><%$description%></td>
  </tr>
  <tr class="tbl_normal">
    <td valign="top">Category</td>
    <td><%$category_path_with_link%></td>
  </tr>
  <tr class="tbl_normal">
    <td>Date</td>
    <td><%$date|date_format%></td>
  </tr>
  <tr class="tbl_normal">
    <td>Contact Name</td>
    <td><%$contact_name%></td>
  </tr>
  <tr class="tbl_normal">
    <td>Email</td>
    <td>
      <%if IsEmailAddress($email)%>
      <a href="<%$site_url%>/sendmail.php?lid=<%$link_id%>">send email to <%$contact_name%></a>
      <%/if%>
    </td>
  </tr>
  <tr class="tbl_normal">
    <td colspan="2">

      <img src="<%$tpl_base%>/images/write-review.gif" align="top" border="0" alt="" />
      <a href="<%$site_url%>/review.php?id=<%$link_id%>">Write a Review</a>
      &nbsp;
    
      <img src="<%$tpl_base%>/images/favorites.gif" align="top" border="0" alt="" />
      <a href="<%$site_url%>/cp/favorite_add.php?id=<%$link_id%>">Add to My Favorite</a>
      &nbsp;

      <img src="<%$tpl_base%>/images/email3.gif" align="top" border="0" alt="" />
      <a href="<%$site_url%>/tell_friend.php?id=<%$link_id%>">Refer it to Friend</a>
      &nbsp;
    
      <img src="<%$tpl_base%>/images/broken_link.gif" align="top" border="0" alt="" />
      <a href="<%$site_url%>/bad_link.php?id=<%$link_id%>">Report Broken Link</a>
      &nbsp;
    
    </td>
  </tr> 
  </table>

  <br />

  <div align="left">
  <table cellpadding="0" cellspacing="0">
  <tr>
    <td>

      <form action="rating.php" method="post">
      <input type="hidden" name="id" value="<%$link_id%>" />
      <table bgcolor="#D3D3D3" cellpadding="5">
      <tr>
        <td colspan="2">
          <b>Average Visitor Rating: </b> <%$rating_img%>
          <b><%$rating%></b> (out of 5)<br />
          Number of ratings: <%$votes%> Votes
        </td>
      </tr>
      <tr>
        <td width="100">
          <b>Visitor Rating</b>
        </td>
        <td>
          <select name="rating">
            <option value="">Select Your Rating</option>
            <option value="5">Excellent!</option>
            <option value="4">Very Good</option>
            <option value="3">Good</option>
            <option value="2">Fair</option>
            <option value="1">Poor</option>
          </select>
          <input type="submit" value="Rate It!" />
        </td>
      </tr>
      </table>
      </form>

    </td>
  </tr>
  </table>
  </div>

