forked from berwinter/uvr1611
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
169 lines (165 loc) · 6.68 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
include_once("lib/error.inc.php");
if(file_exists("install.php")) {
header("HTTP/1.1 307 Temporary Redirect");
header("Location: install.php");
exit();
}
include_once("lib/config.inc.php");
$config = Config::getInstance();
$email = $config->app->email;
$name = $config->app->name;
$address = $config->uvr1611->address;
$http_port = $config->uvr1611->http_port;
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>UVR1611 Data Logger Pro</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/datepicker.de.js"></script>
<script type="text/javascript" src="js/charts.js"></script>
<script type="text/javascript" src="js/toolbar.js"></script>
<script type="text/javascript" src="js/table.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<link rel="manifest" href="manifest.json" />
<link rel="stylesheet" type="text/css" href="css/format.css" />
<link rel="stylesheet" type="text/css" href="css/smoothness/jquery-ui-1.9.2.custom.min.css" />
</head>
<body>
<div id="contact"><?php include("VERSION"); ?> <a href="https://github.com/berwinter/uvr1611" target="_blank">GitHub</a> <a href="mailto:<?php echo $email; ?>">Kontakt</a></div>
<div id="login">
<?php if($config->uvr1611->blnet_login) { ?>
<form id="bl_login_form" method="post" action="<?php echo "http://".$address.":".$http_port."/main.html"; ?>" target="_blank">
<input name="blu" type="hidden" value="1" checked="checked"/>
<input name="blp" type="hidden" size="10" maxlength="8"/>
<input name="bll" type="hidden" value="Login"/>
</form>
<?php } ?>
<input name="password" class="text ui-widget-content ui-corner-all" id="login_password" type="password" size="12"/>
<?php if($config->uvr1611->blnet_login) { ?>
<button id="bl_login">BL-Net</button>
<?php } ?>
<button id="dl_login">Login</button><br/>
<span id="login_message"></span>
</div>
<svg id="logo" xmlns="http://www.w3.org/2000/svg" width="280" height="60">
<g transform="translate(0,-992.36218)">
<text style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#666666;fill-opacity:1;stroke:none" x="0.49456322" y="1004.2011">
<tspan x="0.49456322" y="1004.2011" style="font-size:10px;font-style:italic;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#666666;font-family:Arial">
UVR<tspan style="font-size:12px;font-weight:normal;fill:#666666;">1611</tspan>
</tspan>
</text>
<text style="font-size:28px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#666666;fill-opacity:1;stroke:none;" x="-1.1482943" y="1033.807">
<tspan x="-1.1482943" y="1033.807" style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#666666;font-family:Arial">
<tspan style="font-size:32px;fill:#666666">Data Logger</tspan>
<tspan style="font-size:28px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#666666;font-family:Arial"> Pro</tspan>
</tspan>
</text>
<text x="-0.13813959" y="1049.5406">
<tspan x="-0.13813959" y="1049.5406" style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#666666;font-family:Arial"><?php echo $name;?></tspan>
</text>
</g>
</svg>
<div id="content">
<div id="overlay"></div>
<div id="toolbar">
<button id="home">Hauptmenü</button>
<button id="backToChart">Zurück</button>
<button id="editChart">Ändern</button>
<div id="slider"></div>
<input id="datepicker" />
<div id="period">
<input type="radio" id="week1" name="week" value="day" checked="checked"/><label for="week1">Tag</label>
<input type="radio" id="week2" name="week" value="week" /><label for="week2">Woche</label>
<input type="radio" id="week3" name="week" value="month" /><label for="week3">Monat</label>
<input type="radio" id="week4" name="week" value="year" /><label for="week4">Jahr</label>
</div>
<div id="grouping">
<input type="radio" id="month1" name="month" value="days" checked="checked"/><label for="month1">Tage</label>
<input type="radio" id="month2" name="month" value="weeks" /><label for="month2">Wochen</label>
<input type="radio" id="month3" name="month" value="months" /><label for="month3">Monate</label>
<input type="radio" id="month4" name="month" value="years" /><label for="month4">Jahre</label>
</div>
<div id="buttonset" >
<button id="back">Zurück</button>
<button id="date">Heute</button>
<button id="forward">Vor</button>
</div>
</div>
<div id="container">
<div id="pages">
</div>
</div>
</div>
<div id="menu">
<div id="indicator"></div>
</div>
<div id="edit_chart_dialog" title="Diagramm ändern">
<div id="edit_chart_tab">
<ul>
<li><a href="#edit_analog">Analog</a></li>
<li><a href="#edit_digital">Digital</a></li>
</ul>
<div id="edit_analog">
<table>
<thead>
<tr>
<th>Aktive Linien:</th>
<th>Verfügbare Linien:</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul class="activeLines editBox">
</ul>
</td>
<td>
<ul class="availableLines editBox">
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<div id="edit_digital">
<table>
<thead>
<tr>
<th>Aktive Linien:</th>
<th>Verfügbare Linien:</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<ul class="activeLines editBox">
</ul>
</td>
<td>
<ul class="availableLines editBox">
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="error" class="ui-widget">
<div class="ui-state-error ui-corner-all" style="padding: 0.3em;">
<span id="errorClose" class="ui-icon ui-icon-close" style="float: right; margin-left:0.3em;"></span>
<p>
<span class="ui-icon ui-icon-alert" style="float: left; margin-right:0.3em;"></span>
<span id="errorMessage"><strong>Error</strong></span>
</p>
</div>
</div>
</body>
</html>