#include "webcit.h"
#include "webserver.h"
-
-
-
- struct tm tm;
- time_t thetime;
- int i;
-
-
-
-
-
-
-
-
-
/*
* Display an event by itself (for editing)
* supplied_vevent the event to edit
wprintf("<input type=\"text\" name=\"interval\" maxlength=\"3\" size=\"3\" ");
wprintf("value=\"%d\"> ", recur.interval);
- wprintf("<select name=\"freq\" size=\"1\">\n");
+ wprintf("<select name=\"freq\" id=\"freq_selector\" size=\"1\" "
+ "onChange=\"RecurrenceShowHide();\">\n");
for (i=0; i<(sizeof frequency_units / sizeof(char *)); ++i) {
-
- /* We only want to offer daily, weekly, monthly, or yearly, which are
- * options 3 through 6, but if one of the others hapens to be selected,
- * we will grudgingly add it to the list of options.
- */
- if ( (i == recur.freq) || ((i>=3) && (i<=6)) ) {
- wprintf("<option %s value=\"%d\">%s</option>\n",
- ((i == recur.freq) ? "selected" : ""),
- i,
- frequency_units[i]
- );
- }
+ wprintf("<option %s value=\"%d\">%s</option>\n",
+ ((i == recur.freq) ? "selected" : ""),
+ i,
+ frequency_units[i]
+ );
}
wprintf("</td></tr>\n");
+
+ wprintf("<div id=\"weekday_selector\">\n"); /* begin 'weekday_selector' div */
wprintf("<tr><td><b>");
wprintf("%s", _("on these weekdays:"));
wprintf("</b></td><td>");
-
char weekday_is_selected[7];
memset(weekday_is_selected, 0, 7);
}
wprintf("</td></tr>\n");
+ wprintf("</div>\n"); /* end 'weekday_selector' div */
+
wprintf("</table>\n");
wprintf("</div>\n"); /* end 'rrule' div */