www-thermferm/liveview.php

changeset 118
7c8f35a43cec
parent 117
7119ea8a5225
child 121
03306c3bfd60
--- a/www-thermferm/liveview.php	Sun Jul 20 23:09:50 2014 +0200
+++ b/www-thermferm/liveview.php	Mon Jul 21 17:16:08 2014 +0200
@@ -73,6 +73,9 @@
 	$outstr .= '     });'.PHP_EOL;
 	$outstr .= '    </script>'.PHP_EOL;
 	$outstr .= '    <div id="fermentor">'.PHP_EOL;
+        $outstr .= '     <div id="fermentor_pict">'.PHP_EOL;
+	$outstr .= '      <img src="images/Fermenter_60l.gif">'.PHP_EOL;
+	$outstr .= '     </div>'.PHP_EOL;
 
 	$set_temperature = "N/A";
 	$air_temperature = "N/A";
@@ -80,18 +83,6 @@
 
 	foreach($arr as $l) {
 	    $vals = explode(",", $l);
-	    if (strcmp($vals[0], "NAME") == 0) {
-		/*
-		 * The name is allways first, so when we have it
-		 * emit the formatting.
-		 */
-		$outstr .= '     <div id="fermentor_head">'.PHP_EOL;
-		$outstr .= '      ' . $vals[1] .PHP_EOL;
-		$outstr .= '     </div>'.PHP_EOL;
-		$outstr .= '     <div id="fermentor_pict">'.PHP_EOL;
-		$outstr .= '      <img src="images/Fermenter_60l.gif">'.PHP_EOL;
-		$outstr .= '     </div>'.PHP_EOL;
-	    }
 	    if (strcmp($vals[0], "MODE") == 0) {
 		$mode = $vals[1];
 	    }

mercurial