Controls the central heating system and the lights.

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

web-this/program/web-program-html.c

Committer:
andrewboyson
Date:
2022-11-12
Revision:
8:8ac076ce51af
Parent:
0:22b158d3c76f

File content as of revision 8:8ac076ce51af:

#include "web-nav-this.h"
#include "http.h"
#include "web-add.h"

void WebProgramHtml()
{
    HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL);
    WebAddHeader("Program", "settings.css", "program.js");
    WebAddNav(PROGRAM_PAGE);
    WebAddH1("Program");
    WebAddH2("Output");
    WebAddAjaxLed("Programmer output",  "ajax-program-toggle");
    
    WebAddH2("Program on and off times");
    WebAddAjaxInput("1", 15, "ajax-program-1", "program1");
    WebAddAjaxInput("2", 15, "ajax-program-2", "program2");
    WebAddAjaxInput("3", 15, "ajax-program-3", "program3");
    
    WebAddH2("Day to program association");
    WebAddAjaxInput("Mon", 2, "ajax-mon-program", "mon");
    WebAddAjaxInput("Tue", 2, "ajax-tue-program", "tue");
    WebAddAjaxInput("Wed", 2, "ajax-wed-program", "wed");
    WebAddAjaxInput("Thu", 2, "ajax-thu-program", "thu");
    WebAddAjaxInput("Fri", 2, "ajax-fri-program", "fri");
    WebAddAjaxInput("Sat", 2, "ajax-sat-program", "sat");
    WebAddAjaxInput("Sun", 2, "ajax-sun-program", "sun");
    
    WebAddH2("New day start time");
    WebAddAjaxInput("Hour", 2, "ajax-new-day-hour", "newdayhour");

    WebAddEnd();
}