<?php
	//connection
	include("connection.php");
    include("frames_header.php");
?>
    
<form target="_blank" action="gene-position2.php" method="post" onsubmit="this.filepath.value=this._filepath.value">
  <table>
    <TR> 
      <td><input type="checkbox" name="test" value="y" checked>
        Perform read test whithout recording data.</td>
    </TR>
    <TR> 
      <td>&nbsp;</td>
    </TR>
    <TR> 
      <td>Species:&nbsp;
	<select name="species" size="1">
            <option ></option>
            <?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))
				{
					$name = $row0["NAME"];
					print "<option value=\"$name\"";
					if($species==$name)
					    print " selected";
					print ">$name</option>";
				}
				
		   ?>
			
          </select> 
	</td>
    </TR>
    <TR> 
      <td>&nbsp;</td>
    </TR>
    <TR> 
      <td>GFF* file to load:&nbsp; 
        <input type="file" name="_filepath">
	<input type="hidden" name="filepath"></td>
    </TR>
    <TR> 
      <td>&nbsp;</td>
    </TR>
    <TR> 
      <td><input name="submit" type="image" src="pictures/button-submit.jpg" onClick="submit"></td>
    </TR>
  </table>
  
 <br> <br> <br>
  * Fields are: &lt;<font color="#FF6600">scaffold_id</font>&gt; &lt;src&gt; &lt;exon&gt; 
  &lt;<font color="#FF6600">start</font>&gt; &lt;<font color="#FF6600">end</font>&gt; 
  &lt;.&gt; &lt;<font color="#FF6600">strand</font>&gt; &lt;.&gt; &lt;name "<font color="#FF6600">gene 
  name</font>";&gt;
  <br>
  separated with a tabulation.
</form>
<br><br><br>
<?php
    include("frames_footer.php");
?>