/* cgiTaxon - Go between taxon ID, scientific name and common name.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "jksql.h" #include "htmshell.h" #include "web.h" #include "cheapcgi.h" #include "cart.h" #include "hui.h" #include "spDb.h" /* Global Variables */ struct cart *cart; /* CGI and other variables */ struct hash *oldVars = NULL; #define varPrefix "cgiTaxon." #define typeVar varPrefix "type" #define textVar varPrefix "text" char *typeNames[] = { "NCBI taxon", "Scientific Name", "Common Name", }; #define taxonType "taxon" #define sciType "sci" #define commonType "common" char *types[] = { taxonType, sciType, commonType, }; void doMiddle(struct cart *theCart) /* Set up globals and make web page */ { cart = theCart; cartWebStart(cart, database, "Go between taxon ID, scientific name and common name."); printf("
"); cartWebEnd(); } /* Null terminated list of CGI Variables we don't want to save * permanently. */ char *excludeVars[] = {"Submit", "submit", NULL,}; int main(int argc, char *argv[]) /* Process command line. */ { cgiSpoof(&argc, argv); cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars); return 0; }