minutes that are multiples of 5 ... unless the existing value is not a
multiple of 5, in which case we show that too.
$Log$
+Revision 400.85 2003/01/16 04:41:26 ajc
+* When displaying edit controls for time of day in the calendar, only show
+ minutes that are multiples of 5 ... unless the existing value is not a
+ multiple of 5, in which case we show that too.
+
Revision 400.84 2003/01/15 17:34:04 ajc
* event.c: fixed a misspelling
* config.guess, config.sub: updated using latest from ftp.gnu.org
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
wprintf("Minute: ");
wprintf("<SELECT NAME=\"%s_minute\" SIZE=\"1\">\n", prefix);
for (i=0; i<=59; ++i) {
- wprintf("<OPTION %s VALUE=\"%d\">:%02d</OPTION>\n",
- ((tm.tm_min == i) ? "SELECTED" : ""),
- i, i
- );
+ if ( (i % 5 == 0) || (tm.tm_min == i) ) {
+ wprintf("<OPTION %s VALUE=\"%d\">:%02d</OPTION>\n",
+ ((tm.tm_min == i) ? "SELECTED" : ""),
+ i, i
+ );
+ }
}
wprintf("</SELECT>\n");
}