<?php
    session_start();
?>

<html>
<body bgcolor="#999966" text="#FFFFFF" link="#000000" vlink="#000000" alink="#000000">
<title>ANISEED CURATOR - Change Status</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 action="curator-state2.php" method="post" name="form1" target="_self">
 <table width="100%" border="0" bgcolor="">

<?php

    $id=$_GET["id"];
	$mode=$_GET["mode"];
	
	if(!isset($_GET["type"]) || $_GET["type"]!="reg"){
		$type = "ISH"  ;
	} else {
	   $type = "reg";
	}
	
	print '<input type="hidden" name="mode" value="'.$mode.'">';
	print '<input type="hidden" name="type" value="'.$type.'">';
	print "<input name=\"id\" type=\"hidden\" value=\"$id\">";
	print '<tr><td><font color="#CC0000"><H1><u>WARNING:</u></H1></font></td></tr>';
	
	if($mode==1)
	    print "<tr><td align=\"center\"><strong>Are you sure you want to <font size=\"+2\" color=\"#00FF00\">submit to curation pipeline</font> the region number <font size=\"+2\">$id</font>?</strong></td></tr>";
	if($mode==2)
	    print "<tr><td align=\"center\"><strong>Are you sure you want to <font size=\"+2\" color=\"#CC0000\">make private</font> the region number <font size=\"+2\">$id</font>?</strong></td></tr>";
	if($mode==3)
	    print "<tr><td align=\"center\"><strong>Are you sure you want to <font size=\"+2\" color=\"#6600FF\">make not curated</font> the region number <font size=\"+2\">$id</font>?</strong></td></tr>";

	
	//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;<img src="pictures/button-cur-validate.gif" title="Ok"  onClick="javascript:self.location.href =\'curator-delete2.php?id='.$id.'\';"></center></td></tr>';
	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">';
	
?>

 </table>
 </form>
 </body>
 </html>
