Made changes to fix the printing issue reported by Kevin M. Also made changes to make presentation of data more consistent. Added print.php stand-alone page and revised the layout to include a larger "Brew Day Data" section along with a new "Brew Day Notes" section. These will print on a separate page.
Defined constants in index.php for various paths (e.g., includes, sections, etc.). Will employ the use of these across the application - this commit begins the process.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Theme</div>
|
||||
<div class="headerContentAdmin">Theme</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="5%">
|
||||
@@ -12,7 +12,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="headerContentAdmin">Edition</div>
|
||||
<div class="headerContentAdmin">Edition</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td>
|
||||
@@ -24,7 +24,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="headerContentAdmin">Home Page</div>
|
||||
<div class="headerContentAdmin">Home Page</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="5%">
|
||||
@@ -44,7 +44,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="headerContentAdmin">General</div>
|
||||
<div class="headerContentAdmin">General</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Fluid Measure (Small):</td>
|
||||
@@ -131,7 +131,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="headerContentAdmin">Water and Mash Profiles</div>
|
||||
<div class="headerContentAdmin">Water and Mash Profiles</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Manage Water Profiles with BrewBlogger?</td>
|
||||
@@ -151,7 +151,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="headerContentAdmin">Menu Link Text</div>
|
||||
<div class="headerContentAdmin">Menu Link Text</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Home Link Text:</td>
|
||||
@@ -200,7 +200,7 @@
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div id="headerContentAdmin">Printing and File Downloads</div>
|
||||
<div class="headerContentAdmin">Printing and File Downloads</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Allow Visitors to Print an Entire BrewBlog?</td>
|
||||
@@ -224,7 +224,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin">BrewBlog and Recipe Display</div>
|
||||
<div class="headerContentAdmin">BrewBlog and Recipe Display</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Display Specifics?</td>
|
||||
|
||||
@@ -51,7 +51,7 @@ if (($row_log['user_name'] == $loginUsername) || ($row_user['userLevel'] == "1")
|
||||
|
||||
<?php } } ?>
|
||||
</table>
|
||||
<div id="headerContentAdmin">User Defaults</div>
|
||||
<div class="headerContentAdmin">User Defaults</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Usual Method:</td>
|
||||
@@ -124,7 +124,7 @@ if (($row_log['user_name'] == $loginUsername) || ($row_user['userLevel'] == "1")
|
||||
</tr>
|
||||
</table>
|
||||
<table class="dataTable">
|
||||
<div id="headerContentAdmin">Personal Information</div>
|
||||
<div class="headerContentAdmin">Personal Information</div>
|
||||
<tr>
|
||||
<td colspan="3" class="error">(*) Indicates the item is only used for printing competition recipes and labels. It's not displayed on the site.</td>
|
||||
</tr>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<td class="data_icon_list"><a href="index.php?action=add&dbTable=awards&assoc=brewing<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "&filter=".$row_brewing['brewBrewerID']; elseif (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) echo "&filter=".$loginUsername; else echo ""; ?>&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" align="absmiddle" border="0" alt="Add an award/contest entry for <?php echo $row_brewing['brewName']; ?>" title="Add an award/contest entry for <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="data_icon_list"><a href="#" onclick="window.open('../includes/output_beer_xml.inc.php?id=<?php echo $row_brewing['id']; ?>&source=brewLog&brewStyle=<?php echo $row_brewing['brewStyle']; ?>','','height=1,width=1, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc; ?>page_white_code.png" title="Download BeerXML" align="absmiddle" border="0" /></a>
|
||||
<td class="data_icon_list"><?php if ($printBrowser == "IE") { ?><a href="#" onClick="window.open('../sections/print.inc.php?source=log&dbTable=brewing&page=logPrint&brewStyle=<?php echo $row_brewing['brewStyle']; ?>&id=<?php echo $row_brewing['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_brewing['brewName']; ?>"><?php } else { ?><a href="../sections/print.inc.php?source=log&dbTable=brewing&page=logPrint&brewStyle=<?php echo $row_brewing['brewStyle']; ?>&id=<?php echo $row_brewing['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_brewing['brewName']; ?>" class="thickbox"><?php } ?><img src="<?php echo $imageSrc; ?>printer.png" align="absmiddle" border="0" alt="Print the <?php echo $row_brewing['brewName']; ?> BrewBlog" title="Print the <?php echo $row_brewing['brewName']; ?> BrewBlog"></a></td>
|
||||
<td class="data_icon_list"><?php if ($printBrowser == "IE") { ?><a href="#" onClick="window.open('../print.php?source=log&dbTable=brewing&page=logPrint&brewStyle=<?php echo $row_brewing['brewStyle']; ?>&id=<?php echo $row_brewing['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_brewing['brewName']; ?>"><?php } else { ?><a href="../print.php?source=log&dbTable=brewing&page=logPrint&brewStyle=<?php echo $row_brewing['brewStyle']; ?>&id=<?php echo $row_brewing['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_brewing['brewName']; ?>" class="thickbox"><?php } ?><img src="<?php echo $imageSrc; ?>printer.png" align="absmiddle" border="0" alt="Print the <?php echo $row_brewing['brewName']; ?> BrewBlog" title="Print the <?php echo $row_brewing['brewName']; ?> BrewBlog"></a></td>
|
||||
<td class="data_icon_list"><a href="../sections/entry.inc.php?style=<?php echo $row_brewing['brewStyle']; ?>&filter=<?php if ($row_pref['mode'] == "2") echo $row_brewing['brewBrewerID']; else echo $loginUsername; ?>&id=<?php echo $row_brewing['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" class="thickbox"><img src="<?php echo $imageSrc; ?>award_star_add.png" alt="Add Awards for <?php echo $row_brewing['brewName']; ?>" title="Print a contest entry sheet for <?php echo $row_brewing['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<td class="data_icon_list"><a href="index.php?action=add&dbTable=awards&assoc=recipes<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "&filter=".$row_log['brewBrewerID']; elseif (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) echo "&filter=".$loginUsername; else echo ""; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" align="absmiddle" border="0" alt="Add an award/contest entry for <?php echo $row_log['brewName']; ?>" title="Add an award/contest entry for <?php echo $row_log['brewName']; ?>"></a></td>
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="data_icon_list"><a href="#" onclick="window.open('../includes/output_beer_xml.inc.php?id=<?php echo $row_log['id']; ?>&source=recipe&brewStyle=<?php echo $row_log['brewStyle']; ?>','','height=1,width=1, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc; ?>page_white_code.png" title="Download BeerXML" align="absmiddle" border="0" /></a>
|
||||
<td class="data_icon_list"><?php if ($printBrowser == "IE") { ?><a href="#" onClick="window.open('../sections/print.inc.php?source=recipe&dbTable=recipes&page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><?php } else { ?><a href="../sections/print.inc.php?source=recipe&dbTable=recipes&page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" class="thickbox" title="Print <?php echo $row_log['brewName']; ?>"><?php } ?><img src="<?php echo $imageSrc; ?>printer.png" align="absmiddle" border="0" alt="Print the <?php echo $row_log['brewName']; ?> Recipe" title="Print the <?php echo $row_log['brewName']; ?> Recipe"></a></td>
|
||||
<td class="data_icon_list"><?php if ($printBrowser == "IE") { ?><a href="#" onClick="window.open('../print.php?source=recipe&dbTable=recipes&page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><?php } else { ?><a href="../print.php?source=recipe&dbTable=recipes&page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" class="thickbox" title="Print <?php echo $row_log['brewName']; ?>"><?php } ?><img src="<?php echo $imageSrc; ?>printer.png" align="absmiddle" border="0" alt="Print the <?php echo $row_log['brewName']; ?> Recipe" title="Print the <?php echo $row_log['brewName']; ?> Recipe"></a></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuBrewBlogs']; ?></div>
|
||||
<div class="headerContentAdmin"><?php echo $row_pref['menuBrewBlogs']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>book.png" align="absmiddle"></td>
|
||||
@@ -47,7 +47,7 @@
|
||||
<td class="data"><a href="index.php?action=chooseRecalc">Recalculate <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuRecipes']; ?></div>
|
||||
<div class="headerContentAdmin"><?php echo $row_pref['menuRecipes']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>script.png"></td>
|
||||
@@ -77,7 +77,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuReference']; ?></div>
|
||||
<div class="headerContentAdmin"><?php echo $row_pref['menuReference']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
@@ -169,7 +169,7 @@
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div id="headerContentAdmin">General</div>
|
||||
<div class="headerContentAdmin">General</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user.png" /></td>
|
||||
@@ -224,7 +224,7 @@
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<div id="headerContentAdmin">My Profile</div>
|
||||
<div class="headerContentAdmin">My Profile</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>user.png"></td>
|
||||
@@ -235,7 +235,7 @@
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin">Lists</div>
|
||||
<div class="headerContentAdmin">Lists</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
@@ -313,7 +313,7 @@
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuCalculators']; ?></div>
|
||||
<div class="headerContentAdmin"><?php echo $row_pref['menuCalculators']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
|
||||
@@ -5,7 +5,7 @@ Check here for news for club members eyes only.<br><br>
|
||||
There is no <?php echo $row_pref['menuMembers']; ?> news. Please check the <a href="../index.php?page=news&sort=newsDate&dir=DESC&view=5">public news</a>.
|
||||
<?php } else { ?>
|
||||
<?php do { ?>
|
||||
<div id="headerContentAdmin"><?php echo $row_newsGen['newsHeadline']; ?></div>
|
||||
<div class="headerContentAdmin"><?php echo $row_newsGen['newsHeadline']; ?></div>
|
||||
<table class="dataTable" style="margin-bottom: 25px;">
|
||||
<tr>
|
||||
<td width="90%"> </td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Adjuncts</div>
|
||||
<div class="headerContentAdmin">Adjuncts</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Adjunct 1:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Bitterness</div>
|
||||
<div class="headerContentAdmin">Bitterness</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Bitterness:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Boil</div>
|
||||
<div class="headerContentAdmin">Boil</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Total Boil Time:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=color&source=log&KeepThis=true&TB_iframe=true&height=370&width=600" title="Color Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Color</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=color&source=log&KeepThis=true&TB_iframe=true&height=370&width=600" title="Color Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Color</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Equipment</div>
|
||||
<div class="headerContentAdmin">Equipment</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Equipment Profile:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Malt Extracts</div>
|
||||
<div class="headerContentAdmin">Malt Extracts</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Extract 1:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Fermenting, Lagering, and Aging</div>
|
||||
<div class="headerContentAdmin">Fermenting, Lagering, and Aging</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Primary:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">General Information</div>
|
||||
<div class="headerContentAdmin">General Information</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Name:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=grains&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Grains Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Grains</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=grains&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Grains Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Grains</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Grain 1:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Gravity</div>
|
||||
<div class="headerContentAdmin">Gravity</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="5%">Original:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=hops&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Hops Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Hops</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=hops&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Hops Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>/information.png" border="0"></a></div>Hops</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td> </td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Label Image</div>
|
||||
<div class="headerContentAdmin">Label Image</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Image Name: </td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Mash</div>
|
||||
<div class="headerContentAdmin">Mash</div>
|
||||
<?php if ($row_pref['mashDisplayMethod'] == "1") { ?>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Miscellaneous (<em>NON-Fermentable</em> Ingredients)</div>
|
||||
<div class="headerContentAdmin">Miscellaneous (<em>NON-Fermentable</em> Ingredients)</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="5%" class="dataLabelLeft">Miscellaneous 1:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Procedure</div>
|
||||
<div class="headerContentAdmin">Procedure</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Enter Step By Step Instructions:<br><br><textarea name="brewProcedure" cols="67" rows="15"><?php if (($action == "edit") || ($action=="import") || ($action == "importRecipe") || ($action=="reuse")) echo $row_log['brewProcedure']; ?></textarea></td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Related Links</div>
|
||||
<div class="headerContentAdmin">Related Links</div>
|
||||
|
||||
<table class="dataTable">
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin">Water</div>
|
||||
<div class="headerContentAdmin">Water</div>
|
||||
<?php if ($row_pref['waterDisplayMethod'] == "1") { ?>
|
||||
<table>
|
||||
<td class="dataLabelLeft" width="5%">Water Profile:</td>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=yeast&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Yeast Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference" /></a></div>Yeast</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=yeast&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Yeast Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference" /></a></div>Yeast</div>
|
||||
<table>
|
||||
<?php if ((($action == "edit") || ($action=="import") || ($action == "importRecipe") || ($action=="reuse")) && ($row_log['brewYeastProfile'] == "")) { ?>
|
||||
<?php if ($row_log['brewYeast'] != "") { ?>
|
||||
|
||||
@@ -1,188 +1,188 @@
|
||||
<?php
|
||||
|
||||
require_once ('../../Connections/config.php');
|
||||
require ('../../includes/authentication.inc.php'); session_start(); sessionAuthenticate();
|
||||
include ('../../includes/db_connect_universal.inc.php');
|
||||
include ('../../includes/db_connect_admin.inc.php');
|
||||
include ('../../includes/db_connect_log.inc.php');
|
||||
$imageSrc = "../../images/";
|
||||
|
||||
$action = "default";
|
||||
if (isset($_GET['action'])) {
|
||||
$action = (get_magic_quotes_gpc()) ? $_GET['action'] : addslashes($_GET['action']);
|
||||
}
|
||||
|
||||
$section = "default";
|
||||
if (isset($_GET['section'])) {
|
||||
$section = (get_magic_quotes_gpc()) ? $_GET['section'] : addslashes($_GET['section']);
|
||||
}
|
||||
|
||||
$fileCornfirm = "default";
|
||||
if (isset($_GET['fileConfirm'])) {
|
||||
$fileConfirm = (get_magic_quotes_gpc()) ? $_GET['fileConfirm'] : addslashes($_GET['fileConfirm']);
|
||||
}
|
||||
|
||||
//Mmaximum file size.
|
||||
$MAX_SIZE = 2000000;
|
||||
|
||||
//Allowable file Mime Types.
|
||||
$FILE_MIMES = array('image/jpeg','image/jpg','image/gif','image/png');
|
||||
|
||||
//Allowable file ext. names.
|
||||
$FILE_EXTS = array('.jpg','.png','.gif');
|
||||
|
||||
$site_name = $_SERVER['HTTP_HOST'];
|
||||
$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
|
||||
$url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
|
||||
|
||||
$upload_dir = $images_dir."/label_images/";
|
||||
$upload_url = $url_dir."/label_images/";
|
||||
$message ="";
|
||||
|
||||
// Create Upload Directory
|
||||
if (!is_dir($upload_dir)) {
|
||||
if (!mkdir($upload_dir))
|
||||
die ("Upload_files directory doesn't exist and creation failed.");
|
||||
if (!chmod($upload_dir,0755))
|
||||
die ("Change permission to 755 failed. You will probably need to change the folder's permission manually. Consult your FTP program or ISP's documentation for chmod (folder permissions).");
|
||||
}
|
||||
|
||||
// Process User's Request
|
||||
if ($_REQUEST[del] && $DELETABLE) {
|
||||
$resource = fopen("log.txt","a");
|
||||
fwrite($resource,date("Ymd h:i:s")."DELETE - $_SERVER[REMOTE_ADDR]"."$_REQUEST[del]\n");
|
||||
fclose($resource);
|
||||
|
||||
if (strpos($_REQUEST[del],"/.")>0); // possible hacking
|
||||
else if (strpos($_REQUEST[del],$upload_dir) === false); // possible hacking
|
||||
else if (substr($_REQUEST[del],0,6)==$upload_dir) {
|
||||
unlink($_REQUEST[del]);
|
||||
print "<script>window.location.href='?action=upload§ion=".$section."&message=". htmlentities($message) . "&inserted=true'</script>";
|
||||
}
|
||||
}
|
||||
else if ($_FILES['userfile']) {
|
||||
// Uncomment if you want a log file.
|
||||
//$resource = fopen("log.txt","a");
|
||||
//fwrite($resource,date("Ymd h:i:s")."UPLOAD - $_SERVER[REMOTE_ADDR]"
|
||||
//.$_FILES['userfile']['name']." "
|
||||
//.$_FILES['userfile']['type']."\n");
|
||||
// fclose($resource);
|
||||
|
||||
$file_type = $_FILES['userfile']['type'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_ext = strtolower(substr($file_name,strrpos($file_name,".")));
|
||||
|
||||
//File Size Check
|
||||
if ($_FILES['userfile']['size'] > $MAX_SIZE)
|
||||
$message = "The file size is over 2MB. Please adjust the size and try again.";
|
||||
//File Type/Extension Check
|
||||
else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS))
|
||||
$message = "Sorry, that file type is not allowed to be uploaded. Acceptable file type extensions are: .jpg, .png, and .gif";
|
||||
else
|
||||
$message = do_upload($upload_dir, $upload_url);
|
||||
|
||||
print "<script>window.location.href='?action=upload&message=$message'</script>";
|
||||
}
|
||||
else if (!$_FILES['userfile']);
|
||||
else
|
||||
$message = "Invalid file specified.";
|
||||
|
||||
// List Files in the directory
|
||||
$handle=opendir($upload_dir);
|
||||
$filelist = "";
|
||||
while ($file = readdir($handle)) {
|
||||
if(!is_dir($file) && !is_link($file)) {
|
||||
$filelist .= "<tr>";
|
||||
$filelist .= "<td width=\"5%\" nowrap><a href=\"../../label_images/$file\" class=\"thickbox\">".$file."</a></td>";
|
||||
$filelist .= "<td width=\"5%\" nowrap class=\"data\">".date("l, F j, Y H:i", filemtime($upload_dir.$file))."</td>";
|
||||
if ($row_user['userLevel'] == "1") $filelist .= "<td class=\"data\"><a href =\"?action=upload§ion=confirm&fileConfirm=".$file."\"><img src=\"".$imageSrc."bin_closed.png\" border=\"0\"></a></td>";
|
||||
else $filelist .="<td> </td>";
|
||||
$filelist .= "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
function do_upload($upload_dir, $upload_url) {
|
||||
|
||||
$temp_name = $_FILES['userfile']['tmp_name'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_name = str_replace("\\","",$file_name);
|
||||
$file_name = str_replace("'","",$file_name);
|
||||
$file_path = $upload_dir.$file_name;
|
||||
|
||||
// File Name Check
|
||||
if ($file_name == "") {
|
||||
$message = "Invalid file name specified";
|
||||
return $message;
|
||||
}
|
||||
|
||||
$result = move_uploaded_file($temp_name, $file_path);
|
||||
if (!chmod($file_path,0777))
|
||||
$message = "Change permission to 777 failed.";
|
||||
else
|
||||
$message = ($result)?"The label image $file_name was uploaded successfully." : "An error has occurred, please try again.";
|
||||
return $message;
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>BrewBlogger - Upload Image</title>
|
||||
<link href="../../css/html_elements.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/universal_elements.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/reference.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/thickbox.css" rel="stylesheet" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="../../js_includes/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../js_includes/thickbox.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wideWrapperReference">
|
||||
<div id="referenceHeader">Upload Images</div>
|
||||
<?php if ($section == "default") { ?>
|
||||
<form name="upload" id="upload" ENCTYPE="multipart/form-data" method="post">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Image File:</td>
|
||||
<td class="data" width="10%"><input name="userfile" type="file" class="submit" id="userfile" size="60"></td>
|
||||
<td class="data"><input type="submit" value="Upload"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="error" colspan="3"><br><?=$_REQUEST[message]?><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="referenceHeader">Files in the Directory</div>
|
||||
<table class="dataTable">
|
||||
<?php echo $filelist; ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }
|
||||
if ($section == "confirm") { ?>
|
||||
<div id="headerContentAdmin">Delete Image</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="5%" rowspan="2" nowrap><a href="../../label_images/<?php echo $fileConfirm; ?>" class="thickbox"><img src="../../label_images/<?php echo $fileConfirm; ?>" width = "100" border="0"></a></td>
|
||||
<td width="5%" nowrap class="data">Are you sure you want to delete <?php echo $fileConfirm; ?>?</td>
|
||||
<td width="5%" nowrap class="data"><a href="?action=upload§ion=delete&fileConfirm=<?php echo $fileConfirm; ?>">Yes</a></td>
|
||||
<td class="data"><a href="?action=upload">No</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" nowrap> </td>
|
||||
<td width="5%" nowrap class="data"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($section == "delete") {
|
||||
unlink($upload_dir.$fileConfirm);
|
||||
?>
|
||||
<div id="headerContentAdmin">Delete Image</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error"><?php echo $fileConfirm; ?> deleted.</td>
|
||||
<td class="data"><a href="?action=upload">Back to List</a></td>
|
||||
</td>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php include('../../includes/footer2.inc.php'); ?>
|
||||
</div>
|
||||
</body>
|
||||
<?php
|
||||
|
||||
require_once ('../../Connections/config.php');
|
||||
require ('../../includes/authentication.inc.php'); session_start(); sessionAuthenticate();
|
||||
include ('../../includes/db_connect_universal.inc.php');
|
||||
include ('../../includes/db_connect_admin.inc.php');
|
||||
include ('../../includes/db_connect_log.inc.php');
|
||||
$imageSrc = "../../images/";
|
||||
|
||||
$action = "default";
|
||||
if (isset($_GET['action'])) {
|
||||
$action = (get_magic_quotes_gpc()) ? $_GET['action'] : addslashes($_GET['action']);
|
||||
}
|
||||
|
||||
$section = "default";
|
||||
if (isset($_GET['section'])) {
|
||||
$section = (get_magic_quotes_gpc()) ? $_GET['section'] : addslashes($_GET['section']);
|
||||
}
|
||||
|
||||
$fileCornfirm = "default";
|
||||
if (isset($_GET['fileConfirm'])) {
|
||||
$fileConfirm = (get_magic_quotes_gpc()) ? $_GET['fileConfirm'] : addslashes($_GET['fileConfirm']);
|
||||
}
|
||||
|
||||
//Mmaximum file size.
|
||||
$MAX_SIZE = 2000000;
|
||||
|
||||
//Allowable file Mime Types.
|
||||
$FILE_MIMES = array('image/jpeg','image/jpg','image/gif','image/png');
|
||||
|
||||
//Allowable file ext. names.
|
||||
$FILE_EXTS = array('.jpg','.png','.gif');
|
||||
|
||||
$site_name = $_SERVER['HTTP_HOST'];
|
||||
$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
|
||||
$url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
|
||||
|
||||
$upload_dir = $images_dir."/label_images/";
|
||||
$upload_url = $url_dir."/label_images/";
|
||||
$message ="";
|
||||
|
||||
// Create Upload Directory
|
||||
if (!is_dir($upload_dir)) {
|
||||
if (!mkdir($upload_dir))
|
||||
die ("Upload_files directory doesn't exist and creation failed.");
|
||||
if (!chmod($upload_dir,0755))
|
||||
die ("Change permission to 755 failed. You will probably need to change the folder's permission manually. Consult your FTP program or ISP's documentation for chmod (folder permissions).");
|
||||
}
|
||||
|
||||
// Process User's Request
|
||||
if ($_REQUEST[del] && $DELETABLE) {
|
||||
$resource = fopen("log.txt","a");
|
||||
fwrite($resource,date("Ymd h:i:s")."DELETE - $_SERVER[REMOTE_ADDR]"."$_REQUEST[del]\n");
|
||||
fclose($resource);
|
||||
|
||||
if (strpos($_REQUEST[del],"/.")>0); // possible hacking
|
||||
else if (strpos($_REQUEST[del],$upload_dir) === false); // possible hacking
|
||||
else if (substr($_REQUEST[del],0,6)==$upload_dir) {
|
||||
unlink($_REQUEST[del]);
|
||||
print "<script>window.location.href='?action=upload§ion=".$section."&message=". htmlentities($message) . "&inserted=true'</script>";
|
||||
}
|
||||
}
|
||||
else if ($_FILES['userfile']) {
|
||||
// Uncomment if you want a log file.
|
||||
//$resource = fopen("log.txt","a");
|
||||
//fwrite($resource,date("Ymd h:i:s")."UPLOAD - $_SERVER[REMOTE_ADDR]"
|
||||
//.$_FILES['userfile']['name']." "
|
||||
//.$_FILES['userfile']['type']."\n");
|
||||
// fclose($resource);
|
||||
|
||||
$file_type = $_FILES['userfile']['type'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_ext = strtolower(substr($file_name,strrpos($file_name,".")));
|
||||
|
||||
//File Size Check
|
||||
if ($_FILES['userfile']['size'] > $MAX_SIZE)
|
||||
$message = "The file size is over 2MB. Please adjust the size and try again.";
|
||||
//File Type/Extension Check
|
||||
else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS))
|
||||
$message = "Sorry, that file type is not allowed to be uploaded. Acceptable file type extensions are: .jpg, .png, and .gif";
|
||||
else
|
||||
$message = do_upload($upload_dir, $upload_url);
|
||||
|
||||
print "<script>window.location.href='?action=upload&message=$message'</script>";
|
||||
}
|
||||
else if (!$_FILES['userfile']);
|
||||
else
|
||||
$message = "Invalid file specified.";
|
||||
|
||||
// List Files in the directory
|
||||
$handle=opendir($upload_dir);
|
||||
$filelist = "";
|
||||
while ($file = readdir($handle)) {
|
||||
if(!is_dir($file) && !is_link($file)) {
|
||||
$filelist .= "<tr>";
|
||||
$filelist .= "<td width=\"5%\" nowrap><a href=\"../../label_images/$file\" class=\"thickbox\">".$file."</a></td>";
|
||||
$filelist .= "<td width=\"5%\" nowrap class=\"data\">".date("l, F j, Y H:i", filemtime($upload_dir.$file))."</td>";
|
||||
if ($row_user['userLevel'] == "1") $filelist .= "<td class=\"data\"><a href =\"?action=upload§ion=confirm&fileConfirm=".$file."\"><img src=\"".$imageSrc."bin_closed.png\" border=\"0\"></a></td>";
|
||||
else $filelist .="<td> </td>";
|
||||
$filelist .= "</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
function do_upload($upload_dir, $upload_url) {
|
||||
|
||||
$temp_name = $_FILES['userfile']['tmp_name'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_name = str_replace("\\","",$file_name);
|
||||
$file_name = str_replace("'","",$file_name);
|
||||
$file_path = $upload_dir.$file_name;
|
||||
|
||||
// File Name Check
|
||||
if ($file_name == "") {
|
||||
$message = "Invalid file name specified";
|
||||
return $message;
|
||||
}
|
||||
|
||||
$result = move_uploaded_file($temp_name, $file_path);
|
||||
if (!chmod($file_path,0777))
|
||||
$message = "Change permission to 777 failed.";
|
||||
else
|
||||
$message = ($result)?"The label image $file_name was uploaded successfully." : "An error has occurred, please try again.";
|
||||
return $message;
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>BrewBlogger - Upload Image</title>
|
||||
<link href="../../css/html_elements.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/universal_elements.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/reference.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../css/thickbox.css" rel="stylesheet" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="../../js_includes/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../js_includes/thickbox.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wideWrapperReference">
|
||||
<div id="referenceHeader">Upload Images</div>
|
||||
<?php if ($section == "default") { ?>
|
||||
<form name="upload" id="upload" ENCTYPE="multipart/form-data" method="post">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Image File:</td>
|
||||
<td class="data" width="10%"><input name="userfile" type="file" class="submit" id="userfile" size="60"></td>
|
||||
<td class="data"><input type="submit" value="Upload"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="error" colspan="3"><br><?=$_REQUEST[message]?><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="referenceHeader">Files in the Directory</div>
|
||||
<table class="dataTable">
|
||||
<?php echo $filelist; ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }
|
||||
if ($section == "confirm") { ?>
|
||||
<div class="headerContentAdmin">Delete Image</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="5%" rowspan="2" nowrap><a href="../../label_images/<?php echo $fileConfirm; ?>" class="thickbox"><img src="../../label_images/<?php echo $fileConfirm; ?>" width = "100" border="0"></a></td>
|
||||
<td width="5%" nowrap class="data">Are you sure you want to delete <?php echo $fileConfirm; ?>?</td>
|
||||
<td width="5%" nowrap class="data"><a href="?action=upload§ion=delete&fileConfirm=<?php echo $fileConfirm; ?>">Yes</a></td>
|
||||
<td class="data"><a href="?action=upload">No</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" nowrap> </td>
|
||||
<td width="5%" nowrap class="data"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($section == "delete") {
|
||||
unlink($upload_dir.$fileConfirm);
|
||||
?>
|
||||
<div class="headerContentAdmin">Delete Image</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error"><?php echo $fileConfirm; ?> deleted.</td>
|
||||
<td class="data"><a href="?action=upload">Back to List</a></td>
|
||||
</td>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php include('../../includes/footer2.inc.php'); ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,108 +1,108 @@
|
||||
<?php
|
||||
if ($phpVersion >= "5") {
|
||||
include ('../includes/beerXMLparser/input_beer_xml.inc.php');
|
||||
|
||||
//Mmaximum file size.
|
||||
$MAX_SIZE = 2000000;
|
||||
|
||||
//Allowable file Mime Types.
|
||||
$FILE_MIMES = array('image/jpeg','image/jpg','image/gif','image/png','application/msword');
|
||||
|
||||
//Allowable file ext. names.
|
||||
$FILE_EXTS = array('.xml','.txt');
|
||||
|
||||
//Allow file delete? no, if only allow upload only
|
||||
$DELETABLE = false;
|
||||
|
||||
$recipeList = "";
|
||||
function formatInsertedRecipes($recipes) {
|
||||
foreach($recipes as $id=>$name){
|
||||
$recipelist .= "<tr><td><a href=\"index.php?action=edit&dbTable=recipes&id=" .$id . "\">".$name."</a></td></tr>";
|
||||
}
|
||||
return $recipelist;
|
||||
}
|
||||
|
||||
//$site_name = $_SERVER['HTTP_HOST'];
|
||||
//$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
|
||||
$url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
|
||||
|
||||
if(!$_REQUEST['inserted'] == "true") $_SESSION['recipes'] = "";
|
||||
if ($_FILES['userfile']) {
|
||||
$file_type = $_FILES['userfile']['type'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_ext = strtolower(substr($file_name,strrpos($file_name,".")));
|
||||
$message = $_FILES['userfile']['tmp_name'];
|
||||
//File Size Check
|
||||
if ($_FILES['userfile']['size'] > $MAX_SIZE)
|
||||
$message = "The file size is over 2MB. Please adjust the size and try again.";
|
||||
//File Type/Extension Check
|
||||
else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS))
|
||||
$message = "Sorry, that file type is not allowed to be uploaded. Acceptable file type extensions are: .xml, .txt";
|
||||
else if(is_uploaded_file($_FILES['userfile']['tmp_name'])){
|
||||
$input = new InputBeerXML($_FILES['userfile']['tmp_name']);
|
||||
if ($_POST["insert_type"] == "recipes"){
|
||||
$insertedRecipes = $input->insertRecipes();
|
||||
$recipes = '';
|
||||
foreach($insertedRecipes as $id=>$name){
|
||||
$recipes .= "<tr><td>".$name." [<a href=\"index.php?action=edit&dbTable=recipes&id=".$id."\">Edit</a>]</td></tr>";
|
||||
}
|
||||
$message = count($insertedRecipes) . " ". $row_pref['menuRecipes']. " Inserted";
|
||||
} else if($_POST["insert_type"] == "brewBlog"){
|
||||
$insertedRecipes = $input->insertBlogs();
|
||||
$recipes = '';
|
||||
foreach($insertedRecipes as $id=>$name){
|
||||
$recipes .= "<tr><td>".$name." [<a href=\"index.php?action=edit&dbTable=brewing&id=" .$id . "\">Edit</a>]</td></tr>";
|
||||
}
|
||||
$message = count($insertedRecipes) . " " .$row_pref['menuBrewBlogs']. " Inserted";
|
||||
}
|
||||
$_SESSION['recipes'] = $recipes;
|
||||
}
|
||||
|
||||
print "<script>window.location.href='index.php?action=importXML§ion=".$section."&message=". htmlentities($message) . "&inserted=true'</script>";
|
||||
}
|
||||
else if (!$_FILES['userfile']) $message = "userfile check failed";
|
||||
else
|
||||
$message = "Invalid file type. Must be an .xml or .txt file.";
|
||||
|
||||
?>
|
||||
<div id="breadcrumbAdmin"><a href="index.php">Administration</a> > Import Beer XML to <?php echo $dbName; ?></div>
|
||||
<div id="subtitleAdmin">Import Beer XML to <?php echo $dbName; ?></div>
|
||||
<?php // $d = "02/28/2009"; echo datecharcheck($d); ?>
|
||||
<form name="upload" id="upload" ENCTYPE="multipart/form-data" method="post">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td colspan="2"><p>Please note that any mash profiles, water profiles, and equipment profiles <strong><em>will not be imported</em></strong>. After import, click <em>Edit</em><?php if ($dbTable == "brewing") { ?> to add mash, water, and equipment information<?php } ?> for each <?php echo $msgName; ?> listed to check values and customize further.</p></td>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Beer XML File:</td>
|
||||
<td class="data"><input name="userfile" type="file" class="texta" id="userfile" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Import Into:</td>
|
||||
<td class="data">
|
||||
<input name="insert_type" type="radio" class="radiobutton" value="recipes" <?php if ($dbTable == "recipes") echo "checked"; ?>><span class="data"><?php echo $row_pref['menuRecipes']; ?></span><br />
|
||||
<input name="insert_type" type="radio" class="radiobutton" value="brewBlog" <?php if ($dbTable == "brewing") echo "checked"; ?>><span class="data"><?php echo $row_pref['menuBrewBlogs']; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="data"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_upload_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Upload" class="radiobutton" value="Upload"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="error"><br><?=$_REQUEST[message]; ?><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php if ($dbTable == "default") { ?>
|
||||
<div id="headerContentAdmin">Imported Files</div>
|
||||
<table class="dataTable text_11">
|
||||
<?=$_SESSION['recipes']; ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div id="breadcrumbAdmin"><a href="index.php">Administration</a> > Import Beer XML File</div>
|
||||
<div id="subtitleAdmin">Import Beer XML File</div>
|
||||
<p>Your server's version of PHP does not support the BeerXML import feature. PHP version 5.x is required — this server is running PHP version <?php echo $phpVersion; ?>.</p>
|
||||
<br />
|
||||
<br />
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if ($phpVersion >= "5") {
|
||||
include ('../includes/beerXMLparser/input_beer_xml.inc.php');
|
||||
|
||||
//Mmaximum file size.
|
||||
$MAX_SIZE = 2000000;
|
||||
|
||||
//Allowable file Mime Types.
|
||||
$FILE_MIMES = array('image/jpeg','image/jpg','image/gif','image/png','application/msword');
|
||||
|
||||
//Allowable file ext. names.
|
||||
$FILE_EXTS = array('.xml','.txt');
|
||||
|
||||
//Allow file delete? no, if only allow upload only
|
||||
$DELETABLE = false;
|
||||
|
||||
$recipeList = "";
|
||||
function formatInsertedRecipes($recipes) {
|
||||
foreach($recipes as $id=>$name){
|
||||
$recipelist .= "<tr><td><a href=\"index.php?action=edit&dbTable=recipes&id=" .$id . "\">".$name."</a></td></tr>";
|
||||
}
|
||||
return $recipelist;
|
||||
}
|
||||
|
||||
//$site_name = $_SERVER['HTTP_HOST'];
|
||||
//$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
|
||||
$url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
|
||||
|
||||
if(!$_REQUEST['inserted'] == "true") $_SESSION['recipes'] = "";
|
||||
if ($_FILES['userfile']) {
|
||||
$file_type = $_FILES['userfile']['type'];
|
||||
$file_name = $_FILES['userfile']['name'];
|
||||
$file_ext = strtolower(substr($file_name,strrpos($file_name,".")));
|
||||
$message = $_FILES['userfile']['tmp_name'];
|
||||
//File Size Check
|
||||
if ($_FILES['userfile']['size'] > $MAX_SIZE)
|
||||
$message = "The file size is over 2MB. Please adjust the size and try again.";
|
||||
//File Type/Extension Check
|
||||
else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS))
|
||||
$message = "Sorry, that file type is not allowed to be uploaded. Acceptable file type extensions are: .xml, .txt";
|
||||
else if(is_uploaded_file($_FILES['userfile']['tmp_name'])){
|
||||
$input = new InputBeerXML($_FILES['userfile']['tmp_name']);
|
||||
if ($_POST["insert_type"] == "recipes"){
|
||||
$insertedRecipes = $input->insertRecipes();
|
||||
$recipes = '';
|
||||
foreach($insertedRecipes as $id=>$name){
|
||||
$recipes .= "<tr><td>".$name." [<a href=\"index.php?action=edit&dbTable=recipes&id=".$id."\">Edit</a>]</td></tr>";
|
||||
}
|
||||
$message = count($insertedRecipes) . " ". $row_pref['menuRecipes']. " Inserted";
|
||||
} else if($_POST["insert_type"] == "brewBlog"){
|
||||
$insertedRecipes = $input->insertBlogs();
|
||||
$recipes = '';
|
||||
foreach($insertedRecipes as $id=>$name){
|
||||
$recipes .= "<tr><td>".$name." [<a href=\"index.php?action=edit&dbTable=brewing&id=" .$id . "\">Edit</a>]</td></tr>";
|
||||
}
|
||||
$message = count($insertedRecipes) . " " .$row_pref['menuBrewBlogs']. " Inserted";
|
||||
}
|
||||
$_SESSION['recipes'] = $recipes;
|
||||
}
|
||||
|
||||
print "<script>window.location.href='index.php?action=importXML§ion=".$section."&message=". htmlentities($message) . "&inserted=true'</script>";
|
||||
}
|
||||
else if (!$_FILES['userfile']) $message = "userfile check failed";
|
||||
else
|
||||
$message = "Invalid file type. Must be an .xml or .txt file.";
|
||||
|
||||
?>
|
||||
<div id="breadcrumbAdmin"><a href="index.php">Administration</a> > Import Beer XML to <?php echo $dbName; ?></div>
|
||||
<div id="subtitleAdmin">Import Beer XML to <?php echo $dbName; ?></div>
|
||||
<?php // $d = "02/28/2009"; echo datecharcheck($d); ?>
|
||||
<form name="upload" id="upload" ENCTYPE="multipart/form-data" method="post">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td colspan="2"><p>Please note that any mash profiles, water profiles, and equipment profiles <strong><em>will not be imported</em></strong>. After import, click <em>Edit</em><?php if ($dbTable == "brewing") { ?> to add mash, water, and equipment information<?php } ?> for each <?php echo $msgName; ?> listed to check values and customize further.</p></td>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Beer XML File:</td>
|
||||
<td class="data"><input name="userfile" type="file" class="texta" id="userfile" size="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Import Into:</td>
|
||||
<td class="data">
|
||||
<input name="insert_type" type="radio" class="radiobutton" value="recipes" <?php if ($dbTable == "recipes") echo "checked"; ?>><span class="data"><?php echo $row_pref['menuRecipes']; ?></span><br />
|
||||
<input name="insert_type" type="radio" class="radiobutton" value="brewBlog" <?php if ($dbTable == "brewing") echo "checked"; ?>><span class="data"><?php echo $row_pref['menuBrewBlogs']; ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td class="data"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_upload_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Upload" class="radiobutton" value="Upload"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="error"><br><?=$_REQUEST[message]; ?><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php if ($dbTable == "default") { ?>
|
||||
<div class="headerContentAdmin">Imported Files</div>
|
||||
<table class="dataTable text_11">
|
||||
<?=$_SESSION['recipes']; ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div id="breadcrumbAdmin"><a href="index.php">Administration</a> > Import Beer XML File</div>
|
||||
<div id="subtitleAdmin">Import Beer XML File</div>
|
||||
<p>Your server's version of PHP does not support the BeerXML import feature. PHP version 5.x is required — this server is running PHP version <?php echo $phpVersion; ?>.</p>
|
||||
<br />
|
||||
<br />
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<td><div id="subtitleAdmin"><?php echo $page_title; ?></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin"><?php if ($assoc != "import") echo "Recalculated"; else echo "Calculated"; ?> <?php if ($source == "brewing") echo "BrewBlog "; ?>Recipe <?php if ($assoc == "import") echo "To Import"; ?></div>
|
||||
<div class="headerContentAdmin"><?php if ($assoc != "import") echo "Recalculated"; else echo "Calculated"; ?> <?php if ($source == "brewing") echo "BrewBlog "; ?>Recipe <?php if ($assoc == "import") echo "To Import"; ?></div>
|
||||
<form id="form4" action="<?php if ($assoc == "update") echo "process"; if ($assoc == "import") echo "index"; ?>.php?action=<?php if ($assoc == "update") echo "update"; if ($assoc == "import") echo "importCalc"; ?>&dbTable=<?php if ($assoc == "update") echo $source; if ($assoc == "import") echo $importDB; if ($assoc == "update") echo "&id=".$id; ?>" method="post" name="form4">
|
||||
<table class="dataTable">
|
||||
<?php if ($row_recipeRecalc['id'] != "") { ?>
|
||||
|
||||
@@ -33,7 +33,7 @@ if ($results != "verify") {
|
||||
<?php if ($results == "true") include ('lib/predicted.lib.php'); ?>
|
||||
<form id="form3" action="index.php?action=calculate&results=true&filter=<?php echo $filter; if ($source != "default") echo "&source=".$source; if ($id != "default") echo "&id=".$id; ?>" method="post" name="form3" onSubmit="return CheckRequiredFields()">
|
||||
<input type="hidden" name="brewBrewerID" value="<?php echo $filter; ?>">
|
||||
<div id="headerContentAdmin">General Information</div>
|
||||
<div class="headerContentAdmin">General Information</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Name:</td>
|
||||
@@ -68,7 +68,7 @@ if ($results != "verify") {
|
||||
<td class="data">%</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin">Malt Extracts</div>
|
||||
<div class="headerContentAdmin">Malt Extracts</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="5" class="dataListLeft"><span class="data_icon"><img src="<?php echo $imageSrc; ?>add.png" align="absmiddle" border="0" alt="Add Extracts?" title="Add Extracts?"></span> <a href="index.php?action=add&dbTable=extract">Add Extracts?</a></td>
|
||||
@@ -155,7 +155,7 @@ if ($results != "verify") {
|
||||
<?php if ((($source == "recipes") || ($source == "brewing")) && ($results == "false")) { ?>
|
||||
<div class="red"><em>**If any dropdown menu is blank, the recipe's original extract is not in the database. For caculations to function, please choose another from the list or <a href="index.php?action=add&dbTable=extract">add another to the database</a>.</em></div>
|
||||
<?php } ?>
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=grains&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Grains Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" border="0"></a></div>Grains</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=grains&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Grains Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" border="0"></a></div>Grains</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="5" class="dataListLeft"><span class="data_icon"><img src="<?php echo $imageSrc; ?>add.png" align="absmiddle" border="0" alt="Add Grains?" title="Add Grains?"></span> <a href="index.php?action=add&dbTable=malt">Add Grains?</a></td>
|
||||
@@ -397,7 +397,7 @@ if ($results != "verify") {
|
||||
<?php if ((($source == "recipes") || ($source == "brewing")) && ($results == "false")) { ?>
|
||||
<div class="red"><em>**If any dropdown menu is blank, the recipe's original grain is not in the database. For caculations to function, please choose another from the list or <a href="index.php?action=add&dbTable=malt">add another to the database</a>.</em></div>
|
||||
<?php } ?>
|
||||
<div id="headerContentAdmin">Adjuncts</div>
|
||||
<div class="headerContentAdmin">Adjuncts</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="5" class="dataListLeft"><span class="data_icon"><img src="<?php echo $imageSrc; ?>add.png" align="absmiddle" border="0" alt="Add Adjuncts?" title="Add Adjuncts?"></span> <a href="index.php?action=add&dbTable=adjuncts">Add Adjuncts?</a></td>
|
||||
@@ -523,7 +523,7 @@ if ($results != "verify") {
|
||||
<?php if ((($source == "recipes") || ($source == "brewing")) && ($results == "false")) { ?>
|
||||
<div class="red"><em>**If any dropdown menu is blank, the recipe's original adjunct is not in the database. For caculations to function, please choose another from the list or <a href="index.php?action=add&dbTable=adjuncts">add another to the database</a>.</em></div>
|
||||
<?php } ?>
|
||||
<div id="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=hops&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Hops Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" border="0"></a></div>Hops</div>
|
||||
<div class="headerContentAdmin"><div id="help"><a href="../sections/reference.inc.php?section=hops&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Hops Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" border="0"></a></div>Hops</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="11" class="dataListLeft"><span class="data_icon"><img src="<?php echo $imageSrc; ?>add.png" align="absmiddle" border="0" alt="Add Hops?" title="Add Hops?"></span> <a href="index.php?action=add&dbTable=hops">Add Hops?</a></td>
|
||||
@@ -854,7 +854,7 @@ if ($results == "verify") include ('lib/verify.lib.php');
|
||||
else { ?>
|
||||
<div id="breadcrumbWide"><a href="index.php">Administration</a> > <?php echo $page_title; ?></div>
|
||||
<div id="subtitleWide"><?php echo $page_title; ?></div>
|
||||
<div id="headerContentAdmin">Recalculated <php if ($source == "brewing") echo "BrewBlog "; ?>Recipe</div>
|
||||
<div class="headerContentAdmin">Recalculated <php if ($source == "brewing") echo "BrewBlog "; ?>Recipe</div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error">Sorry, you do not have sufficient privileges to perform this action.<br><br><br></td>
|
||||
|
||||
@@ -229,7 +229,7 @@ div.menu div.menuItemSep {
|
||||
/* ***************************** Theme-Specific Content Elements ***************************** */
|
||||
|
||||
|
||||
#dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
.dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
width: 100%;
|
||||
margin-left: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
@@ -294,7 +294,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
height: 20px;
|
||||
background: #efefef;
|
||||
padding: 5px 5px 5px 3px;
|
||||
@@ -306,7 +306,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
background: #efefef;
|
||||
|
||||
@@ -291,7 +291,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -305,7 +305,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -285,7 +285,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -299,7 +299,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -283,7 +283,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -297,7 +297,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -292,7 +292,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -306,7 +306,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -234,7 +234,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -249,7 +249,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -286,7 +286,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -301,7 +301,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -266,7 +266,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -281,7 +281,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -276,7 +276,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 682px;
|
||||
height: 20px;
|
||||
@@ -291,7 +291,7 @@ font-weight: bold;
|
||||
margin: 5px 5px 5px -2px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 935px;
|
||||
height: 20px;
|
||||
|
||||
@@ -233,7 +233,7 @@ text-align: center;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 489px;
|
||||
height: 20px;
|
||||
@@ -248,7 +248,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 740px;
|
||||
height: 20px;
|
||||
|
||||
@@ -245,7 +245,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
/*
|
||||
@@ -261,7 +261,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 738px;
|
||||
height: 20px;
|
||||
|
||||
@@ -256,7 +256,7 @@ margin-top: 5px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 682px;
|
||||
height: 20px;
|
||||
@@ -271,7 +271,7 @@ font-weight: bold;
|
||||
margin: 0px 5px 5px -2px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 940px;
|
||||
height: 20px;
|
||||
|
||||
@@ -243,7 +243,7 @@ margin-top: 5px;
|
||||
|
||||
/* ***************************** Header Elements ***************************** */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: 690px;
|
||||
height: 20px;
|
||||
@@ -256,7 +256,7 @@ font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: 940px;
|
||||
height: 20px;
|
||||
|
||||
@@ -122,7 +122,7 @@ margin-top: 2em;
|
||||
}
|
||||
|
||||
|
||||
#dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
.dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
margin-left: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -180,7 +180,7 @@ text-align: center;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: inherit;
|
||||
padding: .5em 0 .5em 0;
|
||||
@@ -191,7 +191,7 @@ font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
#headerContentAdmin {
|
||||
.headerContentAdmin {
|
||||
clear: left;
|
||||
width: inherit;
|
||||
padding: .5em 0 .5em 0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
body {
|
||||
margin:0;
|
||||
margin: 10px;
|
||||
padding:0;
|
||||
line-height: 1.25;
|
||||
color: #000000;
|
||||
@@ -35,7 +35,7 @@ font-weight: bold;
|
||||
|
||||
|
||||
#maincontainer {
|
||||
width: 665px;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
text-align: left;
|
||||
}
|
||||
@@ -67,7 +67,7 @@ margin-top: 25px;
|
||||
}
|
||||
|
||||
|
||||
#dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
.dataContainer { /* container for main content - holds procedure, recipe, mash, etc. */
|
||||
width: inherit;
|
||||
margin-left: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
@@ -105,19 +105,19 @@ font-size: 9px;
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
.headerContent {
|
||||
clear: left;
|
||||
width: inherit;
|
||||
height: 20px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
text-align: left;
|
||||
border-bottom: 1px dashed #000000;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
color: #000000;
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
font-weight: bold;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
|
||||
@@ -145,3 +145,6 @@ margin-bottom: 5px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.bdr1B_black {
|
||||
border-bottom: 1px solid #00000;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ padding: 0 15px 0 0;
|
||||
|
||||
/* ***************************** Data Display Elements ***************************** */
|
||||
|
||||
#dataContainer { /* container for main display of content - holds procedure, recipe, mash, etc. */
|
||||
.dataContainer { /* container for main display of content - holds procedure, recipe, mash, etc. */
|
||||
width: 100%;
|
||||
margin-left: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
@@ -360,7 +360,11 @@ display: none;
|
||||
}
|
||||
|
||||
.bdr1L_black {
|
||||
border-left: 1px solid #050117;
|
||||
border-left: 1px solid #000000;
|
||||
}
|
||||
|
||||
.bdr1B_black {
|
||||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
#quickEdit { padding: 5px; width: 229px; }
|
||||
|
||||
@@ -1,210 +0,0 @@
|
||||
<?php
|
||||
require_once ('Connections/config.php');
|
||||
require ('includes/authentication_nav.inc.php'); session_start();
|
||||
include ('includes/db_connect_universal.inc.php');
|
||||
include ('includes/db_connect_log.inc.php');
|
||||
include ('includes/check_mobile.inc.php');
|
||||
include ('includes/abv.inc.php');
|
||||
include ('includes/color.inc.php');
|
||||
include ('includes/plug-ins.inc.php');
|
||||
include ('includes/version.inc.php');
|
||||
$imageSrc = "images/";
|
||||
|
||||
// -----------------------------------------------------------------------------------------------
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="description" content="<?php echo $row_name['brewerLogName']; ?> is the homebrewing log and recipe collection of <?php if ($row_name['brewerFirstName'] != "") echo $row_name['brewerFirstName']; if ($row_name['brewerLastName'] != "") echo " ".$row_name['brewerLastName']; ?>. Powered by BrewBlogger <?php echo $version; ?>.">
|
||||
<meta name="robots" content="index,follow,noarchive" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<title><?php if ($row_pref['mode'] == "1") { if ($row_name['brewerFirstName'] != "") echo $row_name['brewerFirstName']." "; if ($row_name['brewerLastName'] != "") echo $row_name['brewerLastName']."'s "; echo "BrewBlog > ".$page_title.$page_title_extension; } if ($row_pref['mode'] == "2") echo $row_name['brewerFirstName']." ".$row_name['brewerLogName']." > ".$page_title.$page_title_extension; if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "recipeDetail")) echo " [".$row_log['brewStyle']."]"; ?></title>
|
||||
<?php
|
||||
if (checkmobile()) {
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"css/mobile.css\">";
|
||||
} else {
|
||||
echo "
|
||||
<script type=\"text/javascript\" src=\"js_includes/jquery.js\"></script>
|
||||
<script type=\"text/javascript\" src=\"js_includes/thickbox.js\"></script>
|
||||
<script type=\"text/javascript\" src=\"js_includes/jump_menu.js\"></script>
|
||||
<link rel=\"stylesheet\" href=\"css/thickbox.css\" type=\"text/css\" media=\"screen\" />
|
||||
";
|
||||
//echo "<link rel=\"stylesheet\" href=\"css/".$row_pref['theme']."\" type=\"text/css\">";
|
||||
echo "<link rel=\"stylesheet\" href=\"css/mobile.css\" type=\"text/css\">";
|
||||
}
|
||||
?>
|
||||
<link rel=\"stylesheet\" href=\"css/".$row_pref['theme']."\" type=\"text/css\">
|
||||
<?php if (checkmobile()) echo ""; else { if
|
||||
(($page == "reference") && ($section == "carbonation")) { ?>
|
||||
<script language="JavaScript" type="text/JavaScript">
|
||||
<!--
|
||||
function popUp(URL) {
|
||||
day = new Date();
|
||||
id = day.getTime();
|
||||
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600');");
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
<?php } } ?>
|
||||
</head>
|
||||
<body <?php if ($page == "login") echo "onLoad=\"self.focus();document.form1.loginUsername.focus()\""; if (($page == "reference") && ($section == "carbonation")) echo "onLoad=\"javascript:popUp('reference/carbonation.php')\""; ?>>
|
||||
<!-- Begin Main Wrapper -->
|
||||
<div id="maincontainer">
|
||||
<!-- Begin Header -->
|
||||
<div id="header">
|
||||
<div class="titleText"><?php if ($row_name['brewerFirstName'] != "") echo $row_name['brewerFirstName']; if (($row_pref['mode'] == "1") && ($row_name['brewerFirstName'] != "")) echo "'s"; echo " ".$row_name['brewerLogName']; ?></div><div class="quoteText"><?php echo $row_name['brewerTagline']; ?></div>
|
||||
</div>
|
||||
<div id="nav"><?php include ('includes/navigation.inc.php'); ?></div>
|
||||
<!-- End Header -->
|
||||
|
||||
<!-- Begin Content Wrapper -->
|
||||
|
||||
<div id="contentwrapper">
|
||||
<!-- Begin Left Section -->
|
||||
<div id="<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "recipeDetail") || ($page == "about") || ($page == "profile")) echo "breadcrumb"; else echo "breadcrumbWide"; ?>"><?php echo $breadcrumb; ?></div>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_pref['home'] == $page) && ($row_pref['allowNews'] == "Y") && ($totalRows_newsGen > 0)) include ('sections/news.inc.php'); ?>
|
||||
<div id="<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "recipeDetail") || ($page == "about") || ($page == "profile")) echo "subtitle"; else echo "subtitleWide"; ?>">
|
||||
<div id="icon"><img src="<?php echo $imageSrc.$icon.".png"; ?>" align="baseline"></div>
|
||||
<?php
|
||||
if ($page == "brewBlogCurrent") echo $row_log['brewName'];
|
||||
elseif ($page == "brewBlogDetail") { if ($row_pref['mode'] == "1") echo $row_log['brewName']; else echo "BrewBlog: ".$row_log['brewName']; }
|
||||
elseif ($page == "recipeDetail") { if ($row_pref['mode'] == "1") echo $row_log['brewName']; else echo "Recipe: ".$row_log['brewName']; }
|
||||
elseif ($page == "about") echo $page_title.$page_title_extension;
|
||||
elseif ($page == "login") echo $page_title.$page_title_extension;
|
||||
else echo $page_title;
|
||||
?>
|
||||
</div>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<div id="contentcolumn">
|
||||
<?php
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include ('sections/specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include ('sections/general.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { include ('sections/comments.inc.php'); }
|
||||
if ($row_pref['allowRecipe'] == "Y") { include ('sections/recipe.inc.php'); }
|
||||
if ($row_pref['allowMash'] == "Y") { include ('sections/mash.inc.php'); }
|
||||
if ($row_pref['allowWater'] == "Y") { include ('sections/water.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include ('sections/procedure.inc.php'); }
|
||||
if ($row_pref['allowSpecialProcedure'] == "Y") { include ('sections/special_procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include ('sections/fermentation.inc.php'); }
|
||||
if (checkmobile()) echo ""; else {
|
||||
if ($row_pref['allowReviews'] == "Y") { include ('sections/reviews.inc.php'); }
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php }
|
||||
if ($page == "brewBlogList") include('sections/brewblogList.inc.php');
|
||||
if ($page == "recipeList") include('sections/recipeList.inc.php');
|
||||
if ($page == "awardsList") include('sections/awardsList.inc.php');
|
||||
if ($page == "recipeDetail") { ?>
|
||||
<div id="contentcolumn">
|
||||
<?php // Include sections according to set preferences
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include ('sections/specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include ('sections/general.inc.php'); }
|
||||
if ($row_pref['allowRecipe'] == "Y") { include ('sections/recipe.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include ('sections/procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include ('sections/fermentation.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { include ('sections/notes.inc.php'); }
|
||||
?>
|
||||
</div><!-- End ContentColumn Div for Recipe Detail Page-->
|
||||
<?php }
|
||||
if ($page == "login") { ?>
|
||||
<div id="contentWide">
|
||||
<?php include ('sections/login.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if ($page == "tools") { ?>
|
||||
<div id="contentWide">
|
||||
<?php include ('sections/tools.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if ($page == "about") { ?>
|
||||
<div id="contentcolumn">
|
||||
<?php include ('sections/about.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if ($page == "reference") { ?>
|
||||
<div id="contentWide">
|
||||
<?php include ('sections/reference.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if (($row_pref['allowCalendar'] == "Y") && ($page == "calendar")) { ?>
|
||||
<div id="contentWide">
|
||||
<?php include ('sections/calendar.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if (($row_pref['allowCalendar'] == "N") && ($page == "calendar")) { ?>
|
||||
<div id="contentWide">
|
||||
<p class="error">This feature has been disabled by the site administrator.</p>
|
||||
</div>
|
||||
<?php }
|
||||
if (($row_pref['mode'] == "2") && ($page == "members")) { ?>
|
||||
<div id="contentWide">
|
||||
<?php include('sections/memberList.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if (($row_pref['mode'] == "2") && ($page == "profile")) { ?>
|
||||
<div id="contentcolumn">
|
||||
<?php include ('sections/profile.inc.php'); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if (($row_pref['mode'] == "2") && ($page == "news")) { ?>
|
||||
<div id="contentWide">
|
||||
<?php include ('sections/news.inc.php'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div> <!-- End ContentWrapper Div -->
|
||||
<!-- End Left Section -->
|
||||
|
||||
<!-- Begin Right Section -->
|
||||
<div id="rightcolumn">
|
||||
<?php
|
||||
if ($page == "about") { include ('sections/list.inc.php'); }
|
||||
if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) {
|
||||
if (checkmobile()) echo ""; else {
|
||||
if ($row_pref['allowPrintLog'] == "Y") { include ('sections/printLog.inc.php'); }
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include ('sections/printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include ('sections/printXML.inc.php'); }
|
||||
}
|
||||
if (($row_pref['mode'] == "2") && ($filter != "all")) echo "<br><span class=\"text_9\"> <img src = \"".$imageSrc."calendar_view_month.png\" alt=\"Calendar\" border=\"0\" align=\"absmiddle\"><a href=\"index.php?page=calendar&filter=".$filter."\"> View ".$row_user2['realFirstName']."'s Brewing Calendar</a></span>";
|
||||
{ include ('sections/quick_edit.inc.php'); }
|
||||
if (checkmobile()) echo ""; else {
|
||||
if ($row_pref['allowLabel'] == "Y") { include ('sections/label.inc.php'); }
|
||||
}
|
||||
if ($row_pref['allowAwards'] == "Y") { include ('sections/awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include ('sections/related.inc.php'); }
|
||||
include ('sections/list.inc.php');
|
||||
if ($row_pref['allowStatus'] == "Y") { include ('sections/status.inc.php'); }
|
||||
if ($row_pref['allowUpcoming'] == "Y") { include ('sections/upcoming.inc.php'); }
|
||||
}
|
||||
|
||||
if ($page == "recipeDetail") {
|
||||
// Include sidebar sections according to preferences
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include ('sections/printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include ('sections/printXML.inc.php'); }
|
||||
{ include ('sections/quick_edit.inc.php'); }
|
||||
if ($row_pref['allowAwards'] == "Y") { include ('sections/awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include ('sections/related.inc.php'); }
|
||||
if ($row_pref['allowList'] == "Y") { include ('sections/list.inc.php'); }
|
||||
|
||||
}
|
||||
|
||||
if ($page == "profile") include ('sections/userPic.inc.php');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!-- End Right Section -->
|
||||
|
||||
<!-- End Content Wrapper -->
|
||||
|
||||
<div id="footer"><?php include ('includes/footer.inc.php'); ?></div>
|
||||
<!-- End Footer -->
|
||||
|
||||
<!-- End Overall Wrapper -->
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
124
index.php
124
index.php
@@ -1,39 +1,49 @@
|
||||
<?php
|
||||
// Set up a root path constant
|
||||
define('ROOT', getcwd().'/');
|
||||
|
||||
// Define the config, includes, connections, and application folders
|
||||
define('CONFIG', ROOT.'config/');
|
||||
define('IMAGES', ROOT.'images/');
|
||||
define('INCLUDES', ROOT.'includes/');
|
||||
define('SECTIONS', ROOT.'sections/');
|
||||
define('CONNECTIONS', ROOT.'Connections/');
|
||||
define('LABELS', ROOT.'label_images/');
|
||||
|
||||
//image dir / SQL information and connect to MySQL server
|
||||
require_once ('Connections/config.php');
|
||||
require_once (CONNECTIONS.'config.php');
|
||||
|
||||
//choose SQL table and set up functions to user authentication and
|
||||
//navbar configuration for login/logout links
|
||||
require ('includes/authentication_nav.inc.php'); session_start();
|
||||
require (INCLUDES.'authentication_nav.inc.php'); session_start();
|
||||
|
||||
//override various default settings with GET parameters, if they exist
|
||||
include ('includes/url_variables.inc.php');
|
||||
include (INCLUDES.'url_variables.inc.php');
|
||||
|
||||
//set up brewers, themes, etc.
|
||||
include ('includes/db_connect_universal.inc.php');
|
||||
include (INCLUDES.'db_connect_universal.inc.php');
|
||||
|
||||
//set up recipes, brewlogs, etc.
|
||||
include ('includes/db_connect_log.inc.php');
|
||||
include (INCLUDES.'db_connect_log.inc.php');
|
||||
|
||||
//include function to check for mobile browsers
|
||||
include ('includes/check_mobile.inc.php');
|
||||
include (INCLUDES.'check_mobile.inc.php');
|
||||
|
||||
//do various abv calculations related to the currently viewed recipe (if any)
|
||||
include ('includes/abv.inc.php');
|
||||
include (INCLUDES.'abv.inc.php');
|
||||
|
||||
//include various conversions functions, date functions and truncate functions
|
||||
//plus additional libs for
|
||||
// titles.inc.php - set up the navigation?
|
||||
// messages.inc.php - tooltips and a few messages
|
||||
// scrubber.inc.php - a few arrays for character replacement
|
||||
include ('includes/plug-ins.inc.php');
|
||||
include (INCLUDES.'plug-ins.inc.php');
|
||||
|
||||
//figure out SRM and a hex value for displaying beer color
|
||||
include ('includes/color.inc.php');
|
||||
include (INCLUDES.'color.inc.php');
|
||||
|
||||
//determine if club edition or personal edition is in use
|
||||
include ('includes/version.inc.php');
|
||||
include (INCLUDES.'version.inc.php');
|
||||
|
||||
$imageSrc = "images/";
|
||||
|
||||
@@ -95,7 +105,7 @@ tb_show('Carbonation Chart','reference/carbonation.php?KeepThis=true&TB_iframe=t
|
||||
<div id="contentwrapper">
|
||||
<div id="<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "about") || ($page == "recipeDetail") || ($page == "profile")) echo "contentcolumn"; else echo "contentWide"; ?>">
|
||||
<div id="<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "recipeDetail") || ($page == "about") || ($page == "profile")) echo "breadcrumb"; else echo "breadcrumbWide"; ?>"><?php echo $breadcrumb; ?></div>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_pref['home'] == $page) && ($row_pref['allowNews'] == "Y") && ($totalRows_newsGen > 0)) include ('sections/news.inc.php'); ?>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_pref['home'] == $page) && ($row_pref['allowNews'] == "Y") && ($totalRows_newsGen > 0)) include (SECTIONS.'news.inc.php'); ?>
|
||||
<div id="<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "recipeDetail") || ($page == "about") || ($page == "profile")) echo "subtitle"; else echo "subtitleWide"; ?>">
|
||||
<div id="icon"><img src="<?php echo $imageSrc.$icon.".png"; ?>" align="bottom"></div>
|
||||
<?php
|
||||
@@ -109,38 +119,38 @@ tb_show('Carbonation Chart','reference/carbonation.php?KeepThis=true&TB_iframe=t
|
||||
</div> <!-- end subtitle or subtitleWide -->
|
||||
<?php
|
||||
if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) {
|
||||
if ($row_pref['allowSpecifics'] == "Y") include ('sections/specifics.inc.php');
|
||||
if ($row_pref['allowGeneral'] == "Y") include ('sections/general.inc.php');
|
||||
if ($row_pref['allowComments'] == "Y") include ('sections/comments.inc.php');
|
||||
if ($row_pref['allowRecipe'] == "Y") include ('sections/recipe.inc.php');
|
||||
include ('sections/equipment.inc.php');
|
||||
if ($row_pref['allowMash'] == "Y") include ('sections/mash.inc.php');
|
||||
if ($row_pref['allowWater'] == "Y") include ('sections/water.inc.php');
|
||||
if ($row_pref['allowProcedure'] == "Y") include ('sections/procedure.inc.php');
|
||||
if ($row_pref['allowSpecialProcedure'] == "Y") include ('sections/special_procedure.inc.php');
|
||||
if ($row_pref['allowFermentation'] == "Y") include ('sections/fermentation.inc.php');
|
||||
if (checkmobile()) echo ""; else { if ($row_pref['allowReviews'] == "Y") include ('sections/reviews.inc.php'); }
|
||||
if ($row_pref['allowSpecifics'] == "Y") include (SECTIONS.'recipe_specifics.inc.php');
|
||||
if ($row_pref['allowGeneral'] == "Y") include (SECTIONS.'recipe_general.inc.php');
|
||||
if ($row_pref['allowComments'] == "Y") include (SECTIONS.'recipe_comments.inc.php');
|
||||
if ($row_pref['allowRecipe'] == "Y") include (SECTIONS.'recipe.inc.php');
|
||||
include (SECTIONS.'recipe_equipment.inc.php');
|
||||
if ($row_pref['allowMash'] == "Y") include (SECTIONS.'recipe_mash.inc.php');
|
||||
if ($row_pref['allowWater'] == "Y") include (SECTIONS.'recipe_water.inc.php');
|
||||
if ($row_pref['allowProcedure'] == "Y") include (SECTIONS.'recipe_procedure.inc.php');
|
||||
if ($row_pref['allowSpecialProcedure'] == "Y") include (SECTIONS.'recipe_special_procedure.inc.php');
|
||||
if ($row_pref['allowFermentation'] == "Y") include (SECTIONS.'recipe_fermentation.inc.php');
|
||||
if (checkmobile()) echo ""; else { if ($row_pref['allowReviews'] == "Y") include (SECTIONS.'recipe_reviews.inc.php'); }
|
||||
}
|
||||
if ($page == "brewBlogList") include('sections/brewblogList.inc.php');
|
||||
if ($page == "recipeList") include('sections/recipeList.inc.php');
|
||||
if ($page == "awardsList") include('sections/awardsList.inc.php');
|
||||
if ($page == "login") include ('sections/login.inc.php');
|
||||
if ($page == "tools") include ('sections/tools.inc.php');
|
||||
if ($page == "about") include ('sections/about.inc.php');
|
||||
if ($page == "reference") include ('sections/reference.inc.php');
|
||||
if (($row_pref['allowCalendar'] == "Y") && ($page == "calendar")) include ('sections/calendar.inc.php');
|
||||
if ($page == "brewBlogList") include(SECTIONS.'brewblogList.inc.php');
|
||||
if ($page == "recipeList") include(SECTIONS.'recipeList.inc.php');
|
||||
if ($page == "awardsList") include(SECTIONS.'awardsList.inc.php');
|
||||
if ($page == "login") include (SECTIONS.'login.inc.php');
|
||||
if ($page == "tools") include (SECTIONS.'tools.inc.php');
|
||||
if ($page == "about") include (SECTIONS.'about.inc.php');
|
||||
if ($page == "reference") include (SECTIONS.'reference.inc.php');
|
||||
if (($row_pref['allowCalendar'] == "Y") && ($page == "calendar")) include (SECTIONS.'calendar.inc.php');
|
||||
if (($row_pref['allowCalendar'] == "N") && ($page == "calendar")) echo "<p class=\"error\">This feature has been disabled by the site administrator.</p>";
|
||||
if (($row_pref['mode'] == "2") && ($page == "members")) include('sections/memberList.inc.php');
|
||||
if (($row_pref['mode'] == "2") && ($page == "profile")) include ('sections/profile.inc.php');
|
||||
if (($row_pref['mode'] == "2") && ($page == "news")) include ('sections/news.inc.php');
|
||||
if (($row_pref['mode'] == "2") && ($page == "members")) include(SECTIONS.'memberList.inc.php');
|
||||
if (($row_pref['mode'] == "2") && ($page == "profile")) include (SECTIONS.'profile.inc.php');
|
||||
if (($row_pref['mode'] == "2") && ($page == "news")) include (SECTIONS.'news.inc.php');
|
||||
if ($page == "recipeDetail") {
|
||||
// Include sections according to set preferences
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include ('sections/specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include ('sections/general.inc.php'); }
|
||||
if ($row_pref['allowRecipe'] == "Y") { include ('sections/recipe.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include ('sections/procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include ('sections/fermentation.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { include ('sections/notes.inc.php'); }
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include (SECTIONS.'recipe_specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include (SECTIONS.'recipe_general.inc.php'); }
|
||||
if ($row_pref['allowRecipe'] == "Y") { include (SECTIONS.'recipe.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include (SECTIONS.'recipe_procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include (SECTIONS.'recipe_fermentation.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { include (SECTIONS.'recipe_notes.inc.php'); }
|
||||
}
|
||||
?>
|
||||
<!--<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lobortis pharetra elit non porta. Nullam vel ipsum turpis, quis volutpat odio. Nullam posuere fringilla lacus eget vulputate. Nullam at eros sit amet est iaculis egestas sit amet quis nunc. Sed pretium laoreet neque sed fringilla. Mauris rutrum vulputate velit, eu tincidunt orci rhoncus nec. Suspendisse adipiscing massa vitae purus egestas fermentum. Cras pulvinar, velit ac commodo posuere, dui felis aliquet tellus, quis pulvinar quam urna pellentesque justo. Aenean mattis tellus ipsum, venenatis vehicula diam. Curabitur quis ipsum ante, ullamcorper commodo nulla. Curabitur ultrices egestas libero a sagittis.</p>-->
|
||||
@@ -148,38 +158,38 @@ tb_show('Carbonation Chart','reference/carbonation.php?KeepThis=true&TB_iframe=t
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail") || ($page == "about") || ($page == "recipeDetail") || ($page == "profile")) { ?>
|
||||
<div id="rightcolumn">
|
||||
<?php
|
||||
if ($page == "about") { include ('sections/list.inc.php'); }
|
||||
if ($page == "about") { include (SECTIONS.'list.inc.php'); }
|
||||
if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) {
|
||||
if (checkmobile()) echo ""; else {
|
||||
// Include printing, BeerXML buttons according to preferences
|
||||
if ($row_pref['allowPrintLog'] == "Y") { include ('sections/printLog.inc.php'); }
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include ('sections/printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include ('sections/printXML.inc.php'); }
|
||||
if ($row_pref['allowPrintLog'] == "Y") { include (SECTIONS.'printLog.inc.php'); }
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include (SECTIONS.'printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include (SECTIONS.'printXML.inc.php'); }
|
||||
}
|
||||
if (($row_pref['mode'] == "2") && ($filter != "all")) echo "<div id=\"sidebarWrapper\"><span class=\"text_9\"><span class=\"data_icon\"><img src = \"".$imageSrc."calendar_view_month.png\" alt=\"Calendar\" border=\"0\" align=\"absmiddle\"></span><span class=\"data\"><a href=\"index.php?page=calendar&filter=".$filter."\">View ".$row_user2['realFirstName']."'s Brewing Calendar</a></span></span></div>";
|
||||
{ include ('sections/quick_edit.inc.php'); }
|
||||
{ include (SECTIONS.'quick_edit.inc.php'); }
|
||||
if (checkmobile()) echo ""; else {
|
||||
// Include sidebar sections according to preferences
|
||||
if ($row_pref['allowLabel'] == "Y") { include ('sections/label.inc.php'); }
|
||||
if ($row_pref['allowLabel'] == "Y") { include (SECTIONS.'label.inc.php'); }
|
||||
}
|
||||
if ($row_pref['allowAwards'] == "Y") { include ('sections/awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include ('sections/related.inc.php'); }
|
||||
include ('sections/list.inc.php');
|
||||
if ($row_pref['allowStatus'] == "Y") { include ('sections/status.inc.php'); }
|
||||
if ($row_pref['allowUpcoming'] == "Y") { include ('sections/upcoming.inc.php'); }
|
||||
if ($row_pref['allowAwards'] == "Y") { include (SECTIONS.'awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include (SECTIONS.'related.inc.php'); }
|
||||
include (SECTIONS.'list.inc.php');
|
||||
if ($row_pref['allowStatus'] == "Y") { include (SECTIONS.'status.inc.php'); }
|
||||
if ($row_pref['allowUpcoming'] == "Y") { include (SECTIONS.'upcoming.inc.php'); }
|
||||
}
|
||||
if ($page == "recipeDetail") {
|
||||
// Include sidebar sections according to preferences
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include ('sections/printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include ('sections/printXML.inc.php'); }
|
||||
{ include ('sections/quick_edit.inc.php'); }
|
||||
if ($row_pref['allowAwards'] == "Y") { include ('sections/awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include ('sections/related.inc.php'); }
|
||||
if ($row_pref['allowList'] == "Y") { include ('sections/list.inc.php'); }
|
||||
if ($row_pref['allowPrintRecipe'] == "Y") { include (SECTIONS.'printRecipe.inc.php'); echo " "; }
|
||||
if ($row_pref['allowPrintXML'] == "Y") { include (SECTIONS.'printXML.inc.php'); }
|
||||
{ include (SECTIONS.'quick_edit.inc.php'); }
|
||||
if ($row_pref['allowAwards'] == "Y") { include (SECTIONS.'awards.inc.php'); }
|
||||
if ($row_pref['allowRelated'] == "Y") { include (SECTIONS.'related.inc.php'); }
|
||||
if ($row_pref['allowList'] == "Y") { include (SECTIONS.'list.inc.php'); }
|
||||
|
||||
}
|
||||
|
||||
if ($page == "profile") include ('sections/userPic.inc.php');
|
||||
if ($page == "profile") include (SECTIONS.'userPic.inc.php');
|
||||
?>
|
||||
</div><!-- End rightcolumn -->
|
||||
<?php } ?>
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft"><?php if ($row_pref['mode'] == "2") echo "Club "; ?>Name:</td>
|
||||
<td valign="top" class="data"><?php if ($row_name['brewerPrefix'] !="") { echo $row_name['brewerPrefix']." "; } if ($row_name['brewerFirstName'] !="") { echo $row_name['brewerFirstName']; } if ($row_name['brewerMiddleName'] !="") { echo " ".$row_name['brewerMiddleName']; } if ($row_name['brewerLastName'] !="") { echo " ".$row_name['brewerLastName']; } if ($row_name['brewerSuffix'] !="") { echo ", ".$row_name['brewerSuffix']; } ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if ($row_name['brewerAge'] !="") {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Age:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerAge']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($row_name['brewerCity'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Hometown:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerCity']; if ($row_name['brewerState'] !="") { echo ", ".$row_name['brewerState']; } if ($row_name['brewerCountry'] !="") { echo " ".$row_name['brewerCountry']; } ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if ($row_name['brewerClubs'] != "" ) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Clubs:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerClubs']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerFavStyles'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Fav Styles:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerFavStyles']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerPrefMethod'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Method:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerPrefMethod']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($row_name['brewerAbout'] != "" ) { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Info:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerAbout']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerOther'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Other Info:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerOther']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft"><?php if ($row_pref['mode'] == "2") echo "Club "; ?>Name:</td>
|
||||
<td valign="top" class="data"><?php if ($row_name['brewerPrefix'] !="") { echo $row_name['brewerPrefix']." "; } if ($row_name['brewerFirstName'] !="") { echo $row_name['brewerFirstName']; } if ($row_name['brewerMiddleName'] !="") { echo " ".$row_name['brewerMiddleName']; } if ($row_name['brewerLastName'] !="") { echo " ".$row_name['brewerLastName']; } if ($row_name['brewerSuffix'] !="") { echo ", ".$row_name['brewerSuffix']; } ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if ($row_name['brewerAge'] !="") {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Age:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerAge']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($row_name['brewerCity'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Hometown:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerCity']; if ($row_name['brewerState'] !="") { echo ", ".$row_name['brewerState']; } if ($row_name['brewerCountry'] !="") { echo " ".$row_name['brewerCountry']; } ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if ($row_name['brewerClubs'] != "" ) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Clubs:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerClubs']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerFavStyles'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Fav Styles:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerFavStyles']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerPrefMethod'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Method:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerPrefMethod']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($row_name['brewerAbout'] != "" ) { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Info:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerAbout']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_name['brewerOther'] !="") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Other Info:</td>
|
||||
<td valign="top" class="data"><?php echo $row_name['brewerOther']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
@@ -86,13 +86,13 @@
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="dataList">
|
||||
<?php if ($row_log['brewLovibond'] != "") { ?>
|
||||
<?php include ('includes/color.inc.php'); ?>
|
||||
<?php include ('includes/color_display.inc.php'); ?>
|
||||
<?php include (INCLUDES.'color.inc.php'); ?>
|
||||
<?php include (INCLUDES.'color_display.inc.php'); ?>
|
||||
<?php } else echo " "; ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="dataList"><?php if ($row_log['brewBitterness'] != "") { echo round ($row_log['brewBitterness'], 1); } else echo " " ?></td>
|
||||
<td class="dataList"><?php if (($row_log['brewOG'] != "") && ($row_log['brewFG'] != "")) { include ('includes/abv.inc.php'); echo round ($abv, 1)."%"; } else echo " "; ?></td>
|
||||
<td class="dataList"><?php if (($row_log['brewOG'] != "") && ($row_log['brewFG'] != "")) { include (INCLUDES.'abv.inc.php'); echo round ($abv, 1)."%"; } else echo " "; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=<?php echo $page; ?>&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&filter=<?php echo $row_user2['user_name']; ?>&view=limited"><?php echo $row_user2['realFirstName']." ".$row_user2['realLastName']; ?></a></td><?php } ?>
|
||||
<td class="dataList center"><?php if ($totalRows_awards2 > 0) echo $totalRows_awards2; else echo " "; ?></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,75 +1,75 @@
|
||||
<div id="headerContentAdmin">Featured <?php echo $dbName; ?></div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if (isset($_SESSION["loginUsername"])) echo "<td class=\"dataHeadingList\" width=\"1%\"><img src=\"".$imageSrc."pencil.png\" border=\"0\" align=\"absmiddle\"></td>"; ?>
|
||||
<?php if (!checkmobile()) { ?><td class="dataHeadingList" width="1%">XML</td><?php } ?>
|
||||
<td class="dataHeadingList" width="25%"><?php echo $dbName; ?> <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php if ($page == "brewBlogList") { ?><td class="dataHeadingList" width="10%">Date <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td><?php } ?>
|
||||
|
||||
<td class="dataHeadingList" width="25%">Style <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="10%">Method <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="10%"><?php if ($row_pref['measColor'] == "EBC") echo "EBC"; else echo "SRM"; ?>/<?php if ($row_pref['measColor'] == "EBC") echo "SRM"; else echo "EBC";?> <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="5%">IBU <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="5%">ABV <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?>
|
||||
<td class="dataHeadingList">Contributor <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php } ?>
|
||||
<td class="dataHeadingList center" width="1%"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" border="0" alt="Awards/Competition Entires" align="baseline"></td>
|
||||
</tr>
|
||||
<?php do { ?>
|
||||
<?php
|
||||
// Get brew style information for all listed styles
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_styles = sprintf("SELECT * FROM styles WHERE brewStyle='%s'", $row_featured['brewStyle']);
|
||||
$styles = mysql_query($query_styles, $brewing) or die(mysql_error());
|
||||
$row_styles = mysql_fetch_assoc($styles);
|
||||
$totalRows_styles = mysql_num_rows($styles);
|
||||
|
||||
// Get real user names
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_user2 = sprintf("SELECT * FROM users WHERE user_name = '%s'", $row_featured['brewBrewerID']);
|
||||
$user2 = mysql_query($query_user2, $brewing) or die(mysql_error());
|
||||
$row_user2 = mysql_fetch_assoc($user2);
|
||||
$totalRows_user2 = mysql_num_rows($user2);
|
||||
|
||||
// Awards
|
||||
$awardNewID = "b".$row_featured['id'];
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_awards2 = sprintf("SELECT * FROM awards WHERE awardBrewID='%s'", $awardNewID);
|
||||
$awards2 = mysql_query($query_awards2, $brewing) or die(mysql_error());
|
||||
$row_awards2 = mysql_fetch_assoc($awards2);
|
||||
$totalRows_awards2 = mysql_num_rows($awards2);
|
||||
?>
|
||||
<tr <?php echo "style=\"background-color:$color\""; ?>>
|
||||
<?php if (isset($_SESSION["loginUsername"])) { if (($row_user['userLevel'] == "1") || ($row_featured['brewBrewerID'] == $loginUsername)) echo "<td class=\"dataList\"><a href=\"admin/index.php?action=edit&dbTable=".$dbTable."&id=".$row_featured['id']."\"><img src=\"".$imageSrc."pencil.png\" alt=\"Edit ".$row_featured['brewName']."\" title=\"Edit ".$row_featured['brewName']."\" border=\"0\" align=\"absmiddle\"></a></td>"; else echo "<td> </td>"; } ?>
|
||||
<?php if (!checkmobile()) { ?><td class="dataList"><a href="#" onClick="window.open('includes/output_beer_xml.inc.php?id=<?php echo $row_featured['id']; ?>&source=<?php echo $source; ?>&brewStyle=<?php echo $row_featured['brewStyle']; ?>','','height=1,width=1, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc; ?>page_white_code.png" title="Download BeerXML" align="absmiddle" border="0" /></a><?php } ?>
|
||||
<td class="dataList"><a href="index.php?page=<?php echo $destination; ?>&filter=<?php echo $row_featured['brewBrewerID']; ?>&id=<?php echo $row_featured['id']; ?>"><?php echo $row_featured['brewName']; ?></a></td>
|
||||
<?php if ($page == "brewBlogList") { ?><td class="dataList" nowrap="nowrap"><?php $date = $row_featured['brewDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td><?php } ?>
|
||||
<td class="dataList">
|
||||
<div id="moreInfo"><?php if (($totalRows_styles > 0) && (!checkmobile())) { ?><a href="#"><?php } echo $row_featured['brewStyle']; if (($totalRows_styles > 0) && (!checkmobile())) { ?>
|
||||
<span>
|
||||
<div id="wideWrapper">
|
||||
<?php include ('reference/styles.inc.php'); ?>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="dataList"><?php if ($row_featured['brewMethod'] != "") { echo $row_featured['brewMethod']; } else echo " " ?></td>
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="dataList">
|
||||
<?php if ($row_featured['brewLovibond'] != "") { ?>
|
||||
<?php include ('includes/color.inc.php'); ?>
|
||||
<?php include ('includes/color_display_featured.inc.php'); ?>
|
||||
<?php } else echo " "; ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="dataList"><?php if ($row_featured['brewBitterness'] != "") { echo round ($row_featured['brewBitterness'], 1); } else echo " " ?></td>
|
||||
<td class="dataList"><?php if (($row_featured['brewOG'] != "") && ($row_featured['brewFG'] != "")) { include ('includes/abv.inc.php'); echo round ($abv_featured, 1)."%"; } else echo " "; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=brewBlogList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&filter=<?php echo $row_user2['user_name']; ?>&view=limited"><?php echo $row_user2['realFirstName']." ".$row_user2['realLastName']; ?></a></td><?php } ?>
|
||||
<td class="dataList center"><?php if ($totalRows_awards2 > 0) echo $totalRows_awards2; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_featured = mysql_fetch_assoc($featured)); ?>
|
||||
<div id="headerContentAdmin">Featured <?php echo $dbName; ?></div>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if (isset($_SESSION["loginUsername"])) echo "<td class=\"dataHeadingList\" width=\"1%\"><img src=\"".$imageSrc."pencil.png\" border=\"0\" align=\"absmiddle\"></td>"; ?>
|
||||
<?php if (!checkmobile()) { ?><td class="dataHeadingList" width="1%">XML</td><?php } ?>
|
||||
<td class="dataHeadingList" width="25%"><?php echo $dbName; ?> <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php if ($page == "brewBlogList") { ?><td class="dataHeadingList" width="10%">Date <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td><?php } ?>
|
||||
|
||||
<td class="dataHeadingList" width="25%">Style <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="10%">Method <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="10%"><?php if ($row_pref['measColor'] == "EBC") echo "EBC"; else echo "SRM"; ?>/<?php if ($row_pref['measColor'] == "EBC") echo "SRM"; else echo "EBC";?> <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="5%">IBU <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<td class="dataHeadingList" width="5%">ABV <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?>
|
||||
<td class="dataHeadingList">Contributor <img src="<?php echo $imageSrc; ?>spacer.gif" border="0" width="16" height="5"></td>
|
||||
<?php } ?>
|
||||
<td class="dataHeadingList center" width="1%"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" border="0" alt="Awards/Competition Entires" align="baseline"></td>
|
||||
</tr>
|
||||
<?php do { ?>
|
||||
<?php
|
||||
// Get brew style information for all listed styles
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_styles = sprintf("SELECT * FROM styles WHERE brewStyle='%s'", $row_featured['brewStyle']);
|
||||
$styles = mysql_query($query_styles, $brewing) or die(mysql_error());
|
||||
$row_styles = mysql_fetch_assoc($styles);
|
||||
$totalRows_styles = mysql_num_rows($styles);
|
||||
|
||||
// Get real user names
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_user2 = sprintf("SELECT * FROM users WHERE user_name = '%s'", $row_featured['brewBrewerID']);
|
||||
$user2 = mysql_query($query_user2, $brewing) or die(mysql_error());
|
||||
$row_user2 = mysql_fetch_assoc($user2);
|
||||
$totalRows_user2 = mysql_num_rows($user2);
|
||||
|
||||
// Awards
|
||||
$awardNewID = "b".$row_featured['id'];
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_awards2 = sprintf("SELECT * FROM awards WHERE awardBrewID='%s'", $awardNewID);
|
||||
$awards2 = mysql_query($query_awards2, $brewing) or die(mysql_error());
|
||||
$row_awards2 = mysql_fetch_assoc($awards2);
|
||||
$totalRows_awards2 = mysql_num_rows($awards2);
|
||||
?>
|
||||
<tr <?php echo "style=\"background-color:$color\""; ?>>
|
||||
<?php if (isset($_SESSION["loginUsername"])) { if (($row_user['userLevel'] == "1") || ($row_featured['brewBrewerID'] == $loginUsername)) echo "<td class=\"dataList\"><a href=\"admin/index.php?action=edit&dbTable=".$dbTable."&id=".$row_featured['id']."\"><img src=\"".$imageSrc."pencil.png\" alt=\"Edit ".$row_featured['brewName']."\" title=\"Edit ".$row_featured['brewName']."\" border=\"0\" align=\"absmiddle\"></a></td>"; else echo "<td> </td>"; } ?>
|
||||
<?php if (!checkmobile()) { ?><td class="dataList"><a href="#" onClick="window.open('includes/output_beer_xml.inc.php?id=<?php echo $row_featured['id']; ?>&source=<?php echo $source; ?>&brewStyle=<?php echo $row_featured['brewStyle']; ?>','','height=1,width=1, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc; ?>page_white_code.png" title="Download BeerXML" align="absmiddle" border="0" /></a><?php } ?>
|
||||
<td class="dataList"><a href="index.php?page=<?php echo $destination; ?>&filter=<?php echo $row_featured['brewBrewerID']; ?>&id=<?php echo $row_featured['id']; ?>"><?php echo $row_featured['brewName']; ?></a></td>
|
||||
<?php if ($page == "brewBlogList") { ?><td class="dataList" nowrap="nowrap"><?php $date = $row_featured['brewDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td><?php } ?>
|
||||
<td class="dataList">
|
||||
<div id="moreInfo"><?php if (($totalRows_styles > 0) && (!checkmobile())) { ?><a href="#"><?php } echo $row_featured['brewStyle']; if (($totalRows_styles > 0) && (!checkmobile())) { ?>
|
||||
<span>
|
||||
<div id="wideWrapper">
|
||||
<?php include ('reference/styles.inc.php'); ?>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="dataList"><?php if ($row_featured['brewMethod'] != "") { echo $row_featured['brewMethod']; } else echo " " ?></td>
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="dataList">
|
||||
<?php if ($row_featured['brewLovibond'] != "") { ?>
|
||||
<?php include (INCLUDES.'color.inc.php'); ?>
|
||||
<?php include (INCLUDES.'color_display_featured.inc.php'); ?>
|
||||
<?php } else echo " "; ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="dataList"><?php if ($row_featured['brewBitterness'] != "") { echo round ($row_featured['brewBitterness'], 1); } else echo " " ?></td>
|
||||
<td class="dataList"><?php if (($row_featured['brewOG'] != "") && ($row_featured['brewFG'] != "")) { include (INCLUDES.'abv.inc.php'); echo round ($abv_featured, 1)."%"; } else echo " "; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=brewBlogList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&filter=<?php echo $row_user2['user_name']; ?>&view=limited"><?php echo $row_user2['realFirstName']." ".$row_user2['realLastName']; ?></a></td><?php } ?>
|
||||
<td class="dataList center"><?php if ($totalRows_awards2 > 0) echo $totalRows_awards2; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_featured = mysql_fetch_assoc($featured)); ?>
|
||||
</table>
|
||||
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
require_once('../Connections/config.php');
|
||||
include ('../includes/url_variables.inc.php');
|
||||
include ('../includes/db_connect_log.inc.php');
|
||||
require ('../Connections/bootstrap.php');
|
||||
require_once(CONNECTIONS.'config.php');
|
||||
include (INCLUDES.'url_variables.inc.php');
|
||||
include (INCLUDES.'db_connect_log.inc.php');
|
||||
$page = "logPrint";
|
||||
if (isset($_GET['page'])) {
|
||||
$page = (get_magic_quotes_gpc()) ? $_GET['page'] : addslashes($_GET['page']);
|
||||
@@ -20,12 +21,12 @@ $style = mysql_query($query_style, $brewing) or die(mysql_error());
|
||||
$row_style = mysql_fetch_assoc($style);
|
||||
$totalRows_style = mysql_num_rows($style);
|
||||
|
||||
include ('../includes/db_connect_universal.inc.php');
|
||||
include ('../includes/abv.inc.php');
|
||||
include ('../includes/color.inc.php');
|
||||
include ('../includes/check_mobile.inc.php');
|
||||
include ('../includes/plug-ins.inc.php');
|
||||
include ('../includes/version.inc.php');
|
||||
include (INCLUDES.INCLUDES.'db_connect_universal.inc.php');
|
||||
include (INCLUDES.INCLUDES.'abv.inc.php');
|
||||
include (INCLUDES.INCLUDES.'color.inc.php');
|
||||
include (INCLUDES.INCLUDES.'check_mobile.inc.php');
|
||||
include (INCLUDES.INCLUDES.'plug-ins.inc.php');
|
||||
include (INCLUDES.INCLUDES.'version.inc.php');
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
@@ -57,15 +58,15 @@ include ('../includes/version.inc.php');
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include ('specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include ('general.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { if ($page == "logPrint") include ('comments.inc.php'); if ($page == "recipePrint") include ('notes.inc.php'); }
|
||||
if ($row_pref['allowSpecifics'] == "Y") { include ('recipe_specifics.inc.php'); }
|
||||
if ($row_pref['allowGeneral'] == "Y") { include ('recipe_general.inc.php'); }
|
||||
if ($row_pref['allowComments'] == "Y") { if ($page == "logPrint") include ('recipe_comments.inc.php'); if ($page == "recipePrint") include ('recipe_notes.inc.php'); }
|
||||
if ($row_pref['allowRecipe'] == "Y") { include ('recipe.inc.php'); }
|
||||
if ($row_pref['allowMash'] == "Y") { include ('mash.inc.php'); }
|
||||
if (($page == "logPrint") && ($row_pref['allowWater'] == "Y")) { include ('water.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include ('procedure.inc.php'); }
|
||||
if (($page == "logPrint") && ($row_pref['allowSpecialProcedure'] == "Y")) { include ('special_procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include ('fermentation.inc.php'); }
|
||||
if ($row_pref['allowMash'] == "Y") { include ('recipe_mash.inc.php'); }
|
||||
if (($page == "logPrint") && ($row_pref['allowWater'] == "Y")) { include ('recipe_water.inc.php'); }
|
||||
if ($row_pref['allowProcedure'] == "Y") { include ('recipe_procedure.inc.php'); }
|
||||
if (($page == "logPrint") && ($row_pref['allowSpecialProcedure'] == "Y")) { include ('recipe_special_procedure.inc.php'); }
|
||||
if ($row_pref['allowFermentation'] == "Y") { include ('recipe_fermentation.inc.php'); }
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php if ($printBrowser == "IE") { ?>
|
||||
<a href="#" onClick="window.open('sections/print.inc.php?page=logPrint&source=log&dbTable=brewing&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_log_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Log"></a>
|
||||
<?php } else { ?>
|
||||
<a href="sections/print.inc.php?page=logPrint&source=log&dbTable=brewing&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_log_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Log"></a>
|
||||
<?php if ($printBrowser == "IE") { ?>
|
||||
<a href="#" onClick="window.open(SECTIONS.'print.inc.php?page=logPrint&source=log&dbTable=brewing&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_log_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Log"></a>
|
||||
<?php } else { ?>
|
||||
<a href="print.php?page=logPrint&source=log&dbTable=brewing&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_log_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Log"></a>
|
||||
<?php } ?>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php if ($printBrowser == "IE") { ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="#" onClick="window.open('sections/print.inc.php?page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="#" onClick="window.open('sections/print.inc.php?page=recipePrint&source=recipe&dbTable=recipes&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="sections/print.inc.php?page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="sections/print.inc.php?page=recipePrint&source=recipe&dbTable=recipes&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php if ($printBrowser == "IE") { ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="#" onClick="window.open(SECTIONS.'print.inc.php?page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="#" onClick="window.open(SECTIONS.'print.inc.php?page=recipePrint&source=recipe&dbTable=recipes&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>','','height=600,width=800,toolbar=no,resizable=yes,scrollbars=yes'); return false;" title="Print <?php echo $row_log['brewName']; ?>"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="print.php?page=recipePrint&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="print.php?page=recipePrint&source=recipe&dbTable=recipes&brewStyle=<?php echo $row_log['brewStyle']; if ($action == "scale") echo "&action=scale&amt=".$amt; ?>&id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=700" title="Print <?php echo $row_log['brewName']; ?>" class="thickbox"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_print_recipe_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Print Recipe"></a><?php } ?>
|
||||
<?php } // end if $printBrowser = "IE" ?>
|
||||
@@ -1,2 +1,2 @@
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="#" onclick="window.open('includes/output_beer_xml.inc.php?id=<?php echo $row_log['id']; ?>&source=brewLog&brewStyle=<?php echo $row_log['brewStyle']; ?>','','height=5,width=5, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_beer_xml_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Output to Beer XML"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="#" onclick="window.open('includes/output_beer_xml.inc.php?id=<?php echo $row_log['id']; ?>&source=recipe&brewStyle=<?php echo $row_log['brewStyle']; ?>','','height=5,width=5, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_beer_xml_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Output to Beer XML"></a><?php } ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?><a href="#" onclick="window.open(INCLUDES.'output_beer_xml.inc.php?id=<?php echo $row_log['id']; ?>&source=brewLog&brewStyle=<?php echo $row_log['brewStyle']; ?>','','height=5,width=5, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_beer_xml_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Output to Beer XML"></a><?php } ?>
|
||||
<?php if ($page == "recipeDetail") { ?><a href="#" onclick="window.open(INCLUDES.'output_beer_xml.inc.php?id=<?php echo $row_log['id']; ?>&source=recipe&brewStyle=<?php echo $row_log['brewStyle']; ?>','','height=5,width=5, scrollbars=no, toolbar=no, resizable==no, menubar=no'); return false;"><img src="<?php echo $imageSrc. $row_colorChoose['themeName']; ?>/button_beer_xml_<?php echo $row_colorChoose['themeName']; ?>.png" border="0" alt="Output to Beer XML"></a><?php } ?>
|
||||
|
||||
@@ -1,102 +1,102 @@
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_count1 = sprintf("SELECT * FROM brewing WHERE brewBrewerID = '%s'", $row_members['user_name']);
|
||||
$count1 = mysql_query($query_count1, $brewing) or die(mysql_error());
|
||||
$row_count1 = mysql_fetch_assoc($count1);
|
||||
$totalRows_count1 = mysql_num_rows($count1);
|
||||
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_count2 = sprintf("SELECT * FROM recipes WHERE brewBrewerID = '%s'", $row_members['user_name']);
|
||||
$count2 = mysql_query($query_count2, $brewing) or die(mysql_error());
|
||||
$row_count2 = mysql_fetch_assoc($count2);
|
||||
$totalRows_count2 = mysql_num_rows($count2);
|
||||
|
||||
?>
|
||||
|
||||
<div id="dataContainer">
|
||||
<table>
|
||||
<?php if ($totalRows_count1 > 0) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>book.png"></td>
|
||||
<td class="data"><a href="index.php?page=brewBlogList&filter=<?php echo $filter; ?>&sort=brewDate&dir=DESC">View <?php echo $row_members['realFirstName']; ?>'s <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($totalRows_count2 > 0) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>script.png"></td>
|
||||
<td class="data"><a href="index.php?page=recipeList&filter=<?php echo $filter; ?>">View <?php echo $row_members['realFirstName']; ?>'s <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_members['userInfoPrivate'] == "Y") { ?>
|
||||
<?php if ($row_members['userBrewingSince'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Brewing Since:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userBrewingSince']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userPosition'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Current Club Position:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userPosition']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
if ($row_members['userPastPosition'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Past Club Positions:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userPastPosition']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userOccupation'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Occupation:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userOccupation']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userHometown'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Hometown:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userHometown']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavQuote'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Quote:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavQuote']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavStyles'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Styles:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavStyles']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavCommercial'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Commercial Brew:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavCommercial']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if (($row_members['userWebsiteName'] != "") && ($row_members['userWebsiteURL'] != "")) { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Personal Website:</td>
|
||||
<td valign="top" class="data"><?php echo "<a href=\"".$row_members['userWebsiteURL']."\" target=\"_blank\">".$row_members['userWebsiteName']."</a>"; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userProfile'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Profile:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userProfile']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td valign="top" class="error"><?php echo $row_members['realFirstName']." ".$row_members['realLastName']; ?>'s profile is not available.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<br><br><br><br>
|
||||
</div>
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_count1 = sprintf("SELECT * FROM brewing WHERE brewBrewerID = '%s'", $row_members['user_name']);
|
||||
$count1 = mysql_query($query_count1, $brewing) or die(mysql_error());
|
||||
$row_count1 = mysql_fetch_assoc($count1);
|
||||
$totalRows_count1 = mysql_num_rows($count1);
|
||||
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_count2 = sprintf("SELECT * FROM recipes WHERE brewBrewerID = '%s'", $row_members['user_name']);
|
||||
$count2 = mysql_query($query_count2, $brewing) or die(mysql_error());
|
||||
$row_count2 = mysql_fetch_assoc($count2);
|
||||
$totalRows_count2 = mysql_num_rows($count2);
|
||||
|
||||
?>
|
||||
|
||||
<div class="dataContainer">
|
||||
<table>
|
||||
<?php if ($totalRows_count1 > 0) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>book.png"></td>
|
||||
<td class="data"><a href="index.php?page=brewBlogList&filter=<?php echo $filter; ?>&sort=brewDate&dir=DESC">View <?php echo $row_members['realFirstName']; ?>'s <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($totalRows_count2 > 0) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>script.png"></td>
|
||||
<td class="data"><a href="index.php?page=recipeList&filter=<?php echo $filter; ?>">View <?php echo $row_members['realFirstName']; ?>'s <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_members['userInfoPrivate'] == "Y") { ?>
|
||||
<?php if ($row_members['userBrewingSince'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Brewing Since:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userBrewingSince']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userPosition'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Current Club Position:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userPosition']; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
if ($row_members['userPastPosition'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Past Club Positions:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userPastPosition']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userOccupation'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Occupation:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userOccupation']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userHometown'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Hometown:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userHometown']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavQuote'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Quote:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavQuote']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavStyles'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Styles:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavStyles']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userFavCommercial'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Favorite Commercial Brew:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userFavCommercial']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if (($row_members['userWebsiteName'] != "") && ($row_members['userWebsiteURL'] != "")) { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Personal Website:</td>
|
||||
<td valign="top" class="data"><?php echo "<a href=\"".$row_members['userWebsiteURL']."\" target=\"_blank\">".$row_members['userWebsiteName']."</a>"; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_members['userProfile'] != "") { ?>
|
||||
<tr>
|
||||
<td valign="top" class="dataLabelLeft">Profile:</td>
|
||||
<td valign="top" class="data"><?php echo $row_members['userProfile']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td valign="top" class="error"><?php echo $row_members['realFirstName']." ".$row_members['realLastName']; ?>'s profile is not available.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<br><br><br><br>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -84,13 +84,13 @@
|
||||
<?php if (!checkmobile()) { ?>
|
||||
<td class="dataList">
|
||||
<?php if ($row_recipeList['brewLovibond'] != "") { ?>
|
||||
<?php include ('includes/color.inc.php'); ?>
|
||||
<?php include ('includes/color_display.inc.php'); ?>
|
||||
<?php include (INCLUDES.'color.inc.php'); ?>
|
||||
<?php include (INCLUDES.'color_display.inc.php'); ?>
|
||||
<?php } else echo " "; ?>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="dataList"><?php if ($row_recipeList['brewBitterness'] != "") { echo round ($row_recipeList['brewBitterness'], 1); } else echo " " ?></td>
|
||||
<td class="dataList"><?php if (($row_recipeList['brewOG'] != "") && ($row_recipeList['brewFG'] != "")) { include ('includes/abv.inc.php'); echo round ($abv, 1)."%"; } else echo " "; ?></td>
|
||||
<td class="dataList"><?php if (($row_recipeList['brewOG'] != "") && ($row_recipeList['brewFG'] != "")) { include (INCLUDES.'abv.inc.php'); echo round ($abv, 1)."%"; } else echo " "; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=<?php echo $page; ?>&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&filter=<?php echo $row_user2['user_name']; ?>&view=limited"><?php echo $row_user2['realFirstName']." ".$row_user2['realLastName']; ?></a></td><?php } ?>
|
||||
<td class="dataList center"><?php if ($totalRows_awards2 > 0) echo $totalRows_awards2; else echo " "; ?></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php if ($page != "recipePrint") { ?>
|
||||
<?php if ($row_log['brewComments'] != "" ) { ?>
|
||||
<div id="headerContent">Comments</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewComments']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($page != "recipePrint") { ?>
|
||||
<?php if ($row_log['brewComments'] != "" ) { ?>
|
||||
<div class="headerContent">Comments</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewComments']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
@@ -1,58 +1,58 @@
|
||||
<?php if ($row_log['brewEquipProfile'] != "") { ?>
|
||||
<div id="headerContent">Equipment Profile</div>
|
||||
<div id="dataContainer">
|
||||
<h3><em><?php echo $row_equip_profiles['equipProfileName']; ?></em></h3>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Batch Size:</td>
|
||||
<td class="data" width="15%" nowrap="nowrap"><?php if (($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipBatchSize'], "liters"); else echo $row_equip_profiles['equipBatchSize']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="dataLabel">Boil Volume:</td>
|
||||
<td class="data" nowrap="nowrap"><?php if (($row_equip_profiles['equipBoilVolume'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipBoilVolume'], "liters"); else echo $row_equip_profiles['equipBoilVolume']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Evaporation Rate:</td>
|
||||
<td class="data" width="15%" nowrap="nowrap"><?php if ($row_equip_profiles['equipEvapRate'] != "") echo $row_equip_profiles['equipEvapRate']."% per hour"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Dead Space:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunDeadspace'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipMashTunDeadspace'], "liters"); else echo $row_equip_profiles['equipMashTunDeadspace']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Efficiency:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipTypicalEfficiency'] != "") echo $row_equip_profiles['equipTypicalEfficiency']."%"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Weight:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunWeight'] != "") && ($row_pref['measWeight2'] == "kilograms") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo weightconvert($row_equip_profiles['equipMashTunWeight'], "kilograms"); else echo $row_equip_profiles['equipMashTunWeight']; echo " ".$row_pref['measWeight2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Hop Utilization:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipHopUtil'] != "") echo $row_equip_profiles['equipHopUtil']."%"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Volume:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunVolume'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipMashTunVolume'], "liters"); else echo $row_equip_profiles['equipMashTunVolume']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Loss:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipLoss'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipLoss'], "liters"); else echo $row_equip_profiles['equipLoss']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="dataLabel">Mash Tun Specific Heat:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipMashTunSpecificHeat'] != "") echo $row_equip_profiles['equipMashTunSpecificHeat']." Cal/gram per °C"; ?></td>
|
||||
</tr>
|
||||
<?php if ($row_equip_profiles['equipNotes'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data" colspan="3"><?php if ($row_equip_profiles['equipNotes'] != "") echo $row_equip_profiles['equipNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($row_log['brewEquipProfile'] != "") { ?>
|
||||
<div class="headerContent">Equipment Profile</div>
|
||||
<div class="dataContainer">
|
||||
<h3><em><?php echo $row_equip_profiles['equipProfileName']; ?></em></h3>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Batch Size:</td>
|
||||
<td class="data" width="15%" nowrap="nowrap"><?php if (($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipBatchSize'], "liters"); else echo $row_equip_profiles['equipBatchSize']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="dataLabel">Boil Volume:</td>
|
||||
<td class="data" nowrap="nowrap"><?php if (($row_equip_profiles['equipBoilVolume'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipBoilVolume'], "liters"); else echo $row_equip_profiles['equipBoilVolume']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Evaporation Rate:</td>
|
||||
<td class="data" width="15%" nowrap="nowrap"><?php if ($row_equip_profiles['equipEvapRate'] != "") echo $row_equip_profiles['equipEvapRate']."% per hour"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Dead Space:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunDeadspace'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipMashTunDeadspace'], "liters"); else echo $row_equip_profiles['equipMashTunDeadspace']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Efficiency:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipTypicalEfficiency'] != "") echo $row_equip_profiles['equipTypicalEfficiency']."%"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Weight:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunWeight'] != "") && ($row_pref['measWeight2'] == "kilograms") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo weightconvert($row_equip_profiles['equipMashTunWeight'], "kilograms"); else echo $row_equip_profiles['equipMashTunWeight']; echo " ".$row_pref['measWeight2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Hop Utilization:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipHopUtil'] != "") echo $row_equip_profiles['equipHopUtil']."%"; ?></td>
|
||||
<td class="dataLabel">Mash Tun Volume:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipMashTunVolume'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipMashTunVolume'], "liters"); else echo $row_equip_profiles['equipMashTunVolume']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Loss:</td>
|
||||
<td class="data"><?php if (($row_equip_profiles['equipLoss'] !="") && ($row_pref['measFluid2'] == "liters") && ($row_equip_profiles['equipBrewerID'] == "brewblogger")) echo volumeconvert($row_equip_profiles['equipLoss'], "liters"); else echo $row_equip_profiles['equipLoss']; echo " ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="dataLabel">Mash Tun Specific Heat:</td>
|
||||
<td class="data"><?php if ($row_equip_profiles['equipMashTunSpecificHeat'] != "") echo $row_equip_profiles['equipMashTunSpecificHeat']." Cal/gram per °C"; ?></td>
|
||||
</tr>
|
||||
<?php if ($row_equip_profiles['equipNotes'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data" colspan="3"><?php if ($row_equip_profiles['equipNotes'] != "") echo $row_equip_profiles['equipNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
876
sections/recipe_fermentables.inc.php
Normal file
876
sections/recipe_fermentables.inc.php
Normal file
@@ -0,0 +1,876 @@
|
||||
<?php if ($row_log['brewYield'] != "") { if (($page !="logPrint") && ($page !="recipePrint") && ((($row_log['brewExtract1'] != "") || ($row_log['brewGrain1'] != "")) && ($row_log['brewHops1'] != ""))) { ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a>Scale Recipe</div>
|
||||
<div class="dataContainer">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLeft" width="5%" nowrap>Enter desired final yield (volume): </td>
|
||||
<form action="<?php echo "index.php?page=".$page."&filter=".$row_log['brewBrewerID']."&action=scale"; if ($action == "scale") echo "&amt=".$_POST['amt']; echo "&id=".$row_log['id']."#recipe"; ?>" method="post" name="form1" id="form1">
|
||||
<td class="data" width="5%" nowrap><input class="quickEdit" name="amt" type="text" size="5" value="<?php if ($action == "scale") echo $amt; if ($action == "reset") echo $row_log['brewYield']; ?>" /></td>
|
||||
<td class="data" width="5%" nowrap><?php echo " ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="data"> <input class="quickEdit" name="submit" type="submit" value="Scale"/>
|
||||
<input class="quickEdit" name="reset" type="button" value="Reset" onClick="window.location='<?php echo "index.php?page=".$page."&filter=".$filter."&id=".$id."&action=reset"; ?>'">
|
||||
</td></form>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
|
||||
<?php if ($row_log['brewExtract1'] != "" ) { // hide entire set of extract rows if first not present (1) ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a>Extract</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewExtract1Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewExtract1Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewExtract1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewExtract1Weight'] != "") echo round ($extract1Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php if ($row_log['brewExtract2'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewExtract2Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewExtract2Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewExtract2']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewExtract2Weight'] != "") echo round ($extract2Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewExtract3'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewExtract3Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewExtract3Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewExtract3']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewExtract3Weight'] != "") echo round ($extract3Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewExtract4'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewExtract4Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewExtract4Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewExtract4']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewExtract4Weight'] != "") echo round ($extract4Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewExtract5'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewExtract5Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewExtract5Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewExtract5']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewExtract5Weight'] != "") echo round ($extract5Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr bgcolor="<?php if (($page == "recipePrint") || ($page == "logPrint")) echo "#dddddd"; elseif (checkmobile()) echo "#dddddd"; else echo $color1; ?>">
|
||||
<td class="dataLeft bdr1T_light_dashed"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format ($totalExtract, 2); if ($action == "scale") echo number_format (($totalExtract * $scale), 2); echo" ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data bdr1T_light_dashed">Total Extract Weight</td>
|
||||
<td class="data bdr1T_light_dashed"><?php echo round ($totalExtractPer, 1); ?>% of grist</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide extracts (1) ?>
|
||||
|
||||
<?php // ------------------------ GRAINS SECTION ------------------------
|
||||
if ($row_log['brewGrain1'] != "" ) { // hide entire set of grain rows if first not present
|
||||
?>
|
||||
<?php if (($page == "recipePrint") || ($page == "logPrint")) echo ""; else { ?><div id="help"><a href="sections/reference.inc.php?section=grains&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Grains Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference" /></a></div><?php } ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a>Malts and Grains</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain1Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain1Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain1']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt1 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain1']; if ($totalRows_malt1 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt1['maltName'] != "") echo $row_malt1['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt1['maltName'] != "") { ?>
|
||||
<?php if ($row_malt1['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt1['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt1['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt1['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt1['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt1['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain1Weight'] != "") echo round ($grain1Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php if ($row_log['brewGrain2'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain2Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain2Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain2']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt2 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain2']; if ($totalRows_malt2 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt2['maltName'] != "") echo $row_malt2['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt2['maltName'] != "") { ?>
|
||||
<?php if ($row_malt2['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt2['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt2['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt2['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt2['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt2['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td colspan="2">There is no data available for this grain.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain2Weight'] != "") echo round ($grain2Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain3'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain3Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain3Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain3']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt3 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain3']; if ($totalRows_malt3 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt3['maltName'] != "") echo $row_malt3['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt3['maltName'] != "") { ?>
|
||||
<?php if ($row_malt3['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt3['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt3['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt3['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt3['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt3['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain3Weight'] != "") echo round ($grain3Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain4'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain4Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain4Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain4']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt4 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain4']; if ($totalRows_malt4 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt4['maltName'] != "") echo $row_malt4['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt4['maltName'] != "") { ?>
|
||||
<?php if ($row_malt4['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt4['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt4['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt4['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt4['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt4['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain4Weight'] != "") echo round ($grain4Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain5'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain5Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain5Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain5']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt5 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain5']; if ($totalRows_malt5 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt5['maltName'] != "") echo $row_malt5['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt5['maltName'] != "") { ?>
|
||||
<?php if ($row_malt5['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt5['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt5['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt5['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt5['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt5['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain5Weight'] != "") echo round ($grain5Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain6'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain6Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain6Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain6']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt6 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain6']; if ($totalRows_malt6 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt6['maltName'] != "") echo $row_malt6['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt6['maltName'] != "") { ?>
|
||||
<?php if ($row_malt6['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt6['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt6['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt6['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt6['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt6['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain6Weight'] != "") echo round ($grain6Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain7'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain7Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain7Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain7']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt7 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain7']; if ($totalRows_malt7 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt7['maltName'] != "") echo $row_malt7['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt7['maltName'] != "") { ?>
|
||||
<?php if ($row_malt7['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt7['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt7['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt7['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt7['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt7['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain7Weight'] != "") echo round ($grain7Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain8'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain8Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain8Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain8']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt8 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain8']; if ($totalRows_malt8 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt8['maltName'] != "") echo $row_malt8['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt8['maltName'] != "") { ?>
|
||||
<?php if ($row_malt8['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt8['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt8['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt8['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt8['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt8['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain8Weight'] != "") echo round ($grain8Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain9'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain9Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain9Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain9']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt9 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain9']; if ($totalRows_malt9 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt9['maltName'] != "") echo $row_malt9['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt9['maltName'] != "") { ?>
|
||||
<?php if ($row_malt9['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt9['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt9['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt9['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt9['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt9['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain9Weight'] != "") echo round ($grain9Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain10'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain10Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain10Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain10']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt10 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain10']; if ($totalRows_malt10 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt10['maltName'] != "") echo $row_malt10['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt10['maltName'] != "") { ?>
|
||||
<?php if ($row_malt10['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt10['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt10['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt10['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt10['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt10['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain10Weight'] != "") echo round ($grain10Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewGrain11'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain11Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain11Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain11']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt11 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain11']; if ($totalRows_malt11 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt11['maltName'] != "") echo $row_malt11['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt11['maltName'] != "") { ?>
|
||||
<?php if ($row_malt11['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt11['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt11['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt11['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt11['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt11['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain11Weight'] != "") echo round ($grain11Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewGrain12'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain12Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain12Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain12']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt12 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain12']; if ($totalRows_malt12 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt12['maltName'] != "") echo $row_malt12['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt12['maltName'] != "") { ?>
|
||||
<?php if ($row_malt12['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt12['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt12['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt12['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt12['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt12['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain12Weight'] != "") echo round ($grain12Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($row_log['brewGrain13'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain13Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain13Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain13']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt13 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain13']; if ($totalRows_malt13 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt13['maltName'] != "") echo $row_malt13['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt13['maltName'] != "") { ?>
|
||||
<?php if ($row_malt13['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt13['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt13['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt13['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt13['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt13['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain13Weight'] != "") echo round ($grain13Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewGrain14'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain14Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain14Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain14']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt14 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain14']; if ($totalRows_malt14 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt14['maltName'] != "") echo $row_malt14['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt14['maltName'] != "") { ?>
|
||||
<?php if ($row_malt14['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt14['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt14['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt14['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt14['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt14['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain14Weight'] != "") echo round ($grain14Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewGrain15'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewGrain15Weight'], 2); if ($action == "scale") echo number_format(($row_log['brewGrain15Weight'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewGrain15']; else { ?>
|
||||
<div id="moreInfo">
|
||||
<?php if ($totalRows_malt15 > 0) { ?>
|
||||
<a href="#"><?php } echo $row_log['brewGrain15']; if ($totalRows_malt15 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php if ($row_malt15['maltName'] != "") echo $row_malt15['maltName']; else echo "No Information Available" ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_malt15['maltName'] != "") { ?>
|
||||
<?php if ($row_malt15['maltLovibond'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data"><?php echo $row_malt15['maltLovibond']; ?> °L</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt15['maltLovibond'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Color (L):</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt15['maltInfo'] != "") { ?>
|
||||
<tr align="left" valign="top">
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data"><?php echo $row_malt15['maltInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_malt15['maltInfo'] == "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Info/Use:</td>
|
||||
<td class="data">Not provided.</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewGrain15Weight'] != "") echo round ($grain15Per, 1)."% of grist"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr bgcolor="<?php if (($page == "recipePrint") || ($page == "logPrint")) echo "#dddddd"; elseif (checkmobile()) echo "#dddddd"; else echo $color1; ?>">
|
||||
<td class="dataLeft bdr1T_light_dashed"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format ($totalGrain, 2); if ($action == "scale") echo number_format (($totalGrain * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data bdr1T_light_dashed"><?php if ((($page == "recipePrint") || ($page == "logPrint")) || ($row_log['brewMethod'] != "All Grain") || (checkmobile())) echo "Total Grain Weight"; else include (SECTIONS.'water_amounts_calc.inc.php'); ?></td>
|
||||
<td class="data bdr1T_light_dashed"><?php echo round ($totalGrainPer, 1); ?>% of grist</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide grains ?>
|
||||
|
||||
<?php if ($row_log['brewAddition1'] != "") { // hide entire set of Adjunct table rows (3) ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a><?php if ($row_styles['brewStyleGroup'] > 23) echo "Ingredients"; else echo "Adjuncts"; ?></div>
|
||||
<div class="dataContainer">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition1Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition1Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition1']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php if ($row_log['brewAddition2'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition2Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition2Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition2']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition3'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition3Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition3Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition3']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition4'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition4Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition4Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition4']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition5'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition5Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition5Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition5']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition6'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition6Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition6Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition6']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition7'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition7Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition7Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition7']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition8'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition8Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition8Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition8']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAddition9'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewAddition9Amt'], 2); if ($action == "scale") echo number_format(($row_log['brewAddition9Amt'] * $scale), 2); echo " ".$row_pref['measWeight2']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewAddition9']; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide Adjuncts (3) ?>
|
||||
@@ -1,37 +1,37 @@
|
||||
<?php if ($row_log['brewPrimary'] != "") { ?>
|
||||
<div id="headerContent">Fermentation</div>
|
||||
<div id="dataContainer">
|
||||
<div class="dataTable">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Primary:</td>
|
||||
<td class="data"><?php echo $row_log['brewPrimary']." days @ ".$row_log['brewPrimaryTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</td>
|
||||
<?php if ($row_log['brewSecondary'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Secondary:</td>
|
||||
<td class="data"><?php echo $row_log['brewSecondary']." days @ ".$row_log['brewSecondaryTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewTertiary'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Tertiary:</td>
|
||||
<td class="data"><?php echo $row_log['brewTertiary']." days @ "; if ($page != "recipeDetail") echo $row_log['brewTertiaryTemp']; else echo $row_log['brewTertiaryTemp']; echo "° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewLager'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Lager:</td>
|
||||
<td class="data"><?php echo $row_log['brewLager']." days @ ".$row_log['brewLagerTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAge'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Age:</td>
|
||||
<td class="data"><?php echo $row_log['brewAge']." days @ ".$row_log['brewAgeTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewPrimary'] != "") { ?>
|
||||
<div class="headerContent">Fermentation</div>
|
||||
<div class="dataContainer">
|
||||
<div class="dataTable">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Primary:</td>
|
||||
<td class="data"><?php echo $row_log['brewPrimary']." days @ ".$row_log['brewPrimaryTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</td>
|
||||
<?php if ($row_log['brewSecondary'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Secondary:</td>
|
||||
<td class="data"><?php echo $row_log['brewSecondary']." days @ ".$row_log['brewSecondaryTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewTertiary'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Tertiary:</td>
|
||||
<td class="data"><?php echo $row_log['brewTertiary']." days @ "; if ($page != "recipeDetail") echo $row_log['brewTertiaryTemp']; else echo $row_log['brewTertiaryTemp']; echo "° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewLager'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Lager:</td>
|
||||
<td class="data"><?php echo $row_log['brewLager']." days @ ".$row_log['brewLagerTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewAge'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Age:</td>
|
||||
<td class="data"><?php echo $row_log['brewAge']." days @ ".$row_log['brewAgeTemp']."° ".$row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -1,34 +1,34 @@
|
||||
<?php if ($row_log['brewMethod'] != "" ) { ?>
|
||||
<div id="headerContent">General Information</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Method:</td>
|
||||
<td class="data"><?php echo $row_log['brewMethod'];?></td>
|
||||
</tr>
|
||||
<?php if (($page =="recipeDetail") || ($page =="recipePrint")) { ?>
|
||||
<?php if ($row_log['brewSource'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Source:</td>
|
||||
<td class="data"><?php echo $row_log['brewSource']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if (($page !="recipeDetail") && ($page !="recipePrint")) { ?>
|
||||
<?php if ($row_log['brewCost'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Cost:</td>
|
||||
<td class="data"><?php echo $row_log['brewCost']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<table>
|
||||
<?php if ($row_log['brewInfo'] != "" ) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row_log['brewInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewMethod'] != "" ) { ?>
|
||||
<div class="headerContent">General Information</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Method:</td>
|
||||
<td class="data"><?php echo $row_log['brewMethod'];?></td>
|
||||
</tr>
|
||||
<?php if (($page =="recipeDetail") || ($page =="recipePrint")) { ?>
|
||||
<?php if ($row_log['brewSource'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Source:</td>
|
||||
<td class="data"><?php echo $row_log['brewSource']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if (($page !="recipeDetail") && ($page !="recipePrint")) { ?>
|
||||
<?php if ($row_log['brewCost'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Cost:</td>
|
||||
<td class="data"><?php echo $row_log['brewCost']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
<table>
|
||||
<?php if ($row_log['brewInfo'] != "" ) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row_log['brewInfo']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
988
sections/recipe_hops.inc.php
Normal file
988
sections/recipe_hops.inc.php
Normal file
@@ -0,0 +1,988 @@
|
||||
<?php if ($row_log['brewHops1'] != "" ) { // hide entire set of hops rows if first is not present (5) ?>
|
||||
<?php if (($page == "recipePrint") || ($page == "logPrint")) echo ""; else { ?><div id="help"><a href="sections/reference.inc.php?section=hops&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Hops Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference" /></a></div><?php } ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a>Hops</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops1Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops1Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops1Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops1'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops1']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops1 > 0) { ?><a href="#"><?php } echo $row_log['brewHops1']."<br>"; if ($totalRows_hops1 > 0) { ?>
|
||||
<span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops1['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops1['hopsGrown'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops1['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops1['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops1['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops1['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops1['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops1['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops1['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops1['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops1['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops1['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops1['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops1['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops1IBU'] != "" ) echo $row_log['brewHops1IBU']."% ";
|
||||
if ($row_log['brewHops1Form'] != "" ) echo $row_log['brewHops1Form']." ";
|
||||
if ($row_log['brewHops1Time'] != "" ) echo "@ ".$row_log['brewHops1Time']." minutes ";
|
||||
if (($row_log['brewHops1Type'] != "" ) && ($row_log['brewHops1Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops1Type'] != "") echo "<br>Type: ".$row_log['brewHops1Type'];
|
||||
if ($row_log['brewHops1Type'] == "") echo "";
|
||||
if ($row_log['brewHops1Use'] != "" ) echo "<br>Use: ".$row_log['brewHops1Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops1IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop1Per, 1); if ($action == "scale") echo round (($hop1Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ($row_log['brewHops2'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops2Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops2Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops2Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops2'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops2']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops2 > 0) { ?><a href="#"><?php } echo $row_log['brewHops2']."<br>"; if ($totalRows_hops2 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops2['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops2['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops2['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops2['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops2['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops2['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops2['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops2['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops2['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops2['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops2['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops2['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops2['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops2['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops2IBU'] != "" ) echo $row_log['brewHops2IBU']."% ";
|
||||
if ($row_log['brewHops2Form'] != "" ) echo $row_log['brewHops2Form']." ";
|
||||
if ($row_log['brewHops2Time'] != "" ) echo "@ ".$row_log['brewHops2Time']." minutes ";
|
||||
if (($row_log['brewHops2Type'] != "" ) && ($row_log['brewHops2Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops2Type'] != "") echo "<br>Type: ".$row_log['brewHops2Type'];
|
||||
if ($row_log['brewHops2Type'] == "") echo "";
|
||||
if ($row_log['brewHops2Use'] != "" ) echo "<br>Use: ".$row_log['brewHops2Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops2IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop2Per, 1); if ($action == "scale") echo round (($hop2Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewHops3'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops3Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops3Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops3Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops3'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops3']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops3 > 0) { ?><a href="#"><?php } echo $row_log['brewHops3']."<br>"; if ($totalRows_hops3 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops3['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops3['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops3['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops3['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops3['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops3['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops3['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops3['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops3['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops3['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops3['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops3['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops3['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops3['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops3IBU'] != "" ) echo $row_log['brewHops3IBU']."% ";
|
||||
if ($row_log['brewHops3Form'] != "" ) echo $row_log['brewHops3Form']." ";
|
||||
if ($row_log['brewHops3Time'] != "" ) echo "@ ".$row_log['brewHops3Time']." minutes ";
|
||||
if (($row_log['brewHops3Type'] != "" ) && ($row_log['brewHops3Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops3Type'] != "") echo "<br>Type: ".$row_log['brewHops3Type'];
|
||||
if ($row_log['brewHops3Type'] == "") echo "";
|
||||
if ($row_log['brewHops3Use'] != "" ) echo "<br>Use: ".$row_log['brewHops3Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops3IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop3Per, 1); if ($action == "scale") echo round (($hop3Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops4'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops4Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops4Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops4Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops4'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops4']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops4 > 0) { ?><a href="#"><?php } echo $row_log['brewHops4']."<br>"; if ($totalRows_hops4 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops4['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops4['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops4['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops4['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops4['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops4['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops4['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops4['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops4['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops4['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops4['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops4['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops4['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops4['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops4IBU'] != "" ) echo $row_log['brewHops4IBU']."% ";
|
||||
if ($row_log['brewHops4Form'] != "" ) echo $row_log['brewHops4Form']." ";
|
||||
if ($row_log['brewHops4Time'] != "" ) echo "@ ".$row_log['brewHops4Time']." minutes ";
|
||||
if (($row_log['brewHops4Type'] != "" ) && ($row_log['brewHops4Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops4Type'] != "") echo "<br>Type: ".$row_log['brewHops4Type'];
|
||||
if ($row_log['brewHops4Use'] != "" ) echo "<br>Use: ".$row_log['brewHops4Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops4IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop4Per, 1); if ($action == "scale") echo round (($hop4Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops5'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops5Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops5Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops5Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops5'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops5']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops5 > 0) { ?><a href="#"><?php } echo $row_log['brewHops5']."<br>"; if ($totalRows_hops5 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops5['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops5['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops5['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops5['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops5IBU'] != "" ) echo $row_log['brewHops5IBU']."% ";
|
||||
if ($row_log['brewHops5Form'] != "" ) echo $row_log['brewHops5Form']." ";
|
||||
if ($row_log['brewHops5Time'] != "" ) echo "@ ".$row_log['brewHops5Time']." minutes ";
|
||||
if (($row_log['brewHops5Type'] != "" ) && ($row_log['brewHops5Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops5Type'] != "") echo "<br>Type: ".$row_log['brewHops5Type'];
|
||||
if ($row_log['brewHops5Type'] == "") echo "";
|
||||
if ($row_log['brewHops5Use'] != "" ) echo "<br>Use: ".$row_log['brewHops5Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops5IBU'] != "" ) echo round ($hop5Per, 1)." AAUs"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops6'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops6Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops6Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops6Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops6'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops6']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops5 > 0) { ?><a href="#"><?php } echo $row_log['brewHops6']."<br>"; if ($totalRows_hops5 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops6['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops6['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops6['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops6['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops6['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops6['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops6['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops6['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops6['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops6['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops6['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops6['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops6['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops6['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops6IBU'] != "" ) echo $row_log['brewHops6IBU']."% ";
|
||||
if ($row_log['brewHops6Form'] != "" ) echo $row_log['brewHops6Form']." ";
|
||||
if ($row_log['brewHops6Time'] != "" ) echo "@ ".$row_log['brewHops6Time']." minutes ";
|
||||
if (($row_log['brewHops6Type'] != "" ) && ($row_log['brewHops6Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops6Type'] != "") echo "<br>Type: ".$row_log['brewHops6Type'];
|
||||
if ($row_log['brewHops6Type'] == "") echo "";
|
||||
if ($row_log['brewHops6Use'] != "" ) echo "<br>Use: ".$row_log['brewHops6Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops6IBU'] != "" ) echo round ($hop5Per, 1)." AAUs"; else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops7'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops7Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops7Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops7Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops7'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops7']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops7 > 0) { ?><a href="#"><?php } echo $row_log['brewHops7']."<br>"; if ($totalRows_hops7 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops7['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops7['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops7['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops7['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops7['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops7['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops7['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops7['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops7['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops7['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops7['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops7['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops7['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops7['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops7IBU'] != "" ) echo $row_log['brewHops7IBU']."% ";
|
||||
if ($row_log['brewHops7Form'] != "" ) echo $row_log['brewHops7Form']." ";
|
||||
if ($row_log['brewHops7Time'] != "" ) echo "@ ".$row_log['brewHops7Time']." minutes ";
|
||||
if (($row_log['brewHops7Type'] != "" ) && ($row_log['brewHops7Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops7Type'] != "") echo "<br>Type: ".$row_log['brewHops7Type'];
|
||||
if ($row_log['brewHops7Type'] == "") echo "";
|
||||
if ($row_log['brewHops7Use'] != "" ) echo "<br>Use: ".$row_log['brewHops7Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops7IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop7Per, 1); if ($action == "scale") echo round (($hop7Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops8'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops8Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops8Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops9Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops8'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops8']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops8 > 0) { ?><a href="#"><?php } echo $row_log['brewHops8']."<br>"; if ($totalRows_hops8 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops8['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops8['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops8['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops8['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops8['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops8['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops8['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops8['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops8['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops8['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops8['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops8['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops8['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops8['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops8IBU'] != "" ) echo $row_log['brewHops8IBU']."% ";
|
||||
if ($row_log['brewHops8Form'] != "" ) echo $row_log['brewHops8Form']." ";
|
||||
if ($row_log['brewHops8Time'] != "" ) echo "@ ".$row_log['brewHops8Time']." minutes ";
|
||||
if (($row_log['brewHops8Type'] != "" ) && ($row_log['brewHops8Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops8Type'] != "") echo "<br>Type: ".$row_log['brewHops8Type'];
|
||||
if ($row_log['brewHops8Type'] == "") echo "";
|
||||
if ($row_log['brewHops8Use'] != "" ) echo "<br>Use: ".$row_log['brewHops8Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops8IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop8Per, 1); if ($action == "scale") echo round (($hop8Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewHops9'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops9Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops9Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops9Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data"><?php if ($row_log['brewHops9'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops9']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops9 > 0) { ?><a href="#"><?php } echo $row_log['brewHops9']."<br>"; if ($totalRows_hops9 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops9['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops9['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops9['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops9['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops9['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops9['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops9['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops9['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops9['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops9['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops9['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops9['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops9['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops9['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
|
||||
if ($row_log['brewHops9IBU'] != "" ) echo $row_log['brewHops9IBU']."% ";
|
||||
if ($row_log['brewHops9Form'] != "" ) echo $row_log['brewHops9Form']." ";
|
||||
if ($row_log['brewHops9Time'] != "" ) echo "@ ".$row_log['brewHops9Time']." minutes ";
|
||||
if (($row_log['brewHops9Type'] != "" ) && ($row_log['brewHops9Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops9Type'] != "") echo "<br>Type: ".$row_log['brewHops9Type'];
|
||||
if ($row_log['brewHops9Type'] == "") echo "";
|
||||
if ($row_log['brewHops9Use'] != "" ) echo "<br>Use: ".$row_log['brewHops9Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops9IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop9Per, 1); if ($action == "scale") echo round (($hop9Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewHops10'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops10Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops10Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops10Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops10'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops10']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops10 > 0) { ?><a href="#"><?php } echo $row_log['brewHops10']."<br>"; if ($totalRows_hops10 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops10['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops10['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops10['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops10['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops10['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops10['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops10['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops10['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops10['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops10['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops10['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops10['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops10['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops10['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops10IBU'] != "" ) echo $row_log['brewHops10IBU']."% ";
|
||||
if ($row_log['brewHops10Form'] != "" ) echo $row_log['brewHops10Form']." ";
|
||||
if ($row_log['brewHops10Time'] != "" ) echo "@ ".$row_log['brewHops10Time']." minutes ";
|
||||
if (($row_log['brewHops10Type'] != "" ) && ($row_log['brewHops10Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops10Type'] != "") echo "<br>Type: ".$row_log['brewHops10Type'];
|
||||
if ($row_log['brewHops10Type'] == "") echo "";
|
||||
if ($row_log['brewHops10Use'] != "" ) echo "<br>Use: ".$row_log['brewHops10Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops10IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop10Per, 1); if ($action == "scale") echo round (($hop10Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($row_log['brewHops11'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops11Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops11Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops11Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops11'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops11']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops11 > 0) { ?><a href="#"><?php } echo $row_log['brewHops11']."<br>"; if ($totalRows_hops11 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops11['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops11['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops11['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops11['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops11['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops11['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops11['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops11['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops11['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops11['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops11['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops11['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops11['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops11['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops11IBU'] != "" ) echo $row_log['brewHops11IBU']."% ";
|
||||
if ($row_log['brewHops11Form'] != "" ) echo $row_log['brewHops11Form']." ";
|
||||
if ($row_log['brewHops11Time'] != "" ) echo "@ ".$row_log['brewHops11Time']." minutes ";
|
||||
if (($row_log['brewHops11Type'] != "" ) && ($row_log['brewHops11Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops11Type'] != "") echo "<br>Type: ".$row_log['brewHops11Type'];
|
||||
if ($row_log['brewHops11Type'] == "") echo "";
|
||||
if ($row_log['brewHops11Use'] != "" ) echo "<br>Use: ".$row_log['brewHops11Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops11IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop11Per, 1); if ($action == "scale") echo round (($hop11Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewHops12'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops12Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops12Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops12Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops12'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops12']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops12 > 0) { ?><a href="#"><?php } echo $row_log['brewHops12']."<br>"; if ($totalRows_hops12 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops12['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops12['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops12['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops12['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops12['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops12['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops12['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops12['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops12['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops12['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops12['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops12['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops12['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops12['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops12IBU'] != "" ) echo $row_log['brewHops12IBU']."% ";
|
||||
if ($row_log['brewHops12Form'] != "" ) echo $row_log['brewHops12Form']." ";
|
||||
if ($row_log['brewHops12Time'] != "" ) echo "@ ".$row_log['brewHops12Time']." minutes ";
|
||||
if (($row_log['brewHops12Type'] != "" ) && ($row_log['brewHops12Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops12Type'] != "") echo "<br>Type: ".$row_log['brewHops12Type'];
|
||||
if ($row_log['brewHops12Type'] == "") echo "";
|
||||
if ($row_log['brewHops12Use'] != "" ) echo "<br>Use: ".$row_log['brewHops12Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops12IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop12Per, 1); if ($action == "scale") echo round (($hop12Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewHops13'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops13Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops13Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops13Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops13'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops13']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops13 > 0) { ?><a href="#"><?php } echo $row_log['brewHops13']."<br>"; if ($totalRows_hops13 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops13['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops13['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops13['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops13['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops13['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops13['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops13['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops13['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops13['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops13['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops13['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops13['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops13['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops13['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops13IBU'] != "" ) echo $row_log['brewHops13IBU']."% ";
|
||||
if ($row_log['brewHops13Form'] != "" ) echo $row_log['brewHops13Form']." ";
|
||||
if ($row_log['brewHops13Time'] != "" ) echo "@ ".$row_log['brewHops13Time']." minutes ";
|
||||
if (($row_log['brewHops13Type'] != "" ) && ($row_log['brewHops13Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops13Type'] != "") echo "<br>Type: ".$row_log['brewHops13Type'];
|
||||
if ($row_log['brewHops13Type'] == "") echo "";
|
||||
if ($row_log['brewHops13Use'] != "" ) echo "<br>Use: ".$row_log['brewHops13Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops13IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop13Per, 1); if ($action == "scale") echo round (($hop13Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($row_log['brewHops14'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops14Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops14Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops14Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops14'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops14']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops14 > 0) { ?><a href="#"><?php } echo $row_log['brewHops14']."<br>"; if ($totalRows_hops14 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops14['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops14['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops14['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops14['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops14['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops14['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops14['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops14['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops14['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops14['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops14['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops14['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops14['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops14['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops14IBU'] != "" ) echo $row_log['brewHops14IBU']."% ";
|
||||
if ($row_log['brewHops14Form'] != "" ) echo $row_log['brewHops14Form']." ";
|
||||
if ($row_log['brewHops14Time'] != "" ) echo "@ ".$row_log['brewHops14Time']." minutes ";
|
||||
if (($row_log['brewHops14Type'] != "" ) && ($row_log['brewHops14Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops14Type'] != "") echo "<br>Type: ".$row_log['brewHops14Type'];
|
||||
if ($row_log['brewHops14Type'] == "") echo "";
|
||||
if ($row_log['brewHops14Use'] != "" ) echo "<br>Use: ".$row_log['brewHops14Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops14IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop14Per, 1); if ($action == "scale") echo round (($hop14Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewHops15'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php if ($row_log['brewHops15Weight'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format($row_log['brewHops15Weight'],2); if ($action == "scale") echo number_format(($row_log['brewHops15Weight'] * $scale), 2); }; echo " ".$row_pref['measWeight1']; ?></td>
|
||||
<td class="data">
|
||||
<?php if ($row_log['brewHops15'] != "" ) { ?>
|
||||
<?php if ((($page == "recipePrint") || ($page == "logPrint")) || (checkmobile())) echo $row_log['brewHops15']; else { ?>
|
||||
<div id="moreInfo"><?php if ($totalRows_hops15 > 0) { ?><a href="#"><?php } echo $row_log['brewHops15']."<br>"; if ($totalRows_hops15 > 0) { ?><span>
|
||||
<div id="moreInfoWrapper">
|
||||
<div id="referenceHeader"><?php echo $row_hops15['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops15['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops15['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops15['hopsAAULow'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">AAU Range:</td>
|
||||
<td class="data"><?php { $AAUmin = ltrim ($row_hops15['hopsAAULow'], "0"); $AAUmax = ltrim ($row_hops15['hopsAAUHigh'], "0"); echo $AAUmin." - ".$AAUmax."%"; } ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops15['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops15['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops15['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops15['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops15['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops15['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops15['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops15['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<?php } } } ?>
|
||||
<?php
|
||||
if ($row_log['brewHops15IBU'] != "" ) echo $row_log['brewHops15IBU']."% ";
|
||||
if ($row_log['brewHops15Form'] != "" ) echo $row_log['brewHops15Form']." ";
|
||||
if ($row_log['brewHops15Time'] != "" ) echo "@ ".$row_log['brewHops15Time']." minutes ";
|
||||
if (($row_log['brewHops15Type'] != "" ) && ($row_log['brewHops15Type'] == "Both")) echo "<br>Type: Bittering and Aroma"; elseif ($row_log['brewHops15Type'] != "") echo "<br>Type: ".$row_log['brewHops15Type'];
|
||||
if ($row_log['brewHops15Type'] == "") echo "";
|
||||
if ($row_log['brewHops15Use'] != "" ) echo "<br>Use: ".$row_log['brewHops15Use']." ";
|
||||
?>
|
||||
</td>
|
||||
<td class="data"><?php if ($row_log['brewHops15IBU'] != "" ) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($hop15Per, 1); if ($action == "scale") echo round (($hop15Per * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<tr bgcolor="<?php if (($page == "recipePrint") || ($page == "logPrint")) echo "#dddddd"; elseif (checkmobile()) echo "#dddddd"; else echo $color1; ?>">
|
||||
<td class="dataLeft bdr1T_light_dashed"><?php if ($totalHops > 0) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo number_format ($totalHops, 2); if ($action == "scale") echo number_format (($totalHops * $scale), 2); echo " ".$row_pref['measWeight1']; } else echo " "; ?></td>
|
||||
<td class="data bdr1T_light_dashed"><?php if ($totalHops > 0) echo "Total Hop Weight"; else echo " "; ?></td>
|
||||
<td class="data bdr1T_light_dashed"><?php if ($totalAAU > 0) { if (($action == "default") || ($action == "reset") || ($action == "print")) echo round ($totalAAU, 1); if ($action == "scale") echo round (($totalAAU * $scale), 1); echo " AAUs"; } else echo " "; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide Hops (5) ?>
|
||||
<?php if ($row_log['brewBoilTime'] != "") { ?>
|
||||
<div class="headerContent">Boil</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Total Boil Time:</td>
|
||||
<td class="data"><?php echo $row_log['brewBoilTime']; ?> minutes</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
if (($row_log['brewPreBoilAmt'] != "") && ($row_log['brewMashGravity'] !="") && (($page == "brewBlogCurrent") || ($page == "brewBlogDetail"))) { include ('includes/efficiency.inc.php'); }
|
||||
if (($row_log['brewPreBoilAmt'] != "") && ($row_log['brewMashGravity'] !="") && ($page == "logPrint")) { include ('../includes/efficiency.inc.php'); } ?>
|
||||
if (($row_log['brewPreBoilAmt'] != "") && ($row_log['brewMashGravity'] !="") && (($page == "brewBlogCurrent") || ($page == "brewBlogDetail"))) { include (INCLUDES.'efficiency.inc.php'); }
|
||||
if (($row_log['brewPreBoilAmt'] != "") && ($row_log['brewMashGravity'] !="") && ($page == "logPrint")) { include (INCLUDES.'efficiency.inc.php'); } ?>
|
||||
|
||||
<?php if (($row_pref['mashDisplayMethod'] == "1") && ($row_log['brewMashProfile'] != "")) { // Use mash profiles DB ?>
|
||||
<div id="headerContent">Mash Profile</div>
|
||||
<div id="dataContainer">
|
||||
<div class="headerContent">Mash Profile</div>
|
||||
<div class="dataContainer">
|
||||
<h3><em><?php echo $row_mash_profiles['mashProfileName']; ?></em></h3>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
@@ -57,8 +57,8 @@ if (($row_log['brewPreBoilAmt'] != "") && ($row_log['brewMashGravity'] !="") &&
|
||||
<?php }
|
||||
if (($row_pref['mashDisplayMethod'] == "2") || (($row_pref['mashDisplayMethod'] == "1") && ($row_log['brewMashProfile'] == ""))) { // unique mash profiles for every log
|
||||
if ($row_log['brewMashType'] != "" ) { // hide entire set of mash rows if first is not present ?>
|
||||
<div id="headerContent">Mash</div>
|
||||
<div id="dataContainer">
|
||||
<div class="headerContent">Mash</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
39
sections/recipe_non-fermentables.inc.php
Normal file
39
sections/recipe_non-fermentables.inc.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php if (($row_log['brewMisc1Name'] != "") && ($row_log['brewMisc1Amount'] != "")) { // hide entire set of misc rows if first is not present (4) ?>
|
||||
<div class="headerContent"><a name="recipe" id="recipe"></a>Non-Fermentables</div>
|
||||
<div class="dataContainer">
|
||||
<tr>
|
||||
<td class="dataLeft"><?php echo $row_log['brewMisc1Amount']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewMisc1Name']; if ($row_log['brewMisc1Time'] !="") echo " @ ".$row_log['brewMisc1Time']." minutes"; else echo ""; if ($row_log['brewMisc1Use'] !="") echo " (".$row_log['brewMisc1Use'].")"; else echo ""; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php if ($row_log['brewMisc2Name'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php echo $row_log['brewMisc2Amount']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewMisc2Name']; if ($row_log['brewMisc2Time'] !="") echo " @ ".$row_log['brewMisc2Time']." minutes"; else echo ""; if ($row_log['brewMisc2Use'] !="") echo " (".$row_log['brewMisc2Use'].")"; else echo ""; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewMisc3Name'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php echo $row_log['brewMisc3Amount']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewMisc3Name']; if ($row_log['brewMisc3Time'] !="") echo " @ ".$row_log['brewMisc3Time']." minutes"; else echo ""; if ($row_log['brewMisc3Use'] !="") echo " (".$row_log['brewMisc3Use'].")"; else echo ""; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewMisc4Name'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><?php echo $row_log['brewMisc4Amount']; ?></td>
|
||||
<td class="data"><?php echo $row_log['brewMisc4Name']; if ($row_log['brewMisc4Time'] !="") echo " @ ".$row_log['brewMisc4Time']." minutes"; else echo ""; if ($row_log['brewMisc4Use'] !="") echo " (".$row_log['brewMisc4Use'].")"; else echo ""; ?></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($action == "scale") { ?>
|
||||
<tr>
|
||||
<td colspan="3" class="text_9 red">* Amounts are NOT scaled in this section. Original yield is <?php echo $row_log['brewYield']." ".$row_pref['measFluid2']; ?>. Adjust accordingly.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide Misc ?>
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php if ($row_log['brewNotes'] != "" ) { ?>
|
||||
<div id="headerContent">Notes</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewNotes']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewNotes'] != "" ) { ?>
|
||||
<div class="headerContent">Notes</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewNotes']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php if ($row_log['brewProcedure'] != "" ) { ?>
|
||||
<div id="headerContent">Procedure</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewProcedure']; ?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewProcedure'] != "" ) { ?>
|
||||
<div class="headerContent">Procedure</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewProcedure']; ?>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -1,86 +1,86 @@
|
||||
<a name="tasting" id="tasting"></a>
|
||||
<div id="headerContent">Tasting Reviews</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft" width="1%"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle" border="0"></td>
|
||||
<td class="data" width="10%"><?php echo $totalRows_review; ?> Review<?php if ($totalRows_review != 1) echo "s" ?></td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>page_add.png" align="absmiddle" border="0">
|
||||
<td class="data" width="10%" nowrap><a href="sections/add_review.inc.php?id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=800" title="Submit a Review for <?php echo $row_log['brewName']; ?>" class="thickbox">Submit a Review</a></td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>arrow_refresh.png" align="absmiddle" border="0"></td>
|
||||
<td class="data" nowrap><a href="JavaScript:location.reload(true);">Refresh Page</a></td>
|
||||
<?php if ($totalRows_review > 5) { ?>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>eye.png" align="absmiddle" border="0"></td>
|
||||
<td class="data"><?php if ($view != "all") { ?><a href="<?php echo "index.php?page=".$page."&filter=".$filter."&id=".$id."&view=all#tasting"; ?>">View All</a><?php } else { ?><a href="<?php echo "index.php?page=".$page."&filter=".$filter."&id=".$id."&view=limited#tasting"; ?>">View Latest 5</a><?php } ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($totalRows_review != 0) { ?>
|
||||
<table class="text_10 dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft" width="1%"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" width="10%" nowrap>45-50 = Outstanding</td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>award_star_silver_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" width="10%" nowrap>30-37 = Very Good</td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>bell.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>14-20 = Fair</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>award_star_gold_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>38-44 = Excellent</td>
|
||||
<td class="data"><img src="<?php echo $imageSrc; ?>award_star_bronze_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>21-29 = Good</td>
|
||||
<td class="data"><img src="<?php echo $imageSrc; ?>emoticon_unhappy.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>00-13 = Problematic</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php do { ?>
|
||||
<?php include ('includes/taste_calc.inc.php'); ?>
|
||||
<div id="wideWrapperReview">
|
||||
<div id="referenceHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle" border="0"></span><span class="data">Review by <?php echo $row_review['brewScoredBy']; if ($row_review['brewScorerLevel'] != "") echo " (".$row_review['brewScorerLevel'].")"; ?></span></div>
|
||||
<table class="dataTable">
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Aroma: </td>
|
||||
<td class="data" width="15%" nowrap><?php echo $row_review['brewAromaScore']; ?> / 12 </td>
|
||||
<td class="data" width="75%" ><?php echo $row_review['brewAromaInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Appearance:</td>
|
||||
<td class="data"><?php echo $row_review['brewAppearanceScore']; ?> / 3 </td>
|
||||
<td class="data"><?php echo $row_review['brewAppearanceInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Flavor:</td>
|
||||
<td class="data"><?php echo $row_review['brewFlavorScore']; ?> / 20 </td>
|
||||
<td class="data"><?php echo $row_review['brewFlavorInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Mouthfeel:</td>
|
||||
<td class="data"><?php echo $row_review['brewMouthfeelScore']; ?> / 5 </td>
|
||||
<td class="data"><?php echo $row_review['brewMouthfeelInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Overall Impression: </td>
|
||||
<td class="data"><?php echo $row_review['brewOverallScore']; ?> / 10</td>
|
||||
<td class="data"><?php echo $row_review['brewOverallInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Cumulative Score:</td>
|
||||
<td class="data" nowrap><?php echo $taste_calc; ?> / 50 </td>
|
||||
<td class="data dataLabel">
|
||||
<?php
|
||||
if ($taste_calc >= 45) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0"></span><span class="dk data">Outstanding</span><?php }
|
||||
if ($taste_calc >= 38 && $taste_calc <= 44) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_gold_2.png" align="absmiddle" border="0"></span><span class="dk data">Excellent</span><?php }
|
||||
if ($taste_calc >= 30 && $taste_calc <= 37) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_silver_2.png" align="absmiddle" border="0"></span><span class="dk data">Very Good</span><?php }
|
||||
if ($taste_calc >= 21 && $taste_calc <= 29) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_bronze_2.png" align="absmiddle" border="0"></span><span class="dk data">Good</span><?php }
|
||||
if ($taste_calc >= 14 && $taste_calc <= 20) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>bell.png" align="absmiddle" border="0"></span><span class="dk data">Fair</span><?php }
|
||||
if ($taste_calc >= 00 && $taste_calc <= 13) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>bell_error.png" align="absmiddle" border="0"></span><span class="dk data">Problematic</span><?php }
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } while ($row_review = mysql_fetch_assoc($review)); ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<a name="tasting" id="tasting"></a>
|
||||
<div class="headerContent">Tasting Reviews</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft" width="1%"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle" border="0"></td>
|
||||
<td class="data" width="10%"><?php echo $totalRows_review; ?> Review<?php if ($totalRows_review != 1) echo "s" ?></td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>page_add.png" align="absmiddle" border="0">
|
||||
<td class="data" width="10%" nowrap><a href="sections/add_review.inc.php?id=<?php echo $row_log['id']; ?>&KeepThis=true&TB_iframe=true&height=450&width=800" title="Submit a Review for <?php echo $row_log['brewName']; ?>" class="thickbox">Submit a Review</a></td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>arrow_refresh.png" align="absmiddle" border="0"></td>
|
||||
<td class="data" nowrap><a href="JavaScript:location.reload(true);">Refresh Page</a></td>
|
||||
<?php if ($totalRows_review > 5) { ?>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>eye.png" align="absmiddle" border="0"></td>
|
||||
<td class="data"><?php if ($view != "all") { ?><a href="<?php echo "index.php?page=".$page."&filter=".$filter."&id=".$id."&view=all#tasting"; ?>">View All</a><?php } else { ?><a href="<?php echo "index.php?page=".$page."&filter=".$filter."&id=".$id."&view=limited#tasting"; ?>">View Latest 5</a><?php } ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($totalRows_review != 0) { ?>
|
||||
<table class="text_10 dataTable">
|
||||
<tr>
|
||||
<td class="dataLeft" width="1%"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" width="10%" nowrap>45-50 = Outstanding</td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>award_star_silver_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" width="10%" nowrap>30-37 = Very Good</td>
|
||||
<td class="data" width="1%"><img src="<?php echo $imageSrc; ?>bell.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>14-20 = Fair</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>award_star_gold_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>38-44 = Excellent</td>
|
||||
<td class="data"><img src="<?php echo $imageSrc; ?>award_star_bronze_2.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>21-29 = Good</td>
|
||||
<td class="data"><img src="<?php echo $imageSrc; ?>emoticon_unhappy.png" align="absmiddle" border="0" /></td>
|
||||
<td class="data" nowrap>00-13 = Problematic</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php do { ?>
|
||||
<?php include (INCLUDES.'taste_calc.inc.php'); ?>
|
||||
<div id="wideWrapperReview">
|
||||
<div id="referenceHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle" border="0"></span><span class="data">Review by <?php echo $row_review['brewScoredBy']; if ($row_review['brewScorerLevel'] != "") echo " (".$row_review['brewScorerLevel'].")"; ?></span></div>
|
||||
<table class="dataTable">
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Aroma: </td>
|
||||
<td class="data" width="15%" nowrap><?php echo $row_review['brewAromaScore']; ?> / 12 </td>
|
||||
<td class="data" width="75%" ><?php echo $row_review['brewAromaInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Appearance:</td>
|
||||
<td class="data"><?php echo $row_review['brewAppearanceScore']; ?> / 3 </td>
|
||||
<td class="data"><?php echo $row_review['brewAppearanceInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Flavor:</td>
|
||||
<td class="data"><?php echo $row_review['brewFlavorScore']; ?> / 20 </td>
|
||||
<td class="data"><?php echo $row_review['brewFlavorInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Mouthfeel:</td>
|
||||
<td class="data"><?php echo $row_review['brewMouthfeelScore']; ?> / 5 </td>
|
||||
<td class="data"><?php echo $row_review['brewMouthfeelInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color1; ?>">
|
||||
<td class="dataLabelLeft">Overall Impression: </td>
|
||||
<td class="data"><?php echo $row_review['brewOverallScore']; ?> / 10</td>
|
||||
<td class="data"><?php echo $row_review['brewOverallInfo']; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php echo $color2; ?>">
|
||||
<td class="dataLabelLeft">Cumulative Score:</td>
|
||||
<td class="data" nowrap><?php echo $taste_calc; ?> / 50 </td>
|
||||
<td class="data dataLabel">
|
||||
<?php
|
||||
if ($taste_calc >= 45) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0"></span><span class="dk data">Outstanding</span><?php }
|
||||
if ($taste_calc >= 38 && $taste_calc <= 44) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_gold_2.png" align="absmiddle" border="0"></span><span class="dk data">Excellent</span><?php }
|
||||
if ($taste_calc >= 30 && $taste_calc <= 37) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_silver_2.png" align="absmiddle" border="0"></span><span class="dk data">Very Good</span><?php }
|
||||
if ($taste_calc >= 21 && $taste_calc <= 29) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>award_star_bronze_2.png" align="absmiddle" border="0"></span><span class="dk data">Good</span><?php }
|
||||
if ($taste_calc >= 14 && $taste_calc <= 20) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>bell.png" align="absmiddle" border="0"></span><span class="dk data">Fair</span><?php }
|
||||
if ($taste_calc >= 00 && $taste_calc <= 13) { ?><span class="data_icon"><img src="<?php echo $imageSrc; ?>bell_error.png" align="absmiddle" border="0"></span><span class="dk data">Problematic</span><?php }
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } while ($row_review = mysql_fetch_assoc($review)); ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php if ($row_log['brewSpecialProcedure'] != "" ) { ?>
|
||||
<div id="headerContent">Special Procedures</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewSpecialProcedure']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewSpecialProcedure'] != "" ) { ?>
|
||||
<div class="headerContent">Special Procedures</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td valign="top"><?php echo $row_log['brewSpecialProcedure']; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -4,8 +4,8 @@ $styles = mysql_query($query_styles, $brewing) or die(mysql_error());
|
||||
$row_styles = mysql_fetch_assoc($styles);
|
||||
$totalRows_styles = mysql_num_rows($styles);
|
||||
?>
|
||||
<div id="headerContent">Specifics</div>
|
||||
<div id="dataContainer">
|
||||
<div class="headerContent">Specifics</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
@@ -50,7 +50,7 @@ $totalRows_styles = mysql_num_rows($styles);
|
||||
<td class="dataLabelLeft"><?php if (($page == "recipePrint") || ($page == "logPrint")) echo ""; else { ?><div id="help"><a href="sections/reference.inc.php?section=color&source=log&KeepThis=true&TB_iframe=true&height=350&width=600" title="SRM Color Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference"></a></div><?php } ?>Color (<?php if ($row_pref['measColor'] == "EBC") echo "EBC"; else echo "SRM"; ?>/<?php if ($row_pref['measColor'] == "EBC") echo "SRM"; else echo "EBC"; ?>):</td>
|
||||
<td class="data">
|
||||
<?php
|
||||
if (($page != "logPrint") && ($page != "recipePrint")) include ('includes/color_display.inc.php');
|
||||
if (($page != "logPrint") && ($page != "recipePrint")) include (INCLUDES.'color_display.inc.php');
|
||||
if (($page == "logPrint") || ($page == "recipePrint")) {
|
||||
if ($row_pref['measColor'] == "SRM") { echo round ($row_log['brewLovibond'], 1)."/"; echo colorconvert($row_log['brewLovibond'], "EBC"); }
|
||||
if ($row_pref['measColor'] == "EBC") { echo round ($row_log['brewLovibond'], 1)."/"; echo colorconvert($row_log['brewLovibond'], "SRM"); }
|
||||
@@ -1,143 +1,143 @@
|
||||
<?php if (($row_pref['waterDisplayMethod'] == "1") && ($row_log['brewWaterProfile'] != "")) { // Use water profiles tables ?>
|
||||
<div id="headerContent">Water Profile</div>
|
||||
<div id="dataContainer">
|
||||
<h3><em><?php echo $row_water_profiles['waterName']; ?></em></h3>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_water_profiles['waterCalcium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Calicum:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterCalcium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterBicarbonate'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Bicarbonate:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterBicarbonate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterSulfate'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Sulfate:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterSulfate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterChloride'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Chloride:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterChloride']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterSodium'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Sodium:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterSodium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterMagnesium'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Magnesium:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterMagnesium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterPH'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">PH:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterPH']; ?>%</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterNotes'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_pref['waterDisplayMethod'] == "2") { ?>
|
||||
<?php if ($row_log['brewWaterName'] != "" ) { // (1) hide entire water rows if name not present ?>
|
||||
<div id="headerContent">Water Profile</div>
|
||||
<div id="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterName'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Source:</td>
|
||||
<td class="dataLeft"><?php echo $row_log['brewWaterName']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterSulfate'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Sulfate:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterSulfate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterPH'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">PH:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterPH']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterCalcium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Calcium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterCalcium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterMagnesium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Magnesium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterMagnesium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td width="50%">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterAmount'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Amount:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterAmount']; ?> <?php echo $row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewWaterChloride'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Chloride:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterChloride']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterSodium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Sodium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterSodium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterNotes'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data" colspan="3"><?php echo $row_log['brewWaterNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<?php if (($row_pref['waterDisplayMethod'] == "1") && ($row_log['brewWaterProfile'] != "")) { // Use water profiles tables ?>
|
||||
<div class="headerContent">Water Profile</div>
|
||||
<div class="dataContainer">
|
||||
<h3><em><?php echo $row_water_profiles['waterName']; ?></em></h3>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_water_profiles['waterCalcium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Calicum:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterCalcium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterBicarbonate'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Bicarbonate:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterBicarbonate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterSulfate'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Sulfate:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterSulfate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterChloride'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Chloride:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterChloride']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterSodium'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Sodium:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterSodium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterMagnesium'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft" width="10%">Magnesium:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterMagnesium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterPH'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">PH:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterPH']; ?>%</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_water_profiles['waterNotes'] != "") {
|
||||
?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_water_profiles['waterNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_pref['waterDisplayMethod'] == "2") { ?>
|
||||
<?php if ($row_log['brewWaterName'] != "" ) { // (1) hide entire water rows if name not present ?>
|
||||
<div class="headerContent">Water Profile</div>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterName'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Source:</td>
|
||||
<td class="dataLeft"><?php echo $row_log['brewWaterName']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterSulfate'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Sulfate:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterSulfate']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterPH'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">PH:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterPH']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterCalcium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Calcium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterCalcium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterMagnesium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Magnesium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterMagnesium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td width="50%">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterAmount'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Amount:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterAmount']; ?> <?php echo $row_pref['measFluid2']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_log['brewWaterChloride'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Chloride:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterChloride']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($row_log['brewWaterSodium'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Sodium:</td>
|
||||
<td class="data"><?php echo $row_log['brewWaterSodium']; ?> ppm</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table>
|
||||
<?php if ($row_log['brewWaterNotes'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data" colspan="3"><?php echo $row_log['brewWaterNotes']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
83
sections/recipe_yeast.inc.php
Normal file
83
sections/recipe_yeast.inc.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php if (($page == "recipePrint") || ($page == "logPrint")) echo ""; else { if ((($row_log['brewYeast'] != "") && ($row_log['brewYeastProfile'] == "")) || (($row_log['brewYeast'] == "") && ($row_log['brewYeastProfile'] != ""))) { ?>
|
||||
<div id="help"><a href="sections/reference.inc.php?section=yeast&source=log&KeepThis=true&TB_iframe=true&height=450&width=800" title="Yeast Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Reference" /></a></div><?php } } ?>
|
||||
<div class="headerContent">Yeast</div>
|
||||
<?php if ($row_log['brewYeast'] != "") { // hide Yeast section if none listed (6) ?>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<td class="dataLeft">
|
||||
<?php
|
||||
if ($row_log['brewYeastMan'] != "" ) echo $row_log['brewYeastMan']." ";
|
||||
if ($row_log['brewYeast'] != "" ) echo $row_log['brewYeast'];
|
||||
if ($row_log['brewYeastForm'] != "" ) echo " — ".$row_log['brewYeastForm'];
|
||||
if ($row_log['brewYeastAmount'] != "" ) echo " — ".$row_log['brewYeastAmount'];
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } // end hide Yeast (6) ?>
|
||||
<?php if ($row_log['brewYeastProfile'] != "") { // show yeast profile if present
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_yeast_profiles = sprintf("SELECT * FROM yeast_profiles WHERE id='%s'", $row_log['brewYeastProfile']);
|
||||
$yeast_profiles = mysql_query($query_yeast_profiles, $brewing) or die(mysql_error());
|
||||
$row_yeast_profiles = mysql_fetch_assoc($yeast_profiles);
|
||||
?>
|
||||
<div class="dataContainer">
|
||||
<table class="dataTable">
|
||||
<?php if ($row_yeast_profiles['yeastName'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Name:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastName']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastLab'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Manufacturer:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastLab']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastProdID'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Product ID:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastProdID']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastType'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Type:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastType']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastFloc'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Flocculation:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastFloc']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastAtten'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Attenuation:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastAtten']; ?>%</td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastTolerance'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Alcohol Tolerance:</td>
|
||||
<td class="data"><?php echo $row_yeast_profiles['yeastTolerance']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_yeast_profiles['yeastMinTemp'] != "") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Temperature Range:</td>
|
||||
<td class="data"><?php if ($row_pref['measTemp'] == "C") { echo round(((($row_yeast_profiles['yeastMinTemp'] - 32) / 9) * 5), 0)."–"; echo round(((($row_yeast_profiles['yeastMaxTemp'] - 32) / 9) * 5), 0); } else { echo $row_yeast_profiles['yeastMinTemp']."–".$row_yeast_profiles['yeastMaxTemp']; } ?>°<?php echo $row_pref['measTemp']; ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if ($row_log['brewYeastAmount'] != "" ) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Amount:</td>
|
||||
<td class="data"><?php echo $row_log['brewYeastAmount']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
Reference in New Issue
Block a user