/* Konstanty pro potreby www serveru */

#ifndef _WWW_KONSTANTY_H
#define _WWW_KONSTANTY_H

// Include 
#include "stdint.h"

// HTML obsah chybovych hlasek
#define WWW_HTML_ERR_COUNT			6
const uint8_t WWW_HTML_ERR[WWW_HTML_ERR_COUNT][88] = 
{
	{"<h2>400 Bad Request</h2>Request is damaged or not supported."},
	{"<h2>403 Forbidden</h2>Access to this document requires a User ID."},
	{"<h2>404 Not Found</h2>This document doesn't exist on this server.\0"},
	{"<h2>418 I'm a teapot</h2>"},
	{"<h2>500 Internal Server Error</h2>"},
	{"<h2>505 HTTP Version Not Supported</h2>This version of HTTP protocol is not supported.\0"},
};

// Html hlavicka
const uint8_t WWW_HTML_Header1[] = 
{"<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\"><title>"};
const uint8_t WWW_HTML_Header2[] = 
{
	"</title>"
	"<style type=\"text/css\">"
	"a {text-decoration: none;color: white}"
	"body, p, td, a, h1 {font-family: Arial;font-size: 10pt}"
	"h1 {color: #009900;font-size: 18pt;font-weight: bold}"
	"h3 {color: white;font-size: 14pt;font-weight: bold}"
	".menu a {font-size: 14pt}"
	"</style>"
	"</head><body>"
};

const uint8_t WWW_HTML_Padding[] = {"</body></html>"};

// Identifikacni znacky stranek => odkazy
#define WWW_PAGES_COUNT			5
const uint8_t WWW_PageID[WWW_PAGES_COUNT][2] = 
{
	{'0','1'},
	{'0','2'},
	{'0','3'},
	{'0','4'},
	{'0','5'}
};

#define WWW_MENU_MAX_COUNT							5
#define WWW_MENU_MAX_SIZE							35
const uint8_t WWW_MenuPolozky[WWW_MENU_MAX_COUNT][WWW_MENU_MAX_SIZE] = 
{
	{"Stav systému"},
	{"Plánování"},
	{"Nastavení systému"},
	{"Nastavení LED"},
	{"Nastavení sítě"},
};

// Data stanky Index - bez HTML hlavicky
const uint8_t WWW_DataIndex[] = 
{
	"<h2>LED světlo</h2><hr>Toto je uvodní strana Web serveru - Index."
	"<hr><font size=2 color=gray>Created by Ondřej Satora, UREL 2012</font>"
};

/* Layout stranky - hlavni tabulka + zacatek tabulky menu*/
const uint8_t WWW_Layout1[] = 
{
	"<table border=\"1\" width=\"100%\" cellspacing=\"1\" style=\"border-collapse: collapse\" bordercolor=\"#000000\" cellpadding=\"2\">"
	"<tr>"
		"<td width=\"199\" valign=\"top\" bgcolor=\"#C0C0C0\">"
		"<table border=\"0\" width=\"100%\" id=\"menu\" cellspacing=\"1\" cellpadding=\"3\">"
};
/* Layout stranky - zacatek polozky v menu -> za ni nasleduje barva pozadi polozky menu */
const uint8_t WWW_Layout_MenuPolozka_Start1[] = 
{
	"<tr>"
		"<td bgcolor=\""
};
/* Barvy pozadi polozek v menu */
const uint8_t WWW_Menu_Seda[] = {"#666666"};
const uint8_t WWW_Menu_Zelena[] = {"#009900"};

/* Layout stranky - zacatek polozky v menu -> za ni nasleduje RAW odkaz polozky menu */
const uint8_t WWW_Layout_MenuPolozka_Start2[] = 
{
	"\">"
		"<b>&nbsp;<a class=\"menu\" href=\""
};
/* Layout stranky - zacatek polozky v menu -> za ni nasleduje nazev polozky menu */
const uint8_t WWW_Layout_MenuPolozka_Start3[] = 
{
	"\">"
};
/* Layout stranky - konec polozky v menu -> pred ni je umisten nazev polozky menu */
const uint8_t WWW_Layout_MenuPolozka_Stop[] = 
{
		"</a></b></td>"
	"</tr>"
};
/* Layout stranky - konec tabulky menu a zacatek prostolu pod tabulkou menu */
const uint8_t WWW_Layout2[] = 
{
	"</table>"
		"<p align=\"center\">"
};
/* Layout stranky - konec prostolu pod tabulkou menu a zacatek hlavniho okna*/
const uint8_t WWW_Layout3[] = 
{
	"</td>"
		"<td valign=\"top\">"
		"<table border=\"0\" width=\"100%\" cellpadding=\"5\">"
			"<tr>"
				"<td>"
};
/* Layout stranky - konec hlavniho okna a konec hlavni tabulky */
const uint8_t WWW_Layout4[] = 
{
		"</td>"
			"</tr>"
		"</table>"
		"</td>"
	"</tr>"
"</table>"
"<font size=\"2\" color=\"gray\">Created by Ondřej Satora, UREL 2012</font>"
};

/* ======================================================================================= */
/*                                   Obsah stranek                                         */
/* ======================================================================================= */
const uint8_t WWW_Obsah_StavSystemu[] = 
{
"<h1><font face=\"Arial\" color=\"#009900\">Stav LED systému</font></h1><p><font face=\"Arial\">Zde je možné sledovat stav LED systému</font></p><table border=\"0\" width=\"100%\" id=\"table16\" cellpadding=\"2\" cellspacing=\"1\"><tr><td align=\"right\" colspan=\"3\"><table border=\"0\" width=\"100%\" id=\"table17\" cellspacing=\"0\" cellpadding=\"2\"><tr><td bgcolor=\"#009900\"><b><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\">O systému</font></b></td><td bgcolor=\"#009900\">&nbsp;</td></tr></table></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Doba běhu:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\">&nbsp;<font face=\"Arial\">$c04</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Aktuální čas a datum:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$c01&nbsp; $c02 ($c03)</font></td></tr><tr><td "
"width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">HTTP server: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n07</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">UDP server: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n08</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Telnet server: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n09</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">ICMP zprávy (ping):</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n10</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bg"
"color=\"#C0C0C0\"><font face=\"Arial\">Plánovač:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$l01</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Počet záznamů plánovače:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$l02</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\">&nbsp;</td><td width=\"66%\" bgcolor=\"#DBDBDB\">&nbsp;</td></tr></table><table border=\"0\" width=\"100%\" id=\"table12\" cellpadding=\"2\" cellspacing=\"1\"><tr><td align=\"right\" colspan=\"8\"><table border=\"0\" width=\"100%\" id=\"table13\" cellspacing=\"0\" cellpadding=\"2\"><tr><td bgcolor=\"#009900\"><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><b>LED diody</b></font></td><td bgcolor=\"#009900\"><p align=\"right\"><font face=\"Arial\" color=\"#FFFFFF\">[</font><font face=\"Arial\"><a href=\"04\"><font "
"color=\"#FFFFFF\">editovat</font></a><font color=\"#FFFFFF\">]</font></font></td></tr></table></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Typ LED:</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 1 <br>455 nm</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 2 <br>645 nm</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 3 <br>660 nm</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 4 <br>735 nm</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 5 <br>&quot;bílá&quot;</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">Kanál 6 <br>385 nm</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font fac"
"e=\"Arial\">Aktuální proud: </font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">&nbsp;$p01 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p03 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p05 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">&nbsp;$p07 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">&nbsp;$p09 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">&nbsp;$p11 mA</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Maximální proud:</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">&nbsp;$p02 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p04 mA</font></td><td width=\"11%\" bgcolor"
"=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p06 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p08 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p10 mA</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p12 mA</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Maximální PWM:</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p13</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p14</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p15</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p16</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p17</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align"
"=\"center\"><font face=\"Arial\">$p18</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Doba provozu (zapnuto):</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">xxxx:xx hod.</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Režim:</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font "
"face=\"Arial\">$p19</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p20</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p21</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p22</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p23</font></td><td width=\"11%\" bgcolor=\"#DBDBDB\" align=\"center\"><font face=\"Arial\">$p24</font></td></tr></table><table border=\"0\" width=\"100%\" id=\"table6\" cellpadding=\"2\" cellspacing=\"1\"><tr><td align=\"right\" colspan=\"3\"><table border=\"0\" width=\"100%\" id=\"table7\" cellspacing=\"0\" cellpadding=\"2\"><tr><td bgcolor=\"#009900\"><b><font size=\"4\" color=\"#FFFFFF\" face=\"Arial\">Čidla teploty a relativní vzdušné vlhkosti</font></b></td><td bgcolor=\"#009900\">&nbsp;</td></tr></table></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font "
"face=\"Arial\">Počet teplotních čidel:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$t01</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Teplota chladiče LED: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;aktuálně: $t02 °C&nbsp;&nbsp; minimum: $t03 °C, maximum: $t04 °C</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Sériové číslo čidla:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$t05</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Teplota chladiče tranzistorů:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;aktuálně: $t06 °C&nbsp;&nbsp; minimum: $t07 °C, maximum: $t08 °C</font></td></tr><tr><td width=\"3%\" ali"
"gn=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Sériové číslo čidla:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$t09</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Teplota externího senzoru:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;aktuálně: $t10 °C&nbsp;&nbsp; minimum: $t11 °C, maximum: $t12 °C</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Sériové číslo čidla:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$t13</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Relativní vzdušná vlhkost externího čidla:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;aktuálně:"
" $t14 %&nbsp;&nbsp; minimum: $t15 %, maximum: $t16 %</font></td></tr></table><table border=\"0\" width=\"100%\" id=\"table10\" cellpadding=\"2\" cellspacing=\"1\"><tr><td align=\"right\" colspan=\"3\"><table border=\"0\" width=\"100%\" id=\"table11\" cellspacing=\"0\" cellpadding=\"2\"><tr><td bgcolor=\"#009900\"><font face=\"Arial\" size=\"4\" color=\"#FFFFFF\"><b>Síťové připojení </b></font></td><td bgcolor=\"#009900\"><p align=\"right\"><font face=\"Arial\"><font color=\"#FFFFFF\">[</font><a href=\"05\"><font color=\"#FFFFFF\">editovat</font></a><font color=\"#FFFFFF\">]</font></font></td></tr></table></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">IP adresa serveru:</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n01</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Síťová maska: </font></td><td"
" width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n02</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Výchozí brána</font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n03</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">MAC adresa: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n04</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">TCP port www serveru: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n05</font></td></tr><tr><td width=\"3%\" align=\"right\">&nbsp;</td><td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\"><font face=\"Arial\">Port UDP serveru: </font></td><td width=\"66%\" bgcolor=\"#DBDBDB\"><font face=\"Arial\">&nbsp;$n06"
"</font></td></tr></table>"
};

// Nadpisy polozek v tabulkách
#define WWW_OSYSTEMU_POLOZEK			8
#define WWW_OSYSTEMU_POLOZKY_DELKA		24
const uint8_t WWW_StavSystemuPolozky[WWW_OSYSTEMU_POLOZEK][WWW_OSYSTEMU_POLOZKY_DELKA] = 
{
	{"Doba běhu\0"},
	{"Systémový čas a datum\0"},
	{"HTTP server\0"},
	{"UDP server\0"},
	{"Telnet server\0"},
	{"ICMP zprávy (ping)\0"},
	{"Plánovač\0"},
	{"Počet záznamů plánovače\0"},
};

#define WWW_OSYSTEMU_OBSAH_POLOZKY_DELKA	23
const uint8_t WWW_StavSystemuSystemObsahPolozky[WWW_OSYSTEMU_POLOZEK][WWW_OSYSTEMU_OBSAH_POLOZKY_DELKA] = 
{
	{"$c04\0"},
	{"$c01&nbsp; $c02 ($c03)\0"},
	{"$n07\0"},
	{"$n08\0"},
	{"$n09\0"},
	{"$n10\0"},
	{"$l01\0"},
	{"$l02\0"},
};

#define WWW_CIDLA_POLOZEK			9
#define WWW_CIDLA_POLOZKY_DELKA		29
const uint8_t WWW_StavSystemuCidlaPolozky[WWW_CIDLA_POLOZEK][WWW_CIDLA_POLOZKY_DELKA] = 
{
	{"Počet teplotních čidel\0"},
	{"Teplota chladiče LED\0"},
	{"Sériové číslo čidla\0"},
	{"Teplota chladiče tranzistorů\0"},
	{"Sériové číslo čidla\0"},
	{"Teplota externího senzoru\0"},
	{"Sériové číslo čidla\0"},
	{"Teplota systému (MCU)\0"},
	{"Relativní vlhkost ext. čidla\0"},
};

#define WWW_CIDLA_OBSAH_POLOZKY_DELKA	50
const uint8_t WWW_StavSystemuCidlaObsahPolozky[WWW_CIDLA_POLOZEK][WWW_CIDLA_OBSAH_POLOZKY_DELKA] = 
{
	{"$t01\0"},
	{"aktuálně: $t02 °C   min.: $t03 °C, max.: $t04 °C\0"},
	{"$t05\0"},
	{"aktuálně: $t06 °C   min.: $t07 °C, max.: $t08 °C\0"},
	{"$t09\0"},
	{"aktuálně: $t10 °C   min.: $t11 °C, max.: $t12 °C\0"},
	{"$t13\0"},
	{"aktuálně: $t27 °C   min.: $t28 °C, max.: $t29 °C\0"},
	{"aktuálně: $t14 %   min: $t15 %, max: $t16 %\0"},
};

#define WWW_CHLAZENI_POLOZEK			10
#define WWW_CHLAZENI_POLOZKY_DELKA		31
const uint8_t WWW_StavSystemuChlazeniPolozky[WWW_CHLAZENI_POLOZEK][WWW_CHLAZENI_POLOZKY_DELKA] = 
{
	{"Teplota pro nastavení výkonu 1"},
	{"Výkon 1 ventilátoru"},
	{"Teplota pro nastavení výkonu 2"},
	{"Výkon 2 ventilátoru"},
	{"Teplota pro nastavení výkonu 3"},	
	{"Výkon 3 ventilátoru"},
	{"Teplota pro nastavení výkonu 4"},	
	{"Výkon 4 ventilátoru"},
	{"Vypnout při teplotě nad"},
	{"Mód ventilátoru"},
};

#define WWW_CHLAZENI_OBSAH_POLOZKY_DELKA	15
const uint8_t WWW_StavSystemuChlazeniObsahPolozky[WWW_CHLAZENI_POLOZEK][WWW_CHLAZENI_OBSAH_POLOZKY_DELKA] = 
{
	{"&gt;= $t17 °C"},
	{"$t18 %"},
	{"&gt;= $t19 °C"},
	{"$t20 %"},
	{"&gt;= $t21 °C"},
	{"$t22 %"},
	{"&gt;= $t23 °C"},
	{"$t24 %"},
	{"&gt;= $t25 °C"},
	{"$t26"},
};

#define WWW_SIT_POLOZEK				6
#define WWW_SIT_POLOZKY_DELKA		21
const uint8_t WWW_StavSystemuSitPolozky[WWW_SIT_POLOZEK][WWW_SIT_POLOZKY_DELKA] = 
{
	{"IP adresa serveru"},
	{"Síťová maska"},
	{"Výchozí brána"},
	{"MAC adresa"},
	{"TCP port www serveru"},
	{"Port UDP serveru"}
};

#define WWW_SIT_OBSAH_POLOZKY_DELKA	5
const uint8_t WWW_StavSystemuSitObsahPolozky[WWW_SIT_POLOZEK][WWW_SIT_OBSAH_POLOZKY_DELKA] = 
{
	{"$n01"},
	{"$n02"},
	{"$n03"},
	{"$n04"},
	{"$n05"},
	{"$n06"},
	
};

#define WWW_LED_SLOUPCE_POLOZEK		6
#define WWW_LED_POLOZEK				7
#define WWW_LED_POLOZKY_DELKA		23
const uint8_t WWW_StavSystemuLEDPolozky[WWW_LED_POLOZEK][WWW_LED_POLOZKY_DELKA] = 
{
	{"Typ LED"},
	{"Aktuální proud"},
	("Maximální proud"),
	("Nastavený výkon"),
	("Maximální PWM"),
	("Doba provozu (zapnuto)"),
	("Režim"),
};

#define WWW_LED_OBSAH_POLOZKY_DELKA		19
const uint8_t WWW_StavSystemuLEDObsahPolozky[WWW_LED_POLOZEK*WWW_LED_SLOUPCE_POLOZEK][WWW_LED_OBSAH_POLOZKY_DELKA] = 
{
	{"Kanál 1 <br>645 nm"},
	{"Kanál 2 <br>660 nm"},
	("Kanál 3 <br>735 nm"),
	("Kanál 4 <br>\"bílá\""),
	("Kanál 5 <br>455 nm"),
	("Kanál 6 <br>385 nm"),
	
	("$p01 mA"),
	("$p03 mA"),
	("$p05 mA"),
	("$p07 mA"),
	("$p09 mA"),
	("$p11 mA"),

	("$p02 mA"),
	("$p04 mA"),
	("$p06 mA"),
	("$p08 mA"),
	("$p10 mA"),
	("$p12 mA"),

	("$p31 %"),
	("$p32 %"),
	("$p33 %"),
	("$p34 %"),
	("$p35 %"),
	("$p36 %"),

	("$p13"),
	("$p14"),
	("$p15"),
	("$p16"),
	("$p17"),
	("$p18"),

	("$p37 hod."),
	("$p38 hod."),
	("$p39 hod."),
	("$p40 hod."),
	("$p41 hod."),
	("$p42 hod."),

	("$p19"),
	("$p20"),
	("$p21"),
	("$p22"),
	("$p23"),
	("$p24"),
};

const uint8_t WWW_Obsah_StavSystemu_Zacatek[] = 
{
  "<h1>Stav LED systému</h1>\r\n"
		"<p>Zde je možné sledovat stav LED systému</p>\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_NadpisStart1[] = 
{
	"<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\">\r\n"
		"<tr>\r\n"
			"<td align=\"right\" colspan=\"3\">\r\n"
				"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\r\n"
					"<tr>\r\n"
						"<td bgcolor=\"#009900\"><b>\r\n"
							"<font size=\"3\" color=\"#FFFFFF\">\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_NadpisStart2[] = 
{
	"</font></b></td>\r\n"
	"<td bgcolor=\"#009900\">\r\n"
	"<p align=\"right\">\r\n"
};

const uint8_t WWW_Obsah_tabulka1_EditovatStart[] = 
{
	"<font color=\"#FFFFFF\">[<a href=\""
};

const uint8_t WWW_Obsah_tabulka1_EditovatStop[] = 
{
	"\">editovat</a>]</font>\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_NadpisStop[] = 
{
					"</td>\r\n"
				"</tr>\r\n"
			"</table>\r\n"
		"</td>\r\n"
	"</tr>\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_ObsahStart1[] = 
{
	"<tr>\r\n"
		"<td width=\"3%\" align=\"right\">&nbsp;</td>\r\n"
		"<td width=\"20%\" align=\"right\" bgcolor=\"#C0C0C0\">\r\n"
			"<b>\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_ObsahStart2[] = 
{
	"&nbsp;</b></td>\r\n"
	"<td width=\"72%\" bgcolor=\"#DBDBDB\">&nbsp;\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_ObsahStop[] = 
{
		"</td>\r\n"
	"</tr>\r\n"
};

const uint8_t WWW_Obsah_Tabulka1_ObsahStop2[] = 
{
	"</table>\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_NadpisStart1[] = 
{
	"<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\">\r\n"
		"<tr>\r\n"
			"<td align=\"right\" colspan=\"8\">\r\n"
				"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\r\n"
					"<tr>\r\n"
						"<td bgcolor=\"#009900\">\r\n"
							"<font size=\"3\" color=\"#FFFFFF\"><b>"
};

const uint8_t WWW_Obsah_Tabulka2_NadpisStart2[] = 
{
		"</b></font></td>\r\n"
	"<td bgcolor=\"#009900\">\r\n"
		"<p align=\"right\">\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_NadpisStop[] = 
{
					"</td>\r\n"
				"</tr>\r\n"
			"</table>\r\n"
		"</td>\r\n"
	"</tr>\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStart1[] = 
{
	"<tr>\r\n"
		"<td width=\"3%\" align=\"right\">&nbsp;</td>\r\n"
		"<td width=\"20%\" align=\"right\" bgcolor=\"#C0C0C0\">\r\n"
			"<b>\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStop1[] = 
{
	"&nbsp;</b></td>"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStart2[] = 
{
	"<td width=\"12%\" bgcolor=\"#DBDBDB\" align=\"center\">\r\n"
		"\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStop2[] = 
{
	"</td>\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStop3[] = 
{
	"</tr>\r\n"
};

const uint8_t WWW_Obsah_Tabulka2_ObsahStop4[] = 
{
	"</table>\r\n"
};

const uint8_t WWW_Obsah_Tabulka3_NadpisStart1[] = 
{
	"<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"1\">"
		"<tr>"
			"<td align=\"right\" colspan=\"6\">"
				"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">"
					"<tr>"
						"<td bgcolor=\"#009900\">"
							"<font size=\"3\" color=\"#FFFFFF\"><b>"
};

const uint8_t WWW_Obsah_Tabulka3_ObsahStart1[] = 
{
	"<tr>"
		"<td width=\"3%\" align=\"right\">"
			"&nbsp;</td>"
				"<td width=\"26%\" align=\"right\" bgcolor=\"#C0C0C0\">"
					"<b>"
};

const uint8_t WWW_Obsah_Tabulka3_ObsahStart2[] = 
{
	"</b></td>"
		"<td width=\"18%\" bgcolor=\"#DBDBDB\" align=\"center\">"
};

const uint8_t WWW_Obsah_Tabulka3_ObsahStart3[] = 
{
	"</td>"
		"<td width=\"18%\" bgcolor=\"#DBDBDB\" align=\"center\">"			
};

const uint8_t WWW_Obsah_Tabulka3_ObsahStop1[] = 
{
		"</td>"
	"</tr>"
};

const uint8_t WWW_Obsah_Tabulka3_ObsahStop2[] = 
{
			"</td>"
		"</tr>"
	"</table>"
};

/* ------------------------------------------------------------ */
/*                  Doplnovane form prvky                       */
/* ------------------------------------------------------------ */
const uint8_t WWW_Obsah_Form_Zacatek_Start[] = 
{
	"<form method=\"GET\" action=\""
};

const uint8_t WWW_Obsah_Form_Zacatek_Stop[] = 
{
	"\">"
};

const uint8_t WWW_Obsah_Form_Input_Start1[]  = 
{
	"<input type=\"text\" name=\""
};

const uint8_t WWW_Obsah_Form_Input_Start2[]  = 
{
	"\" size=\""
};

const uint8_t WWW_Obsah_Form_Input_Start3[]  = 
{
	"\" value=\""
};

const uint8_t WWW_Obsah_Form_Input_Start4[]  = 
{
	"\" maxlength=\""
};

const uint8_t WWW_Obsah_Form_Input_Stop[]  = 
{
	"\">&nbsp;"
};

const uint8_t WWW_Obsah_Form_RadioButton_Start1[] = 
{
	"<input type=\"radio\" value=\""
};

const uint8_t WWW_Obsah_Form_RadioButton_Start2[] = 
{
	"\" name=\""
};

const uint8_t WWW_Obsah_Form_RadioButton_StopChecked[] = 
{
	"\" checked>&nbsp;"
};

const uint8_t WWW_Obsah_Form_RadioButton_Stop[] = 
{
	"\">&nbsp;"
};

const uint8_t WWW_Obsah_Form_CheckBox_Start1[] =
{
	"<input type=\"checkbox\" name=\""
};

const uint8_t WWW_Obsah_Form_CheckBox_Start2[] =
{
	"\" value=\""
};

const uint8_t WWW_Obsah_Form_CheckBox_StopChecked[] = 
{
	"\" checked>&nbsp;"
};

const uint8_t WWW_Obsah_Form_CheckBox_Stop[] = 
{
	"\">&nbsp;"
};

const uint8_t WWW_Obsah_Form_Tlacitka[] = 
{
	"<p align=\"right\">"
	"<input type=\"submit\" value=\"Uložit\" name=\"S\" style=\"font-family: Arial; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; padding-left: 1px; padding-right: 1px; background-color: #009900; font-size:12pt\">&nbsp;"
	"<input type=\"reset\" value=\"Obnovit předchozí hodnoty\" name=\"R\" style=\"font-family: Arial; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; padding-left: 1px; padding-right: 1px; background-color: #009900; font-size:12pt\">"
	"</p>"
};

const uint8_t WWW_Obsah_Form_Konec[] = 
{
	"</form>"
};

// Nadpisy a popisy ostatnich stranek
const uint8_t WWW_Obsah_NastaveniSystemuNadpis[] = 
{
	"<h1>Nastavení systému</h1>"
	"<p>Zde je možné nastavit obecné parametry LED systému jako je například datum a čas.</p>"
};
const uint8_t WWW_Obsah_NastaveniSiteNadpis[] = 
{
	"<h1>Nastavení sítě a serveru</h1>"
	"<p>Zde je možné nastavit parametry síťového připojení a zakázat nebo povolit jednotlivé části interního serveru</p>"
};
const uint8_t WWW_Obsah_NastaveniLEDNadpis[] = 
{
	"<h1>Nastavení LED</h1>"
	"<p>Zde je možné manuálně měnit nastavení týkající se výkonových LED jako jsou proudy, maxima, ...</p>"
};
const uint8_t WWW_Obsah_PlanovaniNadpis[] = 
{
	"<h1>Plánování</h1>"
	"<p>Zde je možné prohlížet vytvořené záznamy naplánovaných změn nastavení výkonů LED.</p>"
};
const uint8_t WWW_Obsah_PlanovaniEditovatNadpis[] = 
{
	"<h1>Plánování - Přidat/Editovat záznam</h1>"
	"<p>Zde je možné prohlížet vytvořené záznamy naplánovaných změn nastavení výkonů LED. Plán může být buďto "
	"jednorázový a nebo se může pravidelně opakovat v zadaném rozsahu data a času. Při týdenním opakování se den "
	"v týdnu v celém zadaném rozsahu odvíjí od zadaného data začátku. Při měsíčním opakování je den aktivace "
	"pravidla každý měsíc stejný a je určen dnem začátku pravidla. Obdobně jako u měsíčního opakování se den "
	"a měsíc aktivace ročního opakování určuje podle data začátku pravidla.</p>"
};
#endif
/* Konec souboru */
