-
-
-/*
- * Display this user's summary page
- */
-void summary(void) {
- char title[256];
-
- output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\">\n");
- wprintf("<div class=\"room_banner\">");
- wprintf("<img src=\"static/summscreen_48x.gif\">");
- wprintf("<h1>");
- snprintf(title, sizeof title, _("Summary page for %s"), ChrPtr(WC->wc_fullname));
- escputs(title);
- wprintf("</h1><h2>");
- output_date();
- wprintf("</h2></div>");
- wprintf("<div id=\"actiondiv\">");
- wprintf("<ul class=\"room_actions\">\n");
- wprintf("<li class=\"start_page\">");
- offer_start_page(NULL, &NoCtx);
- wprintf("</li></ul>");
- wprintf("</div>");
- wprintf("</div>");
-
- /*
- * You guessed it ... we're going to refresh using ajax.
- * In the future we might consider updating individual sections of the summary
- * instead of the whole thing.
- */
- wprintf("<div id=\"content\" class=\"service\">\n");
- summary_inner_div();
- wprintf("</div>\n");
-
- wprintf(
- "<script type=\"text/javascript\"> "
- " new Ajax.PeriodicalUpdater('msg_inner', 'new_messages_html', "
- " { method: 'get', frequency: 60 } ); "
- " new Ajax.PeriodicalUpdater('tasks_inner', 'tasks_inner_html', "
- " { method: 'get', frequency: 120 } ); "
- " new Ajax.PeriodicalUpdater('calendar_inner', 'calendar_inner_html', "
- " { method: 'get', frequency: 90 } ); "
- " new Ajax.PeriodicalUpdater('do_template', 'template=wholistsummarysection', "
- " { method: 'get', frequency: 30 } ); "
- "</script> \n"
- );
-
- wDumpContent(1);