improved some stuffs

Former-commit-id: 7cf8b899e46fecc15700ee8ad531fd5b3461047e
master
Ondřej Hruška 9 years ago
parent dad262f854
commit a9fca71169
  1. 9
      html_src/js-src/page_mon.js
  2. 14
      html_src/page_monitoring.php

@ -0,0 +1,9 @@
var page_mon = (function() {
var mon = {};
mon.init = function() {
//
};
return mon;
})();

@ -1,6 +1,6 @@
<?php $page = 'monitoring'; include "_start.php"; ?> <?php $page = 'monitoring'; include "_start.php"; ?>
<h1>Monitoring & Reporting</h1> <h1>Monitoring &amp; Reporting</h1>
<div class="Box"> <div class="Box">
<h2>Status</h2> <h2>Status</h2>
@ -8,7 +8,7 @@
<tr> <tr>
<th>Reference:</th> <th>Reference:</th>
<td> <td>
<span id="hasref" class="Valfield">%hasref%</span> <span id="hasref" class="Valfield">%refStored%</span>
<a onclick="page_mon.captureRef()" class="button btn-green">Capture</a> <a onclick="page_mon.captureRef()" class="button btn-green">Capture</a>
</td> </td>
</tr> </tr>
@ -29,7 +29,7 @@
<tr> <tr>
<th><label for="rep-on">Reporting:</label></th> <th><label for="rep-on">Reporting:</label></th>
<td> <td>
<input type="checkbox" id="rep-on" name="rep-on"><!-- <input type="checkbox" id="rep-on" name="rep-on" %repEnableCheck%><!--
-->&nbsp;<label for="rep-on">enabled</label> -->&nbsp;<label for="rep-on">enabled</label>
</td> </td>
</tr> </tr>
@ -43,20 +43,20 @@
<tr> <tr>
<th>Service:</th> <th>Service:</th>
<td> <td>
<input type="radio" name="rep-service" value="xively" id="rep-svc-xv">&nbsp;<label for="rep-svc-xv">Xively</label>&nbsp; <input type="radio" name="rep-service" value="xively" id="rep-svc-xv" %repSvcCheckXv%>&nbsp;<label for="rep-svc-xv">Xively</label>&nbsp;
<input type="radio" name="rep-service" value="thingspeak" id="rep-svc-ts">&nbsp;<label for="rep-svc-ts">ThingSpeak</label> <input type="radio" name="rep-service" value="thingspeak" id="rep-svc-ts" %repSvcCheckTs%>&nbsp;<label for="rep-svc-ts">ThingSpeak</label>
</td> </td>
</tr> </tr>
<tr> <tr>
<th><label for="rep-feed">Feed/Channel:</label></th> <th><label for="rep-feed">Feed/Channel:</label></th>
<td> <td>
<input type="text" name="rep-feed" id="rep-feed"> <input type="text" name="rep-feed" id="rep-feed" value="%repFeed%">
</td> </td>
</tr> </tr>
<tr> <tr>
<th><label for="rep-key">API key:</label></th> <th><label for="rep-key">API key:</label></th>
<td> <td>
<input type="text" name="rep-key" id="rep-key"> <input type="text" name="rep-key" id="rep-key" value="%repKey%">
</td> </td>
</tr> </tr>
<tr> <tr>

Loading…
Cancel
Save