'.$sql_trn.'
'.mysql_error()); while($aff_trn = mysql_fetch_array($ret_trn)) { $sql_abo = "SELECT * FROM panel_abo WHERE id_rps='".$aff_trn['id_rps']."' "; $ret_abo = mysql_query($sql_abo,$connexion_web) or die('Erreur SQL !
'.$sql_abo.'
'.mysql_error()); $aff_abo = mysql_fetch_array ($ret_abo); $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); if(!$aff_abo) { $trn_install = $aff_abo['id_rps']; } } // ---- GENERE LE NUMERO DE DEVIS ----// $id_devis = c5ms_genDevis(); if($uid) { $type = 301; } else { $type = 30; } if($uid){$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 'VCPU-0.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']."', '".$vCpu."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'VMEM-256-".$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']."', '".$vMem."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'VDD-25-".$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']."', '".$vHdd."', '".$remise."', '".$aff_article['HT']."', '".$date."', '".$etat."' )"; $req[] = $sql_insert_c5ms_devis; $sql_article = "SELECT * FROM c5ms_article WHERE ref LIKE 'VM-RPS-".$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()); } 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']; $vCpu = $_POST['am-proc']/0.5; $vMem = $_POST['am-mem']/256; $vHdd = $_POST['am-disc']/25; $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']*$vCpu; $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']*$vMem; $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']*$vHdd; $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

Choix du matériel :


Mémoire :
Processeur Virtuel :
Disque dur :
Niveau de protection :
Durée :
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 :Aucune
  • Débit : 500 Mbit
  • Protection :Logiciel
  • Filtrage IP :Aucune
  • Débit :1Gbs
  • Protection :Matériel
  • Filtrage IP :Partiel
  • Débit :1Gbs
  • Protection :Matériel
  • Filtrage IP :Complet

Choix du CD d'installation :



'.$sql_os.'
'.mysql_error()); while($aff_os = mysql_fetch_array ($ret_os)) { echo '


'.$aff_os['nom'].'
'; } ?>