<?
include ("connection.php");
print "<title>ANISEED CURATOR - Edit Annotator</title>";
include ("frames_header.php");
?>
<?php
    if ( (!isset($_SESSION["login"]))or(!isset($_SESSION["pass"])) ) {
	    print "<center><strong>you need to <a href=\"login.php\">login</a> as an authorised curator to proceed.</strong>";
	    print '</center></body></html>';
	   include ("frames_footer.php");
		return;
	}
?>

<?

$id=$_GET["id"];
print '<center><h2>Choose the new annotator for this entry</h2><br>';

print '<form name="formu" action="edit-annotator2.php" method="POST" target="_self">';
$requete="SELECT \"NAME\",\"SURNAME\",\"AUTHOR_ID\" from \"AUTHOR\" where \"IS_CURATOR\"='y'";
$stmt=pg_query($c,$requete);
print '<select name="autor">';
while ($row=pg_fetch_array($stmt))
{
print '<option value='.$row["AUTHOR_ID"].'>'.$row["NAME"]." ".$row["SURNAME"].'</option>';
}

print '</select>';
print '<input type="hidden" name="id" value="'.$id.'">';
print '<br>';
print '<br>';
print '<input type="submit" value="Submit">';
print '</form>';
print '</center>';


include ("frames_footer.php");
?>