<?
include ("connection.php");
?>


<html>
<body bgcolor="#999966" text="#FFFFFF" link="#000000" vlink="#000000" alink="#000000">
<title>ANISEED CURATOR - Delete Reference</title>
<br>

<?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>';
		return;
	}
?>


<form name="formulaire" method="GET" action="deletereference2.php">


<?


$id=$_GET["id"];
$pubmedid=$_GET["pubmedid"];


$requete="SELECT \"TITLE\",\"PAPER\",\"AUTHORS\",\"URL\",\"COMMENTS\" from \"REFERENCE\" where \"BIO_ID\"='$id' and \"PUBMED_ID\"='$pubmedid'";

print "<center><strong><em>Do you want to delete this reference ?<em></strong></center>";
print "<br>";

$stmt=pg_query($c,$requete);

if ($row=pg_fetch_array($stmt))
{
print "<center>PubmedID: $pubmedid</center><br>";
print "<center>Title: ".$row["TITLE"]." </center><br>";
print "<center>Paper: ".$row["PAPER"]." </center><br>";
print "<center>Authors: ".$row["AUTHORS"]." </center><br>";
print "<center>URL: ".$row["URL"]." </center><br>";
print "<center>Comments: ".$row["COMMENTS"]." </center><br>";

print '<input type="hidden" name="pubmedid" value="'.$pubmedid.'">';
print '<input type="hidden" name="title" value="'.$row["TITLE"].'">';
print '<input type="hidden" name="paper" value="'.$row["PAPER"].'">';
print '<input type="hidden" name="authors" value="'.$row["AUTHORS"].'">';
print '<input type="hidden" name="url" value="'.$row["URL"].'">';
print '<input type="hidden" name="comments" value="'.$row["COMMENTS"].'">';
print '<input type="hidden" name="id" value="'.$id.'">';



print '<tr><td align="center"><center><img src="pictures/button-cur-delete.gif" title="Cancel"  onClick="javascript:self.close();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
print '<input name="submit" type="image" src="pictures/button-cur-validate.gif" onClick="submit" title="Ok">';

}
else
{
print "ERROR";
return;
}






?>

</form>

</body>
</html>
	
