www-thermferm/liveview.php

changeset 134
f05601490415
parent 131
528dc0bb81ab
child 151
ab90da2da45d
--- a/www-thermferm/liveview.php	Thu Jul 24 23:14:20 2014 +0200
+++ b/www-thermferm/liveview.php	Fri Jul 25 23:27:08 2014 +0200
@@ -213,47 +213,7 @@
 	$outstr .= '        Fan'.PHP_EOL;
 	$outstr .= '       </form>'.PHP_EOL;
 	$outstr .= '      </div>'.PHP_EOL;
-	$outstr .= '      <div id="fermentor_control">'.PHP_EOL;
-	$outstr .= '       <input type="button" id="fermentor_setup_'.$unr.'" value="Edit fermentor" />'.PHP_EOL;
-	$outstr .= '      </div>'.PHP_EOL;
 	$outstr .= '     </div> <!-- fermentor_panel -->'.PHP_EOL;
-
-	/* Fermentor maintenance window */
-        $outstr .= '     <script type="text/javascript">'.PHP_EOL;
-	$outstr .= '      function addEventListeners'.$unr.'() {'.PHP_EOL;
-	$outstr .= '        $("#fermentor_setup_'.$unr.'").mousedown(function () {'.PHP_EOL;
-	$outstr .= '          $("#fermmaint_window'.$unr.'").jqxWindow(\'open\');'.PHP_EOL;
-	$outstr .= '        });'.PHP_EOL;
-	$outstr .= '      }'.PHP_EOL;
-	$outstr .= '      function createMaintenance'.$unr.'() {'.PHP_EOL;
-	$outstr .= '        $("#fermmaint_window'.$unr.'").jqxWindow({'.PHP_EOL;
-	$outstr .= '          height: 400, width: 800, autoOpen: false, theme: \''.$my_style.'\', '.PHP_EOL;
-	$outstr .= '          position: { x:100, y:50 }, '.PHP_EOL;
-	$outstr .= '          resizable: false, isModal: true, modalOpacity: 0.5, '.PHP_EOL;
-	$outstr .= '          okButton: $("#fermmaint_ok'.$unr.'"), cancelButton: $("#fermmaint_cancel'.$unr.'"),'.PHP_EOL;
-	$outstr .= '          initContent: function () {'.PHP_EOL;
-	$outstr .= '            $("#fermmaint_ok'.$unr.'").jqxButton({ width: 65, height: 25, theme: \''.$my_style.'\' });'.PHP_EOL;
-	$outstr .= '            $("#fermmaint_cancel'.$unr.'").jqxButton({ width: 65, height: 25, theme: \''.$my_style.'\' });'.PHP_EOL;
-	$outstr .= '          }'.PHP_EOL;
-	$outstr .= '        });'.PHP_EOL;
-	$outstr .= '        $("#fermentor_setup_'.$unr.'").jqxButton({ width: 150, height: 25, theme: \''.$my_style.'\'});'.PHP_EOL;
-	$outstr .= '      }'.PHP_EOL;
-	$outstr .= '      $(document).ready(function () {'.PHP_EOL;
-	$outstr .= '        addEventListeners'.$unr.'();'.PHP_EOL;
-	$outstr .= '        createMaintenance'.$unr.'();'.PHP_EOL;
-	$outstr .= '      });'.PHP_EOL;
-	$outstr .= '     </script>'.PHP_EOL;
-	$outstr .= '     <div id="fermmaint_window'.$unr.'">'.PHP_EOL;
-	$outstr .= '      <div id="fermmaint_header'.$unr.'">'.PHP_EOL;
-	$outstr .= '       Fermentor Unit '.$unr.' Maintenance'.PHP_EOL;
-	$outstr .= '      </div>'.PHP_EOL;
-	$outstr .= '      <div id="fermmaint_content'.$unr.'">'.PHP_EOL;
-	$outstr .= '       Content'.PHP_EOL;
-	$outstr .= '       <input type="button" id="fermmaint_ok'.$unr.'" value="OK" style="margin-right: 10px" />'.PHP_EOL;
-	$outstr .= '       <input type="button" id="fermmaint_cancel'.$unr.'" value="Cancel" />'.PHP_EOL;
-	$outstr .= '      </div>'.PHP_EOL;
-	$outstr .= '     </div> <!-- fermmaint_window -->'.PHP_EOL;
- 
 	$outstr .= '    </div> <!-- fermentor -->'.PHP_EOL;
     }
 
@@ -314,5 +274,4 @@
 }
 
 
-
 ?>

mercurial