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

<SCRIPT>
function enableField(a,b)
{

    if(a.checked==true){
        b.disabled=true;
	}
	else{
	    b.disabled=false;
	 }
}
</SCRIPT>


<h2><strong><em>InterPro database. </em></strong> </h2>
<center>
<form target="_blank" action="update-interpro2.php" method="post" name="formulaire" onsubmit="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 InterPro data</strong></em></td>
	</TR><TR>
		<td><input type="checkbox" name="test" value="y" checked ><strong>Perform read test without recording data. <br>
          <font color="#FF3300">Caution the previous interpro data will be deleted 
          if you don't perform a read test.</font></strong></td>
	</TR><TR>
		<td>&nbsp;</td>
	</TR><TR>
		<td><input type="checkbox" name="download" value="y" checked onClick="javascript: self.enableField(this,window.document.formulaire.filepath);"><strong>Download the Interpro XML file .</strong></td>
	</TR><TR>
		<td>&nbsp;</td>
	</TR><TR>
		<td><strong>Choose the Interpro XML file to parse :</strong>&nbsp;
		<input type="file" name="_filepath">
	<input type="hidden" name="filepath"></td>
	</TR><TR>
		<td>&nbsp;</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 update the Interpro elements into the Aniseed database. The Interpro XML file is automatically downloaded if the option is checked.
					Update of the database need to disable integrity constraint (IP_ID_FK from the IP_DESCRIPTION table).
				</DD>
			</DL>	
		</td>
	</TR><TR>
		<td>
			<DL>
				<DT> <font size="+1" ><U>Options :</U></font></DT>
				<DD> 	
					Perform read test without recording data : Check this option if you don't want to erase all the data from Aniseed. If it's checked, the update can't be done. Debug mode.<P>
					Download the Interpro XML file : If you want to download automatically the Interpro XML file check this option.<P>
					<U>OR</U><P>
					Choose the Interpro XML file to parse : If you have already the XML file and you want to update the database with your file give here its file path.
				</DD>
			</DL>
		</td>		
	</TR>
</table>

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