<?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 - GO Definition</title>';

?>

<html>
<body bgcolor="#f7fbfe" text="#FFFFFF" link="#000000" vlink="#000000" alink="#000000">
<?php
	$id = $_GET["id"];
	


    $requete="select \"GO_ID\", \"GO_TERM\", \"DEFINITION\" from \"GO\" where \"GO_ID\"='$id'";
	
	$stmt = pg_query($c,$requete);
    if( $row=pg_fetch_array($stmt) ){
	    print "<font color=\"#D64242\"><b>".$row["GO_ID"].":&nbsp;&nbsp;&nbsp;".$row["GO_TERM"]."</b></font><br><br><font color=\"#456898\" size=\"2\"><b>".$row["DEFINITION"]."</b></font>";
	}else{
	    print "<br><br><center><h2><strong>No match</strong></h2></center><br><br>";
	}
?>
</body>
</html>