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

?>
		
        <h2><strong><em>Regulatory Region Search.</em></strong> </h2>
        <center>

		<form Method="POST" Action="reg-region-search-results_new.php" name="formulaire" target="_blank">
		
            <table width="99%" border="0" cellspacing="0" cellpadding="0" background="pictures/barre.jpg">
              <tr bgcolor="#990000"> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td width="80">&nbsp;</td>
                <td align="right" background="pictures/barre-red.jpg"> <em><strong>Regulatory Region Search</strong></em> </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
				  <input type="checkbox" name="being" value="1">
				  <strong>Limit to records which are being manually curated 
				  <br>
				  <input type="checkbox" name="news" value="1" checked>
                  <strong>Limit to uncurated records only</strong>
				  <br>
				  <input type="checkbox" name="private" value="1">
                  <strong>Hide private regions</strong>
				</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td align="right"><center>
                    <strong>Species:</strong></center></td>
                <td> <div align="left">                     
                    <select name="species" size="1">
                      <option ></option>
                      <?php

						$requete5="Select \"NAME\" from \"SPECIES\" order by \"NAME\"";

							$query5=pg_query($c,$requete5);							

							while( $row5=pg_fetch_array($query5) ){
								$name=$row5["NAME"];
								print "<option value=\"$name\">";
								print $name."</option>";
							}
				    ?>
                    </select>
                  </div></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>
              <tr> 
                <td align="right"><center><strong>Region name:</strong></center></td>
                <td><div align="left"> <input name="name" type="text" size="50" value=""></div></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>
              <tr valign="top"> 
                <td align="right"><center>
                    <strong>Regulated gene*: </strong></center></td>
                <td> <div align="left"> 
                    <input name="target" type="text" size="30">
                  </div></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr valign="top"> 
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>
			  
<!-- AJOUT -->			  
              <tr valign="top"> 
                <td height="28" align="right"><center>
			<strong>Author name*:</strong></center></td>
                <td> <input name="author" type="text" size="30"> 
                  <br> <font size="-1">(e.g. Lemaire)</font> </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>
              
<!-- FIN AJOUT -->
              
<!-- AJOUT -->

              <tr valign="top"> 
                <td height="28" align="right"><center>
                   <strong>Annotator name*:</strong></center></td>
                <td> <input name="annotator" type="text" size="30"> 
                  <br> <font size="-1">(e.g. Lemaire)</font> </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>


<!-- FIN AJOUT -->

<!-- AJOUT -->

              <tr valign="top"> 
                <td height="28" align="right"><center>
                   <strong>Search by Pubmed id*:</strong></center></td>
                <td> <input name="pmid" type="text" size="30"> 
                  <br> <font size="-1">(e.g. 12441299)</font> </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>


<!-- FIN AJOUT -->

<!-- AJOUT -->
              <tr valign="top"> 
                <td height="28" align="right"><center>
                    <strong>Search by entry date:</strong></center></td>
                <td> <small>Between (eg. YYYY-MM-DD )</small><input name="datefrom" type="text" size="30" value="<?php print $datefrom; ?>"> 
                  </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr valign="top"> 
                <td height="28" align="right"><center>
                    <strong>&nbsp;</strong></center></td>
                <td><small>and (eg. YYYY-MM-DD ) </small><br><input name="dateto" type="text" size="30" value="<?php print $dateto; ?>">   
                  </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
                <td><hr color="#999966" size="1"></td>
              </tr>
<!-- FIN AJOUT -->

              <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"> 
                  &nbsp;&nbsp; </td>
              </tr>
            </table>			
			
		</form>
		
	  </center>
	  
        <strong>Notes:</strong><br>
        * You can enter several names by separating your entries with the ":" symbol.<br>        
        If you are searching for a gene please use its unique ID 
		(eg. use jgi ci model  ID for C.intestinalis genes)<br>
		
		You can find these unique ID by using the <a href="molecule-search.php"  target="_blank">molecule search tool</a>.		
        <br><br>		

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

