marque->CCSEvents["BeforeShow"] = "occasion2_marque_BeforeShow"; $occasion2->image1->CCSEvents["BeforeShow"] = "occasion2_image1_BeforeShow"; $occasion2->image2->CCSEvents["BeforeShow"] = "occasion2_image2_BeforeShow"; $occasion2->prix->CCSEvents["BeforeShow"] = "occasion2_prix_BeforeShow"; $occasion2->devise->CCSEvents["BeforeShow"] = "occasion2_devise_BeforeShow"; $occasion2->tva->CCSEvents["BeforeShow"] = "occasion2_tva_BeforeShow"; $occasion2->pavillon->CCSEvents["BeforeShow"] = "occasion2_pavillon_BeforeShow"; $occasion2->visible->CCSEvents["BeforeShow"] = "occasion2_visible_BeforeShow"; $occasion2->materiaux->CCSEvents["BeforeShow"] = "occasion2_materiaux_BeforeShow"; $occasion2->cat->CCSEvents["BeforeShow"] = "occasion2_cat_BeforeShow"; $occasion2->etat->CCSEvents["BeforeShow"] = "occasion2_etat_BeforeShow"; $occasion2->barre->CCSEvents["BeforeShow"] = "occasion2_barre_BeforeShow"; $occasion2->energie->CCSEvents["BeforeShow"] = "occasion2_energie_BeforeShow"; $occasion2->equipment->CCSEvents["BeforeShow"] = "occasion2_equipment_BeforeShow"; $occasion2->equipment2->CCSEvents["BeforeShow"] = "occasion2_equipment2_BeforeShow"; $occasion2->image3->CCSEvents["BeforeShow"] = "occasion2_image3_BeforeShow"; $occasion2->image4->CCSEvents["BeforeShow"] = "occasion2_image4_BeforeShow"; $occasion2->cuisine->CCSEvents["BeforeShow"] = "occasion2_cuisine_BeforeShow"; $occasion2->accastillage->CCSEvents["BeforeShow"] = "occasion2_accastillage_BeforeShow"; $occasion2->image5->CCSEvents["BeforeShow"] = "occasion2_image5_BeforeShow"; $occasion2->image6->CCSEvents["BeforeShow"] = "occasion2_image6_BeforeShow"; $occasion2->electronique->CCSEvents["BeforeShow"] = "occasion2_electronique_BeforeShow"; $occasion2->amenagement->CCSEvents["BeforeShow"] = "occasion2_amenagement_BeforeShow"; $occasion2->baches->CCSEvents["BeforeShow"] = "occasion2_baches_BeforeShow"; $occasion2->particularite->CCSEvents["BeforeShow"] = "occasion2_particularite_BeforeShow"; $occasion2->syst_wc->CCSEvents["BeforeShow"] = "occasion2_syst_wc_BeforeShow"; } //End BindEvents Method //occasion2_marque_BeforeShow @5-84326A18 function occasion2_marque_BeforeShow() { $occasion2_marque_BeforeShow = true; //End occasion2_marque_BeforeShow //Custom Code @51-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_marque = $occasion2->marque->GetValue(); $marque = CCDLookUp("chantier", "chantier", "id=$id_marque", $DBoccasion); //echo $marque; exit; $occasion2->marque->SetValue($marque); // ------------------------- //End Custom Code //Close occasion2_marque_BeforeShow @5-9887AC79 return $occasion2_marque_BeforeShow; } //End Close occasion2_marque_BeforeShow //occasion2_image1_BeforeShow @21-6237AD5F function occasion2_image1_BeforeShow() { $occasion2_image1_BeforeShow = true; //End occasion2_image1_BeforeShow //Custom Code @69-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image1->GetValue(); if ($fichiers==null) { $occasion2->image1->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image1_BeforeShow @21-E6AE96DB return $occasion2_image1_BeforeShow; } //End Close occasion2_image1_BeforeShow //occasion2_image2_BeforeShow @22-C2280749 function occasion2_image2_BeforeShow() { $occasion2_image2_BeforeShow = true; //End occasion2_image2_BeforeShow //Custom Code @70-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image2->GetValue(); if ($fichiers==null) { $occasion2->image2->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image2_BeforeShow @22-9ACFB300 return $occasion2_image2_BeforeShow; } //End Close occasion2_image2_BeforeShow //occasion2_prix_BeforeShow @37-E184379F function occasion2_prix_BeforeShow() { $occasion2_prix_BeforeShow = true; //End occasion2_prix_BeforeShow //Custom Code @75-F7702AA2 // ------------------------- global $occasion2; $voir_prix = $occasion2->prix_view->GetValue(); if ($voir_prix=="0"){ $occasion2->prix->Visible = False; } // ------------------------- //End Custom Code //Close occasion2_prix_BeforeShow @37-157181BE return $occasion2_prix_BeforeShow; } //End Close occasion2_prix_BeforeShow //occasion2_devise_BeforeShow @39-BD4A2D61 function occasion2_devise_BeforeShow() { $occasion2_devise_BeforeShow = true; //End occasion2_devise_BeforeShow //Custom Code @76-F7702AA2 // ------------------------- global $occasion2; $voir_prix = $occasion2->prix_view->GetValue(); if ($voir_prix=="0"){ $info = "Prix Non Communiqué"; $occasion2->devise->SetValue($info); } // ------------------------- //End Custom Code //Close occasion2_devise_BeforeShow @39-89AAB44E return $occasion2_devise_BeforeShow; } //End Close occasion2_devise_BeforeShow //occasion2_tva_BeforeShow @40-FAFE0B7A function occasion2_tva_BeforeShow() { $occasion2_tva_BeforeShow = true; //End occasion2_tva_BeforeShow //Custom Code @60-F7702AA2 // ------------------------- global $occasion2; $tva = $occasion2->tva->GetValue(); if ($tva == "true"){ $text="VAT Paid"; $occasion2->tva->SetValue($text); } else{ $text="VAT Unpaid"; $occasion2->tva->SetValue($text); } // ------------------------- //End Custom Code //Custom Code @77-F7702AA2 // ------------------------- global $occasion2; $voir_prix = $occasion2->prix_view->GetValue(); if ($voir_prix=="0"){ $occasion2->tva->Visible = False; } // ------------------------- //End Custom Code //Close occasion2_tva_BeforeShow @40-70DF4327 return $occasion2_tva_BeforeShow; } //End Close occasion2_tva_BeforeShow //occasion2_pavillon_BeforeShow @19-B9A674AE function occasion2_pavillon_BeforeShow() { $occasion2_pavillon_BeforeShow = true; //End occasion2_pavillon_BeforeShow //Custom Code @53-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_pav = $occasion2->pavillon->GetValue(); $pavillon = CCDLookUp("countries_name", "countries", "countries_iso_code_2='$id_pav'", $DBoccasion); //echo $marque; exit; $occasion2->pavillon->SetValue($pavillon); // ------------------------- //End Custom Code //Close occasion2_pavillon_BeforeShow @19-32693C06 return $occasion2_pavillon_BeforeShow; } //End Close occasion2_pavillon_BeforeShow //occasion2_visible_BeforeShow @20-B9D7809D function occasion2_visible_BeforeShow() { $occasion2_visible_BeforeShow = true; //End occasion2_visible_BeforeShow //Custom Code @54-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_visible = $occasion2->visible->GetValue(); $visible = CCDLookUp("countries_name", "countries", "countries_id='$id_visible'", $DBoccasion); //echo $marque; exit; $occasion2->visible->SetValue($visible); // ------------------------- //End Custom Code //Close occasion2_visible_BeforeShow @20-8818D204 return $occasion2_visible_BeforeShow; } //End Close occasion2_visible_BeforeShow //occasion2_materiaux_BeforeShow @30-FF97E140 function occasion2_materiaux_BeforeShow() { $occasion2_materiaux_BeforeShow = true; //End occasion2_materiaux_BeforeShow //Custom Code @55-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_mat = $occasion2->materiaux->GetValue(); $materiaux = CCDLookUp("en", "materiaux", "id='$id_mat'", $DBoccasion); //echo $marque; exit; $occasion2->materiaux->SetValue($materiaux); // ------------------------- //End Custom Code //Close occasion2_materiaux_BeforeShow @30-39E4103D return $occasion2_materiaux_BeforeShow; } //End Close occasion2_materiaux_BeforeShow //occasion2_cat_BeforeShow @11-9B4800E1 function occasion2_cat_BeforeShow() { $occasion2_cat_BeforeShow = true; //End occasion2_cat_BeforeShow //Custom Code @52-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_cat = $occasion2->cat->GetValue(); $cat = CCDLookUp("en", "categorie3", "id=$id_cat", $DBoccasion); //echo $marque; exit; $occasion2->cat->SetValue($cat); // ------------------------- //End Custom Code //Close occasion2_cat_BeforeShow @11-56734798 return $occasion2_cat_BeforeShow; } //End Close occasion2_cat_BeforeShow //occasion2_etat_BeforeShow @32-41016F91 function occasion2_etat_BeforeShow() { $occasion2_etat_BeforeShow = true; //End occasion2_etat_BeforeShow //Custom Code @57-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_etat = $occasion2->etat->GetValue(); $etat = CCDLookUp("en", "etat", "id='$id_etat'", $DBoccasion); //echo $marque; exit; $occasion2->etat->SetValue($etat); // ------------------------- //End Custom Code //Close occasion2_etat_BeforeShow @32-4063C001 return $occasion2_etat_BeforeShow; } //End Close occasion2_etat_BeforeShow //occasion2_barre_BeforeShow @34-04B89E6B function occasion2_barre_BeforeShow() { $occasion2_barre_BeforeShow = true; //End occasion2_barre_BeforeShow //Custom Code @59-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_barre = $occasion2->barre->GetValue(); $barre = CCDLookUp("en", "barre_syst", "id='$id_barre'", $DBoccasion); //echo $marque; exit; $occasion2->barre->SetValue($barre); // ------------------------- //End Custom Code //Close occasion2_barre_BeforeShow @34-91707233 return $occasion2_barre_BeforeShow; } //End Close occasion2_barre_BeforeShow //occasion2_energie_BeforeShow @33-E4AF1AAF function occasion2_energie_BeforeShow() { $occasion2_energie_BeforeShow = true; //End occasion2_energie_BeforeShow //Custom Code @58-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_energie = $occasion2->energie->GetValue(); $energie = CCDLookUp("en", "propulsion", "id='$id_energie'", $DBoccasion); //echo $marque; exit; $occasion2->energie->SetValue($energie); // ------------------------- //End Custom Code //Close occasion2_energie_BeforeShow @33-4693B1C7 return $occasion2_energie_BeforeShow; } //End Close occasion2_energie_BeforeShow //occasion2_equipment_BeforeShow @42-F97379F1 function occasion2_equipment_BeforeShow() { $occasion2_equipment_BeforeShow = true; //End occasion2_equipment_BeforeShow //Custom Code @62-F7702AA2 // ------------------------- global $occasion2; global $id_equipment; global $equipment; global $equipment2; $id_equipment=$occasion2->equipment->GetValue(); if ($id_equipment){ $SQL = "SELECT en FROM equipment WHERE id IN ($id_equipment)"; $db = new clsDBoccasion(); $db->query($SQL); $equipment=""; $equipment2=""; while($db->next_record()) { $equipment= $equipment2; $equipment= $equipment . $db->f("en"); $equipment.=" \n"; $equipment2 = $equipment; } unset($db); // exit; $occasion2->equipment->SetValue($equipment2); } // ------------------------- //End Custom Code //Close occasion2_equipment_BeforeShow @42-5C63A7A7 return $occasion2_equipment_BeforeShow; } //End Close occasion2_equipment_BeforeShow //occasion2_equipment2_BeforeShow @43-F53EB2E7 function occasion2_equipment2_BeforeShow() { $occasion2_equipment2_BeforeShow = true; //End occasion2_equipment2_BeforeShow //Custom Code @63-F7702AA2 // ------------------------- global $occasion2; global $id_equipment2; global $equipment2; global $equipment22; $id_equipment2=$occasion2->equipment2->GetValue(); if ($id_equipment2){ $SQL = "SELECT en FROM equipment2 WHERE id IN ($id_equipment2)"; $db = new clsDBoccasion(); $db->query($SQL); $equipment2=""; $equipment22=""; while($db->next_record()) { $equipment2= $equipment22; $equipment2= $equipment2 . $db->f("en"); $equipment2.=" \n"; $equipment22 = $equipment2; } unset($db); // exit; $occasion2->equipment2->SetValue($equipment22); } // ------------------------- //End Custom Code //Close occasion2_equipment2_BeforeShow @43-03DB34DF return $occasion2_equipment2_BeforeShow; } //End Close occasion2_equipment2_BeforeShow //occasion2_image3_BeforeShow @23-A2229EBB function occasion2_image3_BeforeShow() { $occasion2_image3_BeforeShow = true; //End occasion2_image3_BeforeShow //Custom Code @71-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image3->GetValue(); if ($fichiers==null) { $occasion2->image3->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image3_BeforeShow @23-07C05276 return $occasion2_image3_BeforeShow; } //End Close occasion2_image3_BeforeShow //occasion2_image4_BeforeShow @24-59665524 function occasion2_image4_BeforeShow() { $occasion2_image4_BeforeShow = true; //End occasion2_image4_BeforeShow //Custom Code @72-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image4->GetValue(); if ($fichiers==null) { $occasion2->image4->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image4_BeforeShow @24-620DF8B6 return $occasion2_image4_BeforeShow; } //End Close occasion2_image4_BeforeShow //occasion2_cuisine_BeforeShow @44-9EEA334C function occasion2_cuisine_BeforeShow() { $occasion2_cuisine_BeforeShow = true; //End occasion2_cuisine_BeforeShow //Custom Code @64-F7702AA2 // ------------------------- global $occasion2; global $id_cuisine; global $cuisine; global $cuisine2; $id_cuisine=$occasion2->cuisine->GetValue(); if ($id_cuisine){ $SQL = "SELECT en FROM cuisine WHERE id IN ($id_cuisine)"; $db = new clsDBoccasion(); $db->query($SQL); $cuisine=""; $cuisine2=""; while($db->next_record()) { $cuisine= $cuisine2; $cuisine= $cuisine . $db->f("en"); $cuisine.=" \n"; $cuisine2 = $cuisine; } unset($db); // exit; $occasion2->cuisine->SetValue($cuisine2); } // ------------------------- //End Custom Code //Close occasion2_cuisine_BeforeShow @44-5BD9C7CC return $occasion2_cuisine_BeforeShow; } //End Close occasion2_cuisine_BeforeShow //occasion2_accastillage_BeforeShow @41-40F4272E function occasion2_accastillage_BeforeShow() { $occasion2_accastillage_BeforeShow = true; //End occasion2_accastillage_BeforeShow //Custom Code @61-F7702AA2 // ------------------------- global $occasion2; global $id_accastillage; global $accastillage; global $chantier2; $id_accastillage=$occasion2->accastillage->GetValue(); if ($id_accastillage){ $SQL = "SELECT en FROM accastillage WHERE id IN ($id_accastillage)"; $db = new clsDBoccasion(); $db->query($SQL); $accastillage=""; $accastillage2=""; while($db->next_record()) { $accastillage= $accastillage2; $accastillage= $accastillage . $db->f("en"); $accastillage.=" \n"; $accastillage2 = $accastillage; } unset($db); // exit; $occasion2->accastillage->SetValue($accastillage2); } // ------------------------- //End Custom Code //Close occasion2_accastillage_BeforeShow @41-B2DD1E42 return $occasion2_accastillage_BeforeShow; } //End Close occasion2_accastillage_BeforeShow //occasion2_image5_BeforeShow @25-396CCCD6 function occasion2_image5_BeforeShow() { $occasion2_image5_BeforeShow = true; //End occasion2_image5_BeforeShow //Custom Code @73-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image5->GetValue(); if ($fichiers==null) { $occasion2->image5->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image5_BeforeShow @25-FF0219C0 return $occasion2_image5_BeforeShow; } //End Close occasion2_image5_BeforeShow //occasion2_image6_BeforeShow @26-997366C0 function occasion2_image6_BeforeShow() { $occasion2_image6_BeforeShow = true; //End occasion2_image6_BeforeShow //Custom Code @74-F7702AA2 // ------------------------- global $occasion2; $fichiers = $occasion2->image6->GetValue(); if ($fichiers==null) { $occasion2->image6->SetValue("image1.gif"); } // ------------------------- //End Custom Code //Close occasion2_image6_BeforeShow @26-83633C1B return $occasion2_image6_BeforeShow; } //End Close occasion2_image6_BeforeShow //occasion2_electronique_BeforeShow @36-91C6D0F8 function occasion2_electronique_BeforeShow() { $occasion2_electronique_BeforeShow = true; //End occasion2_electronique_BeforeShow //Custom Code @68-F7702AA2 // ------------------------- global $occasion2; global $id_electronique; global $electronique; global $electronique2; $id_electronique=$occasion2->electronique->GetValue(); if ($id_electronique){ $SQL = "SELECT en FROM navigation WHERE id IN ($id_electronique)"; $db = new clsDBoccasion(); $db->query($SQL); $electronique=""; $electronique2=""; while($db->next_record()) { $electronique= $electronique2; $electronique= $electronique . $db->f("en"); $electronique.=" \n"; $electronique2 = $electronique; } unset($db); // exit; $occasion2->electronique->SetValue($electronique2); } // ------------------------- //End Custom Code //Close occasion2_electronique_BeforeShow @36-E24E635B return $occasion2_electronique_BeforeShow; } //End Close occasion2_electronique_BeforeShow //occasion2_amenagement_BeforeShow @35-6C64D781 function occasion2_amenagement_BeforeShow() { $occasion2_amenagement_BeforeShow = true; //End occasion2_amenagement_BeforeShow //Custom Code @67-F7702AA2 // ------------------------- global $occasion2; global $id_amenagement; global $amenagement; global $amenagement2; $id_amenagement=$occasion2->amenagement->GetValue(); if ($id_amenagement){ $SQL = "SELECT en FROM repartition WHERE id IN ($id_amenagement)"; $db = new clsDBoccasion(); $db->query($SQL); $amenagement=""; $amenagement2=""; while($db->next_record()) { $amenagement= $amenagement2; $amenagement= $amenagement . $db->f("en"); $amenagement.=" \n"; $amenagement2 = $amenagement; } unset($db); $occasion2->amenagement->SetValue($amenagement2); } // ------------------------- //End Custom Code //Close occasion2_amenagement_BeforeShow @35-64ADCDF0 return $occasion2_amenagement_BeforeShow; } //End Close occasion2_amenagement_BeforeShow //occasion2_baches_BeforeShow @45-5C217EF3 function occasion2_baches_BeforeShow() { $occasion2_baches_BeforeShow = true; //End occasion2_baches_BeforeShow //Custom Code @65-F7702AA2 // ------------------------- global $occasion2; global $id_baches; global $baches; global $baches2; $id_baches=$occasion2->baches->GetValue(); if ($id_baches){ $SQL = "SELECT en FROM tauds WHERE id IN ($id_baches)"; $db = new clsDBoccasion(); $db->query($SQL); $baches=""; $baches2=""; while($db->next_record()) { $baches= $baches2; $baches= $baches . $db->f("en"); $baches.=" \n"; $baches2 = $baches; } unset($db); $occasion2->baches->SetValue($baches2); } // ------------------------- //End Custom Code //Close occasion2_baches_BeforeShow @45-AAA1B05C return $occasion2_baches_BeforeShow; } //End Close occasion2_baches_BeforeShow //occasion2_particularite_BeforeShow @46-C8B3CDEB function occasion2_particularite_BeforeShow() { $occasion2_particularite_BeforeShow = true; //End occasion2_particularite_BeforeShow //Custom Code @66-F7702AA2 // ------------------------- global $occasion2; global $id_particularite; global $particularite; global $particularite2; $id_particularite=$occasion2->particularite->GetValue(); if ($id_particularite){ $SQL = "SELECT en FROM specials WHERE id IN ($id_particularite)"; $db = new clsDBoccasion(); $db->query($SQL); $particularite=""; $particularite2=""; while($db->next_record()) { $particularite= $particularite2; $particularite= $particularite . $db->f("en"); $particularite.=" \n"; $particularite2 = $particularite; } unset($db); $occasion2->particularite->SetValue($particularite2); } // ------------------------- //End Custom Code //Close occasion2_particularite_BeforeShow @46-6DC5E9CA return $occasion2_particularite_BeforeShow; } //End Close occasion2_particularite_BeforeShow //occasion2_syst_wc_BeforeShow @31-BA9F4DBF function occasion2_syst_wc_BeforeShow() { $occasion2_syst_wc_BeforeShow = true; //End occasion2_syst_wc_BeforeShow //Custom Code @56-F7702AA2 // ------------------------- global $occasion2; global $DBoccasion; $id_syst_wc = $occasion2->syst_wc->GetValue(); $syst_wc = CCDLookUp("en", "sdb_wc", "id='$id_syst_wc'", $DBoccasion); //echo $marque; exit; $occasion2->syst_wc->SetValue($syst_wc); // ------------------------- //End Custom Code //Close occasion2_syst_wc_BeforeShow @31-2F3976C3 return $occasion2_syst_wc_BeforeShow; } //End Close occasion2_syst_wc_BeforeShow //DEL // ------------------------- //DEL global $occasion2; //DEL global $DBoccasion; //DEL $id_etat = $occasion2->etat->GetValue(); //DEL $etat = CCDLookUp("en", "etat", "id='$id_etat'", $DBoccasion); //DEL //echo $marque; exit; //DEL $occasion2->etat->SetValue($etat); //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $DBoccasion; //DEL $id_energie = $occasion2->energie->GetValue(); //DEL $energie = CCDLookUp("en", "propulsion", "id='$id_energie'", $DBoccasion); //DEL //echo $marque; exit; //DEL $occasion2->energie->SetValue($energie); //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $DBoccasion; //DEL $id_barre = $occasion2->barre->GetValue(); //DEL $barre = CCDLookUp("en", "barre_syst", "id='$id_barre'", $DBoccasion); //DEL //echo $marque; exit; //DEL $occasion2->barre->SetValue($barre); //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_amenagement; //DEL global $amenagement; //DEL global $amenagement2; //DEL $id_amenagement=$occasion2->amenagement->GetValue(); //DEL if ($id_amenagement){ //DEL $SQL = "SELECT en FROM repartition WHERE id IN ($id_amenagement)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $amenagement=""; //DEL $amenagement2=""; //DEL while($db->next_record()) //DEL { //DEL $amenagement= $amenagement2; //DEL $amenagement= $amenagement . $db->f("en"); //DEL $amenagement.=" \n"; //DEL $amenagement2 = $amenagement; //DEL } //DEL unset($db); //DEL $occasion2->amenagement->SetValue($amenagement2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_electronique; //DEL global $electronique; //DEL global $electronique2; //DEL $id_electronique=$occasion2->electronique->GetValue(); //DEL if ($id_electronique){ //DEL $SQL = "SELECT en FROM navigation WHERE id IN ($id_electronique)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $electronique=""; //DEL $electronique2=""; //DEL while($db->next_record()) //DEL { //DEL $electronique= $electronique2; //DEL $electronique= $electronique . $db->f("en"); //DEL $electronique.=" \n"; //DEL $electronique2 = $electronique; //DEL } //DEL unset($db); // exit; //DEL $occasion2->electronique->SetValue($electronique2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL $voir_prix = $occasion2->prix_view->GetValue(); //DEL if ($voir_prix=="0"){ //DEL $occasion2->prix->Visible = False; //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL $voir_prix = $occasion2->prix_view->GetValue(); //DEL if ($voir_prix=="0"){ //DEL $info = "Prix Non Communiqué"; //DEL $occasion2->devise->SetValue($info); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL $tva = $occasion2->tva->GetValue(); //DEL if ($tva == "true"){ //DEL $text="VAT Paid"; //DEL $occasion2->tva->SetValue($text); //DEL } //DEL else{ //DEL $text="VAT Unpaid"; //DEL $occasion2->tva->SetValue($text); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL $voir_prix = $occasion2->prix_view->GetValue(); //DEL if ($voir_prix=="0"){ //DEL $occasion2->tva->Visible = False; //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_accastillage; //DEL global $accastillage; //DEL global $chantier2; //DEL $id_accastillage=$occasion2->accastillage->GetValue(); //DEL if ($id_accastillage){ //DEL $SQL = "SELECT en FROM accastillage WHERE id IN ($id_accastillage)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $accastillage=""; //DEL $accastillage2=""; //DEL while($db->next_record()) //DEL { //DEL $accastillage= $accastillage2; //DEL $accastillage= $accastillage . $db->f("en"); //DEL $accastillage.=" \n"; //DEL $accastillage2 = $accastillage; //DEL } //DEL unset($db); // exit; //DEL $occasion2->accastillage->SetValue($accastillage2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_equipment; //DEL global $equipment; //DEL global $equipment2; //DEL $id_equipment=$occasion2->equipment->GetValue(); //DEL if ($id_equipment){ //DEL $SQL = "SELECT en FROM equipment WHERE id IN ($id_equipment)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $equipment=""; //DEL $equipment2=""; //DEL while($db->next_record()) //DEL { //DEL $equipment= $equipment2; //DEL $equipment= $equipment . $db->f("en"); //DEL $equipment.=" \n"; //DEL $equipment2 = $equipment; //DEL } //DEL unset($db); // exit; //DEL $occasion2->equipment->SetValue($equipment2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_equipment2; //DEL global $equipment2; //DEL global $equipment22; //DEL $id_equipment2=$occasion2->equipment2->GetValue(); //DEL if ($id_equipment2){ //DEL $SQL = "SELECT en FROM equipment2 WHERE id IN ($id_equipment2)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $equipment2=""; //DEL $equipment22=""; //DEL while($db->next_record()) //DEL { //DEL $equipment2= $equipment22; //DEL $equipment2= $equipment2 . $db->f("en"); //DEL $equipment2.=" \n"; //DEL $equipment22 = $equipment2; //DEL } //DEL unset($db); // exit; //DEL $occasion2->equipment2->SetValue($equipment22); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_cuisine; //DEL global $cuisine; //DEL global $cuisine2; //DEL $id_cuisine=$occasion2->cuisine->GetValue(); //DEL if ($id_cuisine){ //DEL $SQL = "SELECT en FROM cuisine WHERE id IN ($id_cuisine)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $cuisine=""; //DEL $cuisine2=""; //DEL while($db->next_record()) //DEL { //DEL $cuisine= $cuisine2; //DEL $cuisine= $cuisine . $db->f("en"); //DEL $cuisine.=" \n"; //DEL $cuisine2 = $cuisine; //DEL } //DEL unset($db); // exit; //DEL $occasion2->cuisine->SetValue($cuisine2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_baches; //DEL global $baches; //DEL global $baches2; //DEL $id_baches=$occasion2->baches->GetValue(); //DEL if ($id_baches){ //DEL $SQL = "SELECT en FROM tauds WHERE id IN ($id_baches)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $baches=""; //DEL $baches2=""; //DEL while($db->next_record()) //DEL { //DEL $baches= $baches2; //DEL $baches= $baches . $db->f("en"); //DEL $baches.=" \n"; //DEL $baches2 = $baches; //DEL } //DEL unset($db); //DEL $occasion2->baches->SetValue($baches2); //DEL } //DEL // ------------------------- //DEL // ------------------------- //DEL global $occasion2; //DEL global $id_particularite; //DEL global $particularite; //DEL global $particularite2; //DEL $id_particularite=$occasion2->particularite->GetValue(); //DEL if ($id_particularite){ //DEL $SQL = "SELECT en FROM specials WHERE id IN ($id_particularite)"; //DEL $db = new clsDBoccasion(); //DEL $db->query($SQL); //DEL $particularite=""; //DEL $particularite2=""; //DEL while($db->next_record()) //DEL { //DEL $particularite= $particularite2; //DEL $particularite= $particularite . $db->f("en"); //DEL $particularite.=" \n"; //DEL $particularite2 = $particularite; //DEL } //DEL unset($db); //DEL $occasion2->particularite->SetValue($particularite2); //DEL } //DEL // ------------------------- ?>