<?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");
//Title before frames_header
print '<title>ANISEED v3.0 - Transcript model search</title>';

    include("frames_header.php");
?>

<SCRIPT>
function enableField(){
    if(document.formulaire.type[0].checked==true){
        document.formulaire.user.disabled=false;
		document.formulaire.auto.disabled=false;
		document.formulaire.blast.disabled=false;
	}else{
        document.formulaire.user.disabled=true;
		document.formulaire.auto.disabled=true;
		document.formulaire.blast.disabled=true;
	}
}
</SCRIPT>

<div style="border-top:0px solid black;border-bottom:1px solid black;">
<font color="#D64242" size="3"><b>Find a Transcript model by name or ID</b></font><br>
</div>
<br>
You can search Transcript models by biological name or ID using this page.

3 Ciona transcripts model sets (JGI v1.0; Kyotograil2005 and ENSEMBL) are
supported and functionally annotated in Aniseed. A single Halocynthia
transcrtip set is supported. A biological name is associated to each transcript
model either by inference from its orthologues in mouse, human, and
drosophila or from the best blast hit in Swissprot.
<br>

<center>
<form name="formulaire" action="molecule-result.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>
	<td>&nbsp;</td>
	</tr>

      <tr> 
        <td align="right"><font color="#456898" size="2"><b>Species&nbsp;</b></font></td>
        <td align="left"> <select name="species" size="1">
			
				<?php
						$requete="Select \"NAME\" from \"SPECIES\" order by \"NAME\"";
						$stmt = pg_query($c,$requete);
						while( $row=pg_fetch_array($stmt) ){
							$name=$row["NAME"];
							print "<option>$name</option>";
						}
				?>
			
          </select> </td>
	<td align="left">&nbsp;</td>
        <td align="left">&nbsp;</td>
        
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="right">&nbsp;<font color="#456898" size="2"><b>Name&nbsp;</b></font></td>
        <td align="left"><input name="name" type="text" size="50"><font color="#656565" size="-1"> &nbsp;&nbsp;<br> (Otx, tyrosinase, ci0100133709, KYOTOGRAIL2005.98.32.1,  ENSCINT00000018028...)</font> </td>
        <td>&nbsp;</td>
        <td align="right">&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 align="center">&nbsp;<font color="#456898" size="2">Search genemodel name in:</b></font></td>
        <td>&nbsp;</td>
        <td align="right">&nbsp;</td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;<input type="checkbox" name="user" value="y" checked> &nbsp;<font color="#656565" size="-1">Manual 
          annotation</font></td>
        <td>&nbsp;</td>
        <td align="right">&nbsp;</td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;<input type="checkbox" name="auto" value="y" checked> &nbsp;<font color="#656565" size="-1">Automatic 
          annotation (Ortholog prediction)</font></td>
        <td>&nbsp;</td>
        <td align="right">&nbsp;</td>
      </tr>
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;<input type="checkbox" name="blast" value="y" checked> <font color="#656565" size="-1">&nbsp;Best BLAST 
          hits</font></td>
        <td>&nbsp;</td>
-->
	<tr>
        <td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
        <td align="right"><input name="submit" type="image" src="pictures/button-submit.jpg" onClick="submit"> </td>
       </tr>
<!--
      <tr> 
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td align="right">&nbsp;&nbsp;&nbsp;</td>
      </tr>
-->

    </table>


<input type="hidden" name="user" value="y">
<input type="hidden" name="auto" value="y">
<input type="hidden" name="blast" value="y">

<?php
if(defined($_GET["type"])){
	echo '<input type="hidden" name="type" value="'.$_GET["type"].'">';
} else {
	echo '<input type="hidden" name="type" value="2">';
}
?>

</form>
</center>





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