Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sun Jan 28 11:44:11 2018 +0000
Revision:
0:f8998d10763e
Child:
1:2d59bba34a1e
Separated the things common to all my sites: log page; net page; css etc.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 0:f8998d10763e 1 #include <time.h>
andrewboyson 0:f8998d10763e 2 #include <stdint.h>
andrewboyson 0:f8998d10763e 3
andrewboyson 0:f8998d10763e 4 extern void PageAddHeader (const char* title, const char* style, const char* script);
andrewboyson 0:f8998d10763e 5 extern void PageAddNavItem (int highlight, char* href, char* title);
andrewboyson 0:f8998d10763e 6 extern void PageAddNav (int page); //This must be defined outwith the library
andrewboyson 0:f8998d10763e 7
andrewboyson 0:f8998d10763e 8 extern void PageAddLabelledValue(char* label, float labelwidth, char* value);
andrewboyson 0:f8998d10763e 9 extern void PageAddLabelledMac (char* label, float labelwidth, char* mac);
andrewboyson 0:f8998d10763e 10 extern void PageAddLabelledIp4 (char* label, float labelwidth, uint32_t ip);
andrewboyson 0:f8998d10763e 11 extern void PageAddLabelledIp6 (char* label, float labelwidth, char* ip);
andrewboyson 0:f8998d10763e 12 extern void PageAddLabelledName (char* label, float labelwidth, char* name, char* suffix);
andrewboyson 0:f8998d10763e 13 extern void PageAddLabelledOnOff(char* label, float labelwidth, int value);
andrewboyson 0:f8998d10763e 14 extern void PageAddLabelledInt (char* label, float labelwidth, int value);
andrewboyson 0:f8998d10763e 15 extern void PageAddTm (struct tm* ptm);
andrewboyson 0:f8998d10763e 16
andrewboyson 0:f8998d10763e 17 extern void PageAddTextInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char* value);
andrewboyson 0:f8998d10763e 18 extern void PageAddIntInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, int value);
andrewboyson 0:f8998d10763e 19 extern void PageAddHexInput (char* action, float width, char* label, float labelwidth, char* name, float inputwidth, char value0, char value1);
andrewboyson 0:f8998d10763e 20 extern void PageAddCheckInput (char* action, char* label, char* name, char* button);
andrewboyson 0:f8998d10763e 21
andrewboyson 0:f8998d10763e 22 extern void PageAddAjaxToggle (float labelwidth, char* label, char* id, char* request);
andrewboyson 0:f8998d10763e 23 extern void PageAddAjaxHex (float labelwidth, char* label, float inputwidth, char* id, char* request);
andrewboyson 0:f8998d10763e 24
andrewboyson 0:f8998d10763e 25 #define HOME_PAGE 0
andrewboyson 0:f8998d10763e 26 #define PROGRAM_PAGE 1
andrewboyson 0:f8998d10763e 27 #define HEATING_PAGE 2
andrewboyson 0:f8998d10763e 28 #define BOILER_PAGE 3
andrewboyson 0:f8998d10763e 29 #define SYSTEM_PAGE 4
andrewboyson 0:f8998d10763e 30 #define NET_PAGE 5
andrewboyson 0:f8998d10763e 31 #define LOG_PAGE 6
andrewboyson 0:f8998d10763e 32 #define TRACE_PAGE 7