Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 19, 2013
1 parent 7326b41 commit c6383e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion dbf/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
nettemp.db
4 changes: 4 additions & 0 deletions modules/status/html/status_show.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<span class="belka">&nbsp Status:<span class="okno">
<?php


$db = new PDO('sqlite:dbf/nettemp.db');
$rows = $db->query("SELECT * FROM sensors");
$row = $rows->fetchAll();
Expand All @@ -14,5 +16,7 @@
elseif($a[tmp] <= $a[tmp_min] && !empty($a[tmp]) && !empty($a[tmp_min]) && $a[alarm] == on ) { ?> <img src="media/ico/temp2-icon.png" /><font color="#0095FF"> <?php echo $a[name];?> - <?php echo "$a[tmp] C,"; echo " min: $a[tmp_min] C" ?> <img src="media/ico/temp_low.png" ><br /></font> <?php }
else { ?> <img src="media/ico/temp2-icon.png" /><font color="#108218"> <?php echo "$a[name] $a[tmp] C <br>";?></font> <?php }
} //for


?>
</span></span>

0 comments on commit c6383e8

Please sign in to comment.