aide pour modifier un code php
Hors ligneFlexi Le 29/05/2013 à 10:24 Profil de Flexi Configuration de Flexi

bonjour a tous
il y a quelques années un membre m avait aider pour faire un bon de commande en php
ce jour j aurais aimer garder le même schéma mais ajouter des fonctions
la personne m avait fait cela vraiment d une façon géniale
j aurais donc souhaiter en gardant la même optique
un tout grand merci pour l aide et bravo pour votre forum

ajouter ceci
dans les frais de port
avoir un menu accordéon permettant de choisir
la France
la Belgique

une fois le menu accordéon ouvert sur la france

4 choix d envois sont a disposition
*******par la poste******
---pour plus de 12 perles envois GRATUIT
---pour moins de 12 perles 1 euros de frais d envois
***********par kiala*******
---pour moins de 12 perles 3 euros
---pour plus de 12 perles 2 euros

faire la même chose pour la belgique

voici le code

[php]

<?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="t@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><b>Article 3</b> <br>
nom : '.$_POST["NomArticle3"].' <br>
prix unitaire : '.$_POST["Prix3"].' <br>
quantite : '.$_POST["Quant3"].' <br>
<i>montant : '.$_POST["Montant3"].' </i><br>

<br><b>Article 4</b> <br>
nom : '.$_POST["NomArticle4"].' <br>
prix unitaire : '.$_POST["Prix4"].' <br>
quantite : '.$_POST["Quant4"].' <br>
<i>montant : '.$_POST["Montant4"].' </i><br>

<br><b>Article 5</b> <br>
nom : '.$_POST["NomArticle5"].' <br>
prix unitaire : '.$_POST["Prix5"].' <br>
quantite : '.$_POST["Quant5"].' <br>
<i>montant : '.$_POST["Montant5"].' </i><br>

<br><b>Article 6</b> <br>
nom : '.$_POST["NomArticle6"].' <br>
prix unitaire : '.$_POST["Prix6"].' <br>
quantite : '.$_POST["Quant6"].' <br>
<i>montant : '.$_POST["Montant6"].' </i><br>

<br><b>Article 7</b> <br>
nom : '.$_POST["NomArticle7"].' <br>
prix unitaire : '.$_POST["Prix7"].' <br>
quantite : '.$_POST["Quant7"].' <br>
<i>montant : '.$_POST["Montant7"].' </i><br>
<br>
----------------------------------<br>
Transport : <br>
----------------------------------<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>Nous vous remercions pour votre commande qui a bien été enregistrée .</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
   T_article[4] = new Array("12.99", "0.900" ); // Pointure35_A009
   T_article[5] = new Array( "12.99", "0.900" ); // Pointure35_A011
   T_article[6] = new Array("13.99", "0.900" ); // Pointure35_A012
   T_article[7] = new Array("12.99", "0.900" ); // Pointure35_A015
   
 
   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);
    
      Selection = form.Article3.selectedIndex;
     form.NomArticle3.value=form.Article3.options[Selection].text;
     NoArticle=form.Article3.options[Selection].value;
     PrixArticle=T_article[NoArticle][0];
     form.Prix3.value=AjouteVirgule(PrixArticle,2);
     Selection = form.Quant3.selectedIndex;
     Stotal3 = form.Quant3.options[Selection].value * form.Prix3.value;
     form.Montant3.value = AjouteVirgule(Stotal3,2);

     Selection = form.Article4.selectedIndex;
     form.NomArticle4.value=form.Article4.options[Selection].text;
     NoArticle=form.Article4.options[Selection].value;
     PrixArticle=T_article[NoArticle][0];
     form.Prix4.value=AjouteVirgule(PrixArticle,2);
     Selection = form.Quant4.selectedIndex;
     Stotal4 = form.Quant4.options[Selection].value * form.Prix4.value;
     form.Montant4.value = AjouteVirgule(Stotal4,2);

     Selection = form.Article5.selectedIndex;
     form.NomArticle5.value=form.Article5.options[Selection].text;
     NoArticle=form.Article5.options[Selection].value;
     PrixArticle=T_article[NoArticle][0];
     form.Prix5.value=AjouteVirgule(PrixArticle,2);
     Selection = form.Quant5.selectedIndex;
     Stotal5 = form.Quant5.options[Selection].value * form.Prix5.value;
     form.Montant5.value = AjouteVirgule(Stotal5,2);

     Selection = form.Article6.selectedIndex;
     form.NomArticle6.value=form.Article6.options[Selection].text;
     NoArticle=form.Article6.options[Selection].value;
     PrixArticle=T_article[NoArticle][0];
     form.Prix6.value=AjouteVirgule(PrixArticle,2);
     Selection = form.Quant6.selectedIndex;
     Stotal6 = form.Quant6.options[Selection].value * form.Prix6.value;
     form.Montant6.value = AjouteVirgule(Stotal6,2);

     Selection = form.Article7.selectedIndex;
     form.NomArticle7.value=form.Article7.options[Selection].text;
     NoArticle=form.Article7.options[Selection].value;
     PrixArticle=T_article[NoArticle][0];
     form.Prix7.value=AjouteVirgule(PrixArticle,2);
     Selection = form.Quant7.selectedIndex;
     Stotal7 = form.Quant7.options[Selection].value * form.Prix7.value;
     form.Montant7.value = AjouteVirgule(Stotal7,2);


     Total =(Stotal1+Stotal2+Stotal3+Stotal4+Stotal5+Stotal6+Stotal7);
     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);
 
     Selection = form.Article3.selectedIndex;
     NoArticle=form.Article3.options[Selection].value;
     Selection = form.Quant3.selectedIndex;
     Stotal3 = form.Quant3.options[Selection].value * T_article[NoArticle][1];
     form.Poids3.value = AjouteVirgule(Stotal3,3);

     Selection = form.Article4.selectedIndex;
     NoArticle=form.Article4.options[Selection].value;
     Selection = form.Quant4.selectedIndex;
     Stotal4 = form.Quant4.options[Selection].value * T_article[NoArticle][1];
     form.Poids4.value = AjouteVirgule(Stotal4,3);

     Selection = form.Article5.selectedIndex;
     NoArticle=form.Article5.options[Selection].value;
     Selection = form.Quant5.selectedIndex;
     Stotal5 = form.Quant5.options[Selection].value * T_article[NoArticle][1];
     form.Poids5.value = AjouteVirgule(Stotal5,3);

     Selection = form.Article6.selectedIndex;
     NoArticle=form.Article6.options[Selection].value;
     Selection = form.Quant6.selectedIndex;
     Stotal6 = form.Quant6.options[Selection].value * T_article[NoArticle][1];
     form.Poids6.value = AjouteVirgule(Stotal6,3);

     Selection = form.Article7.selectedIndex;
     NoArticle=form.Article7.options[Selection].value;
     Selection = form.Quant7.selectedIndex;
     Stotal7 = form.Quant7.options[Selection].value * T_article[NoArticle][1];
     form.Poids7.value = AjouteVirgule(Stotal7,3);

Total =(Stotal1+Stotal2+Stotal3+Stotal4+Stotal5+Stotal6+Stotal7);


     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) + parseInt(oForm.Quant3.options[oForm.Quant3.selectedIndex].value) + parseInt(oForm.Quant4.options[oForm.Quant4.selectedIndex].value) + parseInt(oForm.Quant5.options[oForm.Quant5.selectedIndex].value) + parseInt(oForm.Quant6.options[oForm.Quant6.selectedIndex].value) + parseInt(oForm.Quant7.options[oForm.Quant7.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/commande.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>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</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>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</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>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</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>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</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>
        <td width="250" height="46" bgcolor=#ffffff align="left">3<select size="1" onchange="majPrixPort(this.form);" name="Article3">
        <option value="0" selected=""></option>
        <option value="1">Pointure35_A001</option>
        <option value="2">Pointure35_A006</option>
        <option value="3">Pointure35_A008</option>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</option>
        
        </select>
        </td>
        <td width="110" height="46" bgcolor=#ffffff align="center"><font size="">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Prix3"><img align="absmiddle" id="Prix3_ife_marker_13" 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="Quant3">
        <option selected="" value="0"></option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        
        </select>
        <input type="hidden" value="" name="NomArticle3">
        </td>
        <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant3"><img align="absmiddle" id="Montant3_ife_marker_14" 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">4<select size="1" onchange="majPrixPort(this.form);" name="Article4">
        <option value="0" selected=""></option>
        <option value="1">Pointure35_A001</option>
        <option value="2">Pointure35_A006</option>
        <option value="3">Pointure35_A008</option>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</option>
       
        </select>
        </td>
        <td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Prix4"><img align="absmiddle" id="Prix4_ife_marker_15" 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="Quant4">
        <option selected="" value="0"></option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
            
        </select>
        <input type="hidden" value="" name="NomArticle4">
        </td>
        <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant4"><img align="absmiddle" id="Montant4_ife_marker_16" 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">5<select size="1" onchange="majPrixPort(this.form);" name="Article5">
        <option value="0" selected=""></option>
        <option value="1">Pointure35_A001</option>
        <option value="2">Pointure35_A006</option>
        <option value="3">Pointure35_A008</option>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</option>
       
        </select>
        </td>
        <td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font><input size="7" onchange="majPrixPort(this.form);" name="Prix5"><img align="absmiddle" id="Prix5_ife_marker_17" 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="Quant5">
        <option selected="" value="0"></option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        
        </select>
        <input type="hidden" value="" name="NomArticle5">
        </td>
        <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant5"><img align="absmiddle" id="Montant5_ife_marker_18" 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">6<select size="1" onchange="majPrixPort(this.form);" name="Article6">
        <option value="0" selected=""></option>
        <option value="1">Pointure35_A001</option>
        <option value="2">Pointure35_A006</option>
        <option value="3">Pointure35_A008</option>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</option>
           
        </select>
        </td>
        <td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font><input size="7" onchange="majPrixPort(this.form);" name="Prix6"><img align="absmiddle" id="Prix6_ife_marker_19" 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="Quant6">
        <option selected="" value="0"></option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
           
        </select><input type="hidden" value="" name="NomArticle6">
        </td>
        <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant6"><img align="absmiddle" id="Montant6_ife_marker_20" 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">7<select size="1" onchange="majPrixPort(this.form);" name="Article7">
        <option value="0" selected=""></option>
        <option value="1">Pointure35_A001</option>
        <option value="2">Pointure35_A006</option>
        <option value="3">Pointure35_A008</option>
        <option value="4">Pointure35_A009</option>
        <option value="5">Pointure35_A011</option>
        <option value="6">Pointure35_A012</option>
        <option value="7">Pointure35_A015</option>
        
        </select>
        </td>
        <td width="110" height="46" bgcolor=#ffffff align="center"><font size="3">€</font><input size="7" onchange="majPrixPort(this.form);" name="Prix7"><img align="absmiddle" id="Prix7_ife_marker_21" 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="javascript:majPrixPort( this.form);" name="Quant7">
        <option selected="" value="0"></option>
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
       
        </select>
        <input type="hidden" value="" name="NomArticle7">
        </td>
        <td height="46" bgcolor=#ffffff align="center"><font size="3">€</font> <input size="7" onchange="majPrixPort(this.form);" name="Montant7"><img align="absmiddle" id="Montant7_ife_marker_22" 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="Poids3">
        <input type="hidden" name="Poids4">
        <input type="hidden" name="Poids5">
        <input type="hidden" name="Poids6">
        <input type="hidden" name="Poids7">
        <input type="hidden" name="PoidsTotal">
    </table>
        <input type="submit" value="Precommander" name="sub">
    </form>
   </CENTER>
   </BODY>
   </HTML>


[/php]

 

Vous avez résolu votre problème avec VIC ? Faites-le savoir sur les réseaux sociaux !
Vulgarisation-informatique.com
Cours en informatique & tutoriels