Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sat Dec 29 19:01:39 2018 +0000
Revision:
14:c3c43c8faf0e
Child:
29:4d649264d6b6
Simplified and tidied. Most things now called HTTP rather than HTML.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 14:c3c43c8faf0e 1 #include "http.h"
andrewboyson 14:c3c43c8faf0e 2 #include "page.h"
andrewboyson 14:c3c43c8faf0e 3 #include "nav.h"
andrewboyson 14:c3c43c8faf0e 4 #include "log.h"
andrewboyson 14:c3c43c8faf0e 5 #include "http-base.h"
andrewboyson 14:c3c43c8faf0e 6
andrewboyson 14:c3c43c8faf0e 7 void HttpLogHtml()
andrewboyson 14:c3c43c8faf0e 8 {
andrewboyson 14:c3c43c8faf0e 9 HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
andrewboyson 14:c3c43c8faf0e 10 PageAddHeader(NavSite, "Log", "settings.css", NULL);
andrewboyson 14:c3c43c8faf0e 11 NavAdd(LOG_PAGE);
andrewboyson 14:c3c43c8faf0e 12 PageAddH1(NavSite, "Log");
andrewboyson 14:c3c43c8faf0e 13
andrewboyson 14:c3c43c8faf0e 14 HttpAddText("<h2>");
andrewboyson 14:c3c43c8faf0e 15 PageAddCheckInput("/log", "Log", "clearlog", "clear");
andrewboyson 14:c3c43c8faf0e 16 HttpAddText("</h2>\r\n");
andrewboyson 14:c3c43c8faf0e 17
andrewboyson 14:c3c43c8faf0e 18 HttpAddText("<code>");
andrewboyson 14:c3c43c8faf0e 19 HttpAddStream(LogEnumerateStart, LogEnumerate);
andrewboyson 14:c3c43c8faf0e 20 HttpAddText("</code>");
andrewboyson 14:c3c43c8faf0e 21
andrewboyson 14:c3c43c8faf0e 22 PageAddEnd();
andrewboyson 14:c3c43c8faf0e 23 }