Example #1
0
?>
</textarea>
</fieldset>

<fieldset>
<legend>
	<?php 
echo $LangUI->_('Related Recipe(s)') . " " . getHelpLink("related_recipes");
?>
</legend>
<?php 
echo '<table id="sortableTable2" cellspacing="1" cellpadding="2" border="0" class="data">';
echo '<thead>';
echo '<tr><th></th><th></th>';
echo '<th>' . $LangUI->_('Recipe Name') . '</th>';
echo '<th>' . $LangUI->_('Required') . getHelpLink("related_recipes_required") . '</th>';
echo '</tr></thead>';
echo '<tbody class="content">';
// Loop/Section to add related recipes to this recipe
for ($i = 0; $i < $total_related; $i++) {
    $related_id = "";
    $related_required = "";
    $recipe_name = "";
    // Read data from the DB while it is there
    if ($i < $p) {
        // Fill in a drop down for a entry that already exists
        $related_id = $related->fields['related_child'];
        $recipe_name = $related->fields['recipe_name'];
        $related_required = $related->fields['related_required'] == $DB_LINK->true ? 'checked' : '';
        $related->MoveNext();
    }
Example #2
0
">
<?php 
        echo $LangUI->_('Scale this recipe to');
        ?>
 
<input type="text" name="recipe_scale" size="2" value="<?php 
        echo $recipe_scale;
        ?>
">
        <?php 
        echo $LangUI->_('Servings') . " " . getHelpLink("scale_recipe");
        ?>
<input type=submit value="<?php 
        echo $LangUI->_('Refresh');
        ?>
" class="button">
</form>
<?php 
    } else {
        echo $LangUI->_('Scale this recipe') . getHelpLink("scale_recipe");
    }
    ?>
<p>
<?php 
    if ($show_ratings) {
        include "modules/recipes/view_review.php";
    }
}
?>
<div id="emailRecipeDialog"></div>