<tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td colspan="2" class="dataLabelWide data">Weight</td>
        <td colspan="2" class="dataLabelWide data">AA%</td>
        <td colspan="2" class="dataLabelWide data">Time</td>
        <td colspan="3" class="dataLabelWide data">Form</td>
	<?php 
        if ($results == "true") {
            ?>
<td class="dataLabelWide data">AAUs</td><?php 
        }
        ?>
      </tr>
      <?php 
        create_hop_entries(0, MAX_HOPS);
        ?>
    </table>

    <?php 
        if ($id != "default" && $results == "false") {
            ?>
      <div class="red"><em>**If any dropdown menu is blank, the recipe\'s original hop is not in the database.  For caculations to function, please choose another from the list or <a href="index.php?action=add&dbTable=hops">add another to the database</a>.</em></div>
    <?php 
        }
        ?>

    <table class="dataTable">
      <tr>
        <td><div class="right"><input type="image" src="<?php 
        echo $imageSrc . $row_colorChoose['themeName'];
Example #2
0
            }
            echo ' />Whole/Plug</td>' . "\n";
            echo '</tr>' . "\n";
        }
    }
    create_hop_entries(0, $INIT_HOP_ENTRIES - 1);
    // Add any extra hop entries if the user previously gave values for them.
    if ($action == "entry") {
        $endHopEntries = 0;
        for ($i = $INIT_HOP_ENTRIES; $i < MAX_HOPS; $i++) {
            if ($hopWeight[$i] > 0) {
                $endHopEntries = $i;
            }
        }
        if ($endHopEntries > 0) {
            create_hop_entries($INIT_HOP_ENTRIES, $endHopEntries);
        }
    }
    ?>
  
  <tr id="addHopButtonRow">
  <td><input id="addHopButton" type="button" value="Add Hop Entry" onClick="addHop('hop_entries', <?php 
    echo MAX_HOPS . ', \'' . $DEFAULT_FORM . '\', ';
    if ($action == "entry" && $endHopEntries > 0) {
        echo $endHopEntries + 1;
    } else {
        echo $INIT_HOP_ENTRIES;
    }
    ?>
);" class="add-button"></td>
  </tr>