Finalizing 2.3.1 release.
This commit is contained in:
@@ -1,66 +1,79 @@
|
||||
<div id="subtitleAdmin"><?php echo $page_title; ?></div>
|
||||
<?php if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1")) { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if ($row_pref['mode'] == "1") { ?>
|
||||
<td><?php if ($totalRows_brewing > 0) { if ($row_name['brewerFirstName'] != "") echo $row_user['realFirstName'].", there "; if ($row_name['brewerFirstName'] == "") echo "There "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " logs "; else echo " log "; echo "in the database.<br><br>"; } else echo "There are no logs found in the database.<br><br>"; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($row_pref['mode'] == "2") { ?>
|
||||
<td><?php if (($row_user['userLevel'] == "1") && ($totalRows_brewing > 0)) { echo "There "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " BrewBlogs "; else echo " BrewBlog "; echo "in the database.<br><br>"; } elseif (($row_user['userLevel'] == "2") && ($totalRows_brewing > 0 )) { echo $row_user['realFirstName'].", there "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " logs "; else echo " log "; echo "in your personal database.<br><br>"; } else echo "There are no logs found in the database.<br><br>"; ?></td>
|
||||
<?php } ?>
|
||||
<td width="10%" nowrap><?php include ('includes/list_add_link.inc.php'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($confirm == "true") { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error"><?php if ($msg == "1") echo $msg1; if ($msg == "2") echo $msg2; if ($msg == "3") echo $msg3; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($totalRows_brewing != 0) { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataHeadingList">Brew Name<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewName&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewName&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Style<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewStyle&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewStyle&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Date<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewDate&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewDate&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Batch #<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewBatchNum&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewBatchNum&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataHeadingList">Brewer ID<a href="index.php?action=list&dbTable=brewing&sort=brewBrewerID&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewBrewerID&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<?php } ?>
|
||||
<td class="dataHeadingList">Amount</td>
|
||||
<td class="dataHeadingList">Archived?</td>
|
||||
<td colspan="<?php if (!checkmobile()) echo "9"; else echo "6"; ?>" class="dataHeadingList">Actions</td>
|
||||
<td class="dataHeadingList"><?php if (!checkmobile()) { ?><div id="helpInline"><a href="includes/admin_icons.inc.php?dbTable=<?php echo $dbTable; ?>&KeepThis=true&TB_iframe=true&height=450&width=800" title="Administration Icon Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Admin Icon Reference" title="Administration Icon Reference"></a></div><?php } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php do { ?>
|
||||
<tr <?php echo " style=\"background-color:$color\"";?>>
|
||||
<td class="dataList"><?php echo $row_brewing['brewName']; ?></td>
|
||||
<td class="dataList"><?php echo $row_brewing['brewStyle']; ?></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php $date = $row_brewing['brewDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td>
|
||||
<td class="dataList"><?php echo $row_brewing['brewBatchNum']; ?> </td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataList"><?php if ($filter == "all") { ?><a href="index.php?action=list&dbTable=brewing&filter=<?php echo $row_brewing['brewBrewerID']; ?>"><?php echo $row_brewing['brewBrewerID']; ?></a><?php } else echo $row_brewing['brewBrewerID']; ?></td>
|
||||
<?php } ?>
|
||||
<td class="dataList" nowrap="nowrap"><?php echo $row_brewing['brewYield']." ".$row_pref['measFluid2']; ?></td>
|
||||
<td class="data_icon_list"><?php if ($row_brewing['brewArchive'] == "Y") { ?><img src="<?php echo $imageSrc; ?>tick.png" align="absmiddle" border="0" alt="<?php echo $row_brewing['brewName']; ?> is archived" title="<?php echo $row_brewing['brewName']; ?> is archived"><? } else echo " "; ?></td>
|
||||
<td class="data_icon_list"><a href="../index.php?page=brewBlogDetail&id=<?php echo $row_brewing['id']; if ($row_pref['mode'] == "2") echo "&filter=".$row_brewing['brewBrewerID']; ?>"><img src="<?php echo $imageSrc; ?>monitor.png" align="absmiddle" border="0" alt="View <?php echo $row_brewing['brewName']; ?>" title="View <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=reuse&dbTable=brewing&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>page_refresh.png" align="absmiddle" border="0" alt="Reuse <?php echo $row_brewing['brewName']; ?>" title="Reuse <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=importRecipe&dbTable=recipes&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>page_lightning.png" align="absmiddle" border="0" alt="Import <?php echo $row_brewing['brewName']; ?> to the Recipe Database" title="Import <?php echo $row_brewing['brewName']; ?> to the Recipe Database"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=edit&dbTable=brewing&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>pencil.png" align="absmiddle" border="0" alt="Edit <?php echo $row_brewing['brewName']; ?>" title="Edit <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="javascript:DelWithCon('index.php?action=delete&dbTable=brewing','id',<?php echo $row_brewing['id']; ?>,'Are you sure you want to delete this BrewBlog?');"><img src="<?php echo $imageSrc; ?>bin_closed.png" align="absmiddle" border="0" alt="Delete <?php echo $row_brewing['brewName']; ?>" title="Delete <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=calculate&source=brewing&results=false<?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; ?>calculator.png" align="absmiddle" border="0" alt="Recalculate <?php echo $row_brewing['brewName']; ?>" title="Recalculate <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<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"><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_log['brewName']; ?>" title="Print a contest entry sheet for <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_brewing = mysql_fetch_assoc($brewing)); ?>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php } // end if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1"))
|
||||
else include('includes/error_privileges.inc.php');
|
||||
<div id="subtitleAdmin"><?php echo $page_title; ?></div>
|
||||
<?php if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1")) { ?>
|
||||
<form name="form1" method="post" action="process.php?action=massUpdate&dbTable=<?php echo $dbTable; ?>&filter=<?php echo $filter; ?>&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if ($row_pref['mode'] == "1") { ?>
|
||||
<td><?php if ($totalRows_brewing > 0) { if ($row_name['brewerFirstName'] != "") echo $row_user['realFirstName'].", there "; if ($row_name['brewerFirstName'] == "") echo "There "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " logs "; else echo " log "; echo "in the database.<br><br>"; } else echo "There are no logs found in the database.<br><br>"; ?></td>
|
||||
<?php } ?>
|
||||
<?php if ($row_pref['mode'] == "2") { ?>
|
||||
<td><?php if (($row_user['userLevel'] == "1") && ($totalRows_brewing > 0)) { echo "There "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " BrewBlogs "; else echo " BrewBlog "; echo "in the database.<br><br>"; } elseif (($row_user['userLevel'] == "2") && ($totalRows_brewing > 0 )) { echo $row_user['realFirstName'].", there "; if ($totalRows_brewing > 1 ) echo "are "; else echo "is "; echo $totalRows_brewing; if ($totalRows_brewing > 1 ) echo " logs "; else echo " log "; echo "in your personal database.<br><br>"; } else echo "There are no logs found in the database.<br><br>"; ?></td>
|
||||
<?php } ?>
|
||||
<td width="10%" nowrap><?php include ('includes/list_add_link.inc.php'); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($confirm == "true") { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error"><?php if ($msg == "1") echo $msg1; if ($msg == "2") echo $msg2; if ($msg == "3") echo $msg3; if ($msg == "9") echo $msg9; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($totalRows_brewing != 0) { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td colspan="18" align="right" class="dataHeadingList"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_update_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Update" class="radiobutton" value="Update"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataHeadingList">Brew Name<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewName&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewName&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Style<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewStyle&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewStyle&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Date<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewDate&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewDate&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Batch #<?php if (!checkmobile()) { ?> <a href="index.php?action=list&dbTable=brewing&sort=brewBatchNum&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewBatchNum&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a><?php } ?></td>
|
||||
<td class="dataHeadingList">Amount</td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataHeadingList">Brewer ID<a href="index.php?action=list&dbTable=brewing&sort=brewBrewerID&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=brewing&sort=brewBrewerID&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<?php } if ($row_user['userLevel'] == "1") { ?>
|
||||
<td class="data_icon_list"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0" alt="<?php echo $row_pref['menuRecipes']; ?> Featured?" title="<?php echo $row_pref['menuRecipes']; ?> Featured?"></td>
|
||||
<?php } ?>
|
||||
<td class="data_icon_list"><img src="<?php echo $imageSrc; ?>lock.png" align="absmiddle" border="0" alt="<?php echo $row_pref['menuRecipes']; ?> Archived?" title="<?php echo $row_pref['menuRecipes']; ?> Archived?"></td>
|
||||
<td colspan="<?php if (!checkmobile()) echo "9"; else echo "6"; ?>" class="dataHeadingList">Actions</td>
|
||||
<td class="dataHeadingList"><?php if (!checkmobile()) { ?><div id="helpInline"><a href="includes/admin_icons.inc.php?dbTable=<?php echo $dbTable; ?>&KeepThis=true&TB_iframe=true&height=450&width=800" title="Administration Icon Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Admin Icon Reference" title="Administration Icon Reference"></a></div><?php } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php do { ?>
|
||||
<input type="hidden" name="id[]" value="<?php echo $row_brewing['id']; ?>" />
|
||||
<tr <?php echo " style=\"background-color:$color\"";?>>
|
||||
<td class="dataList"><?php echo $row_brewing['brewName']; ?></td>
|
||||
<td class="dataList"><?php echo $row_brewing['brewStyle']; ?></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php $date = $row_brewing['brewDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td>
|
||||
<td class="dataList"><?php echo $row_brewing['brewBatchNum']; ?> </td>
|
||||
<td class="dataList" nowrap="nowrap"><?php echo $row_brewing['brewYield']." ".$row_pref['measFluid2']; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataList"><?php if ($filter == "all") { ?><a href="index.php?action=list&dbTable=brewing&filter=<?php echo $row_brewing['brewBrewerID']; ?>"><?php echo $row_brewing['brewBrewerID']; ?></a><?php } else echo $row_brewing['brewBrewerID']; ?></td>
|
||||
<?php } if ($row_user['userLevel'] == "1") { ?>
|
||||
<td class="data_icon_list"><input id="brewFeatured" name="brewFeatured<?php echo $row_brewing['id']; ?>" type="checkbox" value="Y" <?php if ($row_brewing['brewFeatured'] == "Y") echo "checked"; else ""; ?> /></td>
|
||||
<?php } ?>
|
||||
<td class="data_icon_list"><input id="brewArchive" name="brewArchive<?php echo $row_brewing['id']; ?>" type="checkbox" value="Y" <?php if ($row_brewing['brewArchive'] == "Y") echo "checked"; else ""; ?> /></td>
|
||||
<td class="data_icon_list"><a href="../index.php?page=brewBlogDetail&id=<?php echo $row_brewing['id']; if ($row_pref['mode'] == "2") echo "&filter=".$row_brewing['brewBrewerID']; ?>"><img src="<?php echo $imageSrc; ?>monitor.png" align="absmiddle" border="0" alt="View <?php echo $row_brewing['brewName']; ?>" title="View <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=reuse&dbTable=brewing&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>page_refresh.png" align="absmiddle" border="0" alt="Reuse <?php echo $row_brewing['brewName']; ?>" title="Reuse <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=importRecipe&dbTable=recipes&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>page_lightning.png" align="absmiddle" border="0" alt="Import <?php echo $row_brewing['brewName']; ?> to the Recipe Database" title="Import <?php echo $row_brewing['brewName']; ?> to the Recipe Database"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=edit&dbTable=brewing&id=<?php echo $row_brewing['id']; ?>"><img src="<?php echo $imageSrc; ?>pencil.png" align="absmiddle" border="0" alt="Edit <?php echo $row_brewing['brewName']; ?>" title="Edit <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="javascript:DelWithCon('index.php?action=delete&dbTable=brewing','id',<?php echo $row_brewing['id']; ?>,'Are you sure you want to delete this BrewBlog?');"><img src="<?php echo $imageSrc; ?>bin_closed.png" align="absmiddle" border="0" alt="Delete <?php echo $row_brewing['brewName']; ?>" title="Delete <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=calculate&source=brewing&results=false<?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; ?>calculator.png" align="absmiddle" border="0" alt="Recalculate <?php echo $row_brewing['brewName']; ?>" title="Recalculate <?php echo $row_brewing['brewName']; ?>"></a></td>
|
||||
<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"><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>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_brewing = mysql_fetch_assoc($brewing)); ?>
|
||||
<tr>
|
||||
<td colspan="18" align="right" class="dataHeadingList"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_update_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Update" class="radiobutton" value="Update"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php } ?>
|
||||
<?php } // end if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1"))
|
||||
else include('includes/error_privileges.inc.php');
|
||||
?>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="subtitleAdmin"><?php echo $page_title; ?></div>
|
||||
<?php if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1")) { ?>
|
||||
|
||||
<form name="form1" method="post" action="process.php?action=massUpdate&dbTable=<?php echo $dbTable; ?>&filter=<?php echo $filter; ?>&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if ($row_pref['mode'] == "1") { ?>
|
||||
@@ -15,32 +15,40 @@
|
||||
<?php if ($confirm == "true") { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="error"><?php if ($msg == "1") echo $msg1; if ($msg == "2") echo $msg2; if ($msg == "3") echo $msg3; ?></td>
|
||||
<td class="error"><?php if ($msg == "1") echo $msg1; if ($msg == "2") echo $msg2; if ($msg == "3") echo $msg3; if ($msg == "9") echo $msg9; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if (($totalRows_log != 0) == ($view == "limited")) { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td colspan="16" align="right" class="dataHeadingList"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_update_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Update" class="radiobutton" value="Update"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataHeadingList">Name <a href="index.php?action=list&dbTable=recipes&sort=brewName&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewName&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Style <a href="index.php?action=list&dbTable=recipes&sort=brewStyle&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewStyle&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Method <a href="index.php?action=list&dbTable=recipes&sort=brewMethod&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewMethod&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataHeadingList">Brewer ID<a href="index.php?action=list&dbTable=recipes&sort=brewBrewerID&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewBrewerID&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
|
||||
<?php } if ($row_user['userLevel'] == "1") { ?>
|
||||
<td class="data_icon_list"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0" alt="<?php echo $row_pref['menuRecipes']; ?> Featured?" title="<?php echo $row_pref['menuRecipes']; ?> Featured?"></td>
|
||||
<?php } ?>
|
||||
<td class="dataHeadingList">Archived?</td>
|
||||
<td class="data_icon_list"><img src="<?php echo $imageSrc; ?>lock.png" align="absmiddle" border="0" alt="<?php echo $row_pref['menuRecipes']; ?> Archived?" title="<?php echo $row_pref['menuRecipes']; ?> Archived?"></td>
|
||||
<td colspan="<?php if (!checkmobile()) echo "8"; else echo "6" ?>" class="dataHeadingList">Actions</td>
|
||||
<td class="dataHeadingList"><?php if (!checkmobile()) { ?><div id="helpInline"><a href="includes/admin_icons.inc.php?dbTable=<?php echo $dbTable; ?>&KeepThis=true&TB_iframe=true&height=450&width=800" title="Administration Icon Reference" class="thickbox"><img src="<?php echo $imageSrc; ?>information.png" align="absmiddle" border="0" alt="Admin Icon Reference" title="Administration Icon Reference"></a></div><?php } else echo " "; ?></td>
|
||||
</tr>
|
||||
<?php do { ?>
|
||||
<input type="hidden" name="id[]" value="<?php echo $row_log['id']; ?>" />
|
||||
<tr <?php echo " style=\"background-color:$color\"";?>>
|
||||
<td class="dataList"><?php echo $row_log['brewName']; ?></td>
|
||||
<td class="dataList"><?php echo $row_log['brewStyle']; ?></td>
|
||||
<td class="dataList"><?php echo $row_log['brewMethod']; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<td class="dataList"><a href="index.php?action=list&dbTable=recipes&filter=<?php echo $row_log['brewBrewerID']; ?>"><?php echo $row_log['brewBrewerID']; ?></a></td>
|
||||
<?php } if ($row_user['userLevel'] == "1") { ?>
|
||||
<td class="data_icon_list"><input id="brewFeatured" name="brewFeatured<?php echo $row_log['id']; ?>" type="checkbox" value="Y" <?php if ($row_log['brewFeatured'] == "Y") echo "checked"; else ""; ?> /></td>
|
||||
<?php } ?>
|
||||
<td class="data_icon_list"><?php if ($row_log['brewArchive'] == "Y") { ?><img src="<?php echo $imageSrc; ?>tick.png" align="absmiddle" border="0" alt="<?php echo $row_log['brewName']; ?> is archived" title="<?php echo $row_log['brewName']; ?> is archived"><? } else echo " "; ?></td>
|
||||
<td class="data_icon_list"><input id="brewArchive" name="brewArchive<?php echo $row_log['id']; ?>" type="checkbox" value="Y" <?php if ($row_log['brewArchive'] == "Y") echo "checked"; else ""; ?> /></td>
|
||||
<td class="data_icon_list"><a href="../index.php?page=recipeDetail&id=<?php echo $row_log['id']; if ($row_pref['mode'] == "2") echo "&filter=".$row_log['brewBrewerID']; ?>"><img src="<?php echo $imageSrc; ?>monitor.png" align="absmiddle" border="0" alt="View <?php echo $row_log['brewName']; ?>" title="View <?php echo $row_log['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=reuse&dbTable=recipes&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_refresh.png" align="absmiddle" border="0" alt="Copy <?php echo $row_log['brewName']; ?>" title="Copy <?php echo $row_log['brewName']; ?>"></a></td>
|
||||
<td class="data_icon_list"><a href="index.php?action=import&dbTable=brewing&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_lightning.png" align="absmiddle" border="0" alt="Import <?php echo $row_log['brewName']; ?> to BrewBlog" title="Import <?php echo $row_log['brewName']; ?> to BrewBlog"></a></td>
|
||||
@@ -55,9 +63,12 @@
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_log = mysql_fetch_assoc($log)); ?>
|
||||
<tr>
|
||||
<td colspan="16" align="right" class="dataHeadingList"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_update_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Update" class="radiobutton" value="Update"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
</form>
|
||||
<?php } // end if ((($row_user['userLevel'] == "2") && ($filter == $_SESSION['loginUsername'])) || ($row_user['userLevel'] == "1"))
|
||||
else include('includes/error_privileges.inc.php');
|
||||
?>
|
||||
|
||||
@@ -21,69 +21,92 @@ $imageSrc = "../../images/";
|
||||
<div id="wideWrapperReference">
|
||||
<div id="referenceHeader">Icons: <?php echo $dbName; ?> List</div>
|
||||
<table>
|
||||
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes")) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>star.png" align="absmiddle" border="0" alt="View"></td>
|
||||
<td class="data text_9_bold">Featured</td>
|
||||
<td class="data">A check indicates that the <?php echo $msgName; ?> is featured at the top of lists on the public areas of the site.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>lock.png" align="absmiddle" border="0" alt="View"></td>
|
||||
<td class="data text_9_bold">Archived</td>
|
||||
<td class="data">A check indicates that the <?php echo $msgName; ?> is archived and not visible on the public areas of the site.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes") || ($dbTable == "upcoming") || ($dbTable == "awards") || ($dbTable == "reviews") || ($dbTable == "mash_profiles")) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>monitor.png" align="absmiddle" border="0" alt="View"></td>
|
||||
<td class="data">View. Action will take you to the selected <?php echo $msgName; ?>'s display page.</td>
|
||||
</tr>
|
||||
<td class="data text_9_bold">View</td>
|
||||
<td class="data">Action will take you to the selected <?php echo $msgName; ?>'s display page.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes") || ($dbTable == "equip_profiles") || ($dbTable == "water_profiles") || ($dbTable == "mash_profiles") || ($dbTable == "yeast_profiles")) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>page_refresh.png" align="absmiddle" border="0" alt="Reuse"></td>
|
||||
<td class="data"><?php if ($dbTable == "brewing") echo "Re-Use"; else echo "Copy"; ?>. Action will copy the vital information into a new <?php echo $msgName; ?>.</td>
|
||||
<td class="data text_9_bold"><?php if ($dbTable == "brewing") echo "Re-Use"; else echo "Copy"; ?></td>
|
||||
<td class="data">Action will copy the vital information into a new <?php echo $msgName; ?>.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes")) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>page_lightning.png" align="absmiddle" border="0" alt="Import"></td>
|
||||
<td class="data">Import. Action will copy the selected <?php echo $msgName; ?> into a new <?php if ($dbTable == "brewing") echo "recipe"; else echo "log"; ?>.</td>
|
||||
<td class="data text_9_bold">Import</td>
|
||||
<td class="data">Action will copy the selected <?php echo $msgName; ?> into a new <?php if ($dbTable == "brewing") echo "recipe"; else echo "log"; ?>.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($dbTable == "mash_profiles") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>add.png" align="absmiddle" border="0" alt="Add"></td>
|
||||
<td class="data">Add. Function will allow you to add a mash step to the selected profile.</td>
|
||||
<td class="data text_9_bold">Add</td>
|
||||
<td class="data">Function will allow you to add a mash step to the selected profile.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ($dbTable == "users") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>key.png" align="absmiddle" border="0" alt="Password"></td>
|
||||
<td class="data">Change the selected user's password.</td>
|
||||
<td class="data text_9_bold">Password</td>
|
||||
<td class="data">Change the selected user's password.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="dataLeft" width="20px"><img src="<?php echo $imageSrc; ?>pencil.png" align="absmiddle" border="0" alt="Edit"></td>
|
||||
<td class="data">Edit. Action will take you to the selected <?php echo $msgName; ?>'s record to make changes.</td>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>pencil.png" align="absmiddle" border="0" alt="Edit"></td>
|
||||
<td class="data text_9_bold">Edit</td>
|
||||
<td class="data">Action will take you to the selected <?php echo $msgName; ?>'s record to make changes.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>bin_closed.png" align="absmiddle" border="0" alt="Delete"></td>
|
||||
<td class="data">Delete. Action will permanently delete the selected <?php echo $msgName; ?> from the database. Data will not be recoverable.</td>
|
||||
<td class="data text_9_bold">Delete</td>
|
||||
<td class="data">Action will permanently delete the selected <?php echo $msgName; ?> from the database. Data will not be recoverable.</td>
|
||||
</tr>
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes")) { ?>
|
||||
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>calculator.png" alt="Recalculate Icon" border="0"></td>
|
||||
<td class="data">Recalculate. Action will load the selected <?php echo $msgName; ?> into the BrewBlogger recipe calculator.</td>
|
||||
<td class="data text_9_bold">Recalculate</td>
|
||||
<td class="data">Action will load the selected <?php echo $msgName; ?> into the BrewBlogger recipe calculator.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" align="absmiddle" border="0" alt="Award/Competition Entry"></td>
|
||||
<td class="data">Add an award or competition entry for the selected <?php echo $msgName; ?>.</td>
|
||||
<td class="data text_9_bold">Awards</td>
|
||||
<td class="data">Add an award or competition entry for the selected <?php echo $msgName; ?>.</td>
|
||||
</tr>
|
||||
<?php if (($dbTable == "brewing") || ($dbTable == "recipes")) { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>page_code.png" align="absmiddle" border="0" alt="Export BeerXML"></td>
|
||||
<td class="data">Export a BeerXML file for the selected <?php echo $msgName; ?>.</td>
|
||||
<td class="data text_9_bold">BeerXML</td>
|
||||
<td class="data">Export a BeerXML file for the selected <?php echo $msgName; ?>.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>printer.png" align="absmiddle" border="0" alt="Print"></td>
|
||||
<td class="data">Print. Action will pop-up the print function for the selected <?php echo $msgName; ?>.</td>
|
||||
<td class="data text_9_bold">Print</td>
|
||||
<td class="data">Action will pop-up the print function for the selected <?php echo $msgName; ?>.</td>
|
||||
</tr>
|
||||
<?php if ($dbTable == "brewing") { ?>
|
||||
<tr>
|
||||
<td class="dataLeft"><img src="<?php echo $imageSrc; ?>award_star_add.png" align="absmiddle" border="0" alt="Print"></td>
|
||||
<td class="data">Print a competition entry form. Action will pop-up the print competition entry function for the selected <?php echo $msgName; ?>.</td>
|
||||
<td class="data text_9_bold">Competition Entry</td>
|
||||
<td class="data">Print a competition entry form. Action will pop-up the print competition entry function for the selected <?php echo $msgName; ?>.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
@@ -3005,4 +3005,27 @@ if (($action == "edit") && ($dbTable == "sugar_type")) {
|
||||
$updateGoTo = "index.php?action=list&dbTable=sugar_type&confirm=true&msg=2";
|
||||
header(sprintf("Location: %s", $updateGoTo));
|
||||
}
|
||||
|
||||
// --------------------------- If updating records en masse ------------------------------- //
|
||||
|
||||
if ($action == "massUpdate") {
|
||||
|
||||
|
||||
foreach($_POST['id'] as $id)
|
||||
|
||||
{
|
||||
if ($_POST['brewArchive'.$id] == "Y") $brewArchive = "Y"; else $brewArchive = "N";
|
||||
if ($_POST['brewFeatured'.$id] == "Y") $brewFeatured = "Y"; else $brewFeatured = "N";
|
||||
$updateSQL = "UPDATE $dbTable SET brewArchive='".$brewArchive."', brewFeatured='".$brewFeatured."' WHERE id='".$id."';";
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$result1 = mysql_query($updateSQL, $brewing) or die(mysql_error());
|
||||
//echo $updateSQL;
|
||||
}
|
||||
|
||||
if($result1){
|
||||
header("location: index.php?action=list&dbTable=".$dbTable."&filter=".$filter."&sort=".$sort."&dir=".$dir."&confirm=true&msg=9");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,107 +1,108 @@
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
line-height: 1.4;
|
||||
font-size: 11px;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
|
||||
/* ***************************** Custom Theme Elements ***************************** */
|
||||
|
||||
input, button, textarea, menu, select {
|
||||
border: 1px solid #9a9a9a;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
|
||||
}
|
||||
|
||||
/* ------------------ global link styles ------------------ */
|
||||
a:link { color: #0000FF; text-decoration: none; }
|
||||
a:visited { color: #0000FF; text-decoration: none; }
|
||||
a:hover { color: #990000; text-decoration: none; }
|
||||
a:active { color: #990000; text-decoration: none; }
|
||||
|
||||
#wideWrapperReference {
|
||||
margin: 10px;
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#referenceHeader {
|
||||
background: #cccccc;
|
||||
border: 1px solid #333333;
|
||||
padding: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
margin: 12px 0 3px -4px;
|
||||
}
|
||||
|
||||
#footerInclude {
|
||||
font-size: 9px;
|
||||
margin: 15px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTable { /* Use for display of SRM color */
|
||||
width: 35px;
|
||||
height: 10px;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #000000;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.referenceTop {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.colorTableRef { /* Use for display of SRM color on Reference page */
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-collapse: collapse;
|
||||
margin: 2px -2px 0 -2px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.colorTableRef2 {
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef3 {
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.carbonationTable { /* specialized style for carbonation tables */
|
||||
text-align: center;
|
||||
font-size: 9px;
|
||||
background: #FFFFFF;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.dataLabelLeft, dataLeft {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text_9_bold { font-weight: bold; }
|
||||
.bdr1L_mid { border-left: 1px solid #aaaaaa; }
|
||||
.bknd_ultra_lt { background-color: #dedede; }
|
||||
.calcButton { margin: 0; border: 0; }
|
||||
.bdr1T_dark { border-top: 1px solid #aaaaaa; }
|
||||
.dataTable { font-size: 11px; width: 50%; }
|
||||
.dk { font-weight: bold; }
|
||||
body {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
line-height: 1.4;
|
||||
font-size: 11px;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
|
||||
/* ***************************** Custom Theme Elements ***************************** */
|
||||
|
||||
input, button, textarea, menu, select {
|
||||
border: 1px solid #9a9a9a;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
|
||||
}
|
||||
|
||||
/* ------------------ global link styles ------------------ */
|
||||
a:link { color: #0000FF; text-decoration: none; }
|
||||
a:visited { color: #0000FF; text-decoration: none; }
|
||||
a:hover { color: #990000; text-decoration: none; }
|
||||
a:active { color: #990000; text-decoration: none; }
|
||||
|
||||
#wideWrapperReference {
|
||||
margin: 10px;
|
||||
font-family: inherit;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#referenceHeader {
|
||||
background: #cccccc;
|
||||
border: 1px solid #333333;
|
||||
padding: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
margin: 12px 0 3px -4px;
|
||||
}
|
||||
|
||||
#footerInclude {
|
||||
font-size: 9px;
|
||||
margin: 15px 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTable { /* Use for display of SRM color */
|
||||
width: 35px;
|
||||
height: 10px;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #000000;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.referenceTop {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.colorTableRef { /* Use for display of SRM color on Reference page */
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-collapse: collapse;
|
||||
margin: 2px -2px 0 -2px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.colorTableRef2 {
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef3 {
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.carbonationTable { /* specialized style for carbonation tables */
|
||||
text-align: center;
|
||||
font-size: 9px;
|
||||
background: #FFFFFF;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.dataLabelLeft, dataLeft {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text_9_bold { font-weight: bold; }
|
||||
.bdr1L_mid { border-left: 1px solid #aaaaaa; }
|
||||
.bknd_ultra_lt { background-color: #dedede; }
|
||||
.calcButton { margin: 0; border: 0; }
|
||||
.bdr1T_dark { border-top: 1px solid #aaaaaa; }
|
||||
.bdr1B_dark { border-top: 1px solid #aaaaaa; }
|
||||
.dataTable { font-size: 11px; width: 50%; }
|
||||
.dk { font-weight: bold; }
|
||||
|
||||
@@ -95,16 +95,20 @@ if (($row_pref['mode'] == "1") || (($row_pref['mode'] == "2") && ($filter == "al
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
//$result = mysql_query("SELECT count(*) FROM brewing");
|
||||
$query_result = "SELECT count(*) FROM brewing";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style' AND"; else $query_result .= " WHERE";
|
||||
$query_result .= " NOT brewArchive='Y'";
|
||||
$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$total = mysql_result($result, 0);
|
||||
//echo $query_result;
|
||||
//$log = mysql_query("SELECT * FROM brewing ORDER BY $sort $dir LIMIT $start, $display") or die(mysql_error());
|
||||
|
||||
$query_log = "SELECT * FROM brewing";
|
||||
if ($style != "all") $query_log .= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_log .= " WHERE brewStyle='$style' AND"; else $query_log .= " WHERE";
|
||||
$query_log .= " NOT brewArchive='Y'";
|
||||
$query_log .= " ORDER BY $sort $dir LIMIT $start, $display";
|
||||
$log = mysql_query($query_log, $brewing) or die(mysql_error());
|
||||
$row_log = mysql_fetch_assoc($log);
|
||||
//echo $query_log;
|
||||
}
|
||||
|
||||
if (($row_pref['mode'] == "2") && ($filter != "all")) {
|
||||
@@ -112,12 +116,14 @@ mysql_select_db($database_brewing, $brewing);
|
||||
//$result = mysql_query("SELECT count(*) FROM brewing WHERE brewBrewerID = '".$filter."'");
|
||||
$query_result = "SELECT count(*) FROM brewing WHERE brewBrewerID='$filter'";
|
||||
if ($style != "all") $query_result .= " AND brewStyle='$style'";
|
||||
$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$query_result .= " AND NOT brewArchive='Y'";
|
||||
//$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$total = mysql_result($result, 0);
|
||||
|
||||
//$log = mysql_query("SELECT * FROM brewing WHERE brewBrewerID = '".$filter."' ORDER BY $sort $dir LIMIT $start, $display") or die(mysql_error());
|
||||
$query_log = "SELECT * FROM brewing WHERE brewBrewerID='$filter'";
|
||||
if ($style != "all") $query_log .= " AND brewStyle='$style'";
|
||||
$query_log = " AND NOT brewArchive='Y'";
|
||||
$query_log .= " ORDER BY $sort $dir LIMIT $start, $display";
|
||||
$log = mysql_query($query_log, $brewing) or die(mysql_error());
|
||||
$row_log = mysql_fetch_assoc($log);
|
||||
@@ -298,12 +304,14 @@ if ($row_pref['mode'] == "1") {
|
||||
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_result = "SELECT count(*) FROM recipes";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style' AND"; else $query_result .= " WHERE";
|
||||
$query_result .= " NOT brewArchive='Y'";
|
||||
$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$total = mysql_result($result, 0);
|
||||
//$recipeList = mysql_query("SELECT * FROM recipes ORDER BY $sort $dir LIMIT $start, $display") or die(mysql_error());
|
||||
$query_recipeList = "SELECT * FROM recipes";
|
||||
if ($style != "all") $query_recipeList.= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_recipeList.= " WHERE brewStyle='$style' AND"; else $query_recipeList .= " WHERE";
|
||||
$query_recipeList .= " NOT brewArchive='Y'";
|
||||
$query_recipeList .= " ORDER BY $sort $dir LIMIT $start, $display";
|
||||
$recipeList = mysql_query($query_recipeList, $brewing) or die(mysql_error());
|
||||
$row_recipeList = mysql_fetch_assoc($recipeList);
|
||||
@@ -313,11 +321,13 @@ $row_recipeList = mysql_fetch_assoc($recipeList);
|
||||
if (($row_pref['mode'] == "2") && ($filter == "all")) {
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_result = "SELECT count(*) FROM recipes";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_result .= " WHERE brewStyle='$style' AND"; else $query_result .= " WHERE";
|
||||
$query_result .= " NOT brewArchive='Y'";
|
||||
$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$total = mysql_result($result, 0);
|
||||
$query_recipeList = "SELECT * FROM recipes";
|
||||
if ($style != "all") $query_recipeList.= " WHERE brewStyle='$style'";
|
||||
if ($style != "all") $query_recipeList.= " WHERE brewStyle='$style' AND"; else $query_recipeList.= " WHERE";
|
||||
$query_recipeList .= " NOT brewArchive='Y'";
|
||||
$query_recipeList .= " ORDER BY $sort $dir LIMIT $start, $display";
|
||||
$recipeList = mysql_query($query_recipeList, $brewing) or die(mysql_error());
|
||||
$row_recipeList = mysql_fetch_assoc($recipeList);
|
||||
@@ -326,11 +336,13 @@ $row_recipeList = mysql_fetch_assoc($recipeList);
|
||||
if (($row_pref['mode'] == "2") && ($filter != "all")) {
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_result = "SELECT count(*) FROM recipes WHERE brewBrewerID='$filter'";
|
||||
if ($style != "all") $query_result .= " AND brewStyle='$style'";
|
||||
if ($style != "all") $query_result .= " AND brewStyle='$style' AND";
|
||||
$query_result .= " NOT brewArchive='Y'";
|
||||
$result = mysql_query($query_result, $brewing) or die(mysql_error());
|
||||
$total = mysql_result($result, 0);
|
||||
$query_recipeList = "SELECT * FROM recipes WHERE brewBrewerID='$filter'";
|
||||
if ($style != "all") $query_recipeList.= " AND brewStyle='$style'";
|
||||
if ($style != "all") $query_recipeList.= " AND brewStyle='$style' AND";
|
||||
$query_recipeList .= " NOT brewArchive='Y'";
|
||||
$query_recipeList .= " ORDER BY $sort $dir LIMIT $start, $display";
|
||||
$recipeList = mysql_query($query_recipeList, $brewing) or die(mysql_error());
|
||||
$row_recipeList = mysql_fetch_assoc($recipeList);
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<?php
|
||||
|
||||
// ---------------------------- Tooltips ------------------------------------------------
|
||||
$toolTip_decimal = "For this and similar items, enter decimal values (e.g., 5.5) and NOT fractions (e.g., 5 1/2).";
|
||||
$toolTip_date = "Enter dates in this format YYYY-MM-DD (e.g., 2008-01-01 for January 1, 2008).";
|
||||
$toolTip_money = "Enter the appropriate monetary symbol as well as the amount.";
|
||||
$toolTip_gravity = "Enter the Specific Gravity in 1.XXX format (e.g., 1.056 or 1.103). If using Plato, use the Plato to SG calculator.";
|
||||
$toolTip_images = "Enter only the image's COMPLETE file name, including the extension (e.g., brew1_ale.jpg).";
|
||||
$toolTip_URL = "Enter the ENTIRE website address (e.g., http://www.yahoo.com).";
|
||||
$toolTip_name = "DO NOT use an apostrophy (') as it will cause functionality to degrade.";
|
||||
$toolTip_filename = "Names entered here must be exactly the same as the actual file name.";
|
||||
|
||||
// ---------------------------- Messages ------------------------------------------------
|
||||
$msg1 = "The ".$msgName." has been added!";
|
||||
$msg2 = "The ".$msgName." has been updated!";
|
||||
$msg3 = "The ".$msgName." has been deleted!";
|
||||
|
||||
<?php
|
||||
|
||||
// ---------------------------- Tooltips ------------------------------------------------
|
||||
$toolTip_decimal = "For this and similar items, enter decimal values (e.g., 5.5) and NOT fractions (e.g., 5 1/2).";
|
||||
$toolTip_date = "Enter dates in this format YYYY-MM-DD (e.g., 2008-01-01 for January 1, 2008).";
|
||||
$toolTip_money = "Enter the appropriate monetary symbol as well as the amount.";
|
||||
$toolTip_gravity = "Enter the Specific Gravity in 1.XXX format (e.g., 1.056 or 1.103). If using Plato, use the Plato to SG calculator.";
|
||||
$toolTip_images = "Enter only the image's COMPLETE file name, including the extension (e.g., brew1_ale.jpg).";
|
||||
$toolTip_URL = "Enter the ENTIRE website address (e.g., http://www.yahoo.com).";
|
||||
$toolTip_name = "DO NOT use an apostrophy (') as it will cause functionality to degrade.";
|
||||
$toolTip_filename = "Names entered here must be exactly the same as the actual file name.";
|
||||
|
||||
// ---------------------------- Messages ------------------------------------------------
|
||||
$msg1 = "The ".$msgName." has been added!";
|
||||
$msg2 = "The ".$msgName." has been updated!";
|
||||
$msg3 = "The ".$msgName." has been deleted!";
|
||||
$msg9 = "The ".$msgName."s have been updated!";
|
||||
|
||||
?>
|
||||
@@ -79,4 +79,14 @@ if (is_numeric($_GET['id'])) {
|
||||
$colname_log = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
|
||||
}
|
||||
|
||||
$sort = "brewDate";
|
||||
if (isset($_GET['sort'])) {
|
||||
$sort = (get_magic_quotes_gpc()) ? $_GET['sort'] : addslashes($_GET['sort']);
|
||||
}
|
||||
|
||||
$dir = "DESC";
|
||||
if (isset($_GET['dir'])) {
|
||||
$dir = (get_magic_quotes_gpc()) ? $_GET['dir'] : addslashes($_GET['dir']);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user