void cgiMakeCheckAllSubmitButton(char *name, char *value, char *id, char *idPrefix, boolean state) /* Make submit button which uses javascript to apply check all or uncheck all to all * checkboxes with given idPrefix. * state parameter determines whether to "check all" or "uncheck all" (TRUE means "check all"). * id parameter may be NULL */ { cgiMakeOnClickSubmitButton(jsCheckAllOnClickHandler(idPrefix, state), name, value); }
static void showTableButtons(char *db, char *table, boolean withGetButton) /* Put up the last buttons in a showTable section. */ { hPrintf("<BR>\n"); if (withGetButton) { if (doGalaxy()) /* need form fields here and Galaxy so add step to Galaxy */ cgiMakeButton(hgtaDoGalaxySelectedFields, "done with selections"); else cgiMakeButton(hgtaDoPrintSelectedFields, "get output"); hPrintf(" "); cgiMakeButton(hgtaDoMainPage, "cancel"); hPrintf(" "); } jsInit(); cgiMakeOnClickSubmitButton(jsSetVerticalPosition("mainForm"), setClearAllVar(hgtaDoSetAllFieldPrefix,db,table), "check all"); hPrintf(" "); cgiMakeOnClickSubmitButton(jsSetVerticalPosition("mainForm"), setClearAllVar(hgtaDoClearAllFieldPrefix,db,table), "clear all"); cgiDown(0.7); // Extra spacing below the buttons }