'.$sql_trn.'
'.mysql_error()); $aff_trn = mysql_fetch_array($ret_trn); $sql_client = "SELECT * FROM c5ms_user WHERE id_user='".$_SESSION['UID']."'"; $ret_client = mysql_query($sql_client) or die('Erreur SQL !
'.$sql_client.'
'.mysql_error()); $aff_client = mysql_fetch_array($ret_client); $trn_install = $aff_trn['id_hote']; // ---- GENERE LE NUMERO DE DEVIS ----// $id_devis = c5ms_genDevis(); if($sid) { $type = 301; } else { $type = 30; } if($sid){$distrib = $sid;}else{$distrib = $distrib;} // ---- INSERTION INDEX DANS LA BDD --- // $sql_insert_c5ms_index = "INSERT INTO c5ms_index ( id_user, id_devis, etat_devis, date, etat ) VALUES ( '".$_SESSION['UID']."', '".$id_devis."', '1', '".$date."', '".$type."' )"; $req[] = $sql_insert_c5ms_index; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'HSTR-5-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '".$vStr."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'HBDD-2-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '".$vBdd."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'HSBD-3-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '".$vSbd."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'HCPT-5-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '".$vCpt."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'HS-HOST-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '1', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'PRT-NIV".$protect."-".$duree."M' "; $ret_article = mysql_query($sql_article,$connexion_web) or die('Erreur SQL !
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $sql_tva = "SELECT * FROM c5ms_tax WHERE id_tax='".$aff_article['id_tax']."' "; $ret_tva = mysql_query($sql_tva,$connexion_web) or die('Erreur SQL !
'.$sql_tva.'
'.mysql_error()); $aff_tva = mysql_fetch_array ($ret_tva); $sql_insert_c5ms_devis = " INSERT INTO c5ms_devis ( id_devis, id_user, tax, ref, designation, qts, remise, HT, date, etat ) VALUES ( '".$id_devis."', '".$aff_client['id_user']."', '".$aff_tva['var']."', '".$aff_article['ref']."', '".$aff_article['designation']."', '1', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; for($j=0;$j<=count($req)-1;$j++) { $reponse['REQ_DEV'] = mysql_query($req[$j]) or die ($req[$j].'=>'.'-'.$j.'-'.mysql_error()); } //echo '
'.print_r($_POST,true).'
'; //echo '
'.print_r($req,true).'
'; if(c5ms_modItemCfg('ITM_ETA_ADD') == 'GOCMD') { echo ' '; } elseif(c5ms_modItemCfg('ITM_ETA_ADD') == 'GOCNF') { echo '

Ajout au panier effectué avec succès



'; } } else { echo ''; } } elseif($pid == "recap") { $duree = $_POST['am-duree']; $vStr = $_POST['am-str']/5; $vBdd = $_POST['am-bdd']/2; $vSbd = $_POST['am-sbd']/3; $vCpt = $_POST['am-cpt']/5; $protect= $_POST['am-protect']; ?>

Finaliser la commande

Référence
Désignation
Quantité
Total HT
Total TTC
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $HT = $aff_article['HT']*$vStr; $tva = ($HT * 20) / 100; $TTC = $HT+round($tva,2); $totalHT = $totalHT + $HT; $totalTTC = $totalTTC + $TTC; ?>
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $HT = $aff_article['HT']*$vBdd; $tva = ($HT * 20) / 100; $TTC = $HT+round($tva,2); $totalHT = $totalHT + $HT; $totalTTC = $totalTTC + $TTC; ?>
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $HT = $aff_article['HT']*$vSbd; $tva = ($HT * 20) / 100; $TTC = $HT+round($tva,2); $totalHT = $totalHT + $HT; $totalTTC = $totalTTC + $TTC; ?>
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $HT = $aff_article['HT']*$vCpt; $tva = ($HT * 20) / 100; $TTC = $HT+round($tva,2); $totalHT = $totalHT + $HT; $totalTTC = $totalTTC + $TTC; ?>
'.$sql_article.'
'.mysql_error()); $aff_article = mysql_fetch_array ($ret_article); $HT = $aff_article['HT']; $tva = ($HT * 20) / 100; $TTC = $HT+round($tva,2); $totalHT = $totalHT + $HT; $totalTTC = $totalTTC + $TTC; ?>
1

Montant total :

Total HT :
Total TTC :

Condition générales de ventes relative aux achats de nom de domaines

Condition général de vente relative à la location des hébergements web

 

J'ai lu et j'accepte les conditions générales

Sélection des ressources :



Taille du disque dur (Go) :
Nombre de base de donnée :
Nombre de sous Domaine :
Nombre de compte Mail :
Niveau de protection :
Durée de l'abonnement :
Tarif HT:
Tarif TTC:

Choix de la durée :


3 Mois
6 Mois
9 Mois
12 Mois

Choix du niveau de protection :


Niveau 0
Niveau 1
Niveau 2
Niveau 3
  • Débit :100 Mbit Max
  • Protection :Aucune
  • Filtrage IP :Aucun
  • Débit : 500 Mbit
  • Protection :Logiciel
  • Filtrage IP :Aucun
  • Débit :1Gbs
  • Protection :Matériel
  • Filtrage IP :Partiel
  • Débit :1Gbs
  • Protection :Matériel
  • Filtrage IP :Complet