Browse Source

repaired broken functions

Thomas Thuemmler 1 week ago
parent
commit
4762ca226c
1 changed files with 8 additions and 5 deletions
  1. 8 5
      SDS_status_functions.php

+ 8 - 5
SDS_status_functions.php

@@ -57,22 +57,25 @@
         echo '</b></font></a></div>';
     }
 
-    function placeBox($posY, $posX, $text, $width, $size, $color, $borderwidth = 2) {
 
-        echo '<div align="center" style="background-color:' . $color . '; border-style:solid; border-width:' . $borderwidth . 'px; border-color:#000000; width:'$
+    function placeBox($posY, $posX, $text, $width, $size, $color, $borderwidth = 2)
+    {
+        echo '<div align="center" style="background-color:' . $color . '; border-style:solid; border-width:' . $borderwidth . 'px; border-color:#000000; width:' . $width . 'px; position:absolute; top:' . $posY . 'px; left:' . $posX . 'px">';
         echo '<font size="' . $size . '" color=#000000><b>';
         echo $text;
         echo '</b></font></div>';
     }
 
-    function placeBoxRight($posY, $posX, $text, $width, $size, $color, $borderwidth = 2) {
- 
-        echo '<div align="right" style="background-color:' . $color . '; border-style:solid; border-width:' . $borderwidth . 'px; border-color:#000000; width:' $
+
+    function placeBoxRight($posY, $posX, $text, $width, $size, $color, $borderwidth = 2)
+    {
+        echo '<div align="right" style="background-color:' . $color . '; border-style:solid; border-width:' . $borderwidth . 'px; border-color:#000000; width:' . $width . 'px; position:absolute; top:' . $posY . 'px; left:' . $posX . 'px">';
         echo '<font size="' . $size . '" color=#000000><b>';
         echo $text;
         echo '</b></font></div>';
     }
 
+
     function getValveStatus($value) {
         $value = decbin($value);
         $value = substr("00000000000", 0, 11 - strlen($value)) . $value;