<?php

include("connection.php");
include("frames_header.php");
//si elmt1 est coche alors elmt2 est inactif!!!
?>
<SCRIPT>
function enableField(a,b)
{

    if(a.checked==true){
        b.disabled=true;
	}
	else{
	    b.disabled=false;
	 }
}
</SCRIPT>
<h2><strong><em>BEST BLAST HITS. </em></strong> </h2>
<center>
	<form target="_blank" action="best-blast-hit2.php" method="post" name="formulaire" onsubmit="this.protspecies.value=this._protspecies.value; this.filepath.value=this._filepath.value">
		<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>Update BEST BLAST HITS</strong></em></td>
		</tr><tr>
			<td><br><input type="checkbox" name="update" value="y" checked>
					<strong>Update the Swissprot database.</strong></td>
		</TR><TR>
			<td><br><input type="checkbox" name="backup" value="y" checked>
					<strong>Make a backup of the previous Swissprot database.</strong></td>
		</TR><TR>
			<td><br><input type="checkbox" name="launch" value="y" checked onClick="javascript: self.enableField(this,window.document.formulaire._filepath)">
					<strong>Start a new <u>PSI-Blast</u> analysis using the Swissprot database.</strong></td>
		</TR><TR>
			<td colspan="4"><br><hr size="1" color="#990000"></td>		
		</TR><TR>
			<td><br><input type="checkbox" name="del" value="y" checked disabled>
			<strong>Delete previous blast results (against swissprot).</strong></td>
		</TR><TR> 
			<td colspan="4"><br><hr size="1" color="#990000"></td>	
		</TR><TR>
			<td><br><input type="checkbox" name="test" value="y" checked onClick="javascript: self.enableField(this,window.document.formulaire.del)">
			<strong>Perform read test without recording data.</strong></td>
		</TR><TR>
			<td><CENTER><br><strong>or</strong></CENTER></td>
		</TR><TR> 
			<td><br><input type="checkbox" name="record" value="y" checked >
			<strong>Record blast data into ANISEED.</strong></td>
		</TR><TR> 
			<td><CENTER><br><strong>or</strong></CENTER></td>
		</TR><TR> 
			<td><br><strong>Blast result file to load:</strong>			
				<input type="file" name="_filepath" disabled>
				<input type="hidden" name="filepath"></td>
		</TR><TR>
			<td>&nbsp;</td>
		</TR><TR>
			<td><br><strong>Protein models file:</strong>
				<input type="file" name="_protspecies">
				<input type="hidden" name="protspecies">
			</td>
		</TR><TR>
			<td><br><strong>Record the :&nbsp;</strong>
			<SELECT NAME="hits"><OPTION SELECTED VALUE="5">5<OPTION VALUE="10">10</SELECT> 
			&nbsp;<strong>first best blast hits.</strong></td>
		</TR><TR>
			<td colspan="4"><br><hr size="1" color="#990000"></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>
<br><br><br>


<!--
<TABLE border="0"  bgcolor="#999999" background="pictures/barre.jpg">
	<TR align="center" bgcolor="#333333">
		<td> <font size="+2" color="#FFFFFF">HELP</font> </td>
	</TR><TR>
		<td>
			<DL>
				<DT> <font size="+1" ><U>General Idea :</U></font></DT>
				<DD>This script can download the latest version of the Swissprot database (if it's needed). Format this database into a compatible format for Blast, run automatically a Blast against the Swissprot database and can record into the Aniseed database some best blast hits.</DD>
			</DL>	
		</td>
	</TR><TR>
		<td>
			<DL>
				<DT> <font size="+1" ><U>Options :</U></font></DT>
				<DD>The options are composed in three parts :</DD>
			</DL>
			<DL>
				<DT><I>First part :</I></DT>
				<DD> 	
					Update the Swissprot database : If it's checked, the script verify if you have the last version of the Swissprot database and download it if it's needed.<P>
					Make a backup of the previous Swissprot database  : this option create a backup of the old Swissprot database when you download a newer.<P>
					Start a new Blast analysis using the new Swissprot database : Run a new blast analysis from your database (containing, for example, all the protein of your organism) against the Swissprot database.
				</DD>
			</DL>
			<DL>
				<DT><I>Second part :</I></DT>
				<DD>	
					Delete previous blast results (against swissprot) : If it's checked, all the data registered into Aniseed about blast will be deleted.
				</DD>
			</DL>
			<DL>
				<DT><I>Third part :</I></DT>
				<DD>	
					Perform read test without recording data : This option allow the user to see what the script do but without recording data into the Aniseed database.<P>
					Record blast data into ANISEED : If you check this option, the (n) best blast hits will be recorded into the Aniseed database.<P>
					Blast result file to load : If you don't want to use the automatic file result of the blast analysis you can enter here the file path of your own blast file results.<P>
					Record the (n) first best blast hits : you can specify how many best blast hits do you want to enter in the Aniseed database.
				</DD>
			</DL>			
		</td>		
	</TR>
</table>

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