Example #1
0
function show_recette($r)
{
    global $PANIER;
    ?>
<a id="recette-<?php 
    echo $r['id'];
    ?>
" class="recette-el" href="recette-<?php 
    echo $r['id'] . '-' . txt2url($r['titre']);
    ?>
.html" style="background: url(images/<?php 
    echo $r['id'];
    ?>
.jpg) no-repeat center center; background-size: 100%;">
			<div class="infos">
				<div class="details fltr"><?php 
    echo '<img src="style/time11.png" alt="" /> ' . get_time($r['duree']) . ' &nbsp; <img src="style/pers11.png" alt="Pour " /> ' . $r['personnes'];
    ?>
</div>
				<div class="stars"><div class="stars_full" style="width: <?php 
    echo $r['note'] / 2 * 12;
    ?>
px"></div></div>
				<div class="titre"><?php 
    echo $r['titre'];
    ?>
</div>
			</div>
			<div class="cart"><?php 
    if (isset($PANIER[$r['id']])) {
        for ($i = 1; $i <= $PANIER[$r['id']]; $i++) {
            ?>
<img src="style/ok25.png" alt="ok"  onclick="return rem(<?php 
            echo $r['id'];
            ?>
,this)" /><?php 
        }
    }
    ?>
				<img class="cart-add" src="style/add25.png" alt="+" onclick="return add(<?php 
    echo $r['id'];
    ?>
)" />
			</div>
			<img src="style/transp.png" class="transp" />
		</a><?php 
}
Example #2
0
		<div class="desc">
			<textarea id="i_description" name="description"><?php 
echo htmlspecialchars($T['recette']['description']);
?>
</textarea>
		</div>
		
		<div class="boutons">
			<?php 
if ($T['recette']['id']) {
    ?>
<a href="recette-<?php 
    echo $T['recette']['id'];
    ?>
-<?php 
    echo txt2url($T['recette']['titre']);
    ?>
.html"><img src="style/back35.png" alt="Back" /></a><?php 
}
?>
			<?php 
if ($T['recette']['id']) {
    ?>
<a href="editer-<?php 
    echo $T['recette']['id'];
    ?>
.html?del" onclick="return confirm('Voulez-vous supprimer cette recette ?');"><img src="style/trash35.png" alt="Del" /></a><?php 
}
?>
			
			<input type="hidden" id="i_id" name="id" value="<?php