document.location.href='".$global."/membre/';"; mysql_close(); die; } /* if(empty($_GET[ida]) ){ echo ""; mysql_close(); die; } */ function lib_rub($id_rub){ switch ($id_rub){ case 1 : return "VEHICULES"; break; case 2 : return "IMMOBILIER"; break; case 3 : return "MULTIMEDIA"; break; case 4 : return "MAISON"; break; case 5 : return "LOISIRS"; break; case 6 : return "MATERIEL PROFESIONNEL"; break; case 7 : return "EMPLOI ET SERVICES"; break; case 8 : return "AUTRE"; break; } } $rq="Select a.titre, a.numeroauto from annonces a where id_membre = '".$_SESSION['ID']."' and supprime <> 1 "; $rq .= (!empty($_GET["ida"]))? " and numeroauto <> '".$_GET["ida"]."'" : "" ; $rq .= " order by numeroauto DESC"; $result = mysql_query($rq); $nb_autre_annonce = mysql_num_rows($result); if($nb_autre_annonce != 0 ){ $liste_annonces = "
\n"; } mysql_free_result($result); $showlist = (empty($_GET["ida"]) && ($nb_autre_annonce == 1) )? 0 : 1; $_GET["ida"] = (empty($_GET["ida"]))? $last_annonce_dep : $_GET["ida"] ; if(empty($_GET[ida]) ){ echo ""; mysql_close(); die; } //======================================================================================== // infos sur l'annonce //======================================================================================== $Rq="SELECT a.titre, a.photo, a.new_numsousrubrique, sr.libellesousrub, sr.numrubrique, sr.numsousrub, a.datedepot, a.prix, m.bizness, m.credit FROM annonces a INNER JOIN membres m ON a.id_membre = m.id INNER JOIN sousrub sr ON sr.numsousrub = a.new_numsousrubrique where a.numeroauto = '".$_GET[ida]."' AND a.id_membre = '".$_SESSION['ID']."'"; $Resultpage=mysql_query($Rq) or die($Rq."
".mysql_error()); if(@mysql_num_rows($Resultpage) == 0){ echo ""; } $Rs= mysql_fetch_object($Resultpage); $id_rub= $Rs->new_numsousrubrique; $titre = $Rs->titre; $photo = $Rs->photo; $bizness = $Rs->bizness; $credit = $Rs->credit; $photo = $Rs->photo; $datedepot = $Rs->datedepot; mysql_free_result($Resultpage); //======================================================================================== // TARIFS DES OPTIONS //======================================================================================== //$prix_a_la_une_3j = 12.00 ; $prix_a_la_une_5j = 9.90 ; $prix_a_la_une_14j = 24.50 ; $prix_etp = 1.90 ; switch ($id_rub){ case 1 : //automobile $prix_en_avant_7j = 3.90 ; $prix_en_avant_30j = 14.90 ; $prix_tete_rub_7j = 4.90 ; $prix_tete_rub_30j = 19.90 ; break; case 2 : //2 roues $prix_en_avant_7j = 2.90 ; $prix_en_avant_30j = 9.90 ; $prix_tete_rub_7j = 3.90 ; $prix_tete_rub_30j = 14.90 ; break; default: $prix_en_avant_7j = 1.90 ; $prix_en_avant_30j = 7.90 ; $prix_tete_rub_7j = 2.90 ; $prix_tete_rub_30j = 9.90 ; break; } ?> Booster la visibilité de votre annonce