aab4f66a2aca5293f3536cc1d1438b17d2b09dfd tdreszer Thu May 5 16:14:15 2011 -0700 A large set of tiny changes. These fix a lot of discrepencies with bgcolor and font color declarations which were tripping up docttype 4.01. diff --git src/hg/hgGeneRing/hgGeneRing.c src/hg/hgGeneRing/hgGeneRing.c index 18a584b..f11d9e0 100644 --- src/hg/hgGeneRing/hgGeneRing.c +++ src/hg/hgGeneRing/hgGeneRing.c @@ -68,51 +68,49 @@ char *position = cloneString(cartUsualString(cart, "position", defaultPosition)); boolean gotClade = hGotClade(); /* JavaScript to copy input data on the change genome button to a hidden form This was done in order to be able to flexibly arrange the UI HTML */ char *onChangeDB = "onchange=\"document.orgForm.db.value = document.mainForm.db.options[document.mainForm.db.selectedIndex].value; document.orgForm.submit();\""; char *onChangeOrg = "onchange=\"document.orgForm.org.value = document.mainForm.org.options[document.mainForm.org.selectedIndex].value; document.orgForm.db.value = 0; document.orgForm.submit();\""; char *onChangeClade = "onchange=\"document.orgForm.clade.value = document.mainForm.clade.options[document.mainForm.clade.selectedIndex].value; document.orgForm.org.value = 0; document.orgForm.db.value = 0; document.orgForm.submit();\""; if (sameString(position, "genome") || sameString(position, "hgBatch")) position = defaultPosition; puts( "
\n" -"
" -"\n" -"
\n" -"
\n" +"" +"\n" +"
\n" "The UCSC Genome Browser was created by the \n" "Genome Bioinformatics Group of UC Santa Cruz.\n" "
" "Software Copyright (c) The Regents of the University of California.\n" "All rights reserved.\n" -"\n" -"
\n" +"
\n" ); puts( "\n" -"
\n" -"\n" +"\n" +"
\n" "
\n" -"\n" +"
\n" "
\n" -"\n" +"
\n" "\n" "
\n" ""); if (gotClade) puts(""); puts( "\n" "\n" "\n" "\n" "\n" "\n" ); if (gotClade) @@ -158,42 +156,42 @@ cartSetString(cart, "clade", clade); freez(&defaultPosition); position = NULL; puts("\n"); printf("\n"); puts( "
cladegenomeassemblypositionimage width  
\n"); cgiMakeIntVar("pix", cartUsualInt(cart, "pix", hgDefaultPixWidth), 4); cartSaveSession(cart); printf(""); cgiMakeButton("Submit", "Submit"); printf("
\n" -"
\n" +"
\n" "Click here to reset the browser user interface settings to their defaults.
\n" -"\n" -"
\n" +"\n" +"
\n" ); cgiMakeButton("customTrackPage", "Add Your Own Custom Tracks"); -puts("\n" +puts("\n" "
\n" "
\n" "
\n" ); -puts("
"); +puts(""); hgPositionsHelpHtml(organism, db); puts("\n" ); puts("
"); if (gotClade) printf("\n", clade); printf("\n", organism); printf("\n", db); cartSaveSession(cart); puts("

"); } @@ -369,64 +367,62 @@ return result; } void getGeneList() /* hgGeneRing - Gene Network Browser. */ { /* not much point in this, though called old it's the same as current at this point. It is not the old value from before the last submit. char *oldGeneList = hashFindVal(oldVars, "ring_geneList"); */ if (!sameString(errMsg,"")) { - printf("
%s
\n",errMsg); + printf("%s\n",errMsg); } puts( "
\n" -"
" -"\n" -"
\n" -"
\n" +"" +"\n" +"
\n" "Enter gene list for gene network ring.\n" -"\n" -"
\n" +"
\n" ); puts( -"
" -"\n" +"" +"
\n" "\n" ); puts("\n"); puts( "\n" ); printf("\n"); puts( -"
\n"); cgiMakeTextArea("ring_geneList", geneList, 25, 30); printf("
"); cgiMakeButton("Submit", "Submit"); printf("
\n" +"\n" ); puts("\n"); cartSetString(cart, "ring_action", "saveGeneList"); cartSetString(cart, "ring_errMsg", ""); } int compareNodes(const void *va, const void *vb) { const struct nodelist *a = *((struct nodelist **)va); const struct nodelist *b = *((struct nodelist **)vb); if (a->node->ring && !b->node->ring) return -1; if (!a->node->ring && b->node->ring) return 1; @@ -451,45 +447,45 @@ */ { struct interaction* intr; struct nodelist *nl; if (!getGenesAsList()) { getGeneList(); return FALSE; } if (showAll) { puts( - "
" - "\n" + "" + "
\n" "
\n" ); printf("geneList: %s
\n", geneList ); puts( "
" "gene-list\n" "
" "screen\n" ); puts( - "
\n" + "\n" ); } interactions = getGenesFromTable("intrP2P"); /* adds geneList elements to hash */ if (showAll) { uglyf("slCount = %d for result list for %s.

\n",slCount(interactions),geneList); } /* this might get moved later */ /* add to hash the remaining interactions members */ for(intr=interactions;intr;intr=intr->next) @@ -764,43 +760,43 @@ } } } nl=nl->next; } printf("\n"); mgSaveGif(mg, filename.forCgi, FALSE); width=height=SCREEN_SIZE; -printf("
"); +printf("
"); printf(""); printf(""); printf(""); printf( ""); -printf("
", filename.forHtml, width, height, mapName); printf("
" "back " "gene-list " "refresh " "
"); +printf(""); } char *unAlias(char *gene) /* deal with alias mapping for gene names, return FBgn */ { struct hashEl *hf=NULL; if (!startsWith("FBgn",gene)) { if (hf=hashLookup(aliasHash,gene)) { gene=(char *)hf->val; } } return gene;