564d214b80b952e6e0d360702164b7be7e69a6f7 tdreszer Tue Aug 31 14:35:52 2010 -0700 Moved cgiDropDownnWithTextValsAndExtra from searchTracks diff --git src/lib/cheapcgi.c src/lib/cheapcgi.c index ed236ec..7f9c20e 100644 --- src/lib/cheapcgi.c +++ src/lib/cheapcgi.c @@ -1680,6 +1680,33 @@ printf("\n"); } +void cgiDropDownWithTextValsAndExtra(char *name, char *text[], char *values[], + int count, char *selected, char *extra) +/* Make a drop-down list with both text and values. */ +{ +int i; +char *selString; +assert(values != NULL && text != NULL); +if (selected == NULL) + selected = values[0]; +printf("\n"); +for (i=0; i%s\n", selString, values[i], text[i]); + } +printf("\n"); +} + + void cgiMakeHiddenVarWithExtra(char *varName, char *string,char *extra) /* Store string in hidden input for next time around. */ {