Exemplo n.º 1
0
      <td nowrap="nowrap" class="data">
      <?php 
    include INCLUDES . 'colorStyle.inc.php';
    if ($row_styles['brewStyleSRM'] == "") {
        echo "Varies";
    } elseif ($row_styles['brewStyleSRM'] == "N/A") {
        echo "N/A";
    } elseif ($row_styles['brewStyleSRM'] != "") {
        $SRMmin = ltrim($row_styles['brewStyleSRM'], "0");
        $SRMmax = ltrim($row_styles['brewStyleSRMMax'], "0");
        $fontColor = $SRMmin > "15" ? "#ffffff" : "#000000";
        echo '<table width="80"><tr><td width="48%"><table class="colorTable"><tr><td style="color: ' . $fontColor . '; background: ' . $beercolorMin . ';">';
        echo $SRMmin . '/' . round(srm_to_ebc($SRMmin), 0) . '</td></tr></table></td><td width="4%">&nbsp;&ndash;&nbsp;</td><td width="48%">';
        $fontColor = $SRMmax > "15" ? "#ffffff" : "#000000";
        echo '<table class="colorTable"><tr><td style="color: ' . $fontColor . '; background: ' . $beercolorMax . ';">';
        echo $SRMmax . '/' . round(srm_to_ebc($SRMmax), 0) . '</td></tr></table></td></tr></table>';
    } else {
        echo "&nbsp;";
    }
    ?>
</td>
    </tr>
  </table>

<?php 
    if ($page == "reference") {
        ?>
  <table style="margin-bottom: 10px;">
    <tr>
      <td><a href="<?php 
        echo $row_styles['brewStyleLink'];
            if ($hopsTime[$i] && $hopsForm[$i]) {
                $format = $hopsForm[$i] == "Pellet" ? "pellet" : "whole";
                $ibuT += calc_bitter_tinseth($hopsTime[$i], $og, $hopsAA[$i], $hopsWeight[$i], $brewYield, $format, $units);
                $ibuR += calc_bitter_rager($hopsTime[$i], $og, $hopsAA[$i], $hopsWeight[$i], $brewYield, $format, $units);
                $ibuD += calc_bitter_daniels($hopsTime[$i], $og, $hopsAA[$i], $hopsWeight[$i], $brewYield, $format, $units);
                $ibuG += 0;
                // Not enough data to do calc properly
            }
        }
    }
}
$ibuAvg = $ibuT + $ibuR + $ibuD;
if ($ibuAvg > 0) {
    if ($ibuG > 0) {
        $ibuAvg += $ibuG;
        $ibuAvg /= 4;
    } else {
        $ibuAvg /= 3;
    }
    if ($results != "verify") {
        $bugu = $ibuAvg / (($og - 1) * 1000);
    }
}
// --------------------------- Color ------------------------------------
$srmMorey = calc_srm_morey($mcu);
$ebcMorey = srm_to_ebc($srmMorey);
$srmDaniels = calc_srm_daniels($mcu);
$ebcDaniels = srm_to_ebc($srmDaniels);
$srmMoser = calc_srm_moser($mcu);
$ebcMoser = srm_to_ebc($srmMoser);
Exemplo n.º 3
0
    echo $srmMoser;
} else {
    echo srm_to_ebc($srmMoser);
}
echo '-Moser" ';
if ($row_user['defaultColorFormula'] == "Moser") {
    echo "checked";
}
echo '/>&nbsp;</td>' . "\n";
$fontColor = $srmMoser >= 15 ? "#ffffff" : "#000000";
$bkColor = get_display_color($srmMoser);
echo '<td class="colorTable" style="text-align: center; background: ' . $bkColor . '; color: ' . $fontColor . ';">&nbsp;&nbsp;';
if ($row_pref['measColor'] == "SRM") {
    echo round($srmMoser, 1);
} else {
    echo round(srm_to_ebc($srmMoser), 1);
}
echo '&nbsp;&nbsp;</td>' . "\n";
?>
        <td style="vertical-align: middle;">&nbsp;Moser&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>

  <tr class="bknd_ultra_lt">
    <td class="dataLabelLeft" nowrap>Yield:</td>
      <?php 
if ($row_recipeRecalc['id'] != "") {
    ?>
<td class="data"><?php 
Exemplo n.º 4
0
?>
</td>
    <td width="20%" bgcolor="#231716" class="colorTableRef3">25/<?php 
echo round(srm_to_ebc("25"), 0);
?>
</td>
  </tr>
  <tr align="center" valign="middle">
    <td width="20%" bgcolor="#19100f" class="colorTableRef3">26/<?php 
echo round(srm_to_ebc("26"), 0);
?>
</td>
    <td width="20%" bgcolor="#16100f" class="colorTableRef3">27/<?php 
echo round(srm_to_ebc("27"), 0);
?>
</td>
    <td width="20%" bgcolor="#120d0c" class="colorTableRef3">28/<?php 
echo round(srm_to_ebc("28"), 0);
?>
</td>
    <td width="20%" bgcolor="#100b0a" class="colorTableRef3">29/<?php 
echo round(srm_to_ebc("29"), 0);
?>
</td>
    <td width="20%" bgcolor="#050b0a" class="colorTableRef3">30/<?php 
echo round(srm_to_ebc("30"), 0);
?>
</td>
  </tr>
</table>