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


<h2><strong><em>ADD UNIGENE libraries. </em></strong> </h2>
<center>
	<form target="_blank" action="add-library2.php" method="post" name="formulaire" onsubmit="this.filepath.value=this._filepath.value">
		<table width="99%" border="0" cellspacing="0" background="pictures/barre.jpg">
			<tr bgcolor="#990000">
				<td>&nbsp;</td>
				<td align="right" background="pictures/barre-red.jpg"><em><strong>Add Libraries</strong></em></td>
			</tr><tr>
				<td><br><input type="checkbox" name="test" value="y" checked>
					<strong>Perform read test without recording data.</strong>
				</td>
				<td>&nbsp;</td>
			</TR><TR>
				<td>&nbsp;<br></td>
		        <td>&nbsp;</td>
			</TR><TR>
				<td colspan="2"><hr size="1" color="#990000"></td> 
			</TR><TR>
				<td><br><strong>Please select the ANISEED species :</strong>&nbsp;
					<select name="species" size="1">
					<?php 
						$requete = "select \"NAME\" from \"SPECIES\" ";
						$stmt0 = pg_query($c,$requete) or die("<strong>Error</strong> ".pg_last_error($c));
						while ($row0=pg_fetch_array($stmt0))
						{
							$species = $row0["NAME"];
							echo "<option value=\"$species\">$species</option>";
						}
					?>
					</select>
				</td>
				<td>&nbsp;</td>
			</TR><TR>
							
				<td colspan="2"><br><strong>UNIGENE library description file :</strong>			
					<input type="file" name="_filepath"> (e.g. : ./Unigene/Cin.lib.info)
					<input type="hidden" name="filepath">
				</td>
				
			</TR><TR>
				<td colspan="2"><hr size="1" color="#990000"></td> 
			</TR><TR>
				<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>

<br><br><br>

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

