src/hg/hgc/t2g.c 1.7
1.7 2010/05/28 20:57:07 hiram
update to abstract display to keep in more condensed
Index: src/hg/hgc/t2g.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/t2g.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/hg/hgc/t2g.c 26 May 2010 18:23:47 -0000 1.6
+++ src/hg/hgc/t2g.c 28 May 2010 20:57:07 -0000 1.7
@@ -47,11 +47,11 @@
char *docId=0;
if ((row = sqlNextRow(sr)) != NULL)
{
printLinks(row[0], row[1]);
- printf("<A HREF=\"%s%s\"><b>%s</b></A>", PMCURL, row[1], row[2]);
- printf("<p style=\"font-size:96%%\">%s</p>", row[3]);
- printf("<p style=\"font-size:92%%\">%s</p>", row[4]);
+ printf("<A HREF=\"%s%s\"><b>%s</b></A>\n", PMCURL, row[1], row[2]);
+ printf("<p style=\"width:800px; font-size:96%%\">%s</p>\n", row[3]);
+ printf("<p style=\"width:800px; font-size:92%%\">%s</p>\n", row[4]);
docId = row[1];
}
sqlFreeResult(&sr);
return docId;
@@ -82,8 +82,9 @@
for (i=0; i<partCount; i++)
hashAdd(seqIdHash, seqIds[i], NULL);
freeMem(seqIdsString);
+ // output table
webNewSection("Sequences in article");
printf("<small>Sequences that map to the feature that was clicked "
"are highlighted in bold</small>");
webPrintLinkTableStart();
@@ -99,10 +100,10 @@
if (hashLookup(seqIdHash, seqId))
printf("<TD BGCOLOR=\"#%s\"><TT><B>%s</B></TT></TD>",
HG_COL_TABLE, seq);
else
- printf("<TD BGCOLOR=\"#%s\"><TT><FONT COLOR=\"#CCCCCC\">%s"
- "</FONT></TT></TD>", HG_COL_TABLE, seq);
+ printf("<TD BGCOLOR=\"#%s\"><TT><FONT COLOR=\"#AAAAAA\">%s"
+ "</FONT></TT></TD>\n", HG_COL_TABLE, seq);
webPrintLinkTableNewRow();
listEl=listEl->next;
}
webPrintLinkTableEnd();