Dependencies:   net 1-wire lpc1768 crypto clock web fram log

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

web-derived/system/web-system-html.c

Committer:
andrewboyson
Date:
2019-04-27
Revision:
49:9491c966dc60
Child:
51:c7c6ce0d57ad

File content as of revision 49:9491c966dc60:

#include <stdio.h>

#include "http.h"
#include "web-base.h"
#include "page.h"
#include "page-derived.h"

void WebSystemHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    PageAddHeader(PageSite, "System", "settings.css", "system.js");
    PageAddNav(SYSTEM_PAGE);
    PageAddH1(PageSite, "System");

    PageAddH2("TFTP");
    PageAddAjaxInput   ("Server url",                      5, "ajax-server-name",   "tftpserver"   );
    PageAddAjaxInput   ("File (strftime)",                11, "ajax-file-name",     "tftpfilename" );
    PageAddAjaxInput   ("Interval (secs) 0=no",            5, "ajax-read-interval", "tftpreadint"  );
    PageAddAjaxInput   ("Records per backup 0=no",         5, "ajax-write-size",    "tftpwriteint" );
    PageAddAjaxLabelled("Count",                              "ajax-count"                         );
    PageAddAjaxLabelled("Started",                            "ajax-start-time"                    );

    PageAddH2("FRAM");
    PageAddAjaxLabelled("Used",                               "ajax-fram-used"                     );
    
    PageAddH2("Compiler");
    PageAddLabelledInt("Version Vvvbbbb", __ARMCC_VERSION);
    
    PageAddEnd();

}