#include "webcit.h"
#include "calendar.h"
+extern int calendar_summary_view(void);
+
/*
* Display today's date in a friendly format
*/
num_msgs = 0;
}
else {
- num_msgs = load_msg_ptrs("MSGS ALL", &Stat, NULL);
+ num_msgs = load_msg_ptrs("MSGS ALL", NULL, &Stat, NULL);
}
if (num_msgs > 0) {
*/
void calendar_section(void) {
char cmd[SIZ];
+ char filter[SIZ];
int num_msgs = 0;
HashPos *at;
const char *HashKey;
num_msgs = 0;
}
else {
- num_msgs = load_msg_ptrs("MSGS ALL", &Stat, NULL);
+ num_msgs = load_msg_ptrs("MSGS ALL", NULL, &Stat, NULL);
}
calendar_GetParamsGetServerCall(&Stat,
&v,
readnew,
cmd,
- sizeof(cmd));
+ sizeof(cmd),
+ filter,
+ sizeof(filter));
+
if (num_msgs > 0) {
at = GetNewHashPos(WCC->summ, 0);
WebcitAddUrlHandler(HKEY("new_messages_html"), "", 0, new_messages_section, AJAX);
WebcitAddUrlHandler(HKEY("tasks_inner_html"), "", 0, tasks_section, AJAX);
WebcitAddUrlHandler(HKEY("calendar_inner_html"), "", 0, calendar_section, AJAX);
- WebcitAddUrlHandler(HKEY("mini_calendar"), "", 0, ajax_mini_calendar, AJAX);
}