Andrew Boyson / motorhome

Dependencies:   net lpc1768 crypto clock web fram log

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers web-system-html.c Source File

web-system-html.c

00001 #include <stdio.h>
00002 #include <string.h>
00003 
00004 #include "http.h"
00005 #include "web-nav-this.h"
00006 #include "web-add.h"
00007 #include "log.h"
00008 
00009 void WebSystemHtml()
00010 {
00011     HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
00012     WebAddHeader("System", "settings.css", "system.js");
00013     WebAddNav(SYSTEM_PAGE);
00014     WebAddH1("System");
00015 
00016     WebAddH2("TFTP");
00017     WebAddAjaxInput   ("Server url",                      5, "ajax-server-name",   "tftpserver"   );
00018     WebAddAjaxInput   ("File (strftime)",                11, "ajax-file-name",     "tftpfilename" );
00019     WebAddAjaxInput   ("Interval (secs) 0=no",            5, "ajax-read-interval", "tftpreadint"  );
00020     WebAddAjaxInput   ("Records per backup 0=no",         5, "ajax-write-size",    "tftpwriteint" );
00021     WebAddAjaxLabelled("Count",                              "ajax-count"                         );
00022     WebAddAjaxLabelled("Started",                            "ajax-start-time"                    );
00023 
00024     WebAddH2("FRAM");
00025     WebAddAjaxLabelled("Used",                               "ajax-fram-used"                     );
00026     
00027     WebAddH2("Compiler");
00028     WebAddLabelledInt("Version Vvvbbbb", __ARMCC_VERSION);
00029     
00030     WebAddEnd();
00031 }