IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Ameliorer formulaire commande


Sujet :

Langage PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    348
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2009
    Messages : 348
    Par défaut Ameliorer formulaire commande
    bonjour a tous
    avec l aide de membre j ai crée un formulaire de commande en php

    qui est celui ci

    http://les-perles.comze.com/les-perl...de270613NV.php


    pour l instant quand le client clic sur commander dans le fond il est dirige vers une une unique page


    comme vous pouvez le voir dans le fond de la page j ai 3 méthodes différents de paiement
    est il possible que suivant le choix que le client fait qu il soit dirige après avoir cliquer sur commander

    Soir vers une page de paiement en virement
    soit vers de page de paiement par pyapal
    soit vers une page de paiement en visa

    un grand merci pour l aide

  2. #2
    Rédacteur/Modérateur
    Avatar de andry.aime
    Homme Profil pro
    Inscrit en
    Septembre 2007
    Messages
    8 391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Ile Maurice

    Informations forums :
    Inscription : Septembre 2007
    Messages : 8 391
    Par défaut
    Bonjour,

    Avec du javascript, dans le onsubmit du form, tu appelles une fonction qui modifie son attribut action selon la page voulu.

    A+.

  3. #3
    Membre Expert
    Homme Profil pro
    Inscrit en
    Septembre 2009
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Septembre 2009
    Messages : 875
    Par défaut
    Perso je trouve ca plus propre de diriger vers une seule action de traitement de formulaire, qui elle, s'occupe de rediriger vers une de tes trois pages suivant le bouton cliqué.

    C'est mieux pour gérer les erreurs de validation, et pas besoin de javascript crado

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    348
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2009
    Messages : 348
    Par défaut
    bonsoir a tous
    merci pour les reponses

    Pourrais je avoir un exemple svp
    merci

  5. #5
    Membre Expert
    Homme Profil pro
    Inscrit en
    Septembre 2009
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Septembre 2009
    Messages : 875
    Par défaut
    avec trois bouton différents
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <input type="submit" name="name_submits" value="1"/>  
    <input type="submit" name="name_submits" value="2"/>  
    <input type="submit" name="name_submits" value="3"/>

    tu peux récupérer la valeur du bouton cliqué par

  6. #6
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    348
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Mars 2009
    Messages : 348
    Par défaut
    bonjour
    encore merci pour la solution d hier
    a présent j essaye de l intégrer a mon formulaire , mais j ai un soucis avec le choix des articles lorsque j en choisis un , le prix ne s affiche plus

    voir ce lien

    http://talon-aiguille.net46.net/essaivisamodifie.php (fichier non modifier)

    voila ce que j ai modifie
    j ai remplace

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    if(isset($_POST['sub']) && $_POST['sub']==="Precommander") {
    par ceci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    if (isset($_POST["envoyer"])) {
    				if ($_POST["sex"] == "homme") {
    					header("Location:  http://www.pcastuces.com/logitheque/telechargement.asp?num=1359");
     
    				}elseif ($_POST["sex"] == "femme") {
    					header("Location:  http://www.pcastuces.com");
     
    				}
    ensuite j ai remplacer

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     <form id="F_COMMANDE" action="http://talon-aiguille.net46.net/essaivisamodifie.php" onSubmit="return Verifie(this)" method="post">
    par ceci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <form action="<?= $_SERVER['PHP_SELF']; ?>" method="post">
    et pour finir j ai remplacé ceci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input type="submit" value="Precommander" name="sub">
    par ceci

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <label>sex</label>
    			<select name="sex">
    				<option value="homme">Homme</option>
    				<option value="femme">Femme</option>
    			</select><br/><br/>
    			<input type="submit" name="envoyer" value="envoyer"/>
    et voici le code complet non modifie

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    <?php
    /*ton script doit etre sur un hebergeur qui supporte le php 5 de préférence*/
     
    /*remplace mailbidon@free.fr entre les doubles guillemets*/
    $tonemail="talonaiguille.be@gmail.com"; /**/
     
    /*à toi de définir ta page de retour aprés envoi du mail*/
    $site="http://talonaiguille.canalblog.com/"; 
     
    /*pas toucher*/
    $headers  = "From: <$tonemail>\n";
    $headers .= "Reply-To: $tonemail\n";
    $headers .= "MIME-version: 1.0\n";
    $headers .= "Content-type: text/html; charset= iso-8859-1\n";
     
    $message="";
     
    $sujet = "Commande depuis mon site http://???"; /*si tu veux mettre quelque chose*/
     
     
    if(isset($_POST['sub']) && $_POST['sub']==="Precommander") {
     
    $mode_envoi = "La Poste"; //vaut la poste sauf ...
    if($_POST['envoi'] == 0) $mode_envoi = "Kiala"; //si kiala a ete choisi(poste.envoi=0)
     
     
    $message.='<br> Un client a passe commande. Voici le recapitulatif du bon de commande : <br><br>
    nom : '.$_POST["nom"].'<br>
    prenom : '.$_POST["prenom"].' <br>
    email : '.$_POST["email"].' <br>
    adresse : '.$_POST["adresse"].' <br>
    code postal : '.$_POST["code_postal"].' <br>
    numero de telephone : '.$_POST["telephone"].' <br>
    ville : '.$_POST["ville"].' <br>
    pays : '.$_POST["pays"].' <br>
    point kiala : '.$_POST["ppoint_kiala"].' <br>
    <br>
    ----------------------------------<br>
    Articles commandes : <br>
    ----------------------------------<br>
    <br>
    <b>Article 1</b> <br>
    nom : '.$_POST["NomArticle1"].' <br>
    prix unitaire : '.$_POST["Prix1"].' <br>
    quantite : '.$_POST["Quant1"].' <br>
    <i>montant : '.$_POST["Montant1"].' </i><br>
    
    <br><b>Article 2</b> <br>
    nom : '.$_POST["NomArticle2"].' <br>
    prix unitaire : '.$_POST["Prix2"].' <br>
    quantite : '.$_POST["Quant2"].' <br>
    <i>montant : '.$_POST["Montant2"].' </i><br>
    
    
    <br>
    mode d\'envoi : '.$mode_envoi.'<br>
    frais de port : '.$_POST["prix_port"].'<br>
    <br>
    <b>----------------------------------</b><br>
    <b>Le client payera au total '.$_POST["MontantTotal"].' euro. </b><br>
    <b>----------------------------------</b><br>';
        $message.="<hr>Le ".date('d-m-Y H:i:s')." par ip du client  : ".$_SERVER['REMOTE_ADDR']."<hr>";
     
        if(mail($tonemail,$sujet,$message,$headers)){
     
     
        echo '
    	<br><center><b><h2>site talon aiguille.</h2></b> </center><br>
    	<br><center><b><h3>vous recevrez d ici peu , un mail de confirmation ,avec le numero de compte pour le virement .</h3></b> </center><br>
    	
    
    
    
    
    	
    	';
    /******* Vérification
    foreach( $send as $value )
      echo $value . '<br />';
    ********/
     
     
        //$site="http://talonaiguille.canalblog.com/"; /*à toi de définir ta page*/
     
       // echo '<br><center><b><h2>Pour revenir au site  <a href="'.$site.'" >ici</a></h2></b></center> ';
     
        exit;
        }else{
        echo 'PROBLEME FONCTION MAIL PHP';exit;
        }
     
     
    }else{
    }
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <head>
     
    <style type="text/css">
      body {
        color: purple;
        background-color: #BCBCBC }
     
    	#chaussures {
            height: 275px;
            text-align: center;
            background-color: #F2C7F3;
             margin-left: auto;
            margin-right: auto;
      }
    #titre {
            color: #FFFFFF;
            height: 25px;
            text-align: center;
            background-color: #D9348F;
             margin-left: auto;
            margin-right: auto;
      }
     
     
     
    	</style>
     
        <title>Formulaire</title>
     
        <script type="text/javascript">
        var plus_frais_de_port = false;
        var iPrix = 0;
        function AjouteVirgule(nombre, nb_decimal)
        {
          var num = Number(nombre);
          var AvecVirgule = num.toFixed(nb_decimal);
          return AvecVirgule;
        }
     
       var T_article = new Array(); // table des choses
       T_article[0] = new Array(  "0.00", "0.000" );
       T_article[1] = new Array("13.99", "0.900" ); // Pointure35_A001
       T_article[2] = new Array("12.99", "0.900" ); // Pointure35_A006
       T_article[3] = new Array( "12.99", "0.900" ); // Pointure35_A008
     
       function Calcule()
       {
         form=document.getElementById("F_COMMANDE" );
     
         // Calcul les montants
         Selection = form.Article1.selectedIndex;
         form.NomArticle1.value=form.Article1.options[Selection].text;
         NoArticle=form.Article1.options[Selection].value;
         // alert("1. NoArticle="+NoArticle);
         PrixArticle=T_article[NoArticle][0];
         form.Prix1.value=AjouteVirgule(PrixArticle,2);
         // alert("2. PrixArticle="+PrixArticle);
         Selection = form.Quant1.selectedIndex;
         Stotal1 = form.Quant1.options[Selection].value * form.Prix1.value;
         form.Montant1.value = AjouteVirgule(Stotal1,2);
     
         Selection = form.Article2.selectedIndex;
         form.NomArticle2.value=form.Article2.options[Selection].text;
         NoArticle=form.Article2.options[Selection].value;
         PrixArticle=T_article[NoArticle][0];
         form.Prix2.value=AjouteVirgule(PrixArticle,2);
          Selection = form.Quant2.selectedIndex;
         Stotal2 =form.Quant2.options[Selection].value * form.Prix2.value;
         form.Montant2.value = AjouteVirgule(Stotal2,2);
     
     
     
         Total =(Stotal1+Stotal2);
         if(plus_frais_de_port == true) Total = Total + iPrix;
         form.MontantTotal.value = AjouteVirgule(Total,2);
     
         // Calcul les poids
         Selection = form.Article1.selectedIndex;
         NoArticle=form.Article1.options[Selection].value;
         Selection = form.Quant1.selectedIndex;
         Stotal1 = form.Quant1.options[Selection].value * T_article[NoArticle][1];
         form.Poids1.value = AjouteVirgule(Stotal1,3);
     
         Selection = form.Article2.selectedIndex;
         NoArticle=form.Article2.options[Selection].value;
         Selection = form.Quant2.selectedIndex;
         Stotal2 = form.Quant2.options[Selection].value * T_article[NoArticle][1];
         form.Poids2.value = AjouteVirgule(Stotal2,3);
     
     
     
    Total =(Stotal1+Stotal2);
     
     
         form.PoidsTotal.value = AjouteVirgule(Total,3);
       }
     
         function majPrixPort(oForm)
    {
         Calcule();
      var iPoids = parseFloat(oForm.PoidsTotal.value);
     
        if(oForm.envoi[0].checked) // si "la poste" est cochée
        {
          iPrix = 6;
          if (iPoids > 2) iPrix = 10;
        }else if(oForm.envoi[1].checked)
        { // si "kiala" est coché
            iPrix = 4; // frais de port = 4€
          var nombre_total_article = parseInt(oForm.Quant1.options[oForm.Quant1.selectedIndex].value) + parseInt(oForm.Quant2.options[oForm.Quant2.selectedIndex].value) ;
          if(nombre_total_article > 2) iPrix = 0; //sauf si il y a plus de 2 articles, alors c'est gratuit
        }else
        {
              iPrix = 0;
        }
     
        AjouteVirgule(iPrix,3);
        oForm.prix_port.value = iPrix;
        plus_frais_de_port = true;
        Calcule();
    }
        function Verifie(aBC)
       {
       if(aBC.nom.value == ""){
            alert('Vous n\'avez pas renseign\351 votre nom.');
            return false;
       }else if(aBC.prenom.value == ""){
            alert('Vous n\'avez pas renseign\351 votre prenom.'); 
            return false;
       }else if(aBC.adresse.value == ""){
            alert('Vous n\'avez pas renseign\351 votre adresse.'); 
            return false;
       }else if(aBC.code_postal.value == ""){
            alert('Vous n\'avez pas renseign\351 votre code postal.'); 	
            return false;
       }else if(aBC.ville.value == ""){
            alert('Vous n\'avez pas renseign\351 votre ville .'); 	
            return false;
       }else if(aBC.telephone.value == ""){
            alert('Vous n\'avez pas renseign\351 votre numero de telephone .'); 		
            return false;
       }else if(aBC.pays.value == ""){
            alert('Vous n\'avez pas renseign\351 votre pays.');
            return false;
       }else if(aBC.email.value == ""){
            alert('Vous n\'avez pas renseign\351 votre email.'); return false;
       }else{
         var regMail = new RegExp('^[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|-]{1}[a-z0-9]+)*[\.]{1}[a-z]{2,6}$', 'i');
         // var regCP = /^[0-9]{4}$/; //Vérif code postal benelux
         if(regMail.test(aBC.email.value))
    	 {
    		return true;
    	 }else
    	 {
            alert('Vous devez renseign\351 une adresse e-mail corecte.');
    		return false;
    	 }
     
         /*if(regCP.test(aBC.email.value)) ///////////Verif Code Postal Benelux
        {
            return true;
        }else
        {
            alert('Vous devez renseign\351 un Code postal correct !');
            document.ex.cp.focus();
            return false;
        }*/
       }
         }
       </SCRIPT>
       <META content="text/html; charset=windows-1252" http-equiv="Content-Type">
    </head>
       <BODY background="Bon de commande JAVASCRIPT (Copyright Crash Computing 2011)_fichiers/index.htm" bgcolor="#008000">
     
     
     
        <CENTER>
     
        <table width="580" height="150" cellspacing="1" border="1">
        <tbody>
        <tr>
     
    	   <form id="F_COMMANDE" action="http://talon-aiguille.net46.net/essaivisamodifie.php" onSubmit="return Verifie(this)" method="post">
     
    		<th width="580" height="23" bgcolor= #f7dfff align="center" colspan="4"><font color="noir"> BON DE COMMANDE </font></th>
     
     
     
     
     
        </tr>
        <tr>
            <th width="580" height="23" bgcolor=#EBE0EF align="center" colspan="4"><font color="noir">Veuillez entrer vos coordonnees </font></th>
        </tr>
    	<tr>
            <td width="230" height="24" bgcolor=#ffffff><font color="noir">Nom</font></td>
            <td width="350" height="24" bgcolor=#ffffff colspan="3"><input size="40" name="nom"><img align="absmiddle" id="nom_ife_marker_0" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
    	<tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Prenom</font></td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="prenom"><img align="absmiddle" id="prenom_ife_marker_1" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="33" bgcolor=#ffffff><font color="noir">Adresse E-mail</font></td>
            <td width="330" height="33" bgcolor=#ffffff colspan="3"><input value="@" size="33" name="email"><img align="absmiddle" id="email_ife_marker_2" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Adresse</font></td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="adresse"><img align="absmiddle" id="adresse_ife_marker_3" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Code postal</font> </td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="code_postal"><img align="absmiddle" id="code_postal_ife_marker_4" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Numero de téléphone </font></td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="telephone"><img align="absmiddle" id="telephone_ife_marker_5" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Ville</font></td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="ville"><img align="absmiddle" id="ville_ife_marker_6" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Pays</font></td>
            <td width="330" height="24" bgcolor="#ffffff" colspan="3"><b>BELGIQUE </b>uniquement</td>
        </tr>
        <tr>
            <td width="250" height="24" bgcolor=#ffffff><font color="noir">Votre point kiala (si par poste ne pas remplir)</font> <br><a target="_blank" href="http://www.kiala.be/fr/locateandselect">Pour le trouver cliquer ici </a> </td>
            <td width="330" height="24" bgcolor=#ffffff colspan="3"><input size="34" name="ppoint_kiala"><img align="absmiddle" id="ppoint_kiala_ife_marker_8" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
        <tr>
            <th width="580" height="15" bgcolor= #f7dfff align="center" colspan="4"><font size="4"><font color="noir">Choisissez un article et saisissez une Quantite</font></th>
        </tr>
        <tr bgcolor="#ffffcc">
            <th width="230" height="23" bgcolor=#ffffff><font color="noir">Article</font></th>
            <th width="110" height="23" bgcolor=#ffffff><font color="noir">Prix</font></th>
            <th width="25" height="23" bgcolor=#ffffff><font color="noir">Qte</font></th>
            <th width="00" height="23" bgcolor=#ffffff><font color="noir">Montant</font></th>
        </tr>
        <tr>
    	    <td width="230" height="46" bgcolor=#ffffff align="left">1<select size="1" onchange="majPrixPort(this.form);" name="Article1">
            <option value="0" selected=""></option>
    		<option value="1">Pointure35_A001</option>
            <option value="2">Pointure35_A006</option>
            <option value="3">Pointure35_A008</option>
     
            </select></td>
            <td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Prix1"><img align="absmiddle" id="Prix1_ife_marker_9" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"> </td>
            <td width="25" height="46" bgcolor=#ffffff><select onchange="majPrixPort(this.form);" name="Quant1"><option selected="" value="0"></option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
     
            </select>
            <input type="hidden" value="MODELE_001" name="NomArticle1">
    		</td>
     
            <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant1"><img align="absmiddle" id="Montant1_ife_marker_10" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"> </td>
    	</tr>
        <tr>
    		<td width="250" height="46" bgcolor=#ffffff align="left">2<select size="1" onchange="majPrixPort(this.form);" name="Article2">
            <option value="0" selected=""></option>
    		<option value="1">Pointure35_A001</option>
            <option value="2">Pointure35_A006</option>
            <option value="3">Pointure35_A008</option>
     
            </select> </td>
     
    		<td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font><input size="7" onchange="majPrixPort(this.form);" name="Prix2"><img align="absmiddle" id="Prix2_ife_marker_11" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"> </td>
    		<td width="25" height="46" bgcolor=#ffffff><select onchange="majPrixPort(this.form);" name="Quant2">
              <option selected="" value="0"></option>
              <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
     
            </select>
    		<input type="hidden" value="MODELE_001" name="NomArticle2">
    		</td>
    		<td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant2"><img align="absmiddle" id="Montant2_ife_marker_12" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"> </td>
    	</tr> 
     
    	<tr bgcolor="#ffffcc"><td width="461" height="29" bgcolor= #f7dfff align="center" colspan="3"><font color="noir">Frais de port avec kiala :<b>Gratuit</b><font color="red"><b>     si plus de deux paires </b></font></font></td>
    		<td height="29" bgcolor=#ffffff align="right">0.00 </td>
        </tr>
    	<tr bgcolor="#ffffcc">
    		<td width="461" height="49" bgcolor=#ffffff align="center" colspan="3"><font color="noir">Choississez votre mode de livraison :</font><br><br><label for="by_poste"><input type="radio" onclick="majPrixPort(this.form);" value="1" name="envoi" id="by_poste"><font color="noir">par la poste 6 euros<font color="red">(si le poids depasse 2 kilos alors 10 euros)</font></font></label><br><br><label for="by_kiala"><input type="radio" onclick="majPrixPort(this.form);" value="0" name="envoi" id="by_kiala" checked="checked"><font color="noir">par kiala 4 euros <font color="red">(si achat plus de 2 paires GRATUIT)</font ></font></label> <br><br></td>
    		<td height="29" bgcolor=#ffffff align="right"><input type="text" value="" size="7" name="prix_port"><img align="absmiddle" id="prix_port_ife_marker_23" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
    	<tr>
    		<td height="1" bgcolor="#EDFF4F" align="center" colspan="3"><b><font size="2"><font color="noir">NET A PAYER</font></font></b> </td>
    		<td height="1" bgcolor=#ffffff align="right"><font size="3">€</font> <input align="right" size="8" onchange="majPrixPort(this.form);" name="MontantTotal"><img align="absmiddle" id="MontantTotal_ife_marker_24" src="chrome://informenter/skin/marker.png" class="ife_marker" style="border: 0pt none; width: 14px; height: 19px; cursor: pointer; display: inline;" title="La longueur du champ est inconnue"></td>
        </tr>
     
          <tr>
    		<td width="580" height="27" bgcolor=#ffffff align="center" colspan="4"><input type="reset" value="Reset"> <br><input type="button" value="Recalcul" onclick="majPrixPort(this.form);"> <!-- <INPUT TYPE="button" VALUE="Vérification"  ONCLICK="Verifie(this.form)">  --> </td>
    	</tr>
     
    <TR>
    	<TD colspan="4"bgcolor= #f7dfff><center><font color="noir">Une question ou un commentaire</font></center></TD> 
    </tr>
    <TR>
    	<TD colspan="4" bgcolor=#ffffff>
    	<center><TEXTAREA rows="5" cols="60"name="commentaires">Poster votre question ou votre question ici</TEXTAREA></center>
    	</TD>
    </TR>
    	</tbody>
    	    <input type="hidden" name="Poids1">
    		<input type="hidden" name="Poids2">
     
            <input type="hidden" name="PoidsTotal">
        </table>
    		<input type="submit" value="Precommander" name="sub">
        </form>
       </CENTER>
       </BODY>
       </HTML>

Discussions similaires

  1. [AC-2003] Besoin d'un conseil sur formulaire "commande" "Bon livraison"
    Par revemane dans le forum IHM
    Réponses: 1
    Dernier message: 26/03/2012, 21h59
  2. Réponses: 0
    Dernier message: 11/04/2008, 10h33
  3. [HTML] formulaire commande et contact
    Par zoneo dans le forum Balisage (X)HTML et validation W3C
    Réponses: 9
    Dernier message: 14/02/2008, 18h53
  4. Modification du Prix sans modifier le formulaire commande
    Par jlecordier dans le forum Access
    Réponses: 3
    Dernier message: 26/06/2007, 16h46
  5. Réponses: 7
    Dernier message: 02/03/2006, 14h58

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo