Andrew Boyson / oldheating

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

Embed: (wiki syntax)

« Back to documentation index

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

web-program-html.c

00001 #include "web-nav-this.h"
00002 #include "http.h"
00003 #include "web-add.h"
00004 
00005 void WebProgramHtml()
00006 {
00007     HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
00008     WebAddHeader("Program", "settings.css", "program.js");
00009     WebAddNav(PROGRAM_PAGE);
00010     WebAddH1("Program");
00011     WebAddH2("Output");
00012     WebAddAjaxLed("Programmer output",  "ajax-program-toggle");
00013     
00014     WebAddH2("Program on and off times");
00015     WebAddAjaxInput("1", 15, "ajax-program-1", "program1");
00016     WebAddAjaxInput("2", 15, "ajax-program-2", "program2");
00017     WebAddAjaxInput("3", 15, "ajax-program-3", "program3");
00018     
00019     WebAddH2("Day to program association");
00020     WebAddAjaxInput("Mon", 2, "ajax-mon-program", "mon");
00021     WebAddAjaxInput("Tue", 2, "ajax-tue-program", "tue");
00022     WebAddAjaxInput("Wed", 2, "ajax-wed-program", "wed");
00023     WebAddAjaxInput("Thu", 2, "ajax-thu-program", "thu");
00024     WebAddAjaxInput("Fri", 2, "ajax-fri-program", "fri");
00025     WebAddAjaxInput("Sat", 2, "ajax-sat-program", "sat");
00026     WebAddAjaxInput("Sun", 2, "ajax-sun-program", "sun");
00027     
00028     WebAddH2("New day start time");
00029     WebAddAjaxInput("Hour", 2, "ajax-new-day-hour", "newdayhour");
00030 
00031     WebAddEnd();
00032 }