1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
| <?php
echo "<form name='ref' action='panier.php' method='post'>";
echo '<input type="hidden" value="2" name="opt">';
echo "<table width='100%' cellspacing='0' cellpadding='5' class='tabIndex'>";
echo "<tr><td></td><td></td><td><i>emporté <br />(prix TTC)</i></td><td><i>livré <br />(prix TTC)</i></td></tr>";
echo "<tr></tr>";
echo "<tr><td><strong>Salés Froids</strong></td></tr>";
$i=0;
$req = mysql_query("SELECT * FROM repas WHERE choix = 'FR' ORDER BY type ");
$total = mysql_num_rows($req);
$type="";
while($val=mysql_fetch_array($req)){
echo "<input type='hidden' name='choix' value='".$val['choix']."' />";
if($type!=$val['type']){
echo "<tr bgcolor='#9CD967'><td>".$val['type']."</td><td></td><td></td><td></td><td></td></tr><tr>";
$type=$val['type'];
}
echo "<tr>";
echo "<td></td>";
if(file_exists("../../Images-cocci/bouchee/".$val['id'].".JPG")){
$size = getimagesize("../../Images-cocci/bouchee/".$val['id'].".JPG");
$width = ($size[0]+20)/2;
$height = ($size[1]+4)/2;
$id=$val['id'];
echo "<td align='left'>";
?>
<a href='javascript:; onclick= imageG("../../Images-cocci/bouchee/<? echo $val['id']; ?>.JPG")'>
<?
echo $val['nom'];
echo "</a>";
}
else{
echo "<td align='left'>".$val['nom'];
}
echo "</td><td width='100px'>";
echo "<input type='checkbox' value='1' name='checke' >";
echo "<input type='hidden' value='".$val['emporte']."' name='prix_emporte[]'>";
echo $val['emporte']." € </td><td width='100px'>";
echo"<input type='checkbox' value='1' name='checkl'>";
echo "<input name='prix_livre[]' type='hidden' value='".$val['livre']."' >";
echo $val['livre']." €";
echo "</td><td align='right'>";
echo "<input name='quantite[]' type='text' value='0' size='3' /></td>";
echo "<input name='produits[]' type='hidden' value='".$val['nom']."' >";
$i++;
echo "</tr>";
}
//echo "<tr><td>Commentaire : <input type='text' name='commentaire'></td></tr>";
echo "</table><br /><br />";
echo "<input type='submit' name='valider' value='Valider'><input type='hidden' name='ajout' value='ok' onClick='ref.submit();'/>";
echo "</center>";
echo "</form>";
?> |
Partager