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


<html>
<body bgcolor="#999966" text="#FFFFFF" link="#000000" vlink="#000000" alink="#000000">
<title>ANISEED</title>


<form action="edit-motif2.php" method="post" name="form1" target="_self">
<center>
<?php
	
    if ( (!isset($_SESSION["login"]))or(!isset($_SESSION["pass"])) ) {
	    print "<strong>you need to <a href=\"login.php\">login</a> as an authorised curator to proceed.</strong>";
	    print '</center></body></html>';
		return;
	}
	
	$moname=$_GET["moname"];
	$stop=$_GET["stop"];
	$seq=$_GET["seq"];
	$comments=$_GET["comments"];

	$name=$_GET["name"];
	$motif=$_GET["motif"];
	$begin=$_GET["begin"];

	
	print "<input name=\"moname\" type=\"hidden\" value=\"$moname\">";
	print "<input name=\"stop\" type=\"hidden\" value=\"$stop\">";
	print "<input name=\"seq\" type=\"hidden\" value=\"$seq\">";
	
	print "<input name=\"name\" type=\"hidden\" value=\"$name\">";
	print "<input name=\"motif\" type=\"hidden\" value=\"$motif\">";
	print "<input name=\"begin\" type=\"hidden\" value=\"$begin\">";
	
	
		print '<textarea name="text" cols="50" rows="20">';
		
		if (strlen($moname)>0) print $moname;
		if (strlen($stop)>0) print "$begin-$stop";
		if (strlen($seq)>0) print $seq;
		if (strlen($comments)>0) print $comments;		

		print '</textarea>';
		
		print '<br><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">';
	

?>
</center>
</form>


</body>
</html>