-void summary(void) {
- char title[256];
-
- output_headers(1, 1, 2, 0, 0, 0);
- wprintf("<div id=\"banner\">\n");
- wprintf("<table class=\"summary_banner\"><tr>"
- "<td><img src=\"static/summscreen_48x.gif\"></td><td>"
- "<span class=\"titlebar\">"
- );
-
- snprintf(title, sizeof title, _("Summary page for %s"), WC->wc_fullname);
- escputs(title);
- wprintf("</span></td><td>\n");
- wprintf("</td><td aling=right><span class=\"titlebar\">");
- output_date();
- wprintf("</span><br />");
- offer_start_page();
- wprintf("</td></tr></table>\n");
-
- /**
- * 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>\n<div id=\"content\">\n");
- summary_inner_div();
- wprintf("</div>\n");
-
- wprintf(
- "<script type=\"text/javascript\"> "
- " new Ajax.PeriodicalUpdater('content', 'summary_inner_div', "
- " { method: 'get', frequency: 60 } ); "
- "</script> \n"
- );
-
+void display_summary_page(void)
+{
+ output_headers(1, 1, 1, 0, 0, 0);
+ do_template("summary_page");