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

<h2><strong><em>INPARANOID Loader.</em></strong> </h2>
<center>
<form target="_blank" action="inparanoid-loader2.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></td>
         <td></td>
         <td></td>
         <td align="right" background="pictures/barre-red.jpg"><em><strong>INPARANOID Loader</strong></em></td>
       </TR><TR>
         <td>&nbsp;</td>
       </tr><tr> 
         <td align="right"><strong>Species: </strong></td>
          <td align="left"><select name="speciesaniseed" 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>
                    
       </TR><TR>
         <td>&nbsp;</td>
       </tr><tr> 
         <td align="right"><strong>Ortholog genes species: </strong></td> 
         <td align="left"><SELECT NAME="species"><OPTION SELECTED VALUE="Homo sapiens">Homo sapiens<OPTION VALUE="Mus musculus">Mus musculus<OPTION VALUE="Drosophila melanogaster">Drosophila melanogaster</SELECT></td>
       </TR><TR>
	       <td>&nbsp;</td>
       </TR><TR>
         <td align="right"><strong>Inparanoid result file: </strong></td>
         <td align="left"><input type="file" name="_filepath" >
				<input type="hidden" name="filepath"></td>
       </TR><TR>
	       <td>&nbsp;</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");
?>