<?
include ("connection.php");
print "<title>ANISEED CURATOR - Edit Article Fate</title>";
include ("frames_header.php");

$id=$_GET["id"];

?>

<center><h2><strong><em>Add Fate affected for Article <? print $id; ?></em></strong> </h2></center>

<center>
<form name="formulaire" action="edit-article-fate2.php" method="post">
        
<font size="2"><b>Fate </b></font>&nbsp;<br>
<select name="fate[]" size="10" multiple>
<?php
//$requete= "SELECT \"KEYWORDS\" from \"FATE_KW\" EXCEPT SELECT \"FATE\" from \"ARTICLE_FATE\" where \"ARTICLE_ID\"='$id'";
$requete= "SELECT \"KEYWORDS\" from \"FATE_KW\"";
	$stmt = pg_query($c,$requete) or die(pg_last_error($c));
	while($row=pg_fetch_array($stmt))
		    print "<option value=\"".$row["KEYWORDS"]."\">".$row["KEYWORDS"]."</option>\n";
?>
</select>
<br><br>
   
<input type="hidden" name="id" value="<?print $id;?>">


<br><font size="-1"><i>You can choose one or more fates by pressing the "apple" key while clicking (Mac) or Ctrl (PC)</i></font>


<br><br>
<h3>Choose a Transcript ID</h3>
<input style="text-align:center;" type="text" name="gene" value="">
<br>
<br>
<input name="submit" type="image" src="pictures/button-submit.jpg" onClick="submit;">
</center>
</form>

<?



include ("frames_footer.php");
?>