Exemplo n.º 1
0
	</div>
	
</div>

<div id="content">
	<div class="recette">
		<div class="left">
			<h2>Recette</h2>
			<?php 
echo $T['recette']['recette'];
?>
		</div>
		
		<div class="right">
			<h2>Ingredients</h2>
			<ul>
				<?php 
foreach ($T['ingredients'] as $i) {
    ?>
					<li><?php 
    echo get_mesure($i['mesure'], $i['unite'], $i['nom']);
    ?>
</li>
				<?php 
}
?>
			</ul>
		</div>
	</div>
	<div class="clear"></div>
</div>
Exemplo n.º 2
0
<div id="content">

<?php 
/* INGREDIENTS PANIER */
if (isset($T['panier'])) {
    ?>
<div id="panier-ingredients">
	<h1>Ingrédients</h1>
	<ul>
	<?php 
    foreach ($T['ingredients'] as $ingred => $unites) {
        foreach ($unites as $unite => $mesure) {
            ?>
		<li><?php 
            convertir_mesure_adapte($mesure, $unite);
            echo get_mesure($mesure, $unite, $T['all_ingredients'][$ingred]);
            ?>
</li>
	<?php 
        }
    }
    ?>
	</ul>
</div>

<div id="panier-recettes">
	<?php 
}
/* LISTE RECETTES */
function show_recette($r)
{