int num_msgs = 0;
int i;
+ section_title("Tasks");
gotoroom("Tasks", 0);
if (strcasecmp(WC->wc_roomname, "Tasks")) {
wprintf("<i>(You do not have a task list)</i><BR>\n");
return;
}
+ wprintf("<UL>");
for (i=0; i<num_msgs; ++i) {
display_task(WC->msgarr[i]);
}
+ wprintf("</UL>\n");
+}
+
+
+/*
+ * Calendar section
+ */
+void calendar_section(void) {
+ int num_msgs = 0;
+ int i;
+
+ section_title("Today on your calendar");
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
+ gotoroom("Calendar", 0);
+ if (strcasecmp(WC->wc_roomname, "Calendar")) {
+ wprintf("<i>(You do not have a calendar)</i><BR>\n");
+ return;
+ }
+
+ num_msgs = load_msg_ptrs("MSGS ALL");
+ if (num_msgs < 1) {
+ wprintf("<i>(Nothing)</i><BR>\n");
+ return;
+ }
+
+ for (i=0; i<num_msgs; ++i) {
+ display_calendar(WC->msgarr[i]);
+ }
+
+ calendar_summary_view();
+#endif /* WEBCIT_WITH_CALENDAR_SERVICE */
}
output_headers(7);
wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
- "<FONT SIZE=+1 COLOR=\"FFFFFF\""
+ "<FONT SIZE=+1 COLOR=\"FFFFFF\">"
"<B>Summary page for ");
escputs(WC->wc_username);
wprintf("</B><FONT></TD><TD>\n");
offer_start_page();
- wprintf("</TD></TR></TABLE>\n");
-
- wprintf("<DIV ALIGN=RIGHT>");
+ wprintf("</TD><TD ALIGN=RIGHT><FONT COLOR=\"FFFFFF\">");
output_date();
- wprintf("</DIV>\n");
+ wprintf("</FONT></TD></TR></TABLE>\n");
/*
* Now let's do three columns of crap. All portals and all groupware
/*
* Column One
*/
- wprintf("<TD>");
+ wprintf("<TD WIDTH=33%%>");
wholist_section();
/*
* Column Two
*/
- wprintf("</TD><TD>");
+ wprintf("</TD><TD WIDTH=33%%>");
server_info_section();
wprintf("<BR><BR>");
tasks_section();
/*
* Column Three
*/
- wprintf("</TD><TD>");
+ wprintf("</TD><TD WIDTH=33%%>");
new_messages_section();
+ wprintf("<BR><BR>");
+ calendar_section();
/*
* End of columns