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

<h2><strong><em>Download UNIGENE files. </em></strong> </h2>
<center>
	<form target="_blank" action="download-Unigene2.php" method="post" name="formulaire">
		<table width="99%" border="0" cellspacing="0" background="pictures/barre.jpg">
		<tr bgcolor="#990000">
    	<td></td><td></td><td></td><td align="right" background="pictures/barre-red.jpg"><em><strong>Download Unigene files</strong></em></td>
		</tr><tr>
			<td><br><input type="checkbox" name="download" value="y" checked>
					<strong>Download the UNIGENE files.</strong></td>
		</TR><TR>
			<td colspan="4"><br><strong>Species:</strong>
					<select name="initial" size="1">
						<option></option>
						<?php
							$species="";
							if (isset($_POST["species"])) $species=$_POST["species"];
							
							$requete="Select \"NAME\" from \"SPECIES\" order by \"NAME\"";
							$stmt = pg_query($c,$requete);
							while( $row=pg_fetch_array($stmt) ){
								$name=$row["NAME"];
								print "<option";
								if($species==$name)
								    print " selected";
								print ">$name</option>";
							}
						?>
				    </select></td>
		</TR><TR>
			<td>&nbsp;</td>
 	   		<td>&nbsp;</td>
 	   		<td>&nbsp;</td>
    		<td align="right">
    		<br><br>
    		<input name="submit" type="image" src="pictures/button-submit.jpg" onClick="submit">&nbsp;&nbsp;&nbsp;
    	<br>
    	</td>
  	</tr>
 		</table>
	</form>
</center>
<?php
include ("frames_footer.php");
?>