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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
| $titreAlbum ='';
foreach($res as $produit)
{
$id = $produit->id;
$nom = $produit->nom;
$poids = $produit->poids;
$titreAlbum .= '<tr><td><input type="text" name="'. $id .'" value="'. $nom .'"></td>
<td><input type="text" name="nb_ex_'.$id.'" class="nb_ex" value="0" id="nb_ex_'.$id.'" onkeyup="calcul(\'nb_ex_'.$id.'\',\'total_'.$id.'\',\'pu_'.$id.'\',\'stotal\',\'total\',\'poids_'.$id.'\',\'totalport\',\'frais_port\');" style="width:50px;"/></td>
<td><input type="text" readonly name="pu_'.$id.'" class="pu" id="pu_'.$id.'" value="7.00" style="width:50px; background:none; border:none "/></td>
<td><input type="text" readonly name="total_'.$id.'" class="total_ligne" id="total_'.$id.'" value="0" style="width:50px; background:none; border:none;"/> </td>
<td><input type=text name="poids_'.$id.'" id="poids_'.$id.'" style=width:50px; disabled=disabled> </td>
<td><input type=hidden name="totalport" id="totalport" style=width:50px; disabled=disabled> </td>
<td><input type=hidden name="totaux" id="totaux" style=width:50px; disabled=disabled> </td>';
}
<div id="conteneur_global">
<h1>Mise à disposition en ligne</h1>
<p>
<p>
<div id="form_commande">
<form method="post">
<center> <img width="100px" src="http://dev.pisoft.fr/espacequiconte2/img/logo_saloppette.png" class="logo" /></center>
<div id="presentation">
<h1 style="font-size:22px; margin-bottom:0px;">Collection Salopette</h1>
<h2 style="font-size:16px; margin-top:0px;">A lire
Tout simplement</h2>
<p>
(Auteur-Editeur non assujetti à la TVA)<br/>
Prix dun album = 7 euros<br/>
+ Frais de port :
</p>
<ul>
<li>De 1 à 3 albums : 1.40 euros</li>
<li>De 4 à 5 albums : 2.30 euros</li>
</ul>
</div>
<h1 class="titre_form">Mise à disposition</h1>
<hr/>
<table border=1 id="matable">
<tr>
<th>Désignation</th>
<th>Nb ex.</th>
<th>PU en </th>
<th>Total</th>
<th>Poids</th>
</tr>
<tr>
'.$titreAlbum.'
</tr>
<tr id="fin_ligne_commande">
<td colspan="2"></td>
<td>Sous-total</td>
<td><input type="text" name="stotal" readonly class="stotal" id="stotal" style="width:50px; background:none; border:none;"/> </td>
</tr>
<tr>
<td colspan="2"></td>
<td>Frais de port</td>
<td><input type="text" name="fp" readonly class="fp" id="frais_port" style="width:50px; background:none; border:none;"/> </td>
</tr>
<tr>
<td colspan="2"></td>
<td>Total</td>
<td><input type="text" readonly name="total" class="total" id="total" style="width:50px; background:none; border:none;"/> </td>
</tr>
</table>
<h1 class="titre_form">Coordonnées de livraison</h1>
<hr/>
<table>
<tr>
<td class="label">Nom :</td>
<td colspan="3" class="col_champ" style="width:150px;"><input type="text" name="first_name" style="width:150px;" /></td>
<td class="label" style="width:60px;padding-left:10px;">Prénom :</td>
<td class="col_champ"><input type="text" name="last_name" style="width:188px;" /></td>
</tr>
<tr>
<td class="label">Adresse ligne 1 :</td>
<td colspan="5" class="col_champ"><input type="text" name="address1" style="width:415px;" /></td>
</tr>
<tr>
<td class="label">Adresse ligne 2 :</td>
<td colspan="5" class="col_champ"><input type="text" name="address2" style="width:415px;" /></td>
</tr>
<tr>
<td class="label">Code postal :</td>
<td class="col_champ" style="width:40px;"><input type="text" name="zip" style="width:50px;" /></td>
<td class="label" style="width:50px;">Ville :</td>
<td colspan="3" class="col_champ"><input type="text" name="city" style="width:263px;" /></td>
</tr>
<tr>
<td class="label">E-mail :</td>
<td colspan="5" class="col_champ"><input type="text" name="email" style="width:415px;" /></td>
</tr>
</table>
</form> |
Partager