Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

http-log-html.c

Committer:
andrewboyson
Date:
2018-12-29
Revision:
14:c3c43c8faf0e
Child:
29:4d649264d6b6

File content as of revision 14:c3c43c8faf0e:

#include "http.h"
#include "page.h"
#include  "nav.h"
#include  "log.h"
#include "http-base.h"

void HttpLogHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    PageAddHeader(NavSite, "Log", "settings.css", NULL);
    NavAdd(LOG_PAGE);
    PageAddH1(NavSite, "Log");
    
    HttpAddText("<h2>");
    PageAddCheckInput("/log", "Log", "clearlog", "clear");
    HttpAddText("</h2>\r\n");
    
    HttpAddText("<code>");
    HttpAddStream(LogEnumerateStart, LogEnumerate);
    HttpAddText("</code>");
    
    PageAddEnd();
}