<?php 
$setpage = 'addlink';
$return = 'showlinks';
$table = "LINKS";
$string = "ORDER BY TITLE ASC";
?> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3" colspan="2"><b> Tool Tips</b></td>
</tr>
<tr> 
<td class="td4" valign="top"> 
<p><img src="../images/Help.png" width="64" height="64"></p>
</td>
<td class="td4" width="100%" valign="top"> 
<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td> 
<div align="center"><img src="../images/edit_listing.jpg" border="0" alt="Edit this listing" width="22" height="22" /></div>
</td>
<td class="font1" width="100%"> Edit this link.</td>
</tr>
<tr> 
<td> 
<div align="center"><img src="../images/delete-page-red.gif" alt="Delete this listing" border="0" width="14" height="14" /></div>
</td>
<td class="font1" width="100%"> Delete this link.</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table  width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> 
<td class="td3"><b>Your Links</b></td>
</tr>

</table>
<table  width="100%" cellpadding="0" cellspacing="0" border="0">

  <?php
$SQL = "SELECT * from $table $string";
$result = @mysql_query( $SQL ); while( $row = @mysql_fetch_array( $result ) ) {
?>
  <tr>
    <td nowrap class="td4" width="100%"><a href="<?php echo "?page=$setpage&id=$row[ID]&qt=update"; ?>"><?php echo "$row[TITLE]"; ?></a> </td>
    

    <td class="td4"><a href="<?php echo "?page=$setpage&id=$row[ID]&qt=update"; ?>"> <img src="../images/edit-comment-orange.gif" border="0" alt="Edit this listing" width="14" height="14" /></a> </td>
    <td class="td4"><a href="../library/delete.php?id=<?php echo $row[ID]; ?>&amp;return=<?php echo $return; ?>&amp;type=<?php echo "$table"; ?>"> <img src="../images/delete-page-red.gif" alt="Delete this listing" border="0" width="14" height="14" /></a> </td>
  </tr>
  <div align="center">
    <?php } ?>
  </div>
</table>
