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


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

<?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 action="reg-region-edit-comments-results.php" method="post" name="form1" target="_self">
<center>
<?php
		
	$id=$_GET["id"];
	$comments = "";
	$khoueiry = "SELECT \"COMMENTS\" FROM \"PROMOTER\" WHERE \"PROMOTER_ID\"=$id";	
	$stmt = pg_query($c,$khoueiry) or die("<strong>Error</strong> ".pg_last_error($c));
	if($row=pg_fetch_array($stmt)){	
		$comments=$row["COMMENTS"];
	}
	
	print "<input name=\"id\" type=\"hidden\" value=\"$id\">";	
	print '<textarea name="comments" cols="50" rows="20">'.$comments.'</textarea>';
	print '<br/><input type="checkbox" name="propagate" value="1"><strong>Propagate down to children regions...</strong>';
	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>

<?php

	include ("frames_footer.php"); 

?>