<%Links::SQL::load%>
<html>

<head>
<title>Gossamer Links - Database - Nav</title>
<base target="content">
<script language="Javascript">
<!--
var field_clear = 1;

function setid (myform) {
  var opts = 'do';
  var action = myform.todo.options[myform.todo.selectedIndex].value;
  var table = myform.db.options[myform.db.selectedIndex].text;
  var key = myform.keyid.value;
  if (key == 'id')
    key = '';

  myform[opts].value = action;
  myform.keyword.value = '';
  myform.Username.value = '';
  myform.ID.value = '';
  myform.ReviewID.value = '';
  if (action == 'search_results') {
    myform[opts].value = 'search_results';
    myform.keyword.value = '*';
  }
  else if (key) {
    if (table == 'Users')
      myform.Username.value = key;
    else if (table == 'Reviews')
      myform.ReviewID.value = key;
    else
      myform.ID.value = key;

    if (action == 'modify_search_form')
      myform[opts].value = 'modify_search_results';
    else if (action == 'delete_search_form')
      myform[opts].value = 'delete_search_results';
    else if (action == 'search_form')
      myform[opts].value = 'search_results';
  }
  myform.keyid.value = '';
  }
// -->
</script>
</head>

<body bgcolor="#FFFFFF">

<form method="GET" action="admin.cgi" onSubmit="setid(this)" name="searchform" target="content">
<input type="hidden" name="keyword" value="">
<input type="hidden" name="Username" value="">
<input type="hidden" name="ID" value="">
<input type="hidden" name="ReviewID" value="">
<input type="hidden" name="do" value="">
<input type="hidden" name="ID-opt" value="=">
<input type="hidden" name="Username-opt" value="=">
<input type="hidden" name="ReviewID-opt" value="=">
<table border="1" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td bgcolor="#DDDDDD"><font face="Tahoma,Arial,Helvetica" size="2">&nbsp;Editor</font></td>
  </tr>
  <tr>
    <td><br>
      &nbsp;<select size="1" name="db">
        <option>Category</option>
        <option>Links</option>
        <option>Users</option>
        <option>Reviews</option>
      </select><br>
      &nbsp;<select size="1" name="todo">
        <option value="add_form">Add</option>
        <option value="modify_search_form">Modify</option>
        <option value="delete_search_form">Delete</option>
        <option value="search_form">Search</option>
        <option value="search_results">List All</option>
        <option value="editor_table_form">Properties</option>
      </select><br>
	  &nbsp;<nobr><input type=text name="keyid" value="id" onFocus="if (field_clear) { searchform.keyid.value=''; field_clear = 0; }" size=5> <input type="submit" value="Go">&nbsp;<font face="Tahoma,Arial,Helvetica" size="2"></font></nobr>
      <font face="Tahoma,Arial,Helvetica" size="2">
<br>
&nbsp;</font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD"><font face="Tahoma,Arial,Helvetica" size="2">&nbsp;Tools</font></td>
  </tr>
  <tr>
    <td><font face="Tahoma,Arial,Helvetica" size="2">
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_validate.html">Validate Links</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_validate_changes.html">Validate Changes</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_validate_reviews.html">Validate Reviews</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_search_logs.html">View Search Logs</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_verify.html">Verify Links</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_status.html">Link Status</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_duplicate.html">Check Duplicates</a><br>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_expired_purge.html">Purge Expired Links</a><br>
      &nbsp; <a href="nph-import.cgi">Import/Export</a><br>
<%if driver eq 'mysql'%>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_mysqlman.html">MySQLMan</a><br>
<%endif%>
      &nbsp; <a href="admin.cgi?do=page&amp;page=tools_sql_monitor.html">SQL Monitor</a><br>
      &nbsp; </font></td>
  </tr>
  <tr>
    <td bgcolor="#DDDDDD"><font face="Tahoma,Arial,Helvetica" size="2">&nbsp;
      Repair</font></td>
    </tr>
     <tr>
       <td><font face="Tahoma,Arial,Helvetica" size="2">
            &nbsp; <a href="admin.cgi?page=update_cat_tree.html">Rebuild Cat. tree</a><br>
            &nbsp; <a href="nph-build.cgi?do=repair">Repair Tables</a><br>
            &nbsp; <a href="nph-index.cgi">Rebuild Search</a><br>
            &nbsp;</font></td>
  </tr>
</table>

</form>

</body>

</html>
