www/profile_fermentation.php

Tue, 31 Aug 2021 20:48:37 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 31 Aug 2021 20:48:37 +0200
changeset 774
92e1e8f175a2
parent 689
499c4921a90f
permissions
-rw-r--r--

Split batch, adjust mash step volume. In the duplicated log_brew handle the missing values. In save product, round the mash step sg to 4 decimals. In prod_edit, ingredients are stored as strings, not arrays. This triggered a memory corruption that only happened in rare circumstances. Don't fix mash step fields in the javascript, it is already done during load from the database. Calculation of the mash volume is rounded to 6 decimals. Enter mash step Brix/Plato value, the SG result is rounded to 4 decimals.

<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php');
page_header('Vergisting profielen', 'profile_fermentation');
?>

   <div id="jqxgrid"></div>
   <div style="margin-top: 30px;">
    <div id="cellbegineditevent"></div>
    <div style="margin-top: 10px;" id="cellendeditevent"></div>
   </div>

   <!-- Popup editor window. -->
   <div id="popupWindow">
    <div>Wijzig vergisting profiel.</div>
    <div style="overflow: hidden;">
     <table style="width: 100%;">
      <tr>
       <td align="right" style="vertical-align: top;">Profiel naam:</td>
       <td align="left" colspan="3" style="vertical-align: top;"><input id="name" /></td>
      </tr>
      <tr>
       <td align="right" style="vertical-align: top;">Begin laag &deg;C:</td>
       <td align="left"><div id="inittemp_lo"></div></td>
       <td align="right" style="vertical-align: top;">Begin hoog &deg;C:</td>
       <td align="left"><div id="inittemp_hi"></div></td>
      </tr>
      <tr>
       <td align="right" style="vertical-align: top;">Koelkast sensor:</td>
       <td align="left" colspan="3"><div id="fridgemode"></div></td>
      </tr>
      <tr>
       <td align="right" style="vertical-align: top;">Stappen:</td>
       <td align="left" colspan="3"><div id="grid"></div></td>
      </tr>
      <tr>
       <td style="padding-top: 40px;" align="right"><input type="button" id="Delete" value="Verwijder" /></td>
       <td style="padding-top: 40px;" align="left"><input type="button" id="Clone" value="Kloon" /></td>
       <td align="right"></td>
       <td style="padding-top: 40px;" align="left">
        <input style="margin-right: 5px;" type="button" id="Save" value="Sla op" />
        <input id="Cancel" type="button" value="Annuleer" />
       </td>
      </tr>
     </table>
    </div>
   </div>

<?php
confirm_delete();
page_footer();
?>

mercurial