Browse Source

added placeBoxRight

Thomas Thümmler 3 years ago
parent
commit
294d81b71e
1 changed files with 9 additions and 0 deletions
  1. 9 0
      SDS_status_functions.php

+ 9 - 0
SDS_status_functions.php

@@ -76,6 +76,15 @@
 		echo '</b></font></div>';
 	}
 
+	function placeBoxRight($posY, $posX, $text, $width, $size, $color)
+	{
+		echo '<div align="right" style="background-color:' . $color . '; border-style:solid; border-width:2px; 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);