root/525.743/code/web/templates/all.html @ 8dea60e7
| 7bde117f | dsorber | <html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:py="http://genshi.edgewall.org/">
|
|||
<head>
|
|||
<title>Beer Fermenation Control System</title>
|
|||
<style type="text/css">
|
|||
body {font-family: sans-serif;
|
|||
font-size: 16px}
|
|||
h3 {font-size: 24px;}
|
|||
table {border: 1px solid #000;
|
|||
border-spacing: 0px;
|
|||
margin-left: auto;
|
|||
margin-right: auto;}
|
|||
table a:link {color: #000;
|
|||
text-decoration: none;}
|
|||
table a:visited {color: #000;
|
|||
text-decoration: none;}
|
|||
table a:hover {color: #000;
|
|||
text-decoration: underline;}
|
|||
tr.even {background-color: #FFF;}
|
|||
tr.odd {background-color: #FFC;}
|
|||
th {border: 1px solid #000;
|
|||
padding: 10px;
|
|||
border-spacing: 2px;}
|
|||
td {border-top: 1px solid #000;
|
|||
padding: 2px 5px;}
|
|||
.center {text-align: center;}
|
|||
.sensor1 {background-color: #FC0;}
|
|||
.sensor2 {background-color: #C3F;}
|
|||
.sensor3 {background-color: #0C0;}
|
|||
.sensor4 {background-color: #F60;}
|
|||
.avg {background-color: #AAA;}
|
|||
.max {background-color: #CCC;}
|
|||
.min {background-color: #EEE;}
|
|||
.relay_on {font-weight: bold;
|
|||
color: #0C0;}
|
|||
#chart_div {margin-left: auto;
|
|||
margin-right: auto;}
|
|||
</style>
|
|||
</head>
|
|||
<body>
|
|||
<h1>${title}</h1>
|
|||
<h3>Table of All Readings</h3>
|
|||
<table>
|
|||
<tr>
|
|||
<th>Time</th>
|
|||
<th class="sensor1">Sensor 1</th>
|
|||
<th class="sensor2">Sensor 2</th>
|
|||
<th class="sensor3">Sensor 3</th>
|
|||
<th class="sensor4">Sensor 4</th>
|
|||
<th class="max">Relay Status</th>
|
|||
</tr>
|
|||
<tr py:for="ctr, row in enumerate(results)" class="${ctr % 2 and 'odd' or 'even'}">
|
|||
<td>${row[0]}</td>
|
|||
<td class="center">${row[1]}</td>
|
|||
<td class="center">${row[2]}</td>
|
|||
<td class="center">${row[3]}</td>
|
|||
<td class="center">${row[4]}</td>
|
|||
<td class="center ${row[5] == 1 and 'relay_on' or ''}">${int(row[5]) and 'on' or 'off'}</td>
|
|||
</tr>
|
|||
</table>
|
|||
<br />
|
|||
<a href="/bfcs">Back</a>
|
|||
</body>
|
|||
</html>
|