Monday, November 08, 2010 at 12:04 AM.

system.verbs.builtins.mainResponder.adminSite.prefs.dbToUpdateCheck

on dbToUpdateCheck (dbname) {
	<<Changes
		<<6/26/02; 10:46:48 PM by JES
			<<Created.
	local (pta = html.getpagetableaddress ());
	if pta^.method == "POST" {
		if not defined (pta^.postArgs.updateNow) {
			local (updateList = pta^.postArgs.dbToUpdate);
			if typeOf (updateList) != listType {
				updateList = {updateList}};
			config.mainresponder.prefs.updateNightlyList = updateList}};
	local (checkbox = "<input type=\"checkbox\" name=\"dbToUpdate\" value=\"" + dbname + "\"");
	if config.mainresponder.prefs.updateNightlyList contains dbname {
		checkbox = checkbox + " checked>"}
	else {
		checkbox = checkbox + ">"};
	return ("<tr><td colspan=\"2\">" + checkbox + " " + dbname + "</td></tr>")}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.