<html>
<head>
<title>ANISEED - Find Ciona intestinalis or Halocynthia roretzi anatomical territory</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="This page allows you to find Ciona intestinalis or Halocynthia roretzi territory by searching the anatomical ontology. For more detail, contact aniseed@ibdm.univ-mrs.fr">
<meta name="keywords" content="Lemaire, Tassy, Daian, Dauga, Sobral, Khoueiry, Aniseed, Ciona intestinalis, Halocynthia roretzi, anatomy, tunicate, ascidian database, ciona intestinalis database">
<meta name = "robots" content = "index, follow, all">
<META HTTP-EQUIV="Content-Language" CONTENT="EN">
<style type="text/css">
</style>
</head>


<?php
/*
    ANISEED, NISEED System and Database
    Copyright (C) 2007 Olivier Tassy, Fabrice Daian, Patrick Lemaire

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/
    include("connection.php");
    include("frames_header.php");
?>

<SCRIPT>
function enableField(){
    if(document.formulaire.usefate.checked==true){
        document.formulaire.elements["fate[]"].disabled=false;
		document.formulaire.action="anatomy-fate-result.php";

	}else{
        document.formulaire.elements["fate[]"].disabled=true;
		document.formulaire.action="anatomy.php";
	}
}

function getValue(){
    for(a=0; a< document.formu.length; a++){
        if(document.formu[a].checked==true){
			obj=document.formu[a];
            return obj.value;
        }
    }
}
</SCRIPT>


<?php
    $species="Ciona intestinalis";
	if (isset($_GET["species"])) $species=$_GET["species"];
	else $species="Ciona intestinalis";
	//if( (isset($_GET["species"])) and (strlen($species)>0) ){
		$query="SELECT \"NAME\", \"DEV_STAGE_ID\" FROM \"DEV_STAGE\" WHERE \"SPECIES\"='$species' ORDER BY \"DEV_PERCENT\"";
		$stmt = pg_query($c,$query);
	//}

	
?>
<div style="border-top:0px solid black;border-bottom:1px solid black;">
<font color="#D64242" size="3"><b>Find an anatomical territory in the ontology</b></font>
</div>
<br>
This page allows you to find a territory by searching the anatomical
ontology of a species of interest. First select you species (Ciona
intestinalis or Halocynthia roretzi), then the developmental stage of
interest and submit. The results page displays the ontology on the
left and, depending on the developmental stages, embryo schemes on
the right.
<br>
<center>
<form name="formulaire" action="anatomy.php" method="get" target="_blank">
	<table width="99%" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  
      <tr>
        <td><font color="#456898" size="2"><b>Species</b></font>&nbsp;
<select name="species" size="1" onChange="self.location.href = 'anatomy-search.php?species=' + this.options[ this.selectedIndex ].value">
            <!--<option></option>-->
            <?php
					$requete5="Select \"NAME\" from \"SPECIES\" order by \"NAME\"";
					$stmt5 = pg_query($c,$requete5);
					while( $row5=pg_fetch_array($stmt5) ){
						$name=$row5["NAME"];
						print "<option value=\"$name\"";
						if($species==$name)
							print " selected";
						print ">$name</option>";
					}
		    ?>
          </select> 

</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
	  
      <tr> 
        <td>
	<font color="#456898" size="2"><b>Developmental stages:</b></font>
	<br>
	<select name="dev" size="10">
        <?php
		 $id="";
		 while($row=pg_fetch_array($stmt))
		 {
		print "<option value=\"".$row["DEV_STAGE_ID"]."\">";
		print $row["NAME"]."</option>\n";
		$id .= $row["DEV_STAGE_ID"].":";
		 }
  	?>
        </select> 
	</td>
        <td> 
<!--
	    <input name="usefate" type="checkbox" value="y" onClick="javascript: self.enableField();"><font color="#456898" size="2"><b>Displayed fates: </b></font>
		    <br>
		    <select name="fate[]" size="10" multiple disabled>
            <?php
				 $requete= "SELECT \"KEYWORDS\" from \"FATE_KW\" order by \"KEYWORDS\"";
				 $stmt = pg_query($c,$requete);
				 while($row=pg_fetch_array($stmt))
					print "<option value=\"".$row["KEYWORDS"]."\">".$row["KEYWORDS"]."</option>\n";
			?>
            </select>-->
	&nbsp;
	</td>
        <td> &nbsp;</td>
        <td> &nbsp;</td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr> 
        <td valign="top"><hr color="#505F70" size="1"></td>
        <td valign="top"><hr color="#505F70" size="1"></td>
        <td valign="top"><hr color="#505F70" size="1"></td>
        <td valign="top"><hr color="#505F70" size="1"></td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td align="right"><input name="submit" type="image" src="pictures/button-submit.jpg" onClick="javascript: submit;">
          &nbsp;&nbsp;&nbsp; <br> </td>
      </tr>
    </table>

</form>
</center>

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