Preliminary 2.3.2 commits. Updated navigation schemas and bug fixes. New theme.
@@ -10,21 +10,21 @@ INSERT YOUR USERNAME BETWEEN THE DOUBLE-QUOTATION MARKS ("").
|
||||
For example, if your username is fred then the line should read $username_brewblog = "fred".
|
||||
*/
|
||||
|
||||
$username_brewblog = "brewblogger";
|
||||
$username_brewblog = "ghumphrey";
|
||||
|
||||
/*
|
||||
INSERT YOUR PASSWORD BETWEEN THE DOUBLE-QUOTATION MARKS ("").
|
||||
For example, if your password is flintstone then the line should read $password_brewblog = "flintsone".
|
||||
*/
|
||||
|
||||
$password_brewblog = "bb";
|
||||
$password_brewblog = "";
|
||||
|
||||
/*
|
||||
The following line is the name of your MySQL database you set up already.
|
||||
If you haven't set up the database yet, please refer to http://www.brewblogger.net/ for setup instructions.
|
||||
*/
|
||||
|
||||
$database_brewing = "brewblogger_trunk";
|
||||
$database_brewing = "zkdigita_brewblog";
|
||||
|
||||
/*
|
||||
This line strings the information together and connects to MySQL.
|
||||
|
||||
@@ -1,342 +1,342 @@
|
||||
<div id="breadcrumbAdmin">Administration</div>
|
||||
<div id="subtitleAdmin">Administration</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>tick.png" align="absmiddle"></td>
|
||||
<td class="data"><?php if ($row_pref['mode'] == "2") echo $row_user['realFirstName'].", y"; elseif (($row_pref['mode'] = "1") && ($row_name['brewerFirstName'] != "")) echo $row_name['brewerFirstName'].", y"; else echo "Y"; echo "ou can manage all of your BrewBlogger data, features, and functions here."; ?></td>
|
||||
</tr>
|
||||
<?php if (($row_pref['allowNews'] == "Y") && ($row_pref['mode'] == "2") && ($totalRows_newsGen > 0)) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" align="absmiddle"></td>
|
||||
<td class="data">Read the <a href="index.php?action=view&dbTable=news"><?php echo $row_pref['menuMembers']; ?> News</a> items posted.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div id="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>
|
||||
<td class="data" width="33%"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=brewing&filter=all\">Manage ".$row_pref['menuBrewBlogs']."</a><br><a href=\"?action=list&dbTable=brewing&filter=".$loginUsername."\">Manage My ".$row_pref['menuBrewBlogs']."</a>"; else echo "<a href=\"?action=list&dbTable=brewing\">Manage ".$row_pref['menuBrewBlogs']."</a>"; ?></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>book_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=brewing">Add <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>picture_add.png" /></td>
|
||||
<td class="data"><a href="includes/upload_image.inc.php?KeepThis=true&TB_iframe=true&height=450&width=800" class="thickbox" title="Upload Label Images">Upload Label Images</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>hourglass.png" align="absmiddle"></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=upcoming\">Manage Upcoming ".$row_pref['menuBrewBlogs']."</a><br><a href=\"?action=list&dbTable=upcoming&filter=".$loginUsername."\">Manage My Upcoming ".$row_pref['menuBrewBlogs']."</a>"; else echo "<a href=\"?action=list&dbTable=upcoming\">Manage Upcoming ".$row_pref['menuBrewBlogs']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>hourglass_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=upcoming">Add Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=brewing">Import Beer XML to <?php echo $row_pref['menuBrewBlogs']; ?></a><?php } else echo " "; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_1.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=awards&filter=all\">Manage ".$row_pref['menuAwards']."</a><br><a href=\"?action=list&dbTable=awards&filter=".$loginUsername."\">Manage My ".$row_pref['menuAwards']."</a>"; else echo "<a href=\"?action=list&dbTable=awards\">Manage ".$row_pref['menuAwards']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=awards&assoc=brewing">Add <?php echo $row_pref['menuAwards']; ?></a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>page_white_edit.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=reviews&filter=all\">Manage Reviews</a><br><a href=\"?action=list&dbTable=reviews&filter=".$loginUsername."\">Manage My Reviews</a>"; else echo "<a href=\"?action=list&dbTable=reviews\">Manage Reviews</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>page_white_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=reviews">Add Reviews</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuRecipes']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>script.png"></td>
|
||||
<td class="data" width="33%"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=recipes&filter=all\">Manage ".$row_pref['menuRecipes']."</a><br><a href=\"?action=list&dbTable=recipes&filter=".$loginUsername."\">Manage My ".$row_pref['menuRecipes']."</a>"; else echo "<a href=\"?action=list&dbTable=recipes\">Manage ".$row_pref['menuRecipes']."</a>"; ?></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>script_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=recipes">Add <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) { ?>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>page_refresh.png" /></td>
|
||||
<td class="data"><a href="?action=list&dbTable=recipes&view=copy">Copy/Import Other User <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
<?php } else { ?>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=recipes">Import Beer XML to <?php echo $row_pref['menuRecipes']; ?></a><?php } else echo " "; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_1.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=awards&assoc=recipes&filter=all\">Manage ".$row_pref['menuAwards']."</a><br><a href=\"?action=list&dbTable=awards&assoc=recipes&filter=".$loginUsername."\">Manage My ".$row_pref['menuAwards']."</a>"; else echo "<a href=\"?action=list&dbTable=awards&assoc=recipes\">Manage ".$row_pref['menuAwards']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=awards&assoc=recipes">Add <?php echo $row_pref['menuAwards']; ?></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) { ?>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=recipes">Import Beer XML to <?php echo $row_pref['menuRecipes']; ?></a><?php } else echo " "; ?></td>
|
||||
<?php } else { ?>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuReference']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=adjuncts">Manage Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=adjuncts">Add Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>pill.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=extract">Manage Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>pill_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=extract">Add Extracts</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=malt">Manage Grains</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=malt">Add Grains</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=hops">Manage Hops</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=hops">Add Hops</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>brick.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=misc">Manage Misc Ingredients</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>brick_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=misc">Add Misc Ingredients</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>note.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=styles">Manage Styles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>note_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=styles">Add Styles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>ruby.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=sugar_type">Manage Sugar Types</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>ruby_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=sugar_type">Add Sugar Types</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=equip_profiles">Manage Equipment Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=equip_profiles">Add Equipment Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=mash_profiles">Manage Mash Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=mash_profiles">Add Mash Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=water_profiles">Manage Water Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=water_profiles">Add Water Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=yeast_profiles">Manage Yeast Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom_in.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=yeast_profiles">Add Yeast Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div id="headerContentAdmin">General</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user.png" /></td>
|
||||
<td class="data"><?php echo "<a href=\"?action=edit&dbTable=users&filter=".$loginUsername."&id=".$row_user['id']."\">"; ?>Edit <?php if ($row_pref['mode'] == "2") echo "My"; ?> Personal Defaults and Info</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?><?php if ($row_pref['mode'] == "1") echo "user_edit"; else echo "group_edit"; ?>.png" /></td>
|
||||
<td class="data"><a href="index.php?action=edit&dbTable=brewer&id=1">Edit Profile</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>picture_add.png" /></td>
|
||||
<td class="data"><a href="includes/upload_image.inc.php?KeepThis=true&TB_iframe=true&height=450&width=800" class="thickbox" title="Upload Profile Image">Upload Profile Image</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>link.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=brewerlinks">Manage Links</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>link_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=brewerlinks">Add Links</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cog.png" /></td>
|
||||
<td class="data"><a href="index.php?action=edit&dbTable=preferences&id=1">Edit Preferences</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user.png" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=users\">Manage Users</a>"; else echo "<a href=\"?action=list&dbTable=users\">Manage Users</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user_add.png" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=users">Add Users</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>application.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=brewingcss">Manage Themes</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>application_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=brewingcss">Add Themes</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<?php if ($row_pref['mode'] == "2") { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=news">Manage News</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper_add.png" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=news">Add News</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<div id="headerContentAdmin">My Profile</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>user.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>&id=<?php echo $row_user['id']; ?>">Edit My Profile</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>key.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>§ion=password&id=<?php echo $row_user['id']; ?>">Change My Password</a></td>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin">Lists</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=adjuncts">List Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=adjuncts">Add Ajuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>note.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=styles">List Styles</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=extract">List Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=extract">Add Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>group.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=users">List Users</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=malt">List Grains</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=malt">Add Grains</a></td>
|
||||
<?php if (($row_prefs['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=news">List News</a></td>
|
||||
<?php } else { ?>
|
||||
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=hops">List Hops</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=hops">Add Hops</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=equip_profiles">List Equipment Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=equip_profiles">Add Equipment Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=mash_profiles">List Mash Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=mash_profiles">Add Mash Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=water_profiles">List Water Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=water_profiles">Add Water Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=yeast_profiles">List Yeast Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom_in.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=yeast_profiles">Add Yeast Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuCalculators']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data" width="33%"><a href="tools/calculate.php?section=bitterness&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Bitterness Calculator</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data" width="33%"><a href="tools/calculate.php?section=calories&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Calories, Alcohol, and Plato Calculator</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=force_carb&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Force Carbonation Calculator</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=plato&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Plato to Specific Gravity Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=efficiency&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">PPG and Efficiency Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=sugar&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Priming Sugar Calculator</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data"><a href="index.php?action=chooseRecalc">Recalculate a Recipe or Log</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data"><a href="index.php?action=calculate">Recipe Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=water&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Water Amounts Calculator</a> </td>
|
||||
</tr>
|
||||
<div id="breadcrumbAdmin">Administration</div>
|
||||
<div id="subtitleAdmin">Administration</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>tick.png" align="absmiddle"></td>
|
||||
<td class="data"><?php if ($row_pref['mode'] == "2") echo $row_user['realFirstName'].", y"; elseif (($row_pref['mode'] = "1") && ($row_name['brewerFirstName'] != "")) echo $row_name['brewerFirstName'].", y"; else echo "Y"; echo "ou can manage all of your BrewBlogger data, features, and functions here."; ?></td>
|
||||
</tr>
|
||||
<?php if (($row_pref['allowNews'] == "Y") && ($row_pref['mode'] == "2") && ($totalRows_newsGen > 0)) { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" align="absmiddle"></td>
|
||||
<td class="data">Read the <a href="index.php?action=view&dbTable=news"><?php echo $row_pref['menuMembers']; ?> News</a> items posted.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<div id="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>
|
||||
<td class="data" width="33%"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=brewing&filter=all\">Manage ".$row_pref['menuBrewBlogs']."</a><br><a href=\"?action=list&dbTable=brewing&filter=".$loginUsername."\">Manage My ".$row_pref['menuBrewBlogs']."</a>"; else echo "<a href=\"?action=list&dbTable=brewing\">Manage ".$row_pref['menuBrewBlogs']."</a>"; ?></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>book_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=brewing">Add <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>picture_add.png" /></td>
|
||||
<td class="data"><a href="includes/upload_image.inc.php?KeepThis=true&TB_iframe=true&height=450&width=800" class="thickbox" title="Upload Label Images">Upload Label Images</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>hourglass.png" align="absmiddle"></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=upcoming\">Manage Upcoming ".$row_pref['menuBrewBlogs']."</a><br><a href=\"?action=list&dbTable=upcoming&filter=".$loginUsername."\">Manage My Upcoming ".$row_pref['menuBrewBlogs']."</a>"; else echo "<a href=\"?action=list&dbTable=upcoming\">Manage Upcoming ".$row_pref['menuBrewBlogs']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>hourglass_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=upcoming">Add Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a></td>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=brewing">Import Beer XML to <?php echo $row_pref['menuBrewBlogs']; ?></a><?php } else echo " "; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_1.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=awards&filter=all\">Manage ".$row_pref['menuAwards']."</a><br><a href=\"?action=list&dbTable=awards&filter=".$loginUsername."\">Manage My ".$row_pref['menuAwards']."</a>"; else echo "<a href=\"?action=list&dbTable=awards\">Manage ".$row_pref['menuAwards']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=awards&assoc=brewing">Add <?php echo $row_pref['menuAwards']; ?></a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="index.php?action=calculate">Recipe Calculator</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>page_white_edit.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=reviews&filter=all\">Manage Reviews</a><br><a href=\"?action=list&dbTable=reviews&filter=".$loginUsername."\">Manage My Reviews</a>"; else echo "<a href=\"?action=list&dbTable=reviews\">Manage Reviews</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>page_white_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=reviews">Add Reviews</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<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>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>script.png"></td>
|
||||
<td class="data" width="33%"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=recipes&filter=all\">Manage ".$row_pref['menuRecipes']."</a><br><a href=\"?action=list&dbTable=recipes&filter=".$loginUsername."\">Manage My ".$row_pref['menuRecipes']."</a>"; else echo "<a href=\"?action=list&dbTable=recipes\">Manage ".$row_pref['menuRecipes']."</a>"; ?></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>script_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=recipes">Add <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) { ?>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>page_refresh.png" /></td>
|
||||
<td class="data"><a href="?action=list&dbTable=recipes&view=copy">Copy/Import Other User <?php echo $row_pref['menuRecipes']; ?></a></td>
|
||||
<?php } else { ?>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=recipes">Import Beer XML to <?php echo $row_pref['menuRecipes']; ?></a><?php } else echo " "; ?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_1.png" align="absmiddle" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=awards&assoc=recipes&filter=all\">Manage ".$row_pref['menuAwards']."</a><br><a href=\"?action=list&dbTable=awards&assoc=recipes&filter=".$loginUsername."\">Manage My ".$row_pref['menuAwards']."</a>"; else echo "<a href=\"?action=list&dbTable=awards&assoc=recipes\">Manage ".$row_pref['menuAwards']."</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>medal_gold_add.png" align="absmiddle" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=awards&assoc=recipes">Add <?php echo $row_pref['menuAwards']; ?></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "2")) { ?>
|
||||
<td class="data_icon" width="1%"><?php if ($phpVersion >= "5") { ?><img src="<?php echo $imageSrc; ?>page_white_code.png" /><?php } else echo " "; ?></td>
|
||||
<td class="data"><?php if ($phpVersion >= "5") { ?><a href="index.php?action=importXML&dbTable=recipes">Import Beer XML to <?php echo $row_pref['menuRecipes']; ?></a><?php } else echo " "; ?></td>
|
||||
<?php } else { ?>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</table>
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuReference']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=adjuncts">Manage Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=adjuncts">Add Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>pill.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=extract">Manage Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>pill_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=extract">Add Extracts</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=malt">Manage Grains</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=malt">Add Grains</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=hops">Manage Hops</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=hops">Add Hops</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>brick.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=misc">Manage Misc Ingredients</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>brick_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=misc">Add Misc Ingredients</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>note.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=styles">Manage Styles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>note_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=styles">Add Styles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>ruby.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=sugar_type">Manage Sugar Types</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>ruby_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=sugar_type">Add Sugar Types</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=equip_profiles">Manage Equipment Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=equip_profiles">Add Equipment Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=mash_profiles">Manage Mash Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=mash_profiles">Add Mash Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=water_profiles">Manage Water Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=water_profiles">Add Water Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=yeast_profiles">Manage Yeast Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom_in.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=yeast_profiles">Add Yeast Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<div id="headerContentAdmin">General</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user.png" /></td>
|
||||
<td class="data"><?php echo "<a href=\"?action=edit&dbTable=users&filter=".$loginUsername."&id=".$row_user['id']."\">"; ?>Edit <?php if ($row_pref['mode'] == "2") echo "My"; ?> Personal Defaults and Info</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?><?php if ($row_pref['mode'] == "1") echo "user_edit"; else echo "group_edit"; ?>.png" /></td>
|
||||
<td class="data"><a href="index.php?action=edit&dbTable=brewer&id=1">Edit Profile</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>picture_add.png" /></td>
|
||||
<td class="data"><a href="includes/upload_image.inc.php?KeepThis=true&TB_iframe=true&height=450&width=800" class="thickbox" title="Upload Profile Image">Upload Profile Image</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>link.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=brewerlinks">Manage Links</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>link_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=brewerlinks">Add Links</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cog.png" /></td>
|
||||
<td class="data"><a href="index.php?action=edit&dbTable=preferences&id=1">Edit Preferences</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user.png" /></td>
|
||||
<td class="data"><?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) echo "<a href=\"index.php?action=list&dbTable=users\">Manage Users</a>"; else echo "<a href=\"?action=list&dbTable=users\">Manage Users</a>"; ?></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>user_add.png" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=users">Add Users</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>application.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=brewingcss">Manage Themes</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>application_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=brewingcss">Add Themes</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<?php if ($row_pref['mode'] == "2") { ?>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=news">Manage News</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper_add.png" /></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=news">Add News</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<div id="headerContentAdmin">My Profile</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>user.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>&id=<?php echo $row_user['id']; ?>">Edit My Profile</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>key.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>§ion=password&id=<?php echo $row_user['id']; ?>">Change My Password</a></td>
|
||||
<td class="data_icon" width="1%"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="headerContentAdmin">Lists</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=list&dbTable=adjuncts">List Adjuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>cup_add.png"></td>
|
||||
<td class="data" width="33%"><a href="index.php?action=add&dbTable=adjuncts">Add Ajuncts</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>note.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=styles">List Styles</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=extract">List Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=extract">Add Extracts</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>group.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=users">List Users</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=malt">List Grains</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>world_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=malt">Add Grains</a></td>
|
||||
<?php if (($row_prefs['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>newspaper.png" /></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=news">List News</a></td>
|
||||
<?php } else { ?>
|
||||
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<?php } ?>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=hops">List Hops</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>plugin_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=hops">Add Hops</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=equip_profiles">List Equipment Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>database_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=equip_profiles">Add Equipment Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=mash_profiles">List Mash Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>chart_curve_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=mash_profiles">Add Mash Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=water_profiles">List Water Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>shape_square_add.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=water_profiles">Add Water Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom.png"></td>
|
||||
<td class="data"><a href="index.php?action=list&dbTable=yeast_profiles">List Yeast Profiles</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>zoom_in.png"></td>
|
||||
<td class="data"><a href="index.php?action=add&dbTable=yeast_profiles">Add Yeast Profiles</a></td>
|
||||
<td class="data_icon"> </td>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div id="headerContentAdmin"><?php echo $row_pref['menuCalculators']; ?></div>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data" width="33%"><a href="tools/calculate.php?section=bitterness&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Bitterness Calculator</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data" width="33%"><a href="tools/calculate.php?section=calories&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Calories, Alcohol, and Plato Calculator</a></td>
|
||||
<td class="data_icon" width="1%"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=force_carb&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Force Carbonation Calculator</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=plato&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Plato to Specific Gravity Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=efficiency&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">PPG and Efficiency Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=sugar&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Priming Sugar Calculator</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data"><a href="index.php?action=chooseRecalc">Recalculate a Recipe or Log</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png"></td>
|
||||
<td class="data"><a href="index.php?action=calculate">Recipe Calculator</a></td>
|
||||
<td class="data_icon"><img src="<?php echo $imageSrc; ?>calculator.png" /></td>
|
||||
<td class="data"><a href="tools/calculate.php?section=water&KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox">Water Amounts Calculator</a> </td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -1,29 +1,298 @@
|
||||
<?php if (!checkmobile()) include ('includes/menu.inc.php'); ?>
|
||||
<ul id="navlist">
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu8, '225px')" onMouseout="delayhidemenu()">Logs/Recipes</a><?php } else echo ""; ?></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu9, '165px')" onMouseout="delayhidemenu()">Lists<?php } else { ?><a href="index.php">Administration</a><?php } ?></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu8');"><?php echo $row_pref['menuBrewBlogs']."/".$row_pref['menuRecipes']; ?></a><?php } else echo ""; ?></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu9');">Lists</a><?php } else echo "<a href=\"index.php\">Administration</a>"; ?></div></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="tools/calculate.php?KeepThis=true&TB_iframe=true&height=450&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox"><?php } else { ?><a href="../index.php?page=tools"><?php } echo $row_pref['menuCalculators']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, menu7, '120px')" onmouseout="delayhidemenu()">Help</a><?php } else echo ""; ?></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu10');">Help</a><?php } else echo ""; ?></div></li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php?action=list&dbTable=brewing"><?php } echo $row_pref['menuBrewBlogs']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '135px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php?action=list&dbTable=recipes"><?php } echo $row_pref['menuRecipes']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '160px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="../index.php?page=reference"><?php } echo $row_pref['menuReference']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '130px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php"><?php } ?>General</a></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="index.php?action=list&dbTable=brewing" onclick="index.php?action=list&dbTable=brewing" onmouseover="buttonMouseover(event, 'adminMenu1');"><?php } else { ?><a href="index.php?action=list&dbTable=brewing"><?php } echo $row_pref['menuBrewBlogs']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="index.php?action=list&dbTable=recipes" onclick="index.php?action=list&dbTable=recipes" onmouseover="buttonMouseover(event, 'adminMenu2');"><?php } else { ?><a href="index.php?action=list&dbTable=recipes"><?php } echo $row_pref['menuRecipes']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu3');"><?php } else { ?><a href="../index.php?page=reference"><?php } echo $row_pref['menuReference']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu4');"><?php } else { ?><a href="index.php"><?php } ?>General</a></div></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="tools/calculate.php?KeepThis=true&TB_iframe=true&height=450&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox"><?php } else { ?><a href="../index.php?page=tools"><?php } echo $row_pref['menuCalculators']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '120px')" onMouseout="delayhidemenu()">Help</a><?php } else echo ""; ?></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu10');">Help</a><?php } else echo ""; ?></div></li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (($row_pref['mode'] == "1") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '200px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php?action=list&dbTable=brewing"><?php } echo $row_pref['menuBrewBlogs']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu3, '135px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php?action=list&dbTable=recipes"><?php } echo $row_pref['menuRecipes']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '160px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="../index.php?page=reference"><?php } echo $row_pref['menuReference']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu4, '130px')" onMouseout="delayhidemenu()"><?php } else { ?><a href="index.php"><?php } ?>General</a></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="index.php?action=list&dbTable=brewing" onclick="index.php?action=list&dbTable=brewing" onmouseover="buttonMouseover(event, 'adminMenu1');"><?php } else { ?><a href="index.php?action=list&dbTable=brewing"><?php } echo $row_pref['menuBrewBlogs']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="index.php?action=list&dbTable=recipes" onclick="index.php?action=list&dbTable=recipes" onmouseover="buttonMouseover(event, 'adminMenu2');"><?php } else { ?><a href="index.php?action=list&dbTable=recipes"><?php } echo $row_pref['menuRecipes']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu3');"><?php } else { ?><a href="../index.php?page=reference"><?php } echo $row_pref['menuReference']; ?></a></div></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu4');"><?php } else { ?><a href="index.php"><?php } ?>General</a></div></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="tools/calculate.php?KeepThis=true&TB_iframe=true&height=475&width=800" title="<?php echo $row_pref['menuCalculators']; ?>" class="thickbox"><?php } else { ?><a href="../index.php?page=tools"><?php } echo $row_pref['menuCalculators']; ?></a></li>
|
||||
<li><?php if (!checkmobile()) { ?><a href="#" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu7, '120px')" onMouseout="delayhidemenu()">Help</a><?php } else echo ""; ?></li>
|
||||
<li><div class="menuBar"><?php if (!checkmobile()) { ?><a class="menuButton" href="#" onclick="" onmouseover="buttonMouseover(event, 'adminMenu10');">Help</a><?php } else echo ""; ?></div></li>
|
||||
<?php } ?>
|
||||
<li><a href="../index.php" onMouseover="dropdownmenu(this, event, <?php if ($row_pref['mode'] == "1") echo "menu6"; if ($row_pref['mode'] == "2") echo "menu11"; ?>, '125px')" onMouseout="delayhidemenu()"><< Back to<?php if (!checkmobile()) echo "..."; else echo " Main"; ?></a></li>
|
||||
<li><div class="menuBar"><a class="menuButton" href="../index.php" onclick="../index.php" onmouseover="buttonMouseover(event, 'admin<?php if ($row_pref['mode'] == "1") echo "Menu6"; if ($row_pref['mode'] == "2") echo "Menu7"; ?>')"><< Back to<?php if (!checkmobile()) echo "..."; else echo " Main"; ?></a></div></li>
|
||||
|
||||
<li><a href="../includes/logout.inc.php"><?php echo $row_pref['menuLogout']; ?></a></li>
|
||||
</ul>
|
||||
<div id="adminMenu1" class="menu">
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu1.4');"><span class="menuItemText">Manage</span><span class="menuItemArrow">▶</span></a>
|
||||
<?php } else { ?>
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewing">Manage</a>
|
||||
<?php } ?>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=brewing">Add</a>
|
||||
<a class="menuItem" href="index.php?action=importXML&dbTable=brewing">Import BeerXML</a>
|
||||
<a class="menuItem" href="index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="index.php?action=chooseRecalc">Recalculate <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu1.1');"><span class="menuItemText">Upcoming</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu1.3');"><span class="menuItemText"><?php echo $row_pref['menuAwards']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu1.2');"><span class="menuItemText">Reviews</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu1.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=upcoming">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=upcoming">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu1.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=reviews">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=reviews">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu1.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=awards&filter=<?php echo $filter; ?>">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=awards&assoc=brewing">Add</a>
|
||||
</div>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<div id="adminMenu1.4" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewing">All <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewing&filter=<?php echo $loginUsername; ?>">My <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="adminMenu2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=recipes">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=recipes">Add</a>
|
||||
<a class="menuItem" href="index.php?action=importXML&dbTable=recipes">Import BeerXML</a>
|
||||
<a class="menuItem" href="index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="index.php?action=chooseRecalc">Recalculate <?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu2.1');"><span class="menuItemText"><?php echo $row_pref['menuAwards']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu2.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=awards&assoc=recipes&filter=<?php echo $filter; ?>">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=awards&assoc=recipes">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.1');"><span class="menuItemText">Adjuncts</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.2');"><span class="menuItemText">Extracts</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.3');"><span class="menuItemText">Grains</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.4');"><span class="menuItemText">Hops</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.5');"><span class="menuItemText">Misc. Ingredients</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.6');"><span class="menuItemText">Styles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.7');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu3.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=adjuncts">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=adjuncts">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=extract">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=extract">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=malt">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=malt">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.4" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=hops">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=hops">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.5" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=misc">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=misc">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.6" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=styles">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=styles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.7" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.7.1');"><span class="menuItemText">Equipment</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.7.2');"><span class="menuItemText">Mash</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.7.3');"><span class="menuItemText">Water</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu3.7.4');"><span class="menuItemText">Yeast</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu3.7.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=equip_profiles">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=equip_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.7.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=mash_profiles">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=mash_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.7.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=water_profiles">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=water_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu3.7.4" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=yeast_profiles">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=yeast_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu4" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu4.4');"><span class="menuItemText">Edit</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu4.1');"><span class="menuItemText">Links</span><span class="menuItemArrow">▶</span></a>
|
||||
<?php if ($row_pref['mode'] == "2") { ?>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu4.5');"><span class="menuItemText">News</span><span class="menuItemArrow">▶</span></a>
|
||||
<?php } ?>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu4.2');"><span class="menuItemText">Themes</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu4.3');"><span class="menuItemText">Users</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu4.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewerlinks">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=brewerlinks">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu4.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewingcss">Manage Themes</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=brewingcss">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu4.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=users">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=users">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu4.4" class="menu">
|
||||
<?php echo "<a class=\"menuItem\" href=\"index.php?action=edit&dbTable=users&filter=".$loginUsername."&id=".$row_user['id']."\">"; ?><?php if ($row_pref['mode'] == "2") echo "My"; ?> Personal Defaults and Info</a>
|
||||
<a class="menuItem" href="index.php?action=edit&dbTable=preferences&id=1">Preferences</a>
|
||||
<a class="menuItem" href="index.php?action=edit&dbTable=brewer&id=1">Profile</a>
|
||||
</div>
|
||||
<?php if (($row_pref['mode'] == "2") && ($row_user['userLevel'] == "1")) { ?>
|
||||
<div id="adminMenu4.5" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=news">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=news">Add</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div id="adminMenu6" class="menu">
|
||||
<a class="menuItem" href="../index.php?page=awardsList&sort=awardBrewName&dir=ASC"><?php echo $row_pref['menuAwards']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=about">Profile</a>
|
||||
<a class="menuItem" href="../index.php?page=brewBlogList"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=tools"><?php echo $row_pref['menuCalculators']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=brewBlogCurrent">Current</a>
|
||||
<a class="menuItem" href="../index.php?page=recipeList"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=reference"><?php echo $row_pref['menuReference']; ?></a>
|
||||
</div>
|
||||
<div id="adminMenu7" class="menu">
|
||||
<a class="menuItem" href="../index.php?page=awardsList&sort=awardBrewName&dir=ASC"><?php echo $row_pref['menuAwards']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=brewBlogList&sort=brewDate&dir=DESC"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=members&sort=realLastName&dir=ASC"><?php echo $row_pref['menuMembers']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=about">Profile</a>
|
||||
<a class="menuItem" href="../index.php?page=recipeList"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=tools"><?php echo $row_pref['menuCalculators']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=reference"><?php echo $row_pref['menuReference']; ?></a>
|
||||
<a class="menuItem" href="../index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a>
|
||||
</div>
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<div id="adminMenu8" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.1');"><span class="menuItemText"><?php echo $row_pref['menuBrewBlogs']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.2');"><span class="menuItemText"><?php echo $row_pref['menuRecipes']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
|
||||
</div>
|
||||
<div id="adminMenu8.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=brewing">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=brewing">Add</a>
|
||||
<a class="menuItem" href="index.php?action=importXML&dbTable=brewing">Import BeerXML</a>
|
||||
<a class="menuItem" href="index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="index.php?action=chooseRecalc">Recalculate <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.1.2');"><span class="menuItemText"><?php echo $row_pref['menuAwards']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.1.3');"><span class="menuItemText">Reviews</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.1.1');"><span class="menuItemText">Upcoming</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu8.1.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=upcoming">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=upcoming">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu8.1.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=awards">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=awards&assoc=brewing">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu8.1.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=reviews">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=reviews">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu8.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=recipes">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=recipes">Add</a>
|
||||
<a class="menuItem" href="index.php?action=importXML&dbTable=recipes">Import BeerXML</a>
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=recipes&view=copy">Copy/Import Other User <?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="index.php?action=chooseRecalc">Recalculate <?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu8.2.1');"><span class="menuItemText"><?php echo $row_pref['menuAwards']; ?></span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu8.2.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=awards">Manage</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=awards&assoc=recipes">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.1');"><span class="menuItemText">Adjuncts</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.2');"><span class="menuItemText">Extracts</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.3');"><span class="menuItemText">Grains</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.4');"><span class="menuItemText">Hops</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.5');"><span class="menuItemText">Misc. Ingredients</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.6');"><span class="menuItemText">Styles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.7');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu9.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=adjuncts">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=adjuncts">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=extract">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=extract">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=malt">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=malt">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.4" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=hops">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=hops">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.5" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=misc">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=misc">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.6" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=styles">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=styles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.7" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.7.1');"><span class="menuItemText">Equipment</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.7.2');"><span class="menuItemText">Mash</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.7.3');"><span class="menuItemText">Water</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu9.7.4');"><span class="menuItemText">Yeast</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu9.7.1" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=equip_profiles">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=equip_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.7.2" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=mash_profiles">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=mash_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.7.3" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=water_profiles">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=water_profiles">Add</a>
|
||||
</div>
|
||||
<div id="adminMenu9.7.4" class="menu">
|
||||
<a class="menuItem" href="index.php?action=list&dbTable=yeast_profiles">List</a>
|
||||
<a class="menuItem" href="index.php?action=add&dbTable=yeast_profiles">Add</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div id="adminMenu10" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu10.1');"><span class="menuItemText">Google</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'adminMenu10.2');"><span class="menuItemText">SourceForge</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="adminMenu10.1" class="menu">
|
||||
<a class="menuItem" href="http://code.google.com/p/brewblogger/" target="_blank">Project Home</a>
|
||||
<a class="menuItem" href="http://code.google.com/p/brewblogger/issues/list?can=1&q=&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary&cells=tiles" target="_blank">Issues</a>
|
||||
<a class="menuItem" href="http://code.google.com/p/brewblogger/source/browse/trunk" target="_blank">Source</a>
|
||||
<a class="menuItem" href="http://code.google.com/p/brewblogger/updates/list" target="_blank">Updates</a>
|
||||
</div>
|
||||
|
||||
<div id="adminMenu10.2" class="menu">
|
||||
<a class="menuItem" href="http://sourceforge.net/projects/brewblogger/" target="_blank">Project Home</a>
|
||||
<a class="menuItem" href="http://sourceforge.net/projects/brewblogger/forums/forum/564469" target="_blank">Help Forum</a>
|
||||
<a class="menuItem" href="http://sourceforge.net/tracker/?group_id=165855&atid=837037" target="_blank">Report a Bug</a>
|
||||
<a class="menuItem" href="http://sourceforge.net/tracker/?group_id=165855&atid=837040" target="_blank">Request a Feature</a>
|
||||
<a class="menuItem" href="http://sourceforge.net/tracker/?group_id=165855&atid=837038" target="_blank">Request Support</a>
|
||||
</div>
|
||||
@@ -1,313 +1,601 @@
|
||||
<?php { ?>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
|
||||
/***********************************************
|
||||
* AnyLink Drop Down Menu- ? Dynamic Drive (www.dynamicdrive.com)
|
||||
* This notice MUST stay intact for legal use
|
||||
* Visit http://www.dynamicdrive.com/ for full source code
|
||||
***********************************************/
|
||||
|
||||
var menu1=new Array() // Public side Admin Menu
|
||||
menu1[0]='<a href="index.php?action=list&dbTable=adjuncts">Manage Adjuncts</a>'
|
||||
menu1[1]='<a href="index.php?action=add&dbTable=adjuncts"> - Add Adjuncts</a>'
|
||||
menu1[2]='<a href="index.php?action=list&dbTable=extract">Manage Extracts</a>'
|
||||
menu1[3]='<a href="index.php?action=add&dbTable=extract"> - Add Extracts</a>'
|
||||
menu1[4]='<a href="index.php?action=list&dbTable=malt">Manage Grains</a>'
|
||||
menu1[5]='<a href="index.php?action=add&dbTable=malt"> - Add Grains</a>'
|
||||
menu1[6]='<a href="index.php?action=list&dbTable=hops">Manage Hops</a>'
|
||||
menu1[7]='<a href="index.php?action=add&dbTable=hops"> - Add Hops</a>'
|
||||
menu1[8]='<a href="index.php?action=list&dbTable=misc">Manage Misc. Ingredients</a>'
|
||||
menu1[9]='<a href="index.php?action=add&dbTable=misc"> - Add Misc. Ingredients</a>'
|
||||
menu1[10]='<a href="index.php?action=list&dbTable=styles">Manage Styles</a>'
|
||||
menu1[11]='<a href="index.php?action=add&dbTable=styles"> - Add Styles</a>'
|
||||
menu1[12]='<a href="index.php?action=list&dbTable=equip_profiles">Manage Equipment Profiles</a>'
|
||||
menu1[13]='<a href="index.php?action=add&dbTable=equip_profiles"> - Add Equipment Profiles</a>'
|
||||
menu1[14]='<a href="index.php?action=list&dbTable=mash_profiles">Manage Mash Profiles</a>'
|
||||
menu1[15]='<a href="index.php?action=add&dbTable=mash_profiles"> - Add Mash Profiles</a>'
|
||||
menu1[16]='<a href="index.php?action=list&dbTable=water_profiles">Manage Water Profiles</a>'
|
||||
menu1[17]='<a href="index.php?action=add&dbTable=water_profiles"> - Add Water Profiles</a>'
|
||||
menu1[18]='<a href="index.php?action=list&dbTable=yeast_profiles">Manage Yeast Profiles</a>'
|
||||
menu1[19]='<a href="index.php?action=add&dbTable=yeast_profiles"> - Add Yeast Profiles</a>'
|
||||
|
||||
var menu2=new Array() // Admin BrewBlogs Menu
|
||||
menu2[0]='<a href="index.php?action=list&dbTable=brewing">Manage <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu2[1]='<a href="index.php?action=add&dbTable=brewing"> - Add <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu2[2]='<a href="index.php?action=importXML&dbTable=brewing"> - Import BeerXML</a>'
|
||||
menu2[5]='<a href="index.php?action=list&dbTable=upcoming">Manage Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu2[6]='<a href="index.php?action=add&dbTable=upcoming"> - Add Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu2[7]='<a href="index.php?action=list&dbTable=reviews">Manage Reviews</a>'
|
||||
menu2[8]='<a href="index.php?action=list&dbTable=awards">Manage <?php echo $row_pref['menuAwards']; ?></a>'
|
||||
|
||||
var menu3=new Array() // Admin Recipes Menu
|
||||
menu3[0]='<a href="index.php?action=list&dbTable=recipes">Manage <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu3[1]='<a href="index.php?action=add&dbTable=recipes"> - Add <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu3[2]='<a href="index.php?action=importXML&dbTable=recipes"> - Import BeerXML</a>'
|
||||
|
||||
var menu4=new Array() // Admin General Menu
|
||||
menu4[0]='<a href="index.php?action=edit&dbTable=brewer&id=1">Edit Profile</a>'
|
||||
menu4[1]='<a href="index.php?action=list&dbTable=brewerlinks">Manage Links</a>'
|
||||
menu4[2]='<a href="index.php?action=add&dbTable=brewerlinks"> - Add Links</a>'
|
||||
menu4[3]='<a href="index.php?action=list&dbTable=brewingcss">Manage Themes</a>'
|
||||
menu4[4]='<a href="index.php?action=add&dbTable=brewingcss"> - Add Themes</a>'
|
||||
menu4[5]='<a href="index.php?action=list&dbTable=users">Manage Users</a>'
|
||||
menu4[6]='<a href="index.php?action=add&dbTable=users"> - Add Users</a>'
|
||||
menu4[7]='<a href="index.php?action=edit&dbTable=preferences&id=1">Edit Preferences</a>'
|
||||
|
||||
var menu5=new Array() // Admin Calculators Menu (not used as of v2.3)
|
||||
/* menu5[0]='<a href="#" onClick="window.open(\'tools/calculate.php?section=bitterness\',\'\',\'height=620,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Bitterness Calculator</a>'
|
||||
menu5[7]='<a href="#" onClick="window.open(\'tools/calculate.php?section=water\',\'\',\'height=275,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Water Amounts Calculator</a>'
|
||||
menu5[2]='<a href="#" onClick="window.open(\'tools/calculate.php?section=calories\',\'\',\'height=300,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Calories, Alcohol, and Plato Calculator</a>'
|
||||
menu5[1]='<a href="#" onClick="window.open(\'tools/calculate.php?section=efficiency\',\'\',\'height=575,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Brewhouse Efficiency Calculator</a>'
|
||||
menu5[5]='<a href="#" onClick="window.open(\'tools/calculate.php?section=sugar\',\'\',\'height=440,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Priming Sugar Calculator</a>'
|
||||
menu5[3]='<a href="#" onClick="window.open(\'tools/calculate.php?section=force_carb\',\'\',\'height=400,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Force Carbonation Calculator</a>'
|
||||
menu5[4]='<a href="#" onClick="window.open(\'tools/calculate.php?section=plato\',\'\',\'height=225,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Plato/Brix/SG Calculator</a>'
|
||||
menu5[6]='<a href="#" onClick="window.open(\'tools/calculate.php?section=strike\',\'\',\'height=400,width=800,toolbar=no,resizable=yes,scrollbars=yes\'); return false;">Strike Water Temperature Calculator</a>'
|
||||
menu5[9]='<a href="index.php?action=calculate&source=calculator">Recipe Calculator</a>'
|
||||
menu5[8]='<a href="index.php?action=chooseRecalc">Recalculate Recipe or Log</a>'
|
||||
*/
|
||||
|
||||
var menu6=new Array() // Admin << Back To... menu
|
||||
menu6[1]='<a href="../index.php?page=about">Brewer Profile</a>'
|
||||
menu6[4]='<a href="../index.php?page=brewBlogCurrent">Current</a>'
|
||||
menu6[5]='<a href="../index.php?page=brewBlogList"><?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu6[6]='<a href="../index.php?page=recipeList"><?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu6[7]='<a href="../index.php?page=reference"><?php echo $row_pref['menuReference']; ?></a>'
|
||||
menu6[2]='<a href="../index.php?page=tools"><?php echo $row_pref['menuCalculators']; ?></a>'
|
||||
menu6[0]='<a href="../index.php?page=awardsList&sort=awardBrewName&dir=ASC"><?php echo $row_pref['menuAwards']; ?></a>'
|
||||
menu6[3]='<a href="../index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a>'
|
||||
|
||||
var menu7=new Array() // Adimin Help menu
|
||||
menu7[0]='<a href="https://sourceforge.net/forum/forum.php?forum_id=564469" target="_blank">Help Forum</a>'
|
||||
menu7[1]='<a href="https://sourceforge.net/tracker/?group_id=165855&atid=837037" target="_blank">Report a Bug</a>'
|
||||
menu7[2]='<a href="https://sourceforge.net/tracker/?group_id=165855&atid=837040" target="_blank">Request a Feature</a>'
|
||||
menu7[3]='<a href="https://sourceforge.net/tracker/?group_id=165855&atid=837038" target="_blank">Request Support</a>'
|
||||
|
||||
// Club version User Level 2 menus
|
||||
|
||||
var menu8=new Array() // Public << Back to.. Menu
|
||||
menu8[0]='<a href="index.php?action=list&dbTable=brewing">Manage <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu8[1]='<a href="index.php?action=add&dbTable=brewing"> - Add <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu8[3]='<a href="admin/index.php?action=importXML&dbTable=brewing"> - Import BeerXML to <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu8[6]='<a href="index.php?action=list&dbTable=recipes">Manage <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu8[7]='<a href="index.php?action=add&dbTable=recipes"> - Add <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu8[8]='<a href="index.php?action=importXML&dbTable=recipes"> - Import BeerXML to <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu8[9]='<a href="index.php?action=list&dbTable=recipes&view=copy"> - Copy/Import Other User <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu8[4]='<a href="index.php?action=list&dbTable=upcoming">Manage Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu8[5]='<a href="index.php?action=add&dbTable=upcoming"> - Add Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu8[10]='<a href="index.php?action=list&dbTable=awards">Manage <?php echo $row_pref['menuAwards']; ?></a>'
|
||||
|
||||
|
||||
var menu9=new Array() //
|
||||
menu9[0]='<a href="index.php?action=list&dbTable=adjuncts">List Adjuncts</a>'
|
||||
menu9[1]='<a href="index.php?action=add&dbTable=adjuncts"> - Add Adjuncts</a>'
|
||||
menu9[2]='<a href="index.php?action=list&dbTable=equip_profiles">List Equipment Profiles</a>'
|
||||
menu9[3]='<a href="index.php?action=add&dbTable=equip_profiles"> - Add Equipment Profiles</a>'
|
||||
menu9[4]='<a href="index.php?action=list&dbTable=extract">List Extracts</a>'
|
||||
menu9[5]='<a href="index.php?action=add&dbTable=extract"> - Add Extracts</a>'
|
||||
menu9[6]='<a href="index.php?action=list&dbTable=malt">List Grains</a>'
|
||||
menu9[7]='<a href="index.php?action=add&dbTable=malt"> - Add Grains</a>'
|
||||
menu9[8]='<a href="index.php?action=list&dbTable=hops">List Hops</a>'
|
||||
menu9[9]='<a href="index.php?action=add&dbTable=hops"> - Add Hops</a>'
|
||||
menu9[10]='<a href="index.php?action=list&dbTable=styles">List Styles</a>'
|
||||
menu9[11]='<a href="index.php?action=add&dbTable=styles"> - Add Styles</a>'
|
||||
menu9[12]='<a href="index.php?action=list&dbTable=users">List Users</a>'
|
||||
menu9[13]='<a href="index.php?action=list&dbTable=water_profiles">List Water Profiles</a>'
|
||||
menu9[14]='<a href="index.php?action=add&dbTable=water_profiles"> - Add Water Profiles</a>'
|
||||
menu9[15]='<a href="index.php?action=list&dbTable=yeast_profiles">List Yeast Profiles</a>'
|
||||
menu9[16]='<a href="index.php?action=add&dbTable=yeast_profiles"> - Add Yeast Profiles</a>'
|
||||
|
||||
// menu10 no longer used
|
||||
|
||||
var menu11=new Array()
|
||||
menu11[0]='<a href="../index.php?page=awardsList&sort=awardBrewName&dir=ASC"><?php echo $row_pref['menuAwards']; ?></a>'
|
||||
menu11[1]='<a href="../index.php?page=brewBlogList&sort=brewDate&dir=DESC"><?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu11[2]='<a href="../index.php?page=members&sort=realLastName&dir=ASC"><?php echo $row_pref['menuMembers']; ?></a>'
|
||||
menu11[3]='<a href="../index.php?page=about">Profile</a>'
|
||||
menu11[4]='<a href="../index.php?page=recipeList"><?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu11[5]='<a href="../index.php?page=tools"><?php echo $row_pref['menuCalculators']; ?></a>'
|
||||
menu11[7]='<a href="../index.php?page=reference"><?php echo $row_pref['menuReference']; ?></a>'
|
||||
menu11[6]='<a href="../index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a>'
|
||||
|
||||
// menu12 no longer used
|
||||
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
var menu13=new Array()
|
||||
menu13[0]='<a href="admin/index.php">Admin Home</a>'
|
||||
menu13[1]='<a href="admin/index.php?action=list&dbTable=brewing">Manage <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu13[2]='<a href="admin/index.php?action=list&dbTable=recipes">Manage <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu13[3]='<a href="admin/index.php?action=list&dbTable=awards">Manage <?php echo $row_pref['menuAwards']; ?></a>'
|
||||
menu13[4]='<a href="admin/index.php?action=list&dbTable=upcoming">Manage Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu13[5]='<a href="admin/index.php?action=edit&dbTable=preferences&id=1">Edit Preferences</a>'
|
||||
menu13[6]='<a href="admin/index.php?action=importXML">Import BeerXML</a>'
|
||||
menu13[7]='<a href="admin/index.php?action=chooseRecalc">Recalculate a Recipe or Log</a>'
|
||||
menu13[8]='<a href="admin/index.php?action=calculate">Recipe Calculator</a>'
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
var menu13=new Array()
|
||||
menu13[0]='<a href="admin/index.php">Admin Home</a>'
|
||||
menu13[1]='<a href="admin/index.php?action=list&dbTable=brewing">Manage <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu13[2]='<a href="admin/index.php?action=list&dbTable=recipes">Manage <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu13[3]='<a href="admin/index.php?action=list&dbTable=upcoming">Manage Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
<?php } ?>
|
||||
|
||||
// menu14 no longer used
|
||||
|
||||
var menu15=new Array()
|
||||
menu15[0]='<a href="index.php?page=reference§ion=styles">BJCP Style Information</a>'
|
||||
menu15[1]='<a href="index.php?page=reference§ion=carbonation">Carbonation Chart</a>'
|
||||
menu15[3]='<a href="index.php?page=reference§ion=hops">Hops</a>'
|
||||
menu15[4]='<a href="index.php?page=reference§ion=grains">Malts and Grains</a>'
|
||||
menu15[2]='<a href="index.php?page=reference§ion=color">Color Chart</a>'
|
||||
menu15[5]='<a href="index.php?page=reference§ion=yeast">Yeast</a>'
|
||||
|
||||
var menu16=new Array()
|
||||
menu16[0]='<a href="index.php?page=tools§ion=bitterness">Bitterness Calculator</a>'
|
||||
menu16[1]='<a href="index.php?page=tools§ion=efficiency">Brewhouse Efficiency Calculator</a>'
|
||||
menu16[2]='<a href="index.php?page=tools§ion=calories">Calories, Alcohol, and Plato Calculator</a>'
|
||||
menu16[3]='<a href="index.php?page=tools§ion=force_carb">Force Carbonation Calculator</a>'
|
||||
menu16[5]='<a href="index.php?page=tools§ion=plato">Plato/Brix/SG Calculator</a>'
|
||||
menu16[6]='<a href="index.php?page=tools§ion=sugar">Priming Sugar Calculator</a>'
|
||||
menu16[7]='<a href="index.php?page=tools§ion=strike">Strike Water Temperature Calculator</a>'
|
||||
menu16[8]='<a href="index.php?page=tools§ion=water">Water Amounts Calculator</a>'
|
||||
menu16[4]='<a href="index.php?page=tools§ion=hyd">Hydrometer Correction Calculator</a>'
|
||||
|
||||
var menu17=new Array()
|
||||
menu17[0]='<a href="admin/index.php?action=list&dbTable=brewing">Manage <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu17[2]='<a href="admin/index.php?action=list&dbTable=recipes">Manage <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu17[3]='<a href="admin/index.php?action=list&dbTable=recipes&view=copy">Copy/Import Other User <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu17[1]='<a href="admin/index.php?action=list&dbTable=upcoming">Manage Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu17[4]='<a href="admin/index.php?action=list&dbTable=awards">Manage <?php echo $row_pref['menuAwards']; ?></a>'
|
||||
menu17[9]='<a href="admin/index.php?action=importXML">Import BeerXML to <?php echo $row_pref['menuBrewBlogs']; ?></a>'
|
||||
menu17[10]='<a href="admin/index.php?action=importXML">Import BeerXML to <?php echo $row_pref['menuRecipes']; ?></a>'
|
||||
menu17[11]='<a href="admin/index.php?action=chooseRecalc">Recalculate a Recipe or Log</a>'
|
||||
menu17[12]='<a href="admin/index.php?action=calculate">Recipe Calculator</a>'
|
||||
|
||||
|
||||
var menuwidth='250px' //default menu width
|
||||
var menubgcolor='' //menu bgcolor
|
||||
var disappeardelay='50' //menu disappear speed onMouseout (in miliseconds)
|
||||
var hidemenu_onclick="no" //hide menu when user clicks within menu?
|
||||
|
||||
/////No further editing needed
|
||||
|
||||
var ie4=document.all
|
||||
var ns6=document.getElementById&&!document.all
|
||||
|
||||
if (ie4||ns6)
|
||||
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
|
||||
|
||||
function getposOffset(what, offsettype){
|
||||
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
|
||||
var parentEl=what.offsetParent;
|
||||
while (parentEl!=null){
|
||||
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
|
||||
parentEl=parentEl.offsetParent;
|
||||
}
|
||||
return totaloffset;
|
||||
}
|
||||
|
||||
|
||||
function showhide(obj, e, visible, hidden, menuwidth){
|
||||
if (ie4||ns6)
|
||||
dropmenuobj.style.left=dropmenuobj.style.top=-500
|
||||
if (menuwidth!=""){
|
||||
dropmenuobj.widthobj=dropmenuobj.style
|
||||
dropmenuobj.widthobj.width=menuwidth
|
||||
}
|
||||
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
|
||||
obj.visibility=visible
|
||||
else if (e.type=="click")
|
||||
obj.visibility=hidden
|
||||
}
|
||||
|
||||
function iecompattest(){
|
||||
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
|
||||
}
|
||||
|
||||
function clearbrowseredge(obj, whichedge){
|
||||
var edgeoffset=0
|
||||
if (whichedge=="rightedge"){
|
||||
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
|
||||
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
|
||||
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
|
||||
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
|
||||
}
|
||||
else{
|
||||
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
|
||||
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
|
||||
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
|
||||
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
|
||||
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
|
||||
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
|
||||
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
|
||||
}
|
||||
}
|
||||
return edgeoffset
|
||||
}
|
||||
|
||||
function populatemenu(what){
|
||||
if (ie4||ns6)
|
||||
dropmenuobj.innerHTML=what.join("")
|
||||
}
|
||||
|
||||
|
||||
function dropdownmenu(obj, e, menucontents, menuwidth){
|
||||
if (window.event) event.cancelBubble=true
|
||||
else if (e.stopPropagation) e.stopPropagation()
|
||||
clearhidemenu()
|
||||
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
|
||||
populatemenu(menucontents)
|
||||
|
||||
if (ie4||ns6){
|
||||
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
|
||||
dropmenuobj.x=getposOffset(obj, "left")
|
||||
dropmenuobj.y=getposOffset(obj, "top")
|
||||
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
|
||||
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
|
||||
}
|
||||
|
||||
return clickreturnvalue()
|
||||
}
|
||||
|
||||
function clickreturnvalue(){
|
||||
if (ie4||ns6) return false
|
||||
else return true
|
||||
}
|
||||
|
||||
function contains_ns6(a, b) {
|
||||
while (b.parentNode)
|
||||
if ((b = b.parentNode) == a)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function dynamichide(e){
|
||||
if (ie4&&!dropmenuobj.contains(e.toElement))
|
||||
delayhidemenu()
|
||||
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
|
||||
delayhidemenu()
|
||||
}
|
||||
|
||||
function hidemenu(e){
|
||||
if (typeof dropmenuobj!="undefined"){
|
||||
if (ie4||ns6)
|
||||
dropmenuobj.style.visibility="hidden"
|
||||
}
|
||||
}
|
||||
|
||||
function delayhidemenu(){
|
||||
if (ie4||ns6)
|
||||
delayhide=setTimeout("hidemenu()",disappeardelay)
|
||||
}
|
||||
|
||||
function clearhidemenu(){
|
||||
if (typeof delayhide!="undefined")
|
||||
clearTimeout(delayhide)
|
||||
}
|
||||
|
||||
if (hidemenu_onclick=="yes")
|
||||
document.onclick=hidemenu
|
||||
|
||||
</script>
|
||||
<?php { ?>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
//<![CDATA[
|
||||
|
||||
//*****************************************************************************
|
||||
// Do not remove this notice.
|
||||
//
|
||||
// Copyright 2000-2004 by Mike Hall.
|
||||
// See http://www.brainjar.com for terms of use.
|
||||
//*****************************************************************************
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to determine the browser and version.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function Browser() {
|
||||
|
||||
var ua, s, i;
|
||||
|
||||
this.isIE = false; // Internet Explorer
|
||||
this.isOP = false; // Opera
|
||||
this.isNS = false; // Netscape
|
||||
this.version = null;
|
||||
|
||||
ua = navigator.userAgent;
|
||||
|
||||
s = "Opera";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isOP = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
s = "Netscape6/";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isNS = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
// Treat any other "Gecko" browser as Netscape 6.1.
|
||||
|
||||
s = "Gecko";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isNS = true;
|
||||
this.version = 6.1;
|
||||
return;
|
||||
}
|
||||
|
||||
s = "MSIE";
|
||||
if ((i = ua.indexOf(s))) {
|
||||
this.isIE = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var browser = new Browser();
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code for handling the menu bar and active button.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
var activeButton = null;
|
||||
|
||||
/* [MODIFIED] This code commented out, not needed for activate/deactivate
|
||||
on mouseover.
|
||||
|
||||
// Capture mouse clicks on the page so any active button can be
|
||||
// deactivated.
|
||||
|
||||
if (browser.isIE)
|
||||
document.onmousedown = pageMousedown;
|
||||
else
|
||||
document.addEventListener("mousedown", pageMousedown, true);
|
||||
|
||||
function pageMousedown(event) {
|
||||
|
||||
var el;
|
||||
|
||||
// If there is no active button, exit.
|
||||
|
||||
if (activeButton == null)
|
||||
return;
|
||||
|
||||
// Find the element that was clicked on.
|
||||
|
||||
if (browser.isIE)
|
||||
el = window.event.srcElement;
|
||||
else
|
||||
el = (event.target.tagName ? event.target : event.target.parentNode);
|
||||
|
||||
// If the active button was clicked on, exit.
|
||||
|
||||
if (el == activeButton)
|
||||
return;
|
||||
|
||||
// If the element is not part of a menu, reset and clear the active
|
||||
// button.
|
||||
|
||||
if (getContainerWith(el, "DIV", "menu") == null) {
|
||||
resetButton(activeButton);
|
||||
activeButton = null;
|
||||
}
|
||||
}
|
||||
|
||||
[END MODIFIED] */
|
||||
|
||||
function buttonClick(event, menuId) {
|
||||
|
||||
var button;
|
||||
|
||||
// Get the target button element.
|
||||
|
||||
if (browser.isIE)
|
||||
button = window.event.srcElement;
|
||||
else
|
||||
button = event.currentTarget;
|
||||
|
||||
// Blur focus from the link to remove that annoying outline.
|
||||
|
||||
button.blur();
|
||||
|
||||
// Associate the named menu to this button if not already done.
|
||||
// Additionally, initialize menu display.
|
||||
|
||||
if (button.menu == null) {
|
||||
button.menu = document.getElementById(menuId);
|
||||
if (button.menu.isInitialized == null)
|
||||
menuInit(button.menu);
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the button, if not already done.
|
||||
|
||||
if (button.onmouseout == null)
|
||||
button.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// Exit if this button is the currently active one.
|
||||
|
||||
if (button == activeButton)
|
||||
return false;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Reset the currently active button, if any.
|
||||
|
||||
if (activeButton != null)
|
||||
resetButton(activeButton);
|
||||
|
||||
// Activate this button, unless it was the currently active one.
|
||||
|
||||
if (button != activeButton) {
|
||||
depressButton(button);
|
||||
activeButton = button;
|
||||
}
|
||||
else
|
||||
activeButton = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function buttonMouseover(event, menuId) {
|
||||
|
||||
var button;
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Activates this button's menu if no other is currently active.
|
||||
|
||||
if (activeButton == null) {
|
||||
buttonClick(event, menuId);
|
||||
return;
|
||||
}
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Find the target button element.
|
||||
|
||||
if (browser.isIE)
|
||||
button = window.event.srcElement;
|
||||
else
|
||||
button = event.currentTarget;
|
||||
|
||||
// If any other button menu is active, make this one active instead.
|
||||
|
||||
if (activeButton != null && activeButton != button)
|
||||
buttonClick(event, menuId);
|
||||
}
|
||||
|
||||
function depressButton(button) {
|
||||
|
||||
var x, y;
|
||||
|
||||
// Update the button's style class to make it look like it's
|
||||
// depressed.
|
||||
|
||||
button.className += " menuButtonActive";
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the button, if not already done.
|
||||
|
||||
if (button.onmouseout == null)
|
||||
button.onmouseout = buttonOrMenuMouseout;
|
||||
if (button.menu.onmouseout == null)
|
||||
button.menu.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Position the associated drop down menu under the button and
|
||||
// show it.
|
||||
|
||||
x = getPageOffsetLeft(button);
|
||||
y = getPageOffsetTop(button) + button.offsetHeight;
|
||||
|
||||
// For IE, adjust position.
|
||||
|
||||
if (browser.isIE) {
|
||||
x += button.offsetParent.clientLeft;
|
||||
y += button.offsetParent.clientTop;
|
||||
}
|
||||
|
||||
button.menu.style.left = x + "px";
|
||||
button.menu.style.top = y + "px";
|
||||
button.menu.style.visibility = "visible";
|
||||
|
||||
// For IE; size, position and show the menu's IFRAME as well.
|
||||
|
||||
if (button.menu.iframeEl != null)
|
||||
{
|
||||
button.menu.iframeEl.style.left = button.menu.style.left;
|
||||
button.menu.iframeEl.style.top = button.menu.style.top;
|
||||
button.menu.iframeEl.style.width = button.menu.offsetWidth + "px";
|
||||
button.menu.iframeEl.style.height = button.menu.offsetHeight + "px";
|
||||
button.menu.iframeEl.style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
function resetButton(button) {
|
||||
|
||||
// Restore the button's style class.
|
||||
|
||||
removeClassName(button, "menuButtonActive");
|
||||
|
||||
// Hide the button's menu, first closing any sub menus.
|
||||
|
||||
if (button.menu != null) {
|
||||
closeSubMenu(button.menu);
|
||||
button.menu.style.visibility = "hidden";
|
||||
|
||||
// For IE, hide menu's IFRAME as well.
|
||||
|
||||
if (button.menu.iframeEl != null)
|
||||
button.menu.iframeEl.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to handle the menus and sub menus.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function menuMouseover(event) {
|
||||
|
||||
var menu;
|
||||
|
||||
// Find the target menu element.
|
||||
|
||||
if (browser.isIE)
|
||||
menu = getContainerWith(window.event.srcElement, "DIV", "menu");
|
||||
else
|
||||
menu = event.currentTarget;
|
||||
|
||||
// Close any active sub menu.
|
||||
|
||||
if (menu.activeItem != null)
|
||||
closeSubMenu(menu);
|
||||
}
|
||||
|
||||
function menuItemMouseover(event, menuId) {
|
||||
|
||||
var item, menu, x, y;
|
||||
|
||||
// Find the target item element and its parent menu element.
|
||||
|
||||
if (browser.isIE)
|
||||
item = getContainerWith(window.event.srcElement, "A", "menuItem");
|
||||
else
|
||||
item = event.currentTarget;
|
||||
menu = getContainerWith(item, "DIV", "menu");
|
||||
|
||||
// Close any active sub menu and mark this one as active.
|
||||
|
||||
if (menu.activeItem != null)
|
||||
closeSubMenu(menu);
|
||||
menu.activeItem = item;
|
||||
|
||||
// Highlight the item element.
|
||||
|
||||
item.className += " menuItemHighlight";
|
||||
|
||||
// Initialize the sub menu, if not already done.
|
||||
|
||||
if (item.subMenu == null) {
|
||||
item.subMenu = document.getElementById(menuId);
|
||||
if (item.subMenu.isInitialized == null)
|
||||
menuInit(item.subMenu);
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the sub menu, if not already done.
|
||||
|
||||
if (item.subMenu.onmouseout == null)
|
||||
item.subMenu.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Get position for submenu based on the menu item.
|
||||
|
||||
x = getPageOffsetLeft(item) + item.offsetWidth;
|
||||
y = getPageOffsetTop(item);
|
||||
|
||||
// Adjust position to fit in view.
|
||||
|
||||
var maxX, maxY;
|
||||
|
||||
if (browser.isIE) {
|
||||
maxX = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) +
|
||||
(document.documentElement.clientWidth != 0 ? document.documentElement.clientWidth : document.body.clientWidth);
|
||||
maxY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) +
|
||||
(document.documentElement.clientHeight != 0 ? document.documentElement.clientHeight : document.body.clientHeight);
|
||||
}
|
||||
if (browser.isOP) {
|
||||
maxX = document.documentElement.scrollLeft + window.innerWidth;
|
||||
maxY = document.documentElement.scrollTop + window.innerHeight;
|
||||
}
|
||||
if (browser.isNS) {
|
||||
maxX = window.scrollX + window.innerWidth;
|
||||
maxY = window.scrollY + window.innerHeight;
|
||||
}
|
||||
maxX -= item.subMenu.offsetWidth;
|
||||
maxY -= item.subMenu.offsetHeight;
|
||||
|
||||
if (x > maxX)
|
||||
x = Math.max(0, x - item.offsetWidth - item.subMenu.offsetWidth
|
||||
+ (menu.offsetWidth - item.offsetWidth));
|
||||
y = Math.max(0, Math.min(y, maxY));
|
||||
|
||||
// Position and show the sub menu.
|
||||
|
||||
item.subMenu.style.left = x + "px";
|
||||
item.subMenu.style.top = y + "px";
|
||||
item.subMenu.style.visibility = "visible";
|
||||
|
||||
// For IE; size, position and display the menu's IFRAME as well.
|
||||
|
||||
if (item.subMenu.iframeEl != null)
|
||||
{
|
||||
item.subMenu.iframeEl.style.left = item.subMenu.style.left;
|
||||
item.subMenu.iframeEl.style.top = item.subMenu.style.top;
|
||||
item.subMenu.iframeEl.style.width = item.subMenu.offsetWidth + "px";
|
||||
item.subMenu.iframeEl.style.height = item.subMenu.offsetHeight + "px";
|
||||
item.subMenu.iframeEl.style.display = "";
|
||||
}
|
||||
|
||||
// Stop the event from bubbling.
|
||||
|
||||
if (browser.isIE)
|
||||
window.event.cancelBubble = true;
|
||||
else
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
function closeSubMenu(menu) {
|
||||
|
||||
if (menu == null || menu.activeItem == null)
|
||||
return;
|
||||
|
||||
// Recursively close any sub menus.
|
||||
|
||||
if (menu.activeItem.subMenu != null) {
|
||||
closeSubMenu(menu.activeItem.subMenu);
|
||||
menu.activeItem.subMenu.style.visibility = "hidden";
|
||||
|
||||
// For IE, hide the sub menu's IFRAME as well.
|
||||
|
||||
if (menu.activeItem.subMenu.iframeEl != null)
|
||||
menu.activeItem.subMenu.iframeEl.style.display = "none";
|
||||
|
||||
menu.activeItem.subMenu = null;
|
||||
}
|
||||
|
||||
// Deactivate the active menu item.
|
||||
|
||||
removeClassName(menu.activeItem, "menuItemHighlight");
|
||||
menu.activeItem = null;
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover. Handler for mouseout
|
||||
// event on buttons and menus.
|
||||
|
||||
function buttonOrMenuMouseout(event) {
|
||||
|
||||
var el;
|
||||
|
||||
// If there is no active button, exit.
|
||||
|
||||
if (activeButton == null)
|
||||
return;
|
||||
|
||||
// Find the element the mouse is moving to.
|
||||
|
||||
if (browser.isIE)
|
||||
el = window.event.toElement;
|
||||
else if (event.relatedTarget != null)
|
||||
el = (event.relatedTarget.tagName ? event.relatedTarget : event.relatedTarget.parentNode);
|
||||
|
||||
// If the element is not part of a menu, reset the active button.
|
||||
|
||||
if (getContainerWith(el, "DIV", "menu") == null) {
|
||||
resetButton(activeButton);
|
||||
activeButton = null;
|
||||
}
|
||||
}
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to initialize menus.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function menuInit(menu) {
|
||||
|
||||
var itemList, spanList;
|
||||
var textEl, arrowEl;
|
||||
var itemWidth;
|
||||
var w, dw;
|
||||
var i, j;
|
||||
|
||||
// For IE, replace arrow characters.
|
||||
|
||||
if (browser.isIE) {
|
||||
menu.style.lineHeight = "2.5ex";
|
||||
spanList = menu.getElementsByTagName("SPAN");
|
||||
for (i = 0; i < spanList.length; i++)
|
||||
if (hasClassName(spanList[i], "menuItemArrow")) {
|
||||
spanList[i].style.fontFamily = "Webdings";
|
||||
spanList[i].firstChild.nodeValue = "4";
|
||||
}
|
||||
}
|
||||
|
||||
// Find the width of a menu item.
|
||||
|
||||
itemList = menu.getElementsByTagName("A");
|
||||
if (itemList.length > 0)
|
||||
itemWidth = itemList[0].offsetWidth;
|
||||
else
|
||||
return;
|
||||
|
||||
// For items with arrows, add padding to item text to make the
|
||||
// arrows flush right.
|
||||
|
||||
for (i = 0; i < itemList.length; i++) {
|
||||
spanList = itemList[i].getElementsByTagName("SPAN");
|
||||
textEl = null;
|
||||
arrowEl = null;
|
||||
for (j = 0; j < spanList.length; j++) {
|
||||
if (hasClassName(spanList[j], "menuItemText"))
|
||||
textEl = spanList[j];
|
||||
if (hasClassName(spanList[j], "menuItemArrow"))
|
||||
arrowEl = spanList[j];
|
||||
}
|
||||
if (textEl != null && arrowEl != null) {
|
||||
textEl.style.paddingRight = (itemWidth
|
||||
- (textEl.offsetWidth + arrowEl.offsetWidth)) + "px";
|
||||
// For Opera, remove the negative right margin to fix a display bug.
|
||||
if (browser.isOP)
|
||||
arrowEl.style.marginRight = "0px";
|
||||
}
|
||||
}
|
||||
|
||||
// Fix IE hover problem by setting an explicit width on first item of
|
||||
// the menu.
|
||||
|
||||
if (browser.isIE) {
|
||||
w = itemList[0].offsetWidth;
|
||||
itemList[0].style.width = w + "px";
|
||||
dw = itemList[0].offsetWidth - w;
|
||||
w -= dw;
|
||||
itemList[0].style.width = w + "px";
|
||||
}
|
||||
|
||||
// Fix the IE display problem (SELECT elements and other windowed controls
|
||||
// overlaying the menu) by adding an IFRAME under the menu.
|
||||
|
||||
if (browser.isIE) {
|
||||
var iframeEl = document.createElement("IFRAME");
|
||||
iframeEl.frameBorder = 0;
|
||||
iframeEl.src = "javascript:false;";
|
||||
iframeEl.style.display = "none";
|
||||
iframeEl.style.position = "absolute";
|
||||
iframeEl.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
|
||||
menu.iframeEl = menu.parentNode.insertBefore(iframeEl, menu);
|
||||
}
|
||||
|
||||
// Mark menu as initialized.
|
||||
|
||||
menu.isInitialized = true;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// General utility functions.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function getContainerWith(node, tagName, className) {
|
||||
|
||||
// Starting with the given node, find the nearest containing element
|
||||
// with the specified tag name and style class.
|
||||
|
||||
while (node != null) {
|
||||
if (node.tagName != null && node.tagName == tagName &&
|
||||
hasClassName(node, className))
|
||||
return node;
|
||||
node = node.parentNode;
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
function hasClassName(el, name) {
|
||||
|
||||
var i, list;
|
||||
|
||||
// Return true if the given element currently has the given class
|
||||
// name.
|
||||
|
||||
list = el.className.split(" ");
|
||||
for (i = 0; i < list.length; i++)
|
||||
if (list[i] == name)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function removeClassName(el, name) {
|
||||
|
||||
var i, curList, newList;
|
||||
|
||||
if (el.className == null)
|
||||
return;
|
||||
|
||||
// Remove the given class name from the element's className property.
|
||||
|
||||
newList = new Array();
|
||||
curList = el.className.split(" ");
|
||||
for (i = 0; i < curList.length; i++)
|
||||
if (curList[i] != name)
|
||||
newList.push(curList[i]);
|
||||
el.className = newList.join(" ");
|
||||
}
|
||||
|
||||
function getPageOffsetLeft(el) {
|
||||
|
||||
var x;
|
||||
|
||||
// Return the x coordinate of an element relative to the page.
|
||||
|
||||
x = el.offsetLeft;
|
||||
if (el.offsetParent != null)
|
||||
x += getPageOffsetLeft(el.offsetParent);
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
function getPageOffsetTop(el) {
|
||||
|
||||
var y;
|
||||
|
||||
// Return the x coordinate of an element relative to the page.
|
||||
|
||||
y = el.offsetTop;
|
||||
if (el.offsetParent != null)
|
||||
y += getPageOffsetTop(el.offsetParent);
|
||||
|
||||
return y;
|
||||
}
|
||||
|
||||
//]]>
|
||||
|
||||
/***********************************************
|
||||
* AnyLink Drop Down Menu- ? Dynamic Drive (www.dynamicdrive.com)
|
||||
* This notice MUST stay intact for legal use
|
||||
* Visit http://www.dynamicdrive.com/ for full source code
|
||||
***********************************************/
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<?php } ?>
|
||||
@@ -26,6 +26,7 @@ if ($page == "delWithCon") echo "<meta http-equiv=\"refresh\" content=\"0\">"; /
|
||||
<link rel="stylesheet" type="text/css" href="../css/mobile.css">
|
||||
<?php } else { ?>
|
||||
<link href="../css/<?php echo $row_pref['theme']; ?>" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../js_includes/menu.js"></script>
|
||||
<script type="text/javascript" src="../js_includes/jquery.js"></script>
|
||||
<script type="text/javascript" src="../js_includes/thickbox.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../css/thickbox.css" media="screen">
|
||||
|
||||
@@ -2459,6 +2459,7 @@ SET
|
||||
brewName=%s,
|
||||
brewStatus=%s,
|
||||
brewBatchNum=%s,
|
||||
brewDate=%s,
|
||||
brewTapDate=%s,
|
||||
brewOG=%s,
|
||||
brewGravity1=%s,
|
||||
@@ -2473,6 +2474,7 @@ WHERE id=%s",
|
||||
GetSQLValueString($_POST['brewName'], "scrubbed"),
|
||||
GetSQLValueString($_POST['brewStatus'], "text"),
|
||||
GetSQLValueString($_POST['brewBatchNum'], "text"),
|
||||
GetSQLValueString($_POST['brewDate'], "text"),
|
||||
GetSQLValueString($_POST['brewTapDate'], "text"),
|
||||
GetSQLValueString($_POST['brewOG'], "text"),
|
||||
GetSQLValueString($_POST['brewGravity1'], "text"),
|
||||
|
||||
611
css/SB12.css
Normal file
@@ -0,0 +1,611 @@
|
||||
|
||||
/* CSS Document
|
||||
|
||||
Colors
|
||||
Yellow: #ffcd34
|
||||
Dark Blue: #01214f
|
||||
Medium Blue (Links): #02429C
|
||||
Light Blue: #c7d3e3
|
||||
Gray: #d1d2d4
|
||||
|
||||
Alternating row colors
|
||||
#dedede
|
||||
#eeeeee
|
||||
|
||||
*/
|
||||
body {
|
||||
background-color: #d4ce8d;
|
||||
color: #000000;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.25;
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
font-size: 11px;
|
||||
background-image: url(../images/SB12/page_bknd.png);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
|
||||
/* ***************************** Custom Theme Elements ***************************** */
|
||||
|
||||
tr, td, p, input, menu {
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
}
|
||||
|
||||
button, textarea, select {
|
||||
border: 1px solid #9a9a9a;
|
||||
font-family: Verdana, Arial, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
input:focus {
|
||||
border: 1px solid #01214f;
|
||||
}
|
||||
|
||||
/* ------------------ Global links ------------------ */
|
||||
|
||||
a:link { color: #02429C; text-decoration: none; }
|
||||
a:visited { color: #02429C; text-decoration: none; }
|
||||
a:hover { color: #777777; text-decoration: none; }
|
||||
a:active { color: #990000; text-decoration: none; }
|
||||
|
||||
/* ------------------ layout divs ------------------ */
|
||||
#maincontainer {
|
||||
width: 990px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
padding: 0px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#contentwrapper {
|
||||
float: left;
|
||||
width: 990px;
|
||||
background-image: url(../images/SB12/mainbknd.png);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/*
|
||||
#contentwrapperAdmin {
|
||||
float: left;
|
||||
width: 990px;
|
||||
background-image: url(../images/SB12/mainbknd.png);
|
||||
margin-top: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
}
|
||||
*/
|
||||
|
||||
#contentcolumn {
|
||||
margin: 0px -250px 12px 24px;
|
||||
width: 685px;
|
||||
border-right: 250px solid #ffffff; /* The width and color of the right*/
|
||||
}
|
||||
|
||||
#contentWide { /* if no sidebar content */
|
||||
width: 940px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
#rightcolumn { /* sidebar content - holds links, brewlog lists, recipe lists, upcoming brewing sessions, etc. */
|
||||
float: left;
|
||||
width: 250px;
|
||||
margin: 0 0 0 12px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------ header elements ------------------ */
|
||||
#header {
|
||||
background-image: url(../images/SB12/header.png);
|
||||
background-repeat: no-repeat;
|
||||
height: 75px;
|
||||
background-position: bottom left;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.titleText {
|
||||
font-size: 1.6em;
|
||||
color: #01214f;
|
||||
font-weight: bold;
|
||||
padding: 30px 25px 0 0;
|
||||
}
|
||||
|
||||
.quoteText {
|
||||
padding: 0 25px 0 10px;
|
||||
font-size: .8em;
|
||||
font-style: italic;
|
||||
color: #01214f;
|
||||
}
|
||||
|
||||
#subtitle, #subtitleAdmin, #subtitleWide {
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 150%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#breadcrumbWide, #breadcrumb , #breadcrumbAdmin {
|
||||
padding: 0;
|
||||
font-size: .8em;
|
||||
margin: 10px 0 10px 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
#paginate {
|
||||
text-align: right;
|
||||
padding: 8px 0px 0px 3px;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
/* ------------------ main navigation ------------------ */
|
||||
#nav {
|
||||
background-image: url(../images/SB12/nav.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: middle left;
|
||||
margin-top: 0px;
|
||||
padding: 15px 25px 0px 25px;
|
||||
height: 30px;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
#nav ul
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#nav li
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
#nav a:link { color: #FFFFFF; text-decoration: none; font-weight: bold; }
|
||||
#nav a:visited { color: #FFFFFF; text-decoration: none; font-weight: bold; }
|
||||
#nav a:hover { color: #ffff00; text-decoration: none; font-weight: bold; }
|
||||
#nav a:active { color: #ffff00; text-decoration: none; font-weight: bold; }
|
||||
#nav .ultra_lt { color: #FFFF00; }
|
||||
|
||||
|
||||
/* ------------------ drop-down menu elements ------------------ */
|
||||
|
||||
div.menuBar, div.menuBar a.menuButton, div.menu, div.menu a.menuItem {
|
||||
}
|
||||
|
||||
div.menuBar {
|
||||
}
|
||||
|
||||
div.menuBar a.menuButton {
|
||||
}
|
||||
|
||||
div.menuBar a.menuButton:hover {
|
||||
}
|
||||
|
||||
div.menuBar a.menuButtonActive, div.menuBar a.menuButtonActive:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
div.menu {
|
||||
background-color: #666666;
|
||||
border: 1px solid #d0d0d0;
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
div.menu a.menuItem {
|
||||
}
|
||||
|
||||
div.menu a.menuItem:hover, div.menu a.menuItemHighlight {
|
||||
background-color: #888888;
|
||||
}
|
||||
|
||||
div.menu a.menuItem span.menuItemText {
|
||||
}
|
||||
|
||||
div.menu a.menuItem span.menuItemArrow {
|
||||
}
|
||||
|
||||
div.menu div.menuItemSep {
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
/* Legacy
|
||||
#dropmenudiv {
|
||||
position: absolute;
|
||||
border: 1px solid #01214f;
|
||||
border-bottom-width: 0;
|
||||
line-height: 15px;
|
||||
z-index: 101;
|
||||
background-color: #777777;
|
||||
margin: -75px 0 0 -235px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
#dropmenudiv a {
|
||||
color: #02429C;
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-indent: 2px;
|
||||
border-bottom: 1px solid #01214f;
|
||||
padding: 1px 0;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#dropmenudiv a:hover {
|
||||
background-color: #c0c0c0;
|
||||
text-decoration: none;
|
||||
color: #000099;
|
||||
}
|
||||
*/
|
||||
|
||||
/* ------------------ footer elements ------------------ */
|
||||
#footer {
|
||||
background-image: url(../images/SB12/footer.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top;
|
||||
clear: left;
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
padding: 5px 0;
|
||||
text-align: center;
|
||||
font-size: 90%;
|
||||
color: #000000;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
}
|
||||
|
||||
#footerInclude {
|
||||
font-size: .8em;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
|
||||
/* ------------------ content display ------------------ */
|
||||
|
||||
#headerContent {
|
||||
clear: left;
|
||||
width: 682px;
|
||||
height: 20px;
|
||||
background-image: url(../images/SB12/content_header.png);
|
||||
background-repeat: no-repeat;
|
||||
border-bottom: 1px solid #01214f;
|
||||
padding: 5px 5px 5px 2px;
|
||||
text-align: left;
|
||||
font-size: 1.3em;
|
||||
color: #01214f;
|
||||
font-weight: bold;
|
||||
margin: 5px 5px 5px -2px;
|
||||
}
|
||||
|
||||
#headerContentAdmin {
|
||||
clear: left;
|
||||
width: 935px;
|
||||
height: 20px;
|
||||
background-image: url(../images/SB12/content_header.png);
|
||||
background-repeat: no-repeat;
|
||||
border-bottom: 1px dashed #01214f;
|
||||
padding: 5px 5px 5px 2px;
|
||||
text-align: left;
|
||||
font-size: 1.3em;
|
||||
color: #01214f;
|
||||
font-weight: bold;
|
||||
margin: 10px 5px 15px -2px;
|
||||
}
|
||||
|
||||
/* ***************************** Tools/Reference Elements *****************************
|
||||
|
||||
Dark Blue: #01214f
|
||||
Medium Blue (Links): #02429C
|
||||
Light Blue: #c7d3e3
|
||||
|
||||
*/
|
||||
|
||||
#wideWrapper { /* Use for tools and reference pages */
|
||||
width: 450px;
|
||||
text-align: left;
|
||||
background: #DAE2EC;
|
||||
border: 1px solid #01214f;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#referenceWrapper {
|
||||
text-align: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#wideWrapperReference { /* Use for tools and reference pages */
|
||||
width: 930px;
|
||||
text-align: left;
|
||||
background: #DAE2EC;
|
||||
border: 1px solid #01214f;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#wideWrapperCalc { /* Use for tools and reference pages */
|
||||
width: 740px;
|
||||
text-align: left;
|
||||
background: #DAE2EC;
|
||||
border: 1px solid #01214f;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#wideWrapperReview { /* Use for reviews */
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
background: #DAE2EC;
|
||||
border: 1px solid #01214f;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.carbonationTable { /* specialized style for carbonation tables */
|
||||
text-align: center;
|
||||
font-size: .90em;
|
||||
background: #FFFFFF;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#referenceHeader {
|
||||
background-color: #01214f;
|
||||
font-weight: bold;
|
||||
padding: 4px;
|
||||
color: #FFFFFF;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
/* ***************************** Sidebar Elements ***************************** */
|
||||
|
||||
#sidebarWrapper {
|
||||
width: 235px;
|
||||
padding: 0px;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#sidebarHeader {
|
||||
height: 22px;
|
||||
font-weight: bold;
|
||||
color: #01214f;
|
||||
margin-bottom: 5px;
|
||||
font-size: 105%;
|
||||
}
|
||||
|
||||
#sidebarHeaderSmall { /* use for inner table div within dataTables */
|
||||
background: #c7d3e3;
|
||||
padding: 2px 2px 2px 4px;
|
||||
font-weight: bold;
|
||||
color: #0a0434;
|
||||
}
|
||||
|
||||
#sidebarInnerWrapper {
|
||||
width: 235px;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
/* ***************************** Theme Specific Color Elements *****************************
|
||||
|
||||
Yellow: #ffcd34
|
||||
Dark Blue: #01214f
|
||||
Medium Blue (Links): #02429C
|
||||
Light Blue: #c7d3e3
|
||||
Gray: #d1d2d4
|
||||
|
||||
*/
|
||||
|
||||
.ultra_lt { color: #DAE2EC; }
|
||||
.lt { color: #c7d3e3; }
|
||||
.mid { color: #02429C; }
|
||||
.dk { color: #01214f; }
|
||||
.bknd_white { background-color: #FFFFFF; }
|
||||
.bknd_ultra_lt { background-color: #DAE2EC; }
|
||||
.bknd_lt { background-color: #c7d3e3; }
|
||||
.bknd_mid { background-color: #02429C; }
|
||||
.bknd_dk { background-color: #01214f; }
|
||||
|
||||
/* ultra light border styles */
|
||||
.bdr1_ultra_lt { border: 1px solid #DAE2EC; }
|
||||
.bdr1_ultra_lt_dashed { border: 1px dashed #DAE2EC; }
|
||||
.bdr1_ultra_lt_dotted { border: 1px dotted #DAE2EC; }
|
||||
.bdr2_ultra_lt { border: 2px solid #DAE2EC; }
|
||||
.bdr2_ultra_lt_dashed { border: 2px dashed #DAE2EC; }
|
||||
.bdr2_ultra_lt_dotted { border: 2px dotted #DAE2EC; }
|
||||
.bdr1L_ultra_lt { border-left: 1px solid #DAE2EC; }
|
||||
.bdr1L_ultra_lt_dashed { border-left: 1px dashed #DAE2EC; }
|
||||
.bdr1L_ultra_lt_dotted { border-left: 1px dotted #DAE2EC; }
|
||||
.bdr1R_ultra_lt { border-right: 1px solid #DAE2EC; }
|
||||
.bdr1R_ultra_lt_dashed { border-right: 1px dashed #DAE2EC; }
|
||||
.bdr1R_ultra_lt_dotted { border-right: 1px dotted #DAE2EC; }
|
||||
.bdr1T_ultra_lt { border-top: 1px solid #DAE2EC; }
|
||||
.bdr1T_ultra_lt_dashed { border-top: 1px dashed #DAE2EC; }
|
||||
.bdr1T_ultra_lt_dotted { border-top: 1px dotted #DAE2EC; }
|
||||
.bdr1B_ultra_lt { border-bottom: 1px solid #DAE2EC; }
|
||||
.bdr1B_ultra_lt_dashed { border-bottom: 1px dashed #DAE2EC; }
|
||||
.bdr1B_ultra_lt_dotted { border-bottom: 1px dotted #DAE2EC; }
|
||||
|
||||
/* light border styles */
|
||||
.bdr1_light { border: 1px solid #c7d3e3; }
|
||||
.bdr1_light_dashed { border: 1px dashed #c7d3e3; }
|
||||
.bdr1_light_dotted { border: 1px dotted #c7d3e3; }
|
||||
.bdr2_light { border: 2px solid #c7d3e3; }
|
||||
.bdr2_light_dashed { border: 2px dashed #c7d3e3; }
|
||||
.bdr2_light_dotted { border: 2px dotted #c7d3e3; }
|
||||
.bdr1L_light { border-left: 1px solid #c7d3e3; }
|
||||
.bdr1L_light_dashed { border-left: 1px dashed #c7d3e3; }
|
||||
.bdr1L_light_dotted { border-left: 1px dotted #c7d3e3; }
|
||||
.bdr1R_light { border-right: 1px solid #c7d3e3; }
|
||||
.bdr1R_light_dashed { border-right: 1px dashed #c7d3e3; }
|
||||
.bdr1R_light_dotted { border-right: 1px dotted #c7d3e3; }
|
||||
.bdr1T_light { border-top: 1px solid #c7d3e3; }
|
||||
.bdr1T_light_dashed { border-top: 1px dashed #c7d3e3; }
|
||||
.bdr1T_light_dotted { border-top: 1px dotted #c7d3e3; }
|
||||
.bdr1B_light { border-bottom: 1px solid #c7d3e3; }
|
||||
.bdr1B_light_dashed { border-bottom: 1px dashed #c7d3e3; }
|
||||
.bdr1B_light_dotted { border-bottom: 1px dotted #c7d3e3; }
|
||||
|
||||
/* midtone border styles */
|
||||
.bdr1_mid { border: 1px solid #02429C; }
|
||||
.bdr1_mid_dashed { border: 1px dashed #02429C; }
|
||||
.bdr1_mid_dotted { border: 1px dotted #02429C; }
|
||||
.bdr2_mid { border: 2px solid #02429C; }
|
||||
.bdr2_mid_dashed { border: 2px dashed #02429C; }
|
||||
.bdr2_mid_dotted { border: 2px dotted #02429C; }
|
||||
.bdr1L_mid { border-left: 1px solid #02429C; }
|
||||
.bdr1L_mid_dashed { border-left: 1px dashed #02429C; }
|
||||
.bdr1L_mid_dotted { border-left: 1px dotted #02429C; }
|
||||
.bdr1R_mid { border-right: 1px solid #02429C; }
|
||||
.bdr1R_mid_dashed { border-right: 1px dashed #02429C; }
|
||||
.bdr1R_mid_dotted { border-right: 1px dotted #02429C; }
|
||||
.bdr1T_mid { border-top: 1px solid #02429C; }
|
||||
.bdr1T_mid_dashed { border-top: 1px dashed #02429C; }
|
||||
.bdr1T_mid_dotted { border-top: 1px dotted #02429C; }
|
||||
.bdr1B_mid { border-bottom: 1px solid #02429C; }
|
||||
.bdr1B_mid_dashed { border-bottom: 1px dashed #02429C; }
|
||||
.bdr1B_mid_dotted { border-bottom: 1px dotted #02429C; }
|
||||
|
||||
/* dark border styles */
|
||||
.bdr1_dark { border: 1px solid #01214f; }
|
||||
.bdr1_dark_dashed { border: 1px dashed #01214f; }
|
||||
.bdr1_dark_dotted { border: 1px dotted #01214f; }
|
||||
.bdr2_dark { border: 2px solid #01214f; }
|
||||
.bdr2_dark_dashed { border: 2px dashed #01214f; }
|
||||
.bdr2_dark_dotted { border: 2px dotted #01214f; }
|
||||
.bdr1L_dark { border-left: 1px solid #01214f; }
|
||||
.bdr1L_dark_dashed { border-left: 1px dashed #01214f; }
|
||||
.bdr1L_dark_dotted { border-left: 1px dotted #01214f; }
|
||||
.bdr1R_dark { border-right: 1px solid #01214f; }
|
||||
.bdr1R_dark_dashed { border-right: 1px dashed #01214f; }
|
||||
.bdr1R_dark_dotted { border-right: 1px dotted #01214f; }
|
||||
.bdr1T_dark { border-top: 1px solid #01214f; }
|
||||
.bdr1T_dark_dashed { border-top: 1px dashed #01214f; }
|
||||
.bdr1T_dark_dotted { border-top: 1px dotted #01214f; }
|
||||
.bdr1B_dark { border-bottom: 1px solid #01214f; }
|
||||
.bdr1B_dark_dashed { border-bottom: 1px dashed #01214f; }
|
||||
.bdr1B_dark_dotted { border-bottom: 1px dotted #01214f; }
|
||||
|
||||
/* non-theme specific border styles */
|
||||
.bdr1_black { border: 1px solid #000000; }
|
||||
.bdr1_white { border: 1px solid #FFFFFF; }
|
||||
.bdr1_red { border: 1px solid #FF0000; }
|
||||
|
||||
#shadowbox {
|
||||
width: 250px;
|
||||
position: absolute;
|
||||
background: url(../images/25black.png) repeat;
|
||||
float: right;
|
||||
top: 235px;
|
||||
right: 235px;
|
||||
}
|
||||
|
||||
#caution {
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
background-color: #FFFAE5;
|
||||
border-top: 3px solid #FFcc00;
|
||||
border-left: 3px solid #FFcc00;
|
||||
border-right: 3px solid #E6B800;
|
||||
border-bottom: 3px solid #E6B800;
|
||||
padding: 10px 10px 10px 10px;
|
||||
text-align: justify;
|
||||
font-size: 90%;
|
||||
background-repeat: no-repeat;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ***************************** More Info Rollover Elements ***************************** */
|
||||
|
||||
#moreInfo a span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#moreInfo a:hover span {
|
||||
display: block;
|
||||
position: absolute;
|
||||
height: auto;
|
||||
padding: 5px;
|
||||
z-index: 100;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#moreInfoWrapper { /* Use for tools and reference pages */
|
||||
width: 450px;
|
||||
text-align: left;
|
||||
background: #dae2ec;
|
||||
border: 1px solid #01214f;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
#psiWrapper {
|
||||
width: 99%;
|
||||
background: #ffffff;
|
||||
border: 1px solid #02429C;
|
||||
padding: 2px 2px 2px 2px;
|
||||
margin-top: 3px;
|
||||
margin-right: 5px;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
/* ***************************** Calendar Display Elements ***************************** */
|
||||
|
||||
.calendar { border: 1px solid #0a0434; border-collapse: collapse; color: #0a0434; width: 100%; }
|
||||
.tableContain { color: #0a0434; }
|
||||
.none { color: #0a0434; }
|
||||
.today { border: 1px solid #0a0434; color: #0a0434; background:#cfcfcf; padding: 2px;}
|
||||
.monthdays { border: 1px solid #0a0434; color: #0a0434; padding: 2px; height: 100px; }
|
||||
.nonmonthdays { border: 1px solid #0a0434; color: #0a0434; background: #efefef; padding: 2px; height: 100px; }
|
||||
.day { vertical-align:top; height: 50px; }
|
||||
.header { border: 1px solid #0a0434; color: #0a0434; background-color:#cfcfcf; padding: 2px; }
|
||||
.weekdays { border: 1px solid #0a0434; background-color: #dddddd; color: #0a0434; padding: 2px; }
|
||||
.calInfo { padding-left: 2px; }
|
||||
|
||||
/* Recipe Calculator Styles */
|
||||
|
||||
#calculate {
|
||||
width: 350px;
|
||||
position: absolute;
|
||||
background: url(../images/25black.png) repeat;
|
||||
float: right;
|
||||
top: 165px;
|
||||
right: 60px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#calculateInner {
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
background-color: #DAE2EC;
|
||||
border-top: 3px solid #02429C;
|
||||
border-left: 3px solid #02429C;
|
||||
border-right: 3px solid #01214f;
|
||||
border-bottom: 3px solid #01214f;
|
||||
padding: 10px 10px 10px 10px;
|
||||
text-align: left;
|
||||
font-size: 90%;
|
||||
background-repeat: no-repeat;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.bdr1L_black {
|
||||
border-left: 1px solid #0a0434;
|
||||
}
|
||||
|
||||
#quickEdit { padding: 5px; width: 229px; }
|
||||
.quickEdit { font-size: .90em; height: auto; margin: 2px 0px 2px 2px; }
|
||||
.quickEdit2 { font-size: .90em; font-weight: bold; margin: 4px 0px 2px 2px; }
|
||||
|
||||
.referenceTop {
|
||||
border: 1px solid #0a0434;
|
||||
background-color: #DAE2EC;
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
1178
css/brilliant.css
1232
css/folly.css
1115
css/haze.css
1048
css/midas.css
@@ -1,336 +1,401 @@
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
#maincontainer {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#contentwrapper {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#contentcolumn {
|
||||
float:left;
|
||||
}
|
||||
|
||||
#contentWide { /* if no sidebar content */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#rightcolumn { /* sidebar content - holds links, brewlog lists, recipe lists, upcoming brewing sessions, etc. */
|
||||
float:left;
|
||||
}
|
||||
|
||||
#sidebarHeader {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#LeftAlign {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#RightAlign {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.left { /* UNIVERSAL */
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.right { /* UNIVERSAL */
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.center { /* UNIVERSAL */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.submit { font-family: inherit; font-size: 1em; }
|
||||
.radiobutton { border: none; padding-bottom: 2px;}
|
||||
.text_area { font-family: inherit; font-size: 1em; }
|
||||
|
||||
/* ***************************** Universal Nav Elements ***************************** */
|
||||
|
||||
#nav {
|
||||
margin-top: 0px;
|
||||
font-size: 90%;
|
||||
}
|
||||
#nav ul
|
||||
{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#nav li
|
||||
{
|
||||
margin: 0;
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding: 0 15px 0 0;
|
||||
}
|
||||
|
||||
|
||||
/* ***************************** Data Display Elements ***************************** */
|
||||
|
||||
#dataContainer { /* container for main display of content - holds procedure, recipe, mash, etc. */
|
||||
width: 100%;
|
||||
margin-left: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.data { /* Use for display of most data with a preceding label (in conjunction with dataLabel element */
|
||||
padding: 2px 0px 3px 10px;
|
||||
}
|
||||
|
||||
.dataHeading { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
padding: 10px 0px 3px 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataHeadingLeft { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
padding: 10px 0px 3px 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataHeadingList { /* use in conjunction with the .dataList class */
|
||||
font-weight: bold;
|
||||
padding: 10px 4px 6px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataLeft { /* use in conjunction with the .data class */
|
||||
padding: 2px 0px 3px 0px;
|
||||
}
|
||||
|
||||
.dataLabel { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
padding: 2px 0px 3px 10px;
|
||||
}
|
||||
|
||||
.dataLabelLeft { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
padding: 2px 0px 3px 0px;
|
||||
}
|
||||
|
||||
.data_icon { /* use in conjunction with the .data class */
|
||||
padding: 2px 0px 3px 0px;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataMeas { /* Use for Measurement data preferences */
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
.dataList { /* Use for Alternate Color Lists */
|
||||
padding: 6px 4px 6px 4px;
|
||||
}
|
||||
|
||||
.dataListLeft { /* Use for Alternate Color Lists */
|
||||
padding: 6px 4px 6px 0px;
|
||||
}
|
||||
|
||||
.dataListLabel {
|
||||
padding: 6px 4px 6px 4px;
|
||||
font-weight: bold;
|
||||
width: 5%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataListLabelLeft {
|
||||
padding: 6px 4px 6px 0px;
|
||||
font-weight: bold;
|
||||
width: 5%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data_icon_list { /* Use for Alternate Color Lists */
|
||||
padding: 6px 4px 6px 4px;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataLabelWide { /* data label if only one column layout */
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.dataTable { /* for all data tables - procedure, etc. */
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-style: none;
|
||||
border-width: 0px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.listLeftAlign { /* UNIVERSAL */
|
||||
width: 95%;
|
||||
text-align: left;
|
||||
font-size: inherit;
|
||||
padding: 2px 0 2px 0;
|
||||
}
|
||||
|
||||
.listRightAlign { /* UNIVERSAL */
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
font-size: inherit;
|
||||
padding: 2px 0 2px 0;
|
||||
}
|
||||
|
||||
/* ***************************** Misc. Elements ***************************** */
|
||||
|
||||
|
||||
.colorTable { /* Use for display of SRM color UNIVERSAL */
|
||||
width: 35px;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #000000;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.colorTableRef { /* Use for display of SRM color on Reference page UNIVERSAL */
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-collapse: collapse;
|
||||
margin: 2px 0px 1px 0px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef2 { /* UNIVERSAL */
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef3 { /* UNIVERSAL */
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
#colorDisplay { /* UNIVERSAL */
|
||||
float: right;
|
||||
position: absolute;
|
||||
margin-left: 75px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.calcButton { margin: 0; border: 0; }
|
||||
|
||||
.calcNav {
|
||||
margin: 1em 0 1em 0;
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
}
|
||||
/* ***************************** Help Elements ***************************** */
|
||||
|
||||
|
||||
#help { /* Use for Help/Info Popups UNIVERSAL */
|
||||
float: left;
|
||||
position: absolute;
|
||||
margin-left: -18px;
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#helpInline { /* Use for Inline Help/Info Popups UNIVERSAL */
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
#icon { /* Use for Icons UNIVERSAL */
|
||||
float: left;
|
||||
position: absolute;
|
||||
margin-top: 5px;
|
||||
margin-left: -18px;
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#labelImageLarge {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.labelImage { /* UNIVERSAL */
|
||||
width: 225px;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
/* ***************************** Error Elements ***************************** */
|
||||
|
||||
.red { /* UNIVERSAL */
|
||||
color: #FF0000
|
||||
}
|
||||
.error { /* UNIVERSAL */
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
#hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bdr1L_black {
|
||||
border-left: 1px solid #050117;
|
||||
}
|
||||
|
||||
#quickEdit { padding: 5px; width: 229px; }
|
||||
.quickEdit { font-size: .9em; height: auto; margin: 2px 0px 2px 2px; }
|
||||
.quickEdit2 { font-size: .9em; font-weight: bold; margin: 4px 0px 2px 2px; }
|
||||
|
||||
/* alternate text styles */
|
||||
.text_9 { font-size: 9px; }
|
||||
.text_9_bold { font-size: 9px; font-weight: bold; }
|
||||
.text_10 { font-size: 10px; }
|
||||
.text_10_bold { font-size: 10px; font-weight: bold; }
|
||||
.text_11 { font-size: 11px; }
|
||||
.text_11_bold { font-size: 11px; font-weight: bold; }
|
||||
.text_12 { font-size: 12px; }
|
||||
.text_12_bold { font-size: 12px; font-weight: bold; }
|
||||
.text_13 { font-size: 13px; }
|
||||
.text_13_bold { font-size: 13px; font-weight: bold; }
|
||||
.text_14 { font-size: 14px; }
|
||||
.text_14_bold { font-size: 14px; font-weight: bold; }
|
||||
.text_15 { font-size: 15px; }
|
||||
.text_15_bold { font-size: 15px; font-weight: bold; }
|
||||
.text_16 { font-size: 16px; }
|
||||
.text_16_bold { font-size: 16px; font-weight: bold; }
|
||||
.text_18 { font-size: 18px; }
|
||||
.text_18_bold { font-size: 18px; font-weight: bold; }
|
||||
.text_24 { font-size: 24px; }
|
||||
.text_24_bold { font-size: 24px; font-weight: bold; }
|
||||
.text_white_10 { font-size: 10px; color: #ffffff; }
|
||||
.text_white_10_bold { font-size: 10px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_11 { font-size: 11px; color: #ffffff; }
|
||||
.text_white_11_bold { font-size: 11px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_12 { font-size: 12px; color: #ffffff; }
|
||||
.text_white_12_bold { font-size: 12px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_14 { font-size: 14px; color: #ffffff; }
|
||||
.text_white_14_bold { font-size: 14px; color: #fefffe; font-weight: bold; }
|
||||
.text_white_18 { font-size: 18px; color: #ffffff; }
|
||||
.text_white_18_bold { font-size: 18px; color: #fefffe; font-weight: bold; }
|
||||
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
|
||||
#maincontainer {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#contentwrapper {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#contentcolumn {
|
||||
float:left;
|
||||
}
|
||||
|
||||
#contentWide { /* if no sidebar content */
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#rightcolumn { /* sidebar content - holds links, brewlog lists, recipe lists, upcoming brewing sessions, etc. */
|
||||
float:left;
|
||||
}
|
||||
|
||||
#sidebarHeader {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#LeftAlign {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#RightAlign {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.left { /* UNIVERSAL */
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.right { /* UNIVERSAL */
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.center { /* UNIVERSAL */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.submit { font-family: inherit; font-size: 1em; }
|
||||
.radiobutton { border: none; padding-bottom: 2px;}
|
||||
.text_area { font-family: inherit; font-size: 1em; }
|
||||
|
||||
/* ***************************** Universal Nav Elements ***************************** */
|
||||
|
||||
#nav {
|
||||
margin-top: 0px;
|
||||
font-size: 90%;
|
||||
}
|
||||
#nav ul
|
||||
{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#nav li
|
||||
{
|
||||
margin: 0;
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding: 0 15px 0 0;
|
||||
}
|
||||
|
||||
|
||||
/* ***************************** Data Display Elements ***************************** */
|
||||
|
||||
#dataContainer { /* container for main display of content - holds procedure, recipe, mash, etc. */
|
||||
width: 100%;
|
||||
margin-left: 0px;
|
||||
padding: 0px 0px 0px 0px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.data { /* Use for display of most data with a preceding label (in conjunction with dataLabel element */
|
||||
padding: 5px 0px 5px 10px;
|
||||
}
|
||||
|
||||
.dataHeading { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
padding: 10px 0px 5px 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataHeadingLeft { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
padding: 10px 0px 5px 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataHeadingList { /* use in conjunction with the .dataList class */
|
||||
font-weight: bold;
|
||||
padding: 5px 3px 5px 3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataLeft { /* use in conjunction with the .data class */
|
||||
padding: 5px 0px 5px 0px;
|
||||
}
|
||||
|
||||
.dataLabel { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
padding: 5px 0px 5px 10px;
|
||||
}
|
||||
|
||||
.dataLabelLeft { /* use in conjunction with the .data class */
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
padding: 5px 3px 5px 0px;
|
||||
}
|
||||
|
||||
.data_icon { /* use in conjunction with the .data class */
|
||||
padding: 5px 0px 5px 0px;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataMeas { /* Use for Measurement data preferences */
|
||||
white-space: nowrap;
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
.dataList { /* Use for Alternate Color Lists */
|
||||
padding: 5px 3px 5px 3px;
|
||||
}
|
||||
|
||||
.dataListLeft { /* Use for Alternate Color Lists */
|
||||
padding: 5px 3px 5px 0px;
|
||||
}
|
||||
|
||||
.dataListLabel {
|
||||
padding: 5px 3px 5px 3px;
|
||||
font-weight: bold;
|
||||
width: 5%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataListLabelLeft {
|
||||
padding: 5px 3px 5px 0px;
|
||||
font-weight: bold;
|
||||
width: 5%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.data_icon_list { /* Use for Alternate Color Lists */
|
||||
padding: 5px 3px 5px 3px;
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dataLabelWide { /* data label if only one column layout */
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.dataTable { /* for all data tables - procedure, etc. */
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-style: none;
|
||||
border-width: 0px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.listLeftAlign { /* UNIVERSAL */
|
||||
width: 95%;
|
||||
text-align: left;
|
||||
font-size: inherit;
|
||||
padding: 2px 0 2px 0;
|
||||
}
|
||||
|
||||
.listRightAlign { /* UNIVERSAL */
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
font-size: inherit;
|
||||
padding: 2px 0 2px 0;
|
||||
}
|
||||
|
||||
/* ------------------ drop-down menu elements ------------------ */
|
||||
|
||||
div.menuBar,
|
||||
div.menuBar a.menuButton,
|
||||
div.menu,
|
||||
div.menu a.menuItem {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
div.menuBar {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.menuBar a.menuButton {
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
left: 0px;
|
||||
margin: 1px;
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
top: 0px;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
div.menuBar a.menuButton:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
div.menuBar a.menuButtonActive,
|
||||
div.menuBar a.menuButtonActive:hover {
|
||||
|
||||
}
|
||||
|
||||
div.menu {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
z-index: 201;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
div.menu a.menuItem {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 3px;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
|
||||
}
|
||||
|
||||
div.menu a.menuItem:hover, div.menu a.menuItemHighlight {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
div.menu a.menuItem span.menuItemText {
|
||||
|
||||
}
|
||||
|
||||
div.menu a.menuItem span.menuItemArrow {
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
||||
div.menu div.menuItemSep {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
/* ***************************** Misc. Elements ***************************** */
|
||||
|
||||
|
||||
.colorTable { /* Use for display of SRM color UNIVERSAL */
|
||||
width: 35px;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #000000;
|
||||
margin: 0;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.colorTableRef { /* Use for display of SRM color on Reference page UNIVERSAL */
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-collapse: collapse;
|
||||
margin: 2px 0px 1px 0px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef2 { /* UNIVERSAL */
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.colorTableRef3 { /* UNIVERSAL */
|
||||
height: 25px;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
|
||||
#colorDisplay { /* UNIVERSAL */
|
||||
float: right;
|
||||
position: absolute;
|
||||
margin-left: 75px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.calcButton { margin: 0; border: 0; }
|
||||
|
||||
.calcNav {
|
||||
margin: 1em 0 1em 0;
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
}
|
||||
/* ***************************** Help Elements ***************************** */
|
||||
|
||||
|
||||
#help { /* Use for Help/Info Popups UNIVERSAL */
|
||||
float: left;
|
||||
position: absolute;
|
||||
margin-left: -18px;
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#helpInline { /* Use for Inline Help/Info Popups UNIVERSAL */
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#icon { /* Use for Icons UNIVERSAL */
|
||||
float: left;
|
||||
position: absolute;
|
||||
margin-top: 5px;
|
||||
margin-left: -18px;
|
||||
width: 16px;
|
||||
text-align: center;
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
#labelImageLarge {
|
||||
margin-top: 15px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.labelImage { /* UNIVERSAL */
|
||||
width: 225px;
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
/* ***************************** Error Elements ***************************** */
|
||||
|
||||
.red { /* UNIVERSAL */
|
||||
color: #FF0000
|
||||
}
|
||||
.error { /* UNIVERSAL */
|
||||
padding-bottom: 10px;
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
#hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bdr1L_black {
|
||||
border-left: 1px solid #050117;
|
||||
}
|
||||
|
||||
#quickEdit { padding: 5px; width: 229px; }
|
||||
.quickEdit { font-size: .9em; height: auto; margin: 2px 0px 2px 2px; }
|
||||
.quickEdit2 { font-size: .9em; font-weight: bold; margin: 4px 0px 2px 2px; }
|
||||
|
||||
/* alternate text styles */
|
||||
.text_9 { font-size: 9px; }
|
||||
.text_9_bold { font-size: 9px; font-weight: bold; }
|
||||
.text_10 { font-size: 10px; }
|
||||
.text_10_bold { font-size: 10px; font-weight: bold; }
|
||||
.text_11 { font-size: 11px; }
|
||||
.text_11_bold { font-size: 11px; font-weight: bold; }
|
||||
.text_12 { font-size: 12px; }
|
||||
.text_12_bold { font-size: 12px; font-weight: bold; }
|
||||
.text_13 { font-size: 13px; }
|
||||
.text_13_bold { font-size: 13px; font-weight: bold; }
|
||||
.text_14 { font-size: 14px; }
|
||||
.text_14_bold { font-size: 14px; font-weight: bold; }
|
||||
.text_15 { font-size: 15px; }
|
||||
.text_15_bold { font-size: 15px; font-weight: bold; }
|
||||
.text_16 { font-size: 16px; }
|
||||
.text_16_bold { font-size: 16px; font-weight: bold; }
|
||||
.text_18 { font-size: 18px; }
|
||||
.text_18_bold { font-size: 18px; font-weight: bold; }
|
||||
.text_24 { font-size: 24px; }
|
||||
.text_24_bold { font-size: 24px; font-weight: bold; }
|
||||
.text_white_10 { font-size: 10px; color: #ffffff; }
|
||||
.text_white_10_bold { font-size: 10px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_11 { font-size: 11px; color: #ffffff; }
|
||||
.text_white_11_bold { font-size: 11px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_12 { font-size: 12px; color: #ffffff; }
|
||||
.text_white_12_bold { font-size: 12px; color: #ffffff; font-weight: bold; }
|
||||
.text_white_14 { font-size: 14px; color: #ffffff; }
|
||||
.text_white_14_bold { font-size: 14px; color: #fefffe; font-weight: bold; }
|
||||
.text_white_18 { font-size: 18px; color: #ffffff; }
|
||||
.text_white_18_bold { font-size: 18px; color: #fefffe; font-weight: bold; }
|
||||
|
||||
|
||||
BIN
images/SB12/button_add_SB12.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/SB12/button_back_SB12.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
images/SB12/button_beer_xml_SB12.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/SB12/button_calculate_SB12.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
images/SB12/button_clear_SB12.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/SB12/button_close_SB12.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/SB12/button_copy_SB12.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/SB12/button_edit_SB12.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
images/SB12/button_export_excel_SB12.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
images/SB12/button_export_sql_SB12.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
images/SB12/button_import_SB12.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
images/SB12/button_login_SB12.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/SB12/button_print_log_SB12.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/SB12/button_print_recipe_SB12.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
images/SB12/button_reuse_SB12.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/SB12/button_update_SB12.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
images/SB12/button_upload_SB12.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
images/SB12/content_header.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
images/SB12/footer.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
images/SB12/header.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
images/SB12/mainbknd.png
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
images/SB12/nav.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
images/SB12/page_bknd.png
Normal file
|
After Width: | Height: | Size: 667 B |
@@ -1,44 +1,44 @@
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_user = sprintf("SELECT * FROM users WHERE user_name = '%s'", $loginUsername);
|
||||
$user = mysql_query($query_user, $brewing) or die(mysql_error());
|
||||
$row_user = mysql_fetch_assoc($user);
|
||||
$totalRows_user = mysql_num_rows($user);
|
||||
|
||||
function authenticateUserNav($connection, $username, $password)
|
||||
{
|
||||
// Test the username and password parameters
|
||||
if (!isset($username) || !isset($password))
|
||||
return false;
|
||||
|
||||
// Formulate the SQL find the user
|
||||
$query = "SELECT password FROM users WHERE user_name = '{$username}'
|
||||
AND password = '{$password}'";
|
||||
|
||||
// Execute the query
|
||||
if (!$result = @ mysql_query ($query, $connection))
|
||||
showerror();
|
||||
|
||||
// Is the returned result exactly one row? If so, then we have found the user
|
||||
if (mysql_num_rows($result) != 1)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
// Connects to a session and checks that the user has authenticated and that the remote IP address matches the address used to create the session.
|
||||
|
||||
function sessionAuthenticateNav()
|
||||
{
|
||||
include ('Connections/config.php');
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_prefs = "SELECT menuLogin, menuLogout FROM preferences";
|
||||
$prefs = mysql_query($query_prefs, $brewing) or die(mysql_error());
|
||||
$row_prefs = mysql_fetch_assoc($prefs);
|
||||
|
||||
// Check if the user hasn't logged in
|
||||
if (!isset($_SESSION["loginUsername"])) { echo "<li><a href=\"index.php?page=login\">".$row_prefs['menuLogin']."</a></li>"; }
|
||||
if (isset($_SESSION["loginUsername"])) { echo "<li><a href=\"admin/index.php\" onMouseover=\"dropdownmenu(this, event, menu13, '180px')\" onMouseout=\"delayhidemenu()\">Admin</a></li><li><a href=\"includes/logout.inc.php\">".$row_prefs['menuLogout']."</a></li>"; }
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_user = sprintf("SELECT * FROM users WHERE user_name = '%s'", $loginUsername);
|
||||
$user = mysql_query($query_user, $brewing) or die(mysql_error());
|
||||
$row_user = mysql_fetch_assoc($user);
|
||||
$totalRows_user = mysql_num_rows($user);
|
||||
|
||||
function authenticateUserNav($connection, $username, $password)
|
||||
{
|
||||
// Test the username and password parameters
|
||||
if (!isset($username) || !isset($password))
|
||||
return false;
|
||||
|
||||
// Formulate the SQL find the user
|
||||
$query = "SELECT password FROM users WHERE user_name = '{$username}'
|
||||
AND password = '{$password}'";
|
||||
|
||||
// Execute the query
|
||||
if (!$result = @ mysql_query ($query, $connection))
|
||||
showerror();
|
||||
|
||||
// Is the returned result exactly one row? If so, then we have found the user
|
||||
if (mysql_num_rows($result) != 1)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
// Connects to a session and checks that the user has authenticated and that the remote IP address matches the address used to create the session.
|
||||
|
||||
function sessionAuthenticateNav()
|
||||
{
|
||||
include ('Connections/config.php');
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_prefs = "SELECT menuLogin, menuLogout FROM preferences";
|
||||
$prefs = mysql_query($query_prefs, $brewing) or die(mysql_error());
|
||||
$row_prefs = mysql_fetch_assoc($prefs);
|
||||
|
||||
// Check if the user hasn't logged in
|
||||
if (!isset($_SESSION["loginUsername"])) { echo "<li><a href=\"index.php?page=login\">".$row_prefs['menuLogin']."</a></li>"; }
|
||||
if (isset($_SESSION["loginUsername"])) { echo "<li><div class=\"menuBar\"><a class=\"menuButton\" href=\"admin/index.php\" onclick=\"admin/index.php\" onmouseover=\"buttonMouseover(event, 'publicMenu2')\">Admin</a></div></li><li><a href=\"includes/logout.inc.php\">".$row_prefs['menuLogout']."</a></li>"; }
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,34 +1,217 @@
|
||||
<?php include ('admin/includes/menu.inc.php'); ?>
|
||||
<ul id="navlist">
|
||||
<?php
|
||||
if ($page != $row_pref['home']) echo "<li><a href=\"index.php\">".$row_pref['menuHome']."</a></li>"; elseif ($page == $row_pref['home']) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuHome']."</strong></span></li>"; else echo "";
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if (($row_pref['home'] != "brewBlogList") && ($page != "brewBlogList")) echo "<li><a href=\"index.php?page=brewBlogList\">".$row_pref['menuBrewBlogs']."</a></li>"; elseif (($row_pref['home'] != "brewBlogList") && ($page == "brewBlogList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuBrewBlogs']."</strong></span></li>"; else echo "";
|
||||
}
|
||||
if ($row_pref['mode'] == "2") {
|
||||
if (($row_pref['home'] != "members") && ($page != "members")) echo "<li><a href=\"index.php?page=members&sort=realLastName&dir=ASC\">".$row_pref['menuMembers']."</a></li>"; elseif (($row_pref['home'] != "members") && ($page == "members")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuMembers']."</strong></span></li>"; else echo "";
|
||||
if (($row_pref['home'] != "brewBlogList") && ($page != "brewBlogList")) echo "<li><a href=\"index.php?page=brewBlogList&sort=brewDate&dir=DESC\">".$row_pref['menuBrewBlogs']."</a></li>"; elseif (($row_pref['home'] != "brewBlogList") && ($page == "brewBlogList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuBrewBlogs']."</strong></span></li>"; else echo "";
|
||||
}
|
||||
if ($row_pref['mode'] == "2") { if (($row_pref['home'] != "recipeList") && ($page != "recipeList")) echo "<li><a href=\"index.php?page=recipeList\">".$row_pref['menuRecipes']."</a></li>"; elseif (($row_pref['home'] != "recipeList") && ($page == "recipeList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuRecipes']."</strong></span></li>"; else echo ""; }
|
||||
if ($row_pref['mode'] == "1") { if (($row_pref['home'] != "recipeList") && ($page != "recipeList")) echo "<li><a href=\"index.php?page=recipeList\">".$row_pref['menuRecipes']."</a></li>"; elseif (($row_pref['home'] != "recipeList") && ($page == "recipeList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuRecipes']."</strong></span></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "2") && ($totalRows_awardGen > 0)) { if (($row_pref['home'] != "awardsList") && ($page != "awardsList")) echo "<li><a href=\"index.php?page=awardsList&sort=awardDate&dir=DESC\">".$row_pref['menuAwards']."</a></li>"; elseif (($row_pref['home'] != "awardsList") && ($page == "awardsList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuAwards']."</strong></span></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "1") && ($totalRows_awardGen > 0)) { if (($row_pref['home'] != "awardsList") && ($page != "awardsList")) echo "<li><a href=\"index.php?page=awardsList&sort=awardDate&dir=DESC\">".$row_pref['menuAwards']."</a></li>"; elseif (($row_pref['home'] != "awardsList") && ($page == "awardsList")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuAwards']."</strong></span></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "1") && ($row_pref['home'] != "about") && ($page != "about")) echo "<li><a href=\"index.php?page=about\">".$row_pref['menuAbout']."</a></li>"; elseif (($row_pref['mode'] == "1") && ($row_pref['home'] != "about") && ($page == "about")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuAbout']."</strong></span></li>"; else echo "";
|
||||
?>
|
||||
<?php if (($row_pref['home'] != "reference") && ($page != "reference")) { ?><li><a href="index.php?page=reference" onMouseover="dropdownmenu(this, event, menu15, '150px')" onMouseout="delayhidemenu()"><?php echo $row_pref['menuReference']; ?></a></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "reference") && ($page == "reference")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuReference']."</strong></span></li>"; ?>
|
||||
<?php if (($row_pref['home'] != "tools") && ($page != "tools")) { ?><li><a href="index.php?page=tools" onMouseover="dropdownmenu(this, event, menu16, '225px')" onMouseout="delayhidemenu()"><?php echo $row_pref['menuCalculators']; ?></a></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "tools") && ($page == "tools")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuCalculators']."</strong></li></span>"; ?>
|
||||
<?php if ($row_pref['allowCalendar'] == "Y") {
|
||||
if (($row_pref['home'] != "calendar") && ($page != "calendar")) { ?><li><a href="index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "calendar") && ($page == "calendar")) echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuCalendar']."</strong></span></li>";
|
||||
}
|
||||
?>
|
||||
<?php if (($row_pref['home'] != "about") && ($row_pref['mode'] == "2")) {
|
||||
if ($page != "about") { ?><li><a href="index.php?page=about"><?php echo $row_pref['menuAbout']; ?></a></li><?php } ?>
|
||||
<?php if ($page == "about") echo "<li><span class=\"ultra_lt\"><strong>".$row_pref['menuAbout']."</strong></span></li>";
|
||||
}
|
||||
?>
|
||||
<?php sessionAuthenticateNav(); ?>
|
||||
</ul>
|
||||
|
||||
<ul id="navlist">
|
||||
<?php
|
||||
if ($page != $row_pref['home']) echo "<li><a href=\"index.php\">".$row_pref['menuHome']."</a></li>"; elseif ($page == $row_pref['home']) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuHome']."</span></strong></li>"; else echo "";
|
||||
if ($row_pref['mode'] == "1") {
|
||||
if (($row_pref['home'] != "brewBlogList") && ($page != "brewBlogList")) echo "<li><a href=\"index.php?page=brewBlogList\">".$row_pref['menuBrewBlogs']."</a></li>"; elseif (($row_pref['home'] != "brewBlogList") && ($page == "brewBlogList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuBrewBlogs']."</span></strong></li>"; else echo "";
|
||||
}
|
||||
if ($row_pref['mode'] == "2") {
|
||||
if (($row_pref['home'] != "members") && ($page != "members")) echo "<li><a href=\"index.php?page=members&sort=realLastName&dir=ASC\">".$row_pref['menuMembers']."</a></li>"; elseif (($row_pref['home'] != "members") && ($page == "members")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuMembers']."</span></strong></li>"; else echo "";
|
||||
if (($row_pref['home'] != "brewBlogList") && ($page != "brewBlogList")) echo "<li><a href=\"index.php?page=brewBlogList&sort=brewDate&dir=DESC\">".$row_pref['menuBrewBlogs']."</a></li>"; elseif (($row_pref['home'] != "brewBlogList") && ($page == "brewBlogList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuBrewBlogs']."</span></strong></li>"; else echo "";
|
||||
}
|
||||
if ($row_pref['mode'] == "2") { if (($row_pref['home'] != "recipeList") && ($page != "recipeList")) echo "<li><a href=\"index.php?page=recipeList\">".$row_pref['menuRecipes']."</a></li>"; elseif (($row_pref['home'] != "recipeList") && ($page == "recipeList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuRecipes']."</span></strong></li>"; else echo ""; }
|
||||
if ($row_pref['mode'] == "1") { if (($row_pref['home'] != "recipeList") && ($page != "recipeList")) echo "<li><a href=\"index.php?page=recipeList\">".$row_pref['menuRecipes']."</a></li>"; elseif (($row_pref['home'] != "recipeList") && ($page == "recipeList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuRecipes']."</span></strong></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "2") && ($totalRows_awardGen > 0)) { if (($row_pref['home'] != "awardsList") && ($page != "awardsList")) echo "<li><a href=\"index.php?page=awardsList&sort=awardDate&dir=DESC\">".$row_pref['menuAwards']."</a></li>"; elseif (($row_pref['home'] != "awardsList") && ($page == "awardsList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuAwards']."</span></strong></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "1") && ($totalRows_awardGen > 0)) { if (($row_pref['home'] != "awardsList") && ($page != "awardsList")) echo "<li><a href=\"index.php?page=awardsList&sort=awardDate&dir=DESC\">".$row_pref['menuAwards']."</a></li>"; elseif (($row_pref['home'] != "awardsList") && ($page == "awardsList")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuAwards']."</span></strong></li>"; else echo ""; }
|
||||
if (($row_pref['mode'] == "1") && ($row_pref['home'] != "about") && ($page != "about")) echo "<li><a href=\"index.php?page=about\">".$row_pref['menuAbout']."</a></li>"; elseif (($row_pref['mode'] == "1") && ($row_pref['home'] != "about") && ($page == "about")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuAbout']."</span></strong></li>"; else echo "";
|
||||
?>
|
||||
<?php if (($row_pref['home'] != "reference") && ($page != "reference")) { ?><li><div class="menuBar"><a class="menuButton" href="index.php?page=reference" onclick="index.php?page=reference" onmouseover="buttonMouseover(event, 'publicMenu0');"><?php echo $row_pref['menuReference']; ?></a></div></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "reference") && ($page == "reference")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuReference']."</span></strong></li>"; ?>
|
||||
<?php if (($row_pref['home'] != "tools") && ($page != "tools")) { ?><li><div class="menuBar"><a class="menuButton" href="index.php?page=tools" onclick="index.php?page=tools" onmouseover="buttonMouseover(event, 'publicMenu1');"><?php echo $row_pref['menuCalculators']; ?></a></div></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "tools") && ($page == "tools")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuCalculators']."</li></span></strong>"; ?>
|
||||
<?php if ($row_pref['allowCalendar'] == "Y") {
|
||||
if (($row_pref['home'] != "calendar") && ($page != "calendar")) { ?><li><a href="index.php?page=calendar"><?php echo $row_pref['menuCalendar']; ?></a></li><?php } ?>
|
||||
<?php if (($row_pref['home'] != "calendar") && ($page == "calendar")) echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuCalendar']."</span></strong></li>";
|
||||
}
|
||||
?>
|
||||
<?php if (($row_pref['home'] != "about") && ($row_pref['mode'] == "2")) {
|
||||
if ($page != "about") { ?><li><a href="index.php?page=about"><?php echo $row_pref['menuAbout']; ?></a></li><?php } ?>
|
||||
<?php if ($page == "about") echo "<li><strong><span class=\"ultra_lt\">".$row_pref['menuAbout']."</span></strong></li>";
|
||||
}
|
||||
?>
|
||||
<?php sessionAuthenticateNav(); ?>
|
||||
</ul>
|
||||
|
||||
<div id="publicMenu0" class="menu">
|
||||
<a class="menuItem" href="index.php?page=reference§ion=styles">BJCP Style Information</a>
|
||||
<a class="menuItem" href="index.php?page=reference§ion=carbonation">Carbonation Chart</a>
|
||||
<a class="menuItem" href="index.php?page=reference§ion=color">Color Chart</a>
|
||||
<a class="menuItem" href="index.php?page=reference§ion=hops">Hops</a>
|
||||
<a class="menuItem" href="index.php?page=reference§ion=grains">Malts and Grains</a>
|
||||
<a class="menuItem" href="index.php?page=reference§ion=yeast">Yeast</a>
|
||||
</div>
|
||||
<div id="publicMenu1" class="menu">
|
||||
<a class="menuItem" href="index.php?page=tools§ion=bitterness">Bitterness Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=efficiency">Efficiency Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=calories">Calories, Alcohol, and Plato Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=force_carb">Force Carbonation Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=hyc">Hydrometer Correction Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=plato">Plato/Brix/SG Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=sugar">Priming Sugar Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=strike">Strike Water Calculator</a>
|
||||
<a class="menuItem" href="index.php?page=tools§ion=water">Water Amounts Calculator</a>
|
||||
</div>
|
||||
<?php if (isset($_SESSION["loginUsername"])) {
|
||||
if ($row_user['userLevel'] == "1") { ?>
|
||||
<div id="publicMenu2" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.1');"><span class="menuItemText">Manage</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2');"><span class="menuItemText">Add</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.3');"><span class="menuItemText">Edit</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.4');"><span class="menuItemText">Import BeerXML</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.5');"><span class="menuItemText">Tools</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=brewing"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=recipes"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=awards"><?php echo $row_pref['menuAwards']; ?></a>
|
||||
<?php if ($row_pref['mode'] == "2") echo "<a class=\"menuItem\" href=\"admin/index.php?action=list&dbTable=upcoming\">All Upcoming ".$row_pref['menuBrewBlogs']."</a>"; else echo "<a class=\"menuItem\" href=\"admin/index.php?action=list&dbTable=upcoming\">Upcoming ".$row_pref['menuBrewBlogs']."</a>"; ?>
|
||||
<?php if ($row_pref['mode'] == "2") echo "<a class=\"menuItem\" href=\"admin/index.php?action=list&dbTable=upcoming&filter=".$loginUsername."\">My Upcoming ".$row_pref['menuBrewBlogs']."</a>"; ?>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.1.1');"><span class="menuItemText">Reference</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.1.2');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.1.3');"><span class="menuItemText">General</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.1.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=adjuncts">Adjuncts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=extracts">Extracts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=grains">Grains</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=hops">Hops</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=misc">Misc Ingredients</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=styles">Styles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=sugar_type">Sugar Types</a>
|
||||
</div>
|
||||
<div id="publicMenu2.1.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=equip_profiles">Equipment Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=mash_profiles">Mash Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=water_profiles">Water Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=yeast_profiles">Yeast Profiles</a>
|
||||
</div>
|
||||
<div id="publicMenu2.1.3" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=brewerlinks">Links</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=brewingcss">Themes</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=users">Users</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=brewing"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=recipes"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=awards&assoc=brewing"><?php echo $row_pref['menuAwards']; ?>: <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=awards&assoc=recipes"><?php echo $row_pref['menuAwards']; ?>: <?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=upcoming">Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.1');"><span class="menuItemText">Reference</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.2');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.3');"><span class="menuItemText">General</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=adjuncts">Adjuncts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=extracts">Extracts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=grains">Grains</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=hops">Hops</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=misc">Misc Ingredients</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=styles">Styles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=sugar_type">Sugar Types</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=equip_profiles">Equipment Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=mash_profiles">Mash Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=water_profiles">Water Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=yeast_profiles">Yeast Profiles</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.3" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=brewerlinks">Links</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=brewingcss">Themes</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=users">Users</a>
|
||||
</div>
|
||||
<div id="publicMenu2.3" class="menu">
|
||||
<?php echo "<a class=\"menuItem\" href=\"admin/index.php?action=edit&dbTable=users&filter=".$loginUsername."&id=".$row_user['id']."\">"; ?><?php if ($row_pref['mode'] == "2") echo "My"; ?> Personal Defaults and Info</a>
|
||||
<a class="menuItem" href="admin/index.php?action=edit&dbTable=preferences&id=1">Preferences</a>
|
||||
<a class="menuItem" href="adminindex.php?action=edit&dbTable=brewer&id=1">Profile</a>
|
||||
</div>
|
||||
<div id="publicMenu2.4" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=importXML&dbTable=brewing">Brewlogs</a>
|
||||
<a class="menuItem" href="admin/index.php?action=importXML&dbTable=recipes">Recipes</a>
|
||||
</div>
|
||||
<div id="publicMenu2.5" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="admin/index.php?action=chooseRecalc">Recalculate a Recipe or Log</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($row_user['userLevel'] == "2") { ?>
|
||||
<div id="publicMenu2" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.1');"><span class="menuItemText">Manage</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.6');"><span class="menuItemText">List</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2');"><span class="menuItemText">Add</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.3');"><span class="menuItemText">Edit</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.4');"><span class="menuItemText">Import BeerXML</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.5');"><span class="menuItemText">Tools</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=brewing"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=recipes"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=awards"><?php echo $row_pref['menuAwards']; ?></a>
|
||||
<?php if ($row_pref['mode'] == "2") echo "<a class=\"menuItem\" href=\"admin/index.php?action=list&dbTable=upcoming&filter=".$loginUsername."\">My Upcoming ".$row_pref['menuBrewBlogs']."</a>"; ?>
|
||||
</div>
|
||||
<div id="publicMenu2.6" class="menu">
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.6.1');"><span class="menuItemText">Reference</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.6.2');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.6.3');"><span class="menuItemText">General</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.6.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=adjuncts">Adjuncts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=extracts">Extracts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=grains">Grains</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=hops">Hops</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=misc">Misc Ingredients</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=styles">Styles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=sugar_type">Sugar Types</a>
|
||||
</div>
|
||||
<div id="publicMenu2.6.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=equip_profiles">Equipment Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=mash_profiles">Mash Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=water_profiles">Water Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=yeast_profiles">Yeast Profiles</a>
|
||||
</div>
|
||||
<div id="publicMenu2.6.3" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=list&dbTable=users">Users</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=brewing"><?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=recipes"><?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=awards&assoc=brewing"><?php echo $row_pref['menuAwards']; ?>: <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=awards&assoc=recipes"><?php echo $row_pref['menuAwards']; ?>: <?php echo $row_pref['menuRecipes']; ?></a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=upcoming">Upcoming <?php echo $row_pref['menuBrewBlogs']; ?></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.1');"><span class="menuItemText">Reference</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.2');"><span class="menuItemText">Profiles</span><span class="menuItemArrow">▶</span></a>
|
||||
<a class="menuItem" href="" onclick="return false;" onmouseover="menuItemMouseover(event, 'publicMenu2.2.3');"><span class="menuItemText">General</span><span class="menuItemArrow">▶</span></a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.1" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=adjuncts">Adjuncts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=extracts">Extracts</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=grains">Grains</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=hops">Hops</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=misc">Misc Ingredients</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=styles">Styles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=sugar_type">Sugar Types</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.2" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=equip_profiles">Equipment Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=mash_profiles">Mash Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=water_profiles">Water Profiles</a>
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=yeast_profiles">Yeast Profiles</a>
|
||||
</div>
|
||||
<div id="publicMenu2.2.3" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=add&dbTable=users">Users</a>
|
||||
</div>
|
||||
<div id="publicMenu2.3" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>§ion=password&id=<?php echo $row_user['id']; ?>">Change My Password</a>
|
||||
<?php echo "<a class=\"menuItem\" href=\"admin/index.php?action=edit&dbTable=users&filter=".$loginUsername."&id=".$row_user['id']."\">"; ?><?php if ($row_pref['mode'] == "2") echo "My"; ?> Personal Defaults and Info</a>
|
||||
<a class="menuItem" href="admin/index.php?action=edit&dbTable=users&filter=<?php echo $row_user['user_name']; ?>&id=<?php echo $row_user['id']; ?>">My Profile</a>
|
||||
</div>
|
||||
<div id="publicMenu2.4" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=importXML&dbTable=brewing">Brewlogs</a>
|
||||
<a class="menuItem" href="admin/index.php?action=importXML&dbTable=recipes">Recipes</a>
|
||||
</div>
|
||||
<div id="publicMenu2.5" class="menu">
|
||||
<a class="menuItem" href="admin/index.php?action=calculate">Recipe Calculator</a>
|
||||
<a class="menuItem" href="admin/index.php?action=chooseRecalc">Recalculate a Recipe or Log</a>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -1,306 +1,306 @@
|
||||
<?php
|
||||
|
||||
include ('titles.inc.php');
|
||||
include ('messages.inc.php');
|
||||
include ('scrubber.inc.php');
|
||||
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
if (eregi ("msie", $agent)) $printBrowser = "IE"; else $printBrowser = "notIE";
|
||||
|
||||
//echo $agent;
|
||||
//echo $browser;
|
||||
|
||||
// ---------------------------- Color Conversion ------------------------------------------------------------
|
||||
// Calculations based upon Daniels, R. (2000, pg. 44). Designing great beers. Boulder, CO: Brewer's Publications.
|
||||
function colorconvert($color, $c) {
|
||||
if ($c == "SRM") { // EBC to SRM
|
||||
$ccon = $color / 1.97;
|
||||
return round ($ccon, 1);
|
||||
}
|
||||
|
||||
if ($c == "EBC") { // SRM to EBC
|
||||
$ccon = $color * 1.97;
|
||||
return round ($ccon, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------- Temperature, Weight, and Volume Conversion ----------------------------------
|
||||
|
||||
function tempconvert($temp,$t) { // $t = desired output, defined at function call
|
||||
if ($t == "F") { // Celsius to F if source is C
|
||||
$tcon = (($temp - 32) / 1.8);
|
||||
return round ($tcon, 0);
|
||||
}
|
||||
|
||||
if ($t == "C") { // F to Celsius
|
||||
$tcon = (($temp - 32) * (5/9));
|
||||
return round ($tcon, 0);
|
||||
}
|
||||
}
|
||||
|
||||
function weightconvert($weight,$w) { // $w = desired output, defined at function call
|
||||
if ($w == "pounds") { // kilograms to pounds
|
||||
$wcon = ($weight * 2.2046);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "ounces") { // grams to ounces
|
||||
$wcon = ($weight * 0.03527);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "grams") { // ounces to grams
|
||||
$wcon = ($weight * 28.3495);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "kilograms") { // pounds to kilograms
|
||||
$wcon = ($weight * 0.4535);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
}
|
||||
|
||||
function volumeconvert($volume,$v) { // $v = desired output, defined at function call
|
||||
if ($v == "gallons") { // liters to gallons
|
||||
$vcon = ($volume * 0.2641);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "ounces") { // milliliters to ounces
|
||||
$vcon = ($volume * 29.573);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "liters") { // gallons to liters
|
||||
$vcon = ($volume * 3.7854);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "milliliters") { // fluid ounces to milliliters
|
||||
$vcon = ($volume * 29.5735) ;
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------- Date Conversion -----------------------------------------
|
||||
// http://www.phpbuilder.com/annotate/message.php3?id=1031006
|
||||
function dateconvert($date,$func) {
|
||||
if ($func == 1){ //insert conversion
|
||||
list($day, $month, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
if ($func == 2){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day, $year";
|
||||
if ($month == "01" ) { echo "January "; }
|
||||
if ($month == "02" ) { echo "February "; }
|
||||
if ($month == "03" ) { echo "March "; }
|
||||
if ($month == "04" ) { echo "April "; }
|
||||
if ($month == "05" ) { echo "May "; }
|
||||
if ($month == "06" ) { echo "June "; }
|
||||
if ($month == "07" ) { echo "July "; }
|
||||
if ($month == "08" ) { echo "August "; }
|
||||
if ($month == "09" ) { echo "September "; }
|
||||
if ($month == "10" ) { echo "October "; }
|
||||
if ($month == "11" ) { echo "November "; }
|
||||
if ($month == "12" ) { echo "December "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 4){ //insert conversion
|
||||
list($month, $day, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
// function to convert MySQL dates to only month/year.
|
||||
function dateconvert2($date,$func) {
|
||||
if ($func == 1){ //insert conversion
|
||||
list($day, $month, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
if ($func == 2){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 3){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day, $year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 4){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day $month $year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function datecharcheck ($date) {
|
||||
$d1 = strpos($date, "/");
|
||||
if ($d1 !== false) return "true";
|
||||
|
||||
$d2 = strpos($date, "-");
|
||||
if ($d2 !== false) return $d2."-";
|
||||
|
||||
$d3 = strpos($date, " ");
|
||||
if ($d3 !== false) return "true";
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------- Truncate Functions --------------------------------------
|
||||
|
||||
function Truncate ($str, $length=100, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate2 ($str, $length=24, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate3 ($str, $length=50, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate4 ($str, $length=39, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
function Truncate5 ($str, $length=500, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate6 ($str, $length=12, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
// ---------------------------- Alternating Table Row Colors ----------------------------
|
||||
if (checkmobile()) { $color1 = "#dddddd"; $color2 = "#cecece"; $color = $color1; }
|
||||
else
|
||||
{
|
||||
$color1 = $row_colorChoose['themeColor1'];
|
||||
$color2 = $row_colorChoose['themeColor2'];
|
||||
$color = $color1;
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
include ('titles.inc.php');
|
||||
include ('messages.inc.php');
|
||||
include ('scrubber.inc.php');
|
||||
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
if (eregi ("msie", $agent)) $printBrowser = "IE"; else $printBrowser = "notIE";
|
||||
|
||||
//echo $agent;
|
||||
//echo $browser;
|
||||
|
||||
// ---------------------------- Color Conversion ------------------------------------------------------------
|
||||
// Calculations based upon Daniels, R. (2000, pg. 44). Designing great beers. Boulder, CO: Brewer's Publications.
|
||||
function colorconvert($color, $c) {
|
||||
if ($c == "SRM") { // EBC to SRM
|
||||
$ccon = $color / 1.97;
|
||||
return round ($ccon, 1);
|
||||
}
|
||||
|
||||
if ($c == "EBC") { // SRM to EBC
|
||||
$ccon = $color * 1.97;
|
||||
return round ($ccon, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------- Temperature, Weight, and Volume Conversion ----------------------------------
|
||||
|
||||
function tempconvert($temp,$t) { // $t = desired output, defined at function call
|
||||
if ($t == "F") { // Celsius to F if source is C
|
||||
$tcon = (($temp - 32) / 1.8);
|
||||
return round ($tcon, 0);
|
||||
}
|
||||
|
||||
if ($t == "C") { // F to Celsius
|
||||
$tcon = (($temp - 32) * (5/9));
|
||||
return round ($tcon, 0);
|
||||
}
|
||||
}
|
||||
|
||||
function weightconvert($weight,$w) { // $w = desired output, defined at function call
|
||||
if ($w == "pounds") { // kilograms to pounds
|
||||
$wcon = ($weight * 2.2046);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "ounces") { // grams to ounces
|
||||
$wcon = ($weight * 0.03527);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "grams") { // ounces to grams
|
||||
$wcon = ($weight * 28.3495);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
|
||||
if ($w == "kilograms") { // pounds to kilograms
|
||||
$wcon = ($weight * 0.4535);
|
||||
return round ($wcon, 2);
|
||||
}
|
||||
}
|
||||
|
||||
function volumeconvert($volume,$v) { // $v = desired output, defined at function call
|
||||
if ($v == "gallons") { // liters to gallons
|
||||
$vcon = ($volume * 0.2641);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "ounces") { // milliliters to ounces
|
||||
$vcon = ($volume * 29.573);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "liters") { // gallons to liters
|
||||
$vcon = ($volume * 3.7854);
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
if ($v == "milliliters") { // fluid ounces to milliliters
|
||||
$vcon = ($volume * 29.5735) ;
|
||||
return round ($vcon, 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------- Date Conversion -----------------------------------------
|
||||
// http://www.phpbuilder.com/annotate/message.php3?id=1031006
|
||||
function dateconvert($date,$func) {
|
||||
if ($func == 1){ //insert conversion
|
||||
list($day, $month, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
if ($func == 2){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day, $year";
|
||||
if ($month == "01" ) { echo "January "; }
|
||||
if ($month == "02" ) { echo "February "; }
|
||||
if ($month == "03" ) { echo "March "; }
|
||||
if ($month == "04" ) { echo "April "; }
|
||||
if ($month == "05" ) { echo "May "; }
|
||||
if ($month == "06" ) { echo "June "; }
|
||||
if ($month == "07" ) { echo "July "; }
|
||||
if ($month == "08" ) { echo "August "; }
|
||||
if ($month == "09" ) { echo "September "; }
|
||||
if ($month == "10" ) { echo "October "; }
|
||||
if ($month == "11" ) { echo "November "; }
|
||||
if ($month == "12" ) { echo "December "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 4){ //insert conversion
|
||||
list($month, $day, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
// function to convert MySQL dates to only month/year.
|
||||
function dateconvert2($date,$func) {
|
||||
if ($func == 1){ //insert conversion
|
||||
list($day, $month, $year) = split('[/.-]', $date);
|
||||
$date = "$year-$month-$day";
|
||||
return $date;
|
||||
}
|
||||
if ($func == 2){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 3){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day, $year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
|
||||
if ($func == 4){ //output conversion
|
||||
list($year, $month, $day) = split('[-.]', $date);
|
||||
$date = "$day $month $year";
|
||||
if ($month == "01") { echo "Jan "; }
|
||||
if ($month == "02") { echo "Feb "; }
|
||||
if ($month == "03") { echo "Mar "; }
|
||||
if ($month == "04") { echo "Apr "; }
|
||||
if ($month == "05") { echo "May "; }
|
||||
if ($month == "06") { echo "Jun "; }
|
||||
if ($month == "07") { echo "Jul "; }
|
||||
if ($month == "08") { echo "Aug "; }
|
||||
if ($month == "09") { echo "Sep "; }
|
||||
if ($month == "10") { echo "Oct "; }
|
||||
if ($month == "11") { echo "Nov "; }
|
||||
if ($month == "12") { echo "Dec "; }
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function datecharcheck ($date) {
|
||||
$d1 = strpos($date, "/");
|
||||
if ($d1 !== false) return "true";
|
||||
|
||||
$d2 = strpos($date, "-");
|
||||
if ($d2 !== false) return $d2."-";
|
||||
|
||||
$d3 = strpos($date, " ");
|
||||
if ($d3 !== false) return "true";
|
||||
|
||||
}
|
||||
|
||||
// ---------------------------- Truncate Functions --------------------------------------
|
||||
|
||||
function Truncate ($str, $length=100, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate2 ($str, $length=24, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate3 ($str, $length=50, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate4 ($str, $length=39, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
function Truncate5 ($str, $length=500, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
function Truncate6 ($str, $length=12, $trailing='...')
|
||||
{
|
||||
// take off chars for the trailing
|
||||
$length-=strlen($trailing);
|
||||
if (strlen($str) > $length)
|
||||
{
|
||||
// string exceeded length, truncate and add trailing dots
|
||||
return substr($str,0,$length).$trailing;
|
||||
}
|
||||
else
|
||||
{
|
||||
// string was already short enough, return the string
|
||||
$res = $str;
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
|
||||
// ---------------------------- Alternating Table Row Colors ----------------------------
|
||||
if (checkmobile()) { $color1 = "#dddddd"; $color2 = "#cecece"; $color = $color1; }
|
||||
else
|
||||
{
|
||||
$color1 = $row_colorChoose['themeColor1'];
|
||||
$color2 = $row_colorChoose['themeColor2'];
|
||||
$color = $color1;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
if ($row_pref['mode'] == "1") $version = "2.3.1 Personal Edition";
|
||||
if ($row_pref['mode'] == "2") $version = "2.3.1 Club Edition";
|
||||
if ($row_pref['mode'] == "1") $version = "2.3.2 Personal Edition";
|
||||
if ($row_pref['mode'] == "2") $version = "2.3.2 Club Edition";
|
||||
?>
|
||||
|
||||
|
||||
386
index.php
@@ -1,192 +1,194 @@
|
||||
<?php
|
||||
|
||||
//image dir / SQL information and connect to MySQL server
|
||||
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();
|
||||
|
||||
//override various default settings with GET parameters, if they exist
|
||||
include ('includes/url_variables.inc.php');
|
||||
|
||||
//set up brewers, recipes, brewlogs, themes, etc.
|
||||
include ('includes/db_connect_universal.inc.php');
|
||||
|
||||
//i have no idea... needs more looking through
|
||||
include ('includes/db_connect_log.inc.php');
|
||||
|
||||
//include function to check for mobile browsers
|
||||
include ('includes/check_mobile.inc.php');
|
||||
|
||||
//do various abv calculations related to the currently viewed recipe (if any)
|
||||
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');
|
||||
|
||||
//figure out SRM and a hex value for displaying beer color
|
||||
include ('includes/color.inc.php');
|
||||
|
||||
//determine if club edition or personal edition is in use
|
||||
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>
|
||||
<link rel="stylesheet" href="css/html_elements.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/universal_elements.css" type="text/css">
|
||||
<?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\">";
|
||||
}
|
||||
?>
|
||||
<?php if (checkmobile()) echo ""; else { if (($page == "reference") && ($section == "carbonation")) {
|
||||
if ($printBrowser == "IE") { ?>
|
||||
<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 } else { ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
tb_show('Carbonation Chart','reference/carbonation.php?KeepThis=true&TB_iframe=true&height=550&width=900', 'loadingAnimation.gif');
|
||||
});
|
||||
</script>
|
||||
<?php } } } ?>
|
||||
</head>
|
||||
<body <?php if (($printBrowser == "IE") && ($page == "reference") && ($section == "carbonation")) echo "onLoad=\"javascript:popUp('reference/carbonation.php')\""; ?>>
|
||||
<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 Main Content -->
|
||||
<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'); ?>
|
||||
<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
|
||||
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> <!-- 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 ($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 ($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'); }
|
||||
}
|
||||
?>
|
||||
<!--<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>-->
|
||||
</div><!-- End contentcolumn -->
|
||||
<?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 == "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 "<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'); }
|
||||
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 rightcolumn -->
|
||||
<?php } ?>
|
||||
</div><!-- End contentWrapper -->
|
||||
<!-- End Main Content -->
|
||||
|
||||
<!-- Begin Footer -->
|
||||
<div id="footer"><?php include ('includes/footer.inc.php'); ?></div>
|
||||
<!-- End Footer -->
|
||||
|
||||
</div><!-- End Main Container -->
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
//image dir / SQL information and connect to MySQL server
|
||||
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();
|
||||
|
||||
//override various default settings with GET parameters, if they exist
|
||||
include ('includes/url_variables.inc.php');
|
||||
|
||||
//set up brewers, themes, etc.
|
||||
include ('includes/db_connect_universal.inc.php');
|
||||
|
||||
//set up recipes, brewlogs, etc.
|
||||
include ('includes/db_connect_log.inc.php');
|
||||
|
||||
//include function to check for mobile browsers
|
||||
include ('includes/check_mobile.inc.php');
|
||||
|
||||
//do various abv calculations related to the currently viewed recipe (if any)
|
||||
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');
|
||||
|
||||
//figure out SRM and a hex value for displaying beer color
|
||||
include ('includes/color.inc.php');
|
||||
|
||||
//determine if club edition or personal edition is in use
|
||||
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>
|
||||
<link rel="stylesheet" href="css/html_elements.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/universal_elements.css" type="text/css">
|
||||
<?php
|
||||
if (checkmobile()) {
|
||||
echo "<link rel=\"stylesheet\" href=\"css/mobile.css\" type=\"text/css\" >";
|
||||
} else {
|
||||
echo "
|
||||
<script type=\"text/javascript\" src=\"js_includes/menu.js\"></script>
|
||||
<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\">
|
||||
<link rel=\"stylesheet\" href=\"css/".$row_pref['theme']."\" type=\"text/css\">";
|
||||
}
|
||||
?>
|
||||
<?php if (checkmobile()) echo ""; else { if (($page == "reference") && ($section == "carbonation")) {
|
||||
if ($printBrowser == "IE") { ?>
|
||||
<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 } else { ?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
tb_show('Carbonation Chart','reference/carbonation.php?KeepThis=true&TB_iframe=true&height=550&width=900', 'loadingAnimation.gif');
|
||||
});
|
||||
</script>
|
||||
<?php } } } ?>
|
||||
</head>
|
||||
<body <?php if (($printBrowser == "IE") && ($page == "reference") && ($section == "carbonation")) echo "onLoad=\"javascript:popUp('reference/carbonation.php')\""; ?>>
|
||||
<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 Main Content -->
|
||||
<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'); ?>
|
||||
<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
|
||||
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> <!-- 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 ($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 ($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'); }
|
||||
}
|
||||
?>
|
||||
<!--<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>-->
|
||||
</div><!-- End contentcolumn -->
|
||||
<?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 == "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['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'); }
|
||||
if (checkmobile()) echo ""; else {
|
||||
// Include sidebar sections according to preferences
|
||||
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 rightcolumn -->
|
||||
<?php } ?>
|
||||
</div><!-- End contentWrapper -->
|
||||
<!-- End Main Content -->
|
||||
|
||||
<!-- Begin Footer -->
|
||||
<div id="footer"><?php include ('includes/footer.inc.php'); ?></div>
|
||||
<!-- End Footer -->
|
||||
|
||||
</div><!-- End Main Container -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
589
js_includes/menu.js
Normal file
@@ -0,0 +1,589 @@
|
||||
//<![CDATA[
|
||||
|
||||
//*****************************************************************************
|
||||
// Do not remove this notice.
|
||||
//
|
||||
// Copyright 2000-2004 by Mike Hall.
|
||||
// See http://www.brainjar.com for terms of use.
|
||||
//*****************************************************************************
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to determine the browser and version.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function Browser() {
|
||||
|
||||
var ua, s, i;
|
||||
|
||||
this.isIE = false; // Internet Explorer
|
||||
this.isOP = false; // Opera
|
||||
this.isNS = false; // Netscape
|
||||
this.version = null;
|
||||
|
||||
ua = navigator.userAgent;
|
||||
|
||||
s = "Opera";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isOP = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
s = "Netscape6/";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isNS = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
|
||||
// Treat any other "Gecko" browser as Netscape 6.1.
|
||||
|
||||
s = "Gecko";
|
||||
if ((i = ua.indexOf(s)) >= 0) {
|
||||
this.isNS = true;
|
||||
this.version = 6.1;
|
||||
return;
|
||||
}
|
||||
|
||||
s = "MSIE";
|
||||
if ((i = ua.indexOf(s))) {
|
||||
this.isIE = true;
|
||||
this.version = parseFloat(ua.substr(i + s.length));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var browser = new Browser();
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code for handling the menu bar and active button.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
var activeButton = null;
|
||||
|
||||
/* [MODIFIED] This code commented out, not needed for activate/deactivate
|
||||
on mouseover.
|
||||
|
||||
// Capture mouse clicks on the page so any active button can be
|
||||
// deactivated.
|
||||
|
||||
if (browser.isIE)
|
||||
document.onmousedown = pageMousedown;
|
||||
else
|
||||
document.addEventListener("mousedown", pageMousedown, true);
|
||||
|
||||
function pageMousedown(event) {
|
||||
|
||||
var el;
|
||||
|
||||
// If there is no active button, exit.
|
||||
|
||||
if (activeButton == null)
|
||||
return;
|
||||
|
||||
// Find the element that was clicked on.
|
||||
|
||||
if (browser.isIE)
|
||||
el = window.event.srcElement;
|
||||
else
|
||||
el = (event.target.tagName ? event.target : event.target.parentNode);
|
||||
|
||||
// If the active button was clicked on, exit.
|
||||
|
||||
if (el == activeButton)
|
||||
return;
|
||||
|
||||
// If the element is not part of a menu, reset and clear the active
|
||||
// button.
|
||||
|
||||
if (getContainerWith(el, "DIV", "menu") == null) {
|
||||
resetButton(activeButton);
|
||||
activeButton = null;
|
||||
}
|
||||
}
|
||||
|
||||
[END MODIFIED] */
|
||||
|
||||
function buttonClick(event, menuId) {
|
||||
|
||||
var button;
|
||||
|
||||
// Get the target button element.
|
||||
|
||||
if (browser.isIE)
|
||||
button = window.event.srcElement;
|
||||
else
|
||||
button = event.currentTarget;
|
||||
|
||||
// Blur focus from the link to remove that annoying outline.
|
||||
|
||||
button.blur();
|
||||
|
||||
// Associate the named menu to this button if not already done.
|
||||
// Additionally, initialize menu display.
|
||||
|
||||
if (button.menu == null) {
|
||||
button.menu = document.getElementById(menuId);
|
||||
if (button.menu.isInitialized == null)
|
||||
menuInit(button.menu);
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the button, if not already done.
|
||||
|
||||
if (button.onmouseout == null)
|
||||
button.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// Exit if this button is the currently active one.
|
||||
|
||||
if (button == activeButton)
|
||||
return false;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Reset the currently active button, if any.
|
||||
|
||||
if (activeButton != null)
|
||||
resetButton(activeButton);
|
||||
|
||||
// Activate this button, unless it was the currently active one.
|
||||
|
||||
if (button != activeButton) {
|
||||
depressButton(button);
|
||||
activeButton = button;
|
||||
}
|
||||
else
|
||||
activeButton = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function buttonMouseover(event, menuId) {
|
||||
|
||||
var button;
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Activates this button's menu if no other is currently active.
|
||||
|
||||
if (activeButton == null) {
|
||||
buttonClick(event, menuId);
|
||||
return;
|
||||
}
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Find the target button element.
|
||||
|
||||
if (browser.isIE)
|
||||
button = window.event.srcElement;
|
||||
else
|
||||
button = event.currentTarget;
|
||||
|
||||
// If any other button menu is active, make this one active instead.
|
||||
|
||||
if (activeButton != null && activeButton != button)
|
||||
buttonClick(event, menuId);
|
||||
}
|
||||
|
||||
function depressButton(button) {
|
||||
|
||||
var x, y;
|
||||
|
||||
// Update the button's style class to make it look like it's
|
||||
// depressed.
|
||||
|
||||
button.className += " menuButtonActive";
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the button, if not already done.
|
||||
|
||||
if (button.onmouseout == null)
|
||||
button.onmouseout = buttonOrMenuMouseout;
|
||||
if (button.menu.onmouseout == null)
|
||||
button.menu.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Position the associated drop down menu under the button and
|
||||
// show it.
|
||||
|
||||
x = getPageOffsetLeft(button);
|
||||
y = getPageOffsetTop(button) + button.offsetHeight;
|
||||
|
||||
// For IE, adjust position.
|
||||
|
||||
if (browser.isIE) {
|
||||
x += button.offsetParent.clientLeft;
|
||||
y += button.offsetParent.clientTop;
|
||||
}
|
||||
|
||||
button.menu.style.left = x + "px";
|
||||
button.menu.style.top = y + "px";
|
||||
button.menu.style.visibility = "visible";
|
||||
|
||||
// For IE; size, position and show the menu's IFRAME as well.
|
||||
|
||||
if (button.menu.iframeEl != null)
|
||||
{
|
||||
button.menu.iframeEl.style.left = button.menu.style.left;
|
||||
button.menu.iframeEl.style.top = button.menu.style.top;
|
||||
button.menu.iframeEl.style.width = button.menu.offsetWidth + "px";
|
||||
button.menu.iframeEl.style.height = button.menu.offsetHeight + "px";
|
||||
button.menu.iframeEl.style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
function resetButton(button) {
|
||||
|
||||
// Restore the button's style class.
|
||||
|
||||
removeClassName(button, "menuButtonActive");
|
||||
|
||||
// Hide the button's menu, first closing any sub menus.
|
||||
|
||||
if (button.menu != null) {
|
||||
closeSubMenu(button.menu);
|
||||
button.menu.style.visibility = "hidden";
|
||||
|
||||
// For IE, hide menu's IFRAME as well.
|
||||
|
||||
if (button.menu.iframeEl != null)
|
||||
button.menu.iframeEl.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to handle the menus and sub menus.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function menuMouseover(event) {
|
||||
|
||||
var menu;
|
||||
|
||||
// Find the target menu element.
|
||||
|
||||
if (browser.isIE)
|
||||
menu = getContainerWith(window.event.srcElement, "DIV", "menu");
|
||||
else
|
||||
menu = event.currentTarget;
|
||||
|
||||
// Close any active sub menu.
|
||||
|
||||
if (menu.activeItem != null)
|
||||
closeSubMenu(menu);
|
||||
}
|
||||
|
||||
function menuItemMouseover(event, menuId) {
|
||||
|
||||
var item, menu, x, y;
|
||||
|
||||
// Find the target item element and its parent menu element.
|
||||
|
||||
if (browser.isIE)
|
||||
item = getContainerWith(window.event.srcElement, "A", "menuItem");
|
||||
else
|
||||
item = event.currentTarget;
|
||||
menu = getContainerWith(item, "DIV", "menu");
|
||||
|
||||
// Close any active sub menu and mark this one as active.
|
||||
|
||||
if (menu.activeItem != null)
|
||||
closeSubMenu(menu);
|
||||
menu.activeItem = item;
|
||||
|
||||
// Highlight the item element.
|
||||
|
||||
item.className += " menuItemHighlight";
|
||||
|
||||
// Initialize the sub menu, if not already done.
|
||||
|
||||
if (item.subMenu == null) {
|
||||
item.subMenu = document.getElementById(menuId);
|
||||
if (item.subMenu.isInitialized == null)
|
||||
menuInit(item.subMenu);
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover.
|
||||
|
||||
// Set mouseout event handler for the sub menu, if not already done.
|
||||
|
||||
if (item.subMenu.onmouseout == null)
|
||||
item.subMenu.onmouseout = buttonOrMenuMouseout;
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
// Get position for submenu based on the menu item.
|
||||
|
||||
x = getPageOffsetLeft(item) + item.offsetWidth;
|
||||
y = getPageOffsetTop(item);
|
||||
|
||||
// Adjust position to fit in view.
|
||||
|
||||
var maxX, maxY;
|
||||
|
||||
if (browser.isIE) {
|
||||
maxX = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) +
|
||||
(document.documentElement.clientWidth != 0 ? document.documentElement.clientWidth : document.body.clientWidth);
|
||||
maxY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) +
|
||||
(document.documentElement.clientHeight != 0 ? document.documentElement.clientHeight : document.body.clientHeight);
|
||||
}
|
||||
if (browser.isOP) {
|
||||
maxX = document.documentElement.scrollLeft + window.innerWidth;
|
||||
maxY = document.documentElement.scrollTop + window.innerHeight;
|
||||
}
|
||||
if (browser.isNS) {
|
||||
maxX = window.scrollX + window.innerWidth;
|
||||
maxY = window.scrollY + window.innerHeight;
|
||||
}
|
||||
maxX -= item.subMenu.offsetWidth;
|
||||
maxY -= item.subMenu.offsetHeight;
|
||||
|
||||
if (x > maxX)
|
||||
x = Math.max(0, x - item.offsetWidth - item.subMenu.offsetWidth
|
||||
+ (menu.offsetWidth - item.offsetWidth));
|
||||
y = Math.max(0, Math.min(y, maxY));
|
||||
|
||||
// Position and show the sub menu.
|
||||
|
||||
item.subMenu.style.left = x + "px";
|
||||
item.subMenu.style.top = y + "px";
|
||||
item.subMenu.style.visibility = "visible";
|
||||
|
||||
// For IE; size, position and display the menu's IFRAME as well.
|
||||
|
||||
if (item.subMenu.iframeEl != null)
|
||||
{
|
||||
item.subMenu.iframeEl.style.left = item.subMenu.style.left;
|
||||
item.subMenu.iframeEl.style.top = item.subMenu.style.top;
|
||||
item.subMenu.iframeEl.style.width = item.subMenu.offsetWidth + "px";
|
||||
item.subMenu.iframeEl.style.height = item.subMenu.offsetHeight + "px";
|
||||
item.subMenu.iframeEl.style.display = "";
|
||||
}
|
||||
|
||||
// Stop the event from bubbling.
|
||||
|
||||
if (browser.isIE)
|
||||
window.event.cancelBubble = true;
|
||||
else
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
function closeSubMenu(menu) {
|
||||
|
||||
if (menu == null || menu.activeItem == null)
|
||||
return;
|
||||
|
||||
// Recursively close any sub menus.
|
||||
|
||||
if (menu.activeItem.subMenu != null) {
|
||||
closeSubMenu(menu.activeItem.subMenu);
|
||||
menu.activeItem.subMenu.style.visibility = "hidden";
|
||||
|
||||
// For IE, hide the sub menu's IFRAME as well.
|
||||
|
||||
if (menu.activeItem.subMenu.iframeEl != null)
|
||||
menu.activeItem.subMenu.iframeEl.style.display = "none";
|
||||
|
||||
menu.activeItem.subMenu = null;
|
||||
}
|
||||
|
||||
// Deactivate the active menu item.
|
||||
|
||||
removeClassName(menu.activeItem, "menuItemHighlight");
|
||||
menu.activeItem = null;
|
||||
}
|
||||
|
||||
// [MODIFIED] Added for activate/deactivate on mouseover. Handler for mouseout
|
||||
// event on buttons and menus.
|
||||
|
||||
function buttonOrMenuMouseout(event) {
|
||||
|
||||
var el;
|
||||
|
||||
// If there is no active button, exit.
|
||||
|
||||
if (activeButton == null)
|
||||
return;
|
||||
|
||||
// Find the element the mouse is moving to.
|
||||
|
||||
if (browser.isIE)
|
||||
el = window.event.toElement;
|
||||
else if (event.relatedTarget != null)
|
||||
el = (event.relatedTarget.tagName ? event.relatedTarget : event.relatedTarget.parentNode);
|
||||
|
||||
// If the element is not part of a menu, reset the active button.
|
||||
|
||||
if (getContainerWith(el, "DIV", "menu") == null) {
|
||||
resetButton(activeButton);
|
||||
activeButton = null;
|
||||
}
|
||||
}
|
||||
|
||||
// [END MODIFIED]
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Code to initialize menus.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function menuInit(menu) {
|
||||
|
||||
var itemList, spanList;
|
||||
var textEl, arrowEl;
|
||||
var itemWidth;
|
||||
var w, dw;
|
||||
var i, j;
|
||||
|
||||
// For IE, replace arrow characters.
|
||||
|
||||
if (browser.isIE) {
|
||||
menu.style.lineHeight = "2.5ex";
|
||||
spanList = menu.getElementsByTagName("SPAN");
|
||||
for (i = 0; i < spanList.length; i++)
|
||||
if (hasClassName(spanList[i], "menuItemArrow")) {
|
||||
spanList[i].style.fontFamily = "Webdings";
|
||||
spanList[i].firstChild.nodeValue = "4";
|
||||
}
|
||||
}
|
||||
|
||||
// Find the width of a menu item.
|
||||
|
||||
itemList = menu.getElementsByTagName("A");
|
||||
if (itemList.length > 0)
|
||||
itemWidth = itemList[0].offsetWidth;
|
||||
else
|
||||
return;
|
||||
|
||||
// For items with arrows, add padding to item text to make the
|
||||
// arrows flush right.
|
||||
|
||||
for (i = 0; i < itemList.length; i++) {
|
||||
spanList = itemList[i].getElementsByTagName("SPAN");
|
||||
textEl = null;
|
||||
arrowEl = null;
|
||||
for (j = 0; j < spanList.length; j++) {
|
||||
if (hasClassName(spanList[j], "menuItemText"))
|
||||
textEl = spanList[j];
|
||||
if (hasClassName(spanList[j], "menuItemArrow"))
|
||||
arrowEl = spanList[j];
|
||||
}
|
||||
if (textEl != null && arrowEl != null) {
|
||||
textEl.style.paddingRight = (itemWidth
|
||||
- (textEl.offsetWidth + arrowEl.offsetWidth)) + "px";
|
||||
// For Opera, remove the negative right margin to fix a display bug.
|
||||
if (browser.isOP)
|
||||
arrowEl.style.marginRight = "0px";
|
||||
}
|
||||
}
|
||||
|
||||
// Fix IE hover problem by setting an explicit width on first item of
|
||||
// the menu.
|
||||
|
||||
if (browser.isIE) {
|
||||
w = itemList[0].offsetWidth;
|
||||
itemList[0].style.width = w + "px";
|
||||
dw = itemList[0].offsetWidth - w;
|
||||
w -= dw;
|
||||
itemList[0].style.width = w + "px";
|
||||
}
|
||||
|
||||
// Fix the IE display problem (SELECT elements and other windowed controls
|
||||
// overlaying the menu) by adding an IFRAME under the menu.
|
||||
|
||||
if (browser.isIE) {
|
||||
var iframeEl = document.createElement("IFRAME");
|
||||
iframeEl.frameBorder = 0;
|
||||
iframeEl.src = "javascript:false;";
|
||||
iframeEl.style.display = "none";
|
||||
iframeEl.style.position = "absolute";
|
||||
iframeEl.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
|
||||
menu.iframeEl = menu.parentNode.insertBefore(iframeEl, menu);
|
||||
}
|
||||
|
||||
// Mark menu as initialized.
|
||||
|
||||
menu.isInitialized = true;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// General utility functions.
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
function getContainerWith(node, tagName, className) {
|
||||
|
||||
// Starting with the given node, find the nearest containing element
|
||||
// with the specified tag name and style class.
|
||||
|
||||
while (node != null) {
|
||||
if (node.tagName != null && node.tagName == tagName &&
|
||||
hasClassName(node, className))
|
||||
return node;
|
||||
node = node.parentNode;
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
function hasClassName(el, name) {
|
||||
|
||||
var i, list;
|
||||
|
||||
// Return true if the given element currently has the given class
|
||||
// name.
|
||||
|
||||
list = el.className.split(" ");
|
||||
for (i = 0; i < list.length; i++)
|
||||
if (list[i] == name)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function removeClassName(el, name) {
|
||||
|
||||
var i, curList, newList;
|
||||
|
||||
if (el.className == null)
|
||||
return;
|
||||
|
||||
// Remove the given class name from the element's className property.
|
||||
|
||||
newList = new Array();
|
||||
curList = el.className.split(" ");
|
||||
for (i = 0; i < curList.length; i++)
|
||||
if (curList[i] != name)
|
||||
newList.push(curList[i]);
|
||||
el.className = newList.join(" ");
|
||||
}
|
||||
|
||||
function getPageOffsetLeft(el) {
|
||||
|
||||
var x;
|
||||
|
||||
// Return the x coordinate of an element relative to the page.
|
||||
|
||||
x = el.offsetLeft;
|
||||
if (el.offsetParent != null)
|
||||
x += getPageOffsetLeft(el.offsetParent);
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
function getPageOffsetTop(el) {
|
||||
|
||||
var y;
|
||||
|
||||
// Return the x coordinate of an element relative to the page.
|
||||
|
||||
y = el.offsetTop;
|
||||
if (el.offsetParent != null)
|
||||
y += getPageOffsetTop(el.offsetParent);
|
||||
|
||||
return y;
|
||||
}
|
||||
|
||||
|
||||
//]]>
|
||||
@@ -1,72 +1,75 @@
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_styles = sprintf("SELECT * FROM styles WHERE brewStyle='%s'", $row_awardsList['brewStyle']);
|
||||
$styles = mysql_query($query_styles, $brewing) or die(mysql_error());
|
||||
$row_styles = mysql_fetch_assoc($styles);
|
||||
$totalRows_styles = mysql_num_rows($styles);
|
||||
?>
|
||||
<div id="contentWide">
|
||||
<?php
|
||||
|
||||
if ($total == 0)
|
||||
{ ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataHeadingList">There are currently no awards/competition entries in the database <?php if ($filter != "all") echo "for this member"; ?>.<br><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<?php if (isset($_SESSION["loginUsername"])) echo "<td class=\"dataList\"><img src=\"".$imageSrc."pencil.png\" border=\"0\" align=\"absmiddle\"></td>"; ?>
|
||||
<td class="dataHeadingList">Entered Name <a href="?page=awardsList&sort=awardBrewName&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardBrewName&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Style <a href="?page=awardsList&sort=awardStyle&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardStyle&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Competition <a href="?page=awardsList&sort=awardContest&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardContest&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Date <a href="?page=awardsList&sort=awardDate&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardDate&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList" colspan="2">Place <a href="?page=awardsList&sort=awardPlace&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardPlace&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataHeadingList">Brewer <a href="?page=awardsList&sort=brewBrewerID&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=brewBrewerID&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td><?php } ?>
|
||||
</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_awardsList['awardStyle']);
|
||||
$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_awardsList['brewBrewerID']);
|
||||
$user2 = mysql_query($query_user2, $brewing) or die(mysql_error());
|
||||
$row_user2 = mysql_fetch_assoc($user2);
|
||||
$totalRows_user2 = mysql_num_rows($user2);
|
||||
|
||||
?>
|
||||
<tr <?php echo "style=\"background-color:$color\""; ?>>
|
||||
<?php if (isset($_SESSION["loginUsername"])) { if (($row_user['userLevel'] == "1") || ($row_recipeList['brewBrewerID'] == $loginUsername)) echo "<td class=\"dataList\"><a href=\"admin/index.php?action=edit&dbTable=awards&id=".$row_awardsList['id']."\"><img src=\"".$imageSrc."pencil.png\" alt=\"Edit ".$row_awardsList['awardBrewName']."\" title=\"Edit ".$row_awardsList['awardBrewName']."\" border=\"0\" align=\"absmiddle\"></a></td>"; else echo "<td> </td>"; } ?>
|
||||
<td class="dataList"><a href="index.php?page=<?php $dbGo = rtrim($row_awardsList['awardBrewID'], "0123456789"); if ($dbGo == "r") echo "recipe"; else echo "brewBlog"; ?>Detail&filter=<?php echo $row_awardsList['brewBrewerID']; ?>&id=<?php $brewID = ltrim ($row_awardsList['awardBrewID'], "rb"); echo $brewID; ?>"><?php echo $row_awardsList['awardBrewName']; ?></a></td>
|
||||
<td class="dataList">
|
||||
<div id="moreInfo"><a href="#"><?php echo $row_awardsList['awardStyle']; ?>
|
||||
<span>
|
||||
<div id="wideWrapper">
|
||||
<?php include ('reference/styles.inc.php'); ?>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="dataListLeft"><?php if ($row_awardsList['awardContestURL'] != "") { ?><a href="<?php echo $row_awardsList['awardContestURL']; ?>" target="_blank"><?php } echo $row_awardsList['awardContest']; if ($row_awardsList['awardContestURL'] != "") { ?></a><?php } ?></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php $date = $row_awardsList['awardDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td>
|
||||
<td class="dataList" width="16"><img src="<?php echo $imageSrc; ?><?php if ($row_awardsList['awardPlace'] == "best") echo "award_star_gold_3.png"; elseif ($row_awardsList['awardPlace'] == "1") echo "medal_gold_3.png"; elseif ($row_awardsList['awardPlace'] == "2") echo "medal_silver_3.png"; elseif ($row_awardsList['awardPlace'] == "3") echo "medal_bronze_3.png"; elseif ($row_awardsList['awardPlace'] == "entry") echo "tag_blue.png"; else echo "star.png"; ?>" border="0"/></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php if ($row_awardsList['awardPlace'] == "best") echo "Best In Show"; elseif ($row_awardsList['awardPlace'] == "1") echo "1st (Gold)"; elseif ($row_awardsList['awardPlace'] == "2") echo "2nd (Silver)"; elseif ($row_awardsList['awardPlace'] == "3") echo "3rd (Bronze)"; elseif ($row_awardsList['awardPlace'] == "honMen") echo "Honorable Mention"; else echo "Entry Only"; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=awardsList&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 } ?>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_awardsList = mysql_fetch_assoc($awardsList)); ?>
|
||||
<tr>
|
||||
<td colspan="<?php if ($filter != "default") echo "8"; else echo "7"; ?>"><div id="paginate"><?php echo $total." Total Awards/Competition Entries"; if ($total > $display) echo " •"; if ($view == "all") echo "  • "; if ($total > $display) { echo " "; paginate($display, $pg, $total); if ($view == "limited") { ?> • <a href="">Entire List of <?php if ($filter != "all") echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo "Club "; ?>Awards/Competition Entries</span></a><?php } } if ($view == "all") { ?><a href="">Limited List of <?php if (($row_pref['mode'] == "2") && ($filter != "all")) echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo "Club "; ?>Award/Competition Entries</a><?php } ?></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
mysql_select_db($database_brewing, $brewing);
|
||||
$query_styles = sprintf("SELECT * FROM styles WHERE brewStyle='%s'", $row_awardsList['brewStyle']);
|
||||
$styles = mysql_query($query_styles, $brewing) or die(mysql_error());
|
||||
$row_styles = mysql_fetch_assoc($styles);
|
||||
$totalRows_styles = mysql_num_rows($styles);
|
||||
?>
|
||||
<div id="contentWide">
|
||||
<?php
|
||||
|
||||
if ($total == 0)
|
||||
{ ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="dataHeadingList">There are currently no awards/competition entries in the database <?php if ($filter != "all") echo "for this member"; ?>.<br><br></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td colspan="<?php if ($filter != "default") echo "8"; else echo "7"; ?>"><div id="paginate"><?php echo $total." Total Awards/Competition Entries"; if ($total > $display) echo " •"; if ($view == "all") echo "  • "; if ($total > $display) { echo " "; paginate($display, $pg, $total); if ($view == "limited") { ?> • <a href="index.php?page=awardsList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&view=all">Entire List of <?php if ($filter != "all") echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo " "; ?>Awards/Competition Entries</span></a><?php } } if ($view == "all") { ?><a href="index.php?page=awardsList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&view=limited">Limited List of <?php if (($row_pref['mode'] == "2") && ($filter != "all")) echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo " "; ?>Award/Competition Entries</a><?php } ?></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php if (isset($_SESSION["loginUsername"])) echo "<td class=\"dataList\"><img src=\"".$imageSrc."pencil.png\" border=\"0\" align=\"absmiddle\"></td>"; ?>
|
||||
<td class="dataHeadingList">Entered Name <a href="?page=awardsList&sort=awardBrewName&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardBrewName&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Style <a href="?page=awardsList&sort=awardStyle&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardStyle&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Competition <a href="?page=awardsList&sort=awardContest&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardContest&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList">Date <a href="?page=awardsList&sort=awardDate&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardDate&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<td class="dataHeadingList" colspan="2">Place <a href="?page=awardsList&sort=awardPlace&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=awardPlace&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataHeadingList">Brewer <a href="?page=awardsList&sort=brewBrewerID&dir=ASC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" alt="Sort Ascending"></a><a href="?page=awardsList&sort=brewBrewerID&dir=DESC&filter=<?php echo $filter; ?>&view=<?php echo $view; ?>"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" alt="Sort Descending"></a></td><?php } ?>
|
||||
</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_awardsList['awardStyle']);
|
||||
$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_awardsList['brewBrewerID']);
|
||||
$user2 = mysql_query($query_user2, $brewing) or die(mysql_error());
|
||||
$row_user2 = mysql_fetch_assoc($user2);
|
||||
$totalRows_user2 = mysql_num_rows($user2);
|
||||
|
||||
?>
|
||||
<tr <?php echo "style=\"background-color:$color\""; ?>>
|
||||
<?php if (isset($_SESSION["loginUsername"])) { if (($row_user['userLevel'] == "1") || ($row_recipeList['brewBrewerID'] == $loginUsername)) echo "<td class=\"dataList\"><a href=\"admin/index.php?action=edit&dbTable=awards&id=".$row_awardsList['id']."\"><img src=\"".$imageSrc."pencil.png\" alt=\"Edit ".$row_awardsList['awardBrewName']."\" title=\"Edit ".$row_awardsList['awardBrewName']."\" border=\"0\" align=\"absmiddle\"></a></td>"; else echo "<td> </td>"; } ?>
|
||||
<td class="dataList"><a href="index.php?page=<?php $dbGo = rtrim($row_awardsList['awardBrewID'], "0123456789"); if ($dbGo == "r") echo "recipe"; else echo "brewBlog"; ?>Detail&filter=<?php echo $row_awardsList['brewBrewerID']; ?>&id=<?php $brewID = ltrim ($row_awardsList['awardBrewID'], "rb"); echo $brewID; ?>"><?php echo $row_awardsList['awardBrewName']; ?></a></td>
|
||||
<td class="dataList">
|
||||
<div id="moreInfo"><a href="#"><?php echo $row_awardsList['awardStyle']; ?>
|
||||
<span>
|
||||
<div id="wideWrapper">
|
||||
<?php include ('reference/styles.inc.php'); ?>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="dataListLeft"><?php if ($row_awardsList['awardContestURL'] != "") { ?><a href="<?php echo $row_awardsList['awardContestURL']; ?>" target="_blank"><?php } echo $row_awardsList['awardContest']; if ($row_awardsList['awardContestURL'] != "") { ?></a><?php } ?></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php $date = $row_awardsList['awardDate']; $realdate = dateconvert2($date,3); echo $realdate; ?></td>
|
||||
<td class="dataList" width="16"><img src="<?php echo $imageSrc; ?><?php if ($row_awardsList['awardPlace'] == "best") echo "award_star_gold_3.png"; elseif ($row_awardsList['awardPlace'] == "1") echo "medal_gold_3.png"; elseif ($row_awardsList['awardPlace'] == "2") echo "medal_silver_3.png"; elseif ($row_awardsList['awardPlace'] == "3") echo "medal_bronze_3.png"; elseif ($row_awardsList['awardPlace'] == "entry") echo "tag_blue.png"; else echo "star.png"; ?>" border="0"/></td>
|
||||
<td class="dataList" nowrap="nowrap"><?php if ($row_awardsList['awardPlace'] == "best") echo "Best In Show"; elseif ($row_awardsList['awardPlace'] == "1") echo "1st (Gold)"; elseif ($row_awardsList['awardPlace'] == "2") echo "2nd (Silver)"; elseif ($row_awardsList['awardPlace'] == "3") echo "3rd (Bronze)"; elseif ($row_awardsList['awardPlace'] == "honMen") echo "Honorable Mention"; else echo "Entry Only"; ?></td>
|
||||
<?php if (($row_pref['mode'] == "2") && ($filter == "all")) { ?><td class="dataList"><a href="?page=awardsList&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 } ?>
|
||||
</tr>
|
||||
<?php if ($color == $color1) { $color = $color2; } else { $color = $color1; } ?>
|
||||
<?php } while ($row_awardsList = mysql_fetch_assoc($awardsList)); ?>
|
||||
<tr>
|
||||
<td colspan="<?php if ($filter != "default") echo "8"; else echo "7"; ?>"><div id="paginate"><?php echo $total." Total Awards/Competition Entries"; if ($total > $display) echo " •"; if ($view == "all") echo "  • "; if ($total > $display) { echo " "; paginate($display, $pg, $total); if ($view == "limited") { ?> • <a href="index.php?page=awardsList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&view=all">Entire List of <?php if ($filter != "all") echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo " "; ?>Awards/Competition Entries</span></a><?php } } if ($view == "all") { ?><a href="index.php?page=awardsList&sort=<?php echo $sort; ?>&dir=<?php echo $dir; ?>&view=limited">Limited List of <?php if (($row_pref['mode'] == "2") && ($filter != "all")) echo $row_user2['realFirstName']."'s "; if (($row_pref['mode'] == "2") && ($filter == "all")) echo " "; ?>Award/Competition Entries</a><?php } ?></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@@ -1,127 +1,131 @@
|
||||
<?php if (((isset($_SESSION["loginUsername"])) && ($row_log['brewBrewerID'] == $loginUsername)) || ((isset($_SESSION["loginUsername"])) && ($row_user['userLevel'] == "1"))) { ?>
|
||||
<script type="text/javascript" src="admin/js_includes/rounded-corners.js"></script>
|
||||
<script type="text/javascript" src="admin/js_includes/form-field-tooltip.js"></script>
|
||||
<script type="text/javascript" src="admin/js_includes/calendar_control.js"></script>
|
||||
<link rel="stylesheet" href="admin/css/tooltip.css" media="screen" type="text/css">
|
||||
<link rel="stylesheet" href="admin/css/calendar_control.css" media="screen" type="text/css">
|
||||
<form action="admin/process.php?action=editPub&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>§ion=public&id=<?php echo $row_log['id']; ?>" method="POST" name="form1">
|
||||
<div id="sidebarWrapper">
|
||||
<div id="sidebarHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>user_go.png" align="absmiddle"></span><span class="data">Admin Actions</span></div>
|
||||
<div id="sidebarInnerWrapper">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=edit&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>pencil.png" alt="Edit <?php echo $row_log['brewName']; ?>" title="Edit <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=reuse&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_refresh.png" alt="Reuse/Copy <?php echo $row_log['brewName']; ?>" title="Reuse/Copy <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=import<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "Recipe"; ?>&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "recipes"; if ($page == "recipeDetail") echo "brewing"; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_lightning.png" alt="Import <?php echo $row_log['brewName']; ?> to <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo $row_pref['menuRecipes']; else echo $row_pref['menuBrewBlogss']; ?>" title="Import <?php echo $row_log['brewName']; ?> to <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo $row_pref['menuRecipes']; else echo $row_pref['menuBrewBlogss']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=calculate&source=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&results=false&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>calculator.png" alt="Recalculate <?php echo $row_log['brewName']; ?>" title="Recalculate <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=add&dbTable=awards&assoc=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" alt="Add Awards for <?php echo $row_log['brewName']; ?>" title="Add Awards for <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<?php if (($page == "brewBlogDetail") || ($page == "brewBlogCurrent")) { ?>
|
||||
<td class="data_icon_list"><a href="sections/entry.inc.php?style=<?php echo $row_log['brewStyle']; ?>&filter=<?php if ($row_pref['mode'] == "2") echo $filter; else echo $loginUsername; ?>&id=<?php echo $row_log['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 } ?>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sidebarWrapper">
|
||||
<div id="sidebarHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle"></span><span class="data">Quick Edit</span></div>
|
||||
<div id="sidebarInnerWrapper">
|
||||
<table class="dataTable quickEdit2">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Name:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewName" type="text" value="<?php echo $row_log['brewName']; ?>" size="20"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Feat.?</td>
|
||||
<td class="data" colspan="3">
|
||||
<input type="radio" name="brewFeatured" value="Y" id="brewFeatured_0" <?php if ($row_log['brewFeatured'] == "Y") echo "checked"; ?> />Yes <input type="radio" name="brewFeatured" value="No" id="brewFeatured_1" <?php if (($row_log['brewFeatured'] == "N") || ($row_log['brewFeatured'] == "")) echo "checked"; ?> />No
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Status:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>>
|
||||
<select name="brewStatus" id="brewStatus">
|
||||
<option value="Primary" <?php if (!(strcmp($row_log['brewStatus'], "Primary"))) {echo "SELECTED";} ?>>Primary</option>
|
||||
<option value="Secondary" <?php if (!(strcmp($row_log['brewStatus'], "Secondary"))) {echo "SELECTED";} ?>>Secondary</option>
|
||||
<option value="Tertiary" <?php if (!(strcmp($row_log['brewStatus'], "Tertiary"))) {echo "SELECTED";} ?>>Tertiary</option>
|
||||
<option value="Lagering" <?php if (!(strcmp($row_log['brewStatus'], "Lagering"))) {echo "SELECTED";} ?>>Lagering</option>
|
||||
<option value="Conditioning" <?php if (!(strcmp($row_log['brewStatus'], "Conditioning"))) {echo "SELECTED";} ?>>Conditioning</option>
|
||||
<option value="On Tap" <?php if (!(strcmp($row_log['brewStatus'], "On Tap"))) {echo "SELECTED";} ?>>On Tap</option>
|
||||
<option value="Bottled" <?php if (!(strcmp($row_log['brewStatus'], "Bottled"))) {echo "SELECTED";} ?>>Bottled</option>
|
||||
<option value="Planned" <?php if (!(strcmp($row_log['brewStatus'], "Planned"))) {echo "SELECTED";} ?>>Planned</option>
|
||||
<option value="" <?php if (!(strcmp($row_log['brewStatus'], ""))) {echo "SELECTED";} ?>>Gone</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Batch:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewBatchNum" type="text" value="<?php echo $row_log['brewBatchNum']; ?>" size="15"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Tap:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewTapDate" type="text" id="brewTapDate" value="<?php echo $row_log['brewTapDate']; ?>" size="15" onfocus="showCalendarControl(this);"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<td class="dataLabelLeft">OG:</td>
|
||||
<td class="data"><input name="brewOG" type="text" value="<?php echo $row_log['brewOG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<td class="dataLabel">Target OG:</td>
|
||||
<td class="data"><input name="brewTargetOG" type="text" value="<?php echo $row_log['brewTargetOG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Read 1:</td>
|
||||
<td class="data"><input name="brewGravity1" type="text" id="brewGravity1" value="<?php echo $row_log['brewGravity1']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<td class="dataLabel">Days:</td>
|
||||
<td class="data"><input name="brewGravity1Days" type="text" id="brewGravity1Days" value="<?php echo $row_log['brewGravity1Days']; ?>" size="5"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Read 2:</td>
|
||||
<td class="data"><input name="brewGravity2" type="text" id="brewGravity2" value="<?php echo $row_log['brewGravity2']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<td class="dataLabel">Days:</td>
|
||||
<td class="data"><input name="brewGravity2Days" type="text" id="brewGravity2Days" value="<?php echo $row_log['brewGravity2Days']; ?>" size="5"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">FG:</td>
|
||||
<td class="data"><input name="brewFG" type="text" value="<?php echo $row_log['brewFG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<td class="dataLabel">Target FG:</td>
|
||||
<td class="data"><input name="brewTargetFG" type="text" value="<?php echo $row_log['brewTargetFG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft"> </td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input type="submit" value="Update"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var tooltipObj = new DHTMLgoodies_formTooltip();
|
||||
tooltipObj.setTooltipPosition('below');
|
||||
tooltipObj.setPageBgColor('#ffffff');
|
||||
tooltipObj.setTooltipCornerSize(6);
|
||||
tooltipObj.initFormFieldTooltip();
|
||||
</script>
|
||||
|
||||
<?php if (((isset($_SESSION["loginUsername"])) && ($row_log['brewBrewerID'] == $loginUsername)) || ((isset($_SESSION["loginUsername"])) && ($row_user['userLevel'] == "1"))) { ?>
|
||||
<script type="text/javascript" src="admin/js_includes/rounded-corners.js"></script>
|
||||
<script type="text/javascript" src="admin/js_includes/form-field-tooltip.js"></script>
|
||||
<script type="text/javascript" src="admin/js_includes/calendar_control.js"></script>
|
||||
<link rel="stylesheet" href="admin/css/tooltip.css" media="screen" type="text/css">
|
||||
<link rel="stylesheet" href="admin/css/calendar_control.css" media="screen" type="text/css">
|
||||
<form action="admin/process.php?action=editPub&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>§ion=public&id=<?php echo $row_log['id']; ?>" method="POST" name="form1">
|
||||
<div id="sidebarWrapper">
|
||||
<div id="sidebarHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>user_go.png" align="absmiddle"></span><span class="data">Admin Actions</span></div>
|
||||
<div id="sidebarInnerWrapper">
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=edit&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>pencil.png" alt="Edit <?php echo $row_log['brewName']; ?>" title="Edit <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=reuse&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_refresh.png" alt="Reuse/Copy <?php echo $row_log['brewName']; ?>" title="Reuse/Copy <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=import<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "Recipe"; ?>&dbTable=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "recipes"; if ($page == "recipeDetail") echo "brewing"; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>page_lightning.png" alt="Import <?php echo $row_log['brewName']; ?> to <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo $row_pref['menuRecipes']; else echo $row_pref['menuBrewBlogss']; ?>" title="Import <?php echo $row_log['brewName']; ?> to <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo $row_pref['menuRecipes']; else echo $row_pref['menuBrewBlogss']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=calculate&source=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&results=false&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>calculator.png" alt="Recalculate <?php echo $row_log['brewName']; ?>" title="Recalculate <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<td class="data_icon_list"><a href="admin/index.php?action=add&dbTable=awards&assoc=<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "brewing"; if ($page == "recipeDetail") echo "recipes"; ?>&filter=<?php echo $filter; ?>&id=<?php echo $row_log['id']; ?>"><img src="<?php echo $imageSrc; ?>medal_gold_3.png" alt="Add Awards for <?php echo $row_log['brewName']; ?>" title="Add Awards for <?php echo $row_log['brewName']; ?>" border="0" align="absmiddle"></a></td>
|
||||
<?php if (($page == "brewBlogDetail") || ($page == "brewBlogCurrent")) { ?>
|
||||
<td class="data_icon_list"><a href="sections/entry.inc.php?style=<?php echo $row_log['brewStyle']; ?>&filter=<?php if ($row_pref['mode'] == "2") echo $filter; else echo $loginUsername; ?>&id=<?php echo $row_log['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 } ?>
|
||||
<td class="data"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sidebarWrapper">
|
||||
<div id="sidebarHeader"><span class="data_icon"><img src="<?php echo $imageSrc; ?>page_edit.png" align="absmiddle"></span><span class="data">Quick Edit</span></div>
|
||||
<div id="sidebarInnerWrapper">
|
||||
<table class="dataTable quickEdit2">
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Name:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewName" type="text" value="<?php echo $row_log['brewName']; ?>" size="20"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<?php if ($row_user['userLevel'] == "1") { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Feat.?</td>
|
||||
<td class="data" colspan="3">
|
||||
<input type="radio" name="brewFeatured" value="Y" id="brewFeatured_0" <?php if ($row_log['brewFeatured'] == "Y") echo "checked"; ?> />Yes <input type="radio" name="brewFeatured" value="No" id="brewFeatured_1" <?php if (($row_log['brewFeatured'] == "N") || ($row_log['brewFeatured'] == "")) echo "checked"; ?> />No </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Status:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>>
|
||||
<select name="brewStatus" id="brewStatus">
|
||||
<option value="Primary" <?php if (!(strcmp($row_log['brewStatus'], "Primary"))) {echo "SELECTED";} ?>>Primary</option>
|
||||
<option value="Secondary" <?php if (!(strcmp($row_log['brewStatus'], "Secondary"))) {echo "SELECTED";} ?>>Secondary</option>
|
||||
<option value="Tertiary" <?php if (!(strcmp($row_log['brewStatus'], "Tertiary"))) {echo "SELECTED";} ?>>Tertiary</option>
|
||||
<option value="Lagering" <?php if (!(strcmp($row_log['brewStatus'], "Lagering"))) {echo "SELECTED";} ?>>Lagering</option>
|
||||
<option value="Conditioning" <?php if (!(strcmp($row_log['brewStatus'], "Conditioning"))) {echo "SELECTED";} ?>>Conditioning</option>
|
||||
<option value="On Tap" <?php if (!(strcmp($row_log['brewStatus'], "On Tap"))) {echo "SELECTED";} ?>>On Tap</option>
|
||||
<option value="Bottled" <?php if (!(strcmp($row_log['brewStatus'], "Bottled"))) {echo "SELECTED";} ?>>Bottled</option>
|
||||
<option value="Planned" <?php if (!(strcmp($row_log['brewStatus'], "Planned"))) {echo "SELECTED";} ?>>Planned</option>
|
||||
<option value="" <?php if (!(strcmp($row_log['brewStatus'], ""))) {echo "SELECTED";} ?>>Gone</option>
|
||||
</select> </td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Batch:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewBatchNum" type="text" value="<?php echo $row_log['brewBatchNum']; ?>" size="15"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Brew:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewDate" type="text" id="brewDate" value="<?php echo $row_log['brewDate']; ?>" size="15" onfocus="showCalendarControl(this);"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Tap:</td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input name="brewTapDate" type="text" id="brewTapDate" value="<?php echo $row_log['brewTapDate']; ?>" size="15" onfocus="showCalendarControl(this);"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<td class="dataLabelLeft">OG:</td>
|
||||
<td class="data"><input name="brewOG" type="text" value="<?php echo $row_log['brewOG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<td class="dataLabel">Target OG:</td>
|
||||
<td class="data"><input name="brewTargetOG" type="text" value="<?php echo $row_log['brewTargetOG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Read 1:</td>
|
||||
<td class="data"><input name="brewGravity1" type="text" id="brewGravity1" value="<?php echo $row_log['brewGravity1']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<td class="dataLabel">Days:</td>
|
||||
<td class="data"><input name="brewGravity1Days" type="text" id="brewGravity1Days" value="<?php echo $row_log['brewGravity1Days']; ?>" size="5"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Read 2:</td>
|
||||
<td class="data"><input name="brewGravity2" type="text" id="brewGravity2" value="<?php echo $row_log['brewGravity2']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<td class="dataLabel">Days:</td>
|
||||
<td class="data"><input name="brewGravity2Days" type="text" id="brewGravity2Days" value="<?php echo $row_log['brewGravity2Days']; ?>" size="5"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">FG:</td>
|
||||
<td class="data"><input name="brewFG" type="text" value="<?php echo $row_log['brewFG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) { ?>
|
||||
<td class="dataLabel">Target FG:</td>
|
||||
<td class="data"><input name="brewTargetFG" type="text" value="<?php echo $row_log['brewTargetFG']; ?>" size="5" tooltipText="<?php echo $toolTip_gravity; ?>"></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dataLabelLeft"> </td>
|
||||
<td class="data" <?php if (($page == "brewBlogCurrent") || ($page == "brewBlogDetail")) echo "colspan=\"3\""; ?>><input type="submit" value="Update"></td>
|
||||
<td class="data"></td>
|
||||
<td class="data"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var tooltipObj = new DHTMLgoodies_formTooltip();
|
||||
tooltipObj.setTooltipPosition('below');
|
||||
tooltipObj.setPageBgColor('#ffffff');
|
||||
tooltipObj.setTooltipCornerSize(6);
|
||||
tooltipObj.initFormFieldTooltip();
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1015,42 +1015,42 @@ if ($row_log['brewGrain1'] != "" ) { // hide entire set of grain rows if first n
|
||||
<?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_hops5['hopsName']; ?></div>
|
||||
<div id="referenceHeader"><?php echo $row_hops6['hopsName']; ?></div>
|
||||
<table class="dataTable">
|
||||
<?php if ($row_hops5['hopsGrown'] != "" ) {?>
|
||||
<?php if ($row_hops6['hopsGrown'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Region:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsGrown']; ?></td>
|
||||
<td class="data"><?php echo $row_hops6['hopsGrown']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsAAULow'] != "" ) {?>
|
||||
<?php if ($row_hops6['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>
|
||||
<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_hops5['hopsInfo'] != "" ) {?>
|
||||
<?php if ($row_hops6['hopsInfo'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Notes:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsInfo']; ?></td>
|
||||
<td class="data"><?php echo $row_hops6['hopsInfo']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsUse'] != "" ) {?>
|
||||
<?php if ($row_hops6['hopsUse'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Typical Use:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsUse']; ?></td>
|
||||
<td class="data"><?php echo $row_hops6['hopsUse']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsSub'] != "" ) {?>
|
||||
<?php if ($row_hops6['hopsSub'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Substitution:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsSub']; ?></td>
|
||||
<td class="data"><?php echo $row_hops6['hopsSub']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if ($row_hops5['hopsExample'] != "" ) {?>
|
||||
<?php if ($row_hops6['hopsExample'] != "" ) {?>
|
||||
<tr>
|
||||
<td class="dataLabelLeft">Example:</td>
|
||||
<td class="data"><?php echo $row_hops5['hopsExample']; ?></td>
|
||||
<td class="data"><?php echo $row_hops6['hopsExample']; ?></td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
</table>
|
||||
|
||||