Improved conditional styling

Mon, 08 Aug 2022 11:51:59 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 08 Aug 2022 11:51:59 +0200
changeset 621
a0b611846d78
parent 620
1bf0b9e056f3
child 622
d34ff166e07b

Improved conditional styling

www-thermferm/maintenance.php file | annotate | diff | comparison | revisions
--- a/www-thermferm/maintenance.php	Mon Aug 08 11:49:57 2022 +0200
+++ b/www-thermferm/maintenance.php	Mon Aug 08 11:51:59 2022 +0200
@@ -1,6 +1,6 @@
 <?php
 /*****************************************************************************
- * Copyright (C) 2014-2019
+ * Copyright (C) 2014-2022
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -45,6 +45,9 @@
     }
 }
 
+/*
+ * See if the server supports simulators
+ */
 if (send_cmd_check("SIMULATOR LIST") == 0)
     $simula = true;
 
@@ -88,10 +91,6 @@
 $outstr .= '      <form action="units.php" style="margin:20px;">'.PHP_EOL;
 $outstr .= '       <input type="submit" id="units" value="Fermentation Units" />'.PHP_EOL;
 $outstr .= '      </form>'.PHP_EOL;
-/*
- * See if the server supports simulators
- */
-//if (send_cmd_check("SIMULATOR LIST") == 0) {
 if ($simula) {
     $outstr .= '      <form action="simulator.php" style="margin:20px;">'.PHP_EOL;
     $outstr .= '       <input type="submit" id="simulator" value="Simulator Setup" />'.PHP_EOL;

mercurial