This commit is contained in:
Geoff Humphrey
2011-08-11 00:03:04 +00:00
parent 962ed16a37
commit 550869e414
4 changed files with 582 additions and 570 deletions

View File

@@ -12,6 +12,12 @@
<td width="10%" nowrap><?php include ('includes/list_add_link.inc.php'); ?></td>
</tr>
</table>
<table class="dataTable">
<tr>
<td>&nbsp;</td>
<td width="10%" nowrap><div class="right"><span class="data_icon_list"><img src="<?php echo $imageSrc; ?>calculator.png" align="absmiddle"/></span><a href="index.php?action=calculate">Recipe Calculator</a></div></td>
</tr>
</table>
<?php if ($confirm == "true") { ?>
<table class="dataTable">
<tr>

View File

@@ -12,6 +12,12 @@
<td width="10%" nowrap><?php include ('includes/list_add_link.inc.php'); ?></td>
</tr>
</table>
<table class="dataTable">
<tr>
<td>&nbsp;</td>
<td width="10%" nowrap><div class="right"><span class="data_icon_list"><img src="<?php echo $imageSrc; ?>calculator.png" align="absmiddle"/></span><a href="index.php?action=calculate">Recipe Calculator</a></div></td>
</tr>
</table>
<?php if ($confirm == "true") { ?>
<table class="dataTable">
<tr>
@@ -23,7 +29,7 @@
<table class="dataTable">
<tr>
<td colspan="16" align="right" class="dataHeadingList"><input type="image" src="<?php echo $imageSrc.$row_colorChoose['themeName']; ?>/button_update_<?php echo $row_colorChoose['themeName']; ?>.png" alt="Update" class="radiobutton" value="Update"></td>
</tr>
</tr>
<tr>
<td class="dataHeadingList">Name&nbsp;<a href="index.php?action=list&dbTable=recipes&sort=brewName&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewName&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>
<td class="dataHeadingList">Style&nbsp;<a href="index.php?action=list&dbTable=recipes&sort=brewStyle&dir=ASC"><img src="<?php echo $imageSrc; ?>sort_up.gif" border="0" title="Sort Ascending"></a><a href="index.php?action=list&dbTable=recipes&sort=brewStyle&dir=DESC"><img src="<?php echo $imageSrc; ?>sort_down.gif" border="0" title="Sort Descending"></a></td>

View File

@@ -24,14 +24,14 @@ if (isset($_GET['dir'])) {
$dir = ($_GET['dir']);
}
$filterStyle = "brewStyleGroup";
$filterStyle = mysql_real_escape_string("brewStyleGroup");
if (isset($_GET['filterStyle'])) {
$filterStyle = ($_GET['filterStyle']);
$filterStyle = mysql_real_escape_string($_GET['filterStyle']);
}
$styleNumber = "LIKE '%'";
$styleNumber = mysql_real_escape_string("LIKE '%'");
if (isset($_GET['styleNumber'])) {
$styleNumber = ("=".$_GET['styleNumber']);
$styleNumber = mysql_real_escape_string("=".$_GET['styleNumber']);
}
mysql_select_db($database_brewing, $brewing);
@@ -51,7 +51,7 @@ if (isset($_GET['filterHopsCategory'])) {
$filterHopsFeature = "LIKE '%'";
if (isset($_GET['filterHopsFeature'])) {
$filterHopsFeature = ("LIKE '%".$_GET['filterHopsFeature']."%'");
$filterHopsFeature = mysql_real_escape_string("LIKE '%".$_GET['filterHopsFeature']."%'");
}
$sortHops = "hopsName";
@@ -78,9 +78,9 @@ if (isset($_GET['filterMaltCategory'])) {
$filterMaltCategory = ($_GET['filterMaltCategory']);
}
$filterMaltFeature = "LIKE '%'";
$filterMaltFeature = mysql_real_escape_string("LIKE '%'");
if (isset($_GET['filterMaltFeature'])) {
$filterMaltFeature = ("LIKE '%".$_GET['filterMaltFeature']."%'");
$filterMaltFeature = mysql_real_escape_string("LIKE '%".$_GET['filterMaltFeature']."%'");
}
mysql_select_db($database_brewing, $brewing);
@@ -94,7 +94,7 @@ $totalRows_grains = mysql_num_rows($grains);
if ($section == "yeast") {
$yeastLab = "default";
if (isset($_GET['yeastLab'])) { $yeastLab = ("LIKE '%".$_GET['yeastLab']."%'"); }
if (isset($_GET['yeastLab'])) { $yeastLab = mysql_real_escape_string("LIKE '%".$_GET['yeastLab']."%'"); }
$yeastType = "default";
if (isset($_GET['yeastType'])) { $yeastType = ($_GET['yeastType']); }