From: miles Date: Mon, 25 Mar 2013 19:57:16 +0000 (+0000) Subject: View Ontology Changes: X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=763bb25ac90d145faee44b5d1a35a4a9b3f4c017;p=old-jaiswallab-svn%2F.git View Ontology Changes: -side scrolling -automatic heigth and width adjustments -automatic top and side offsets -some code refactoring -PO Number now included in term svn path=/; revision=440 --- diff --git a/Personnel/miles/Web Page/viewOntology.php b/Personnel/miles/Web Page/viewOntology.php index b2b3d52..fed4c22 100644 --- a/Personnel/miles/Web Page/viewOntology.php +++ b/Personnel/miles/Web Page/viewOntology.php @@ -37,7 +37,7 @@ for($i = 0; $i < sizeof($genes); $i++) { $logic = $logic . $toAdd; } -$query="select distinct name from (select term_id from gene_product left join association on association.gene_product_id=gene_product.id " . $logic . ") as mytable left join term on term_id=term.id order by name"; +$query="select concat(acc, \": \", name) from (select distinct name, acc from (select term_id from gene_product left join association on association.gene_product_id=gene_product.id " . $logic . ") as mytable left join term on term_id=term.id order by acc) as secondTable"; $results=mysql_query($query); $i = 0; @@ -57,7 +57,7 @@ for($i = 0; $i < sizeof($genes); $i++) { $logic = $logic . $toAdd; } -$query = "select full_name,term_id,name from (select full_name,term_id from gene_product left join association on association.gene_product_id=gene_product.id " . $logic . " order by full_name,term_id) as temp left join term on term.id=term_id order by full_name,name"; +$query = "select full_name,term_id,concat(acc, \": \", name) from (select full_name,term_id from gene_product left join association on association.gene_product_id=gene_product.id " . $logic . " order by full_name,term_id) as temp left join term on term.id=term_id order by full_name,acc"; $results=mysql_query($query); $t = 0; @@ -88,18 +88,23 @@ for ($i = 0; $i < sizeof($cellData); $i ++) - +$height = 800; +$width = 1200; ?> -
+
Your browser does not support the canvas element.
-
+
+
+ +
+