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

<?php


?>

<h2><strong><em>Create an Anatomical Tree.</em></strong> </h2>
<center>
<form name="formulaire" action="create-tree2.php" method="get" target="_self">
      <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>Anatomical Tree creator</strong></em></td>
            </tr><tr>
                  <td align="right"><br><br><br><strong>Species</strong></td>
                  <td align="left">
                        <br><br><br>
                        <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))
                      {
                        $species2=$row0["NAME"];
                        /*echo "<option value=\"$species2\" >$species2</option>";*/
				
                  	echo "<option value=\"$species2\">$species2</option>";
					  
			
                                    
                        }
?>
                        </select>
                  </td>
                  <td align="right"><br><br><br><strong>Developmental stage:</strong></td>
                  <td align="left">
                  <br><br><br>
                  <input type=text size=40 name=nomstade></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");
?> 