8797 sujets

Développement web côté serveur, CMS

J'ai une question que je me pose, est ce qu'il y a possibilité de réduire tout ce code, en quelques lignes, avec peut etre un while?


<a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=fr&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_fr.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=zz&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_zz.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=be&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_be.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ch&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ch.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=lu&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_lu.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=de&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_de.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=uk&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_uk.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ca&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ca.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=au&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_au.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=nl&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_nl.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=es&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_es.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=at&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_at.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=it&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_it.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ie&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ie.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=pt&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_pt.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=us&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_us.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=se&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_se.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=no&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_no.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=dk&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_dk.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=fi&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_fi.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=gr&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_gr.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=il&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_il.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=cz&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_cz.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=pl&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_pl.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=lt&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_lt.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ru&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ru.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ua&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ua.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ee&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ee.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ro&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ro.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=pe&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_pe.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=lv&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_lv.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=sk&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_sk.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=bg&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_bg.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=hu&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_hu.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=kz&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_kz.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ec&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ec.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=ve&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_ve.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=mx&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_mx.gif" width="35" height="29" alt="" /></a>
 <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/show_accessv2.php4?CODE_PAYS=co&SITE_ID=86285&DOC_ID=401764&LG=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://www.allopass.com/imgweb/common/flag_co.gif" width="35" height="29" alt="" /></a>

Modifié par sff (27 Jan 2008 - 19:58)
Ca serait correct ceci?


		$arr = array('fr', 'be', 'zz', 'ch');
foreach ($arr as &$value) {
    $page .= '<a href="javascript:;" onclick="javascript:window.open(\'http://www.allopass.com/show_accessv2.php4?CODE_PAYS='.$value.'&amp;SITE_ID='.$premiumrow['site_allopass'].'&amp;DOC_ID='.$premiumrow['doc_allopass'].'&LG=fr\',\'phone\',\'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340\');"><img border="0" src="images/allopass/flag_'.$value.'.gif" width="35" height="29" alt=""></a>';
}
salut,

a priori je dirais oui +1 donc comme on dit par ici Smiley cligne

mais n'est tu pas le mieux placer pour t'en rendre compte?

tu peux rajouter un \n a la fin de l'ecriture du lien pour avoir un saut de ligne dans le code générer. pour que ce soit plus facile a inspecter.

ou regarder avec le plugin firebug sous firefox. c'est achement + lisible

pourquoi le & dans le foreach? sans ça semble donner le même resultat.
Modifié par CPascal (27 Jan 2008 - 22:54)
Ok, merci pour les conseils, et oui en effet le & était inutile, par contre j'ai encore une question Smiley cligne

Dans ce cas j'ai $arr = array('fr', 'be', 'zz', 'ch'); et ca fonctionne

Mais j'ai aussi un champ sql qui contient ceci: 'fr', 'be', 'zz', 'ch'

Si je met $arr = array($var['pays']); ca ne fonctionne plus, pourtant ca devrait etre la meme chose.
salut,

je pense que ce n'est pas equivalent non. si fr be sont des valeurs de ta base alors tu devrais avoir quelquechose comme

include ("connexion.php");

$query = "select pays from ma_table";
$res = mysql_query($query) or die ($query);

$array = array();

while ( $r = mysql_fetch_assoc($res) ) {
$arr[] = $r['pays'];
}

foreach ($arr as $value) {
    $page .= '<a href="javascript:;" onclick="javascript:window.open(\'http://www.allopass.com/show_accessv2.php4?CODE_PAYS='.$value.'&amp;SITE_ID='.$premiumrow['site_allopass'].'&amp;DOC_ID='.$premiumrow['doc_allopass'].'&LG=fr\',\'phone\',\'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340\');"><img border="0" src="images/allopass/flag_'.$value.'.gif" width="35" height="29" alt=""></a>';
}

echo $page;
J'ai essayé ton code, mais ca ne fais aucun effet. Par contre j'ai le contenu de la base qui s'éxecute avec $value.

Au fait dans la base les pays doit etre enregistré de quelle manière?

fr be ca ...
fr, be, ca ...
'fr', 'be', 'ca'...
aucun effet? même pas un petit message d'erreur?

y avait une petite coquille c'etait $arr = array();
mais l'initialisation n'étant pas obligatoire.

biz..

ben dans la base déjà moi j'imagine que chaque pays est sur un enregistrement différent
id pays
1 fr
2 be
3 zz
je me suis imaginé dans mysql et que le champ pays etait de type varchar 10 par exemple. donc se rentre avec un

 msql_query("insert into ma_table (pays) VALUES ('".$pays."')"); 


ou directement par mysqladmin et donc là par contre on écrit sans les ' '

et pas tous sur un même enregistrement.
id pays
1 fr,be,zz,ch,etc....

bon parce que une base pour un seul enregistrement..... autant avoir un tableau

mais dans ce cas faudrait un

$query = "select pays from ma_table";
$res = mysql_query($query) or die ($query);
$r = mysql_query($res);

$arr = explode(",",$r['pays']);

Modifié par CPascal (30 Jan 2008 - 13:42)
Oui ca fonctionne de cette mannière donc je me retrouve avec le code suivant:
$arr = explode(",",$premiumrow['country_allopass']);

foreach ($arr as $value) {
    $page .= '<a href="javascript:;" onclick="javascript:window.open(\'http://www.allopass.com/show_accessv2.php4?CODE_PAYS='.$value.'&amp;SITE_ID='.$premiumrow['site_allopass'].'&amp;DOC_ID='.$premiumrow['doc_allopass'].'&LG=fr\',\'phone\',\'toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340\');"><img border="0" src="images/allopass/flag_'.$value.'.gif" width="35" height="29" alt=""></a>';
	}


Sinon oui, un \n serait plus pratique pour la lecture du code. Mais comme tu peux le voir, mon texte commence par ' ($page= 'text';), et un \n ne fonctionne que entre 2 "" . Moi j'ai l'habitude d'écrire mon texte entre des ' '. Est ce que c'est une mauvaise habitude? La preuve je peux pas mettre tel quel \n. Ou est ce que c'est préférable de mettre des "" seulement pour les while ou foreach, histoire de pouvoir mettre par exemple\n.
L'utilisation des guillemets et des quotes, c'est propre à chacun...

Au pire, tu fais ceci :
<?php
echo 'Salut tout le monde'."\n";
?>

Modifié par Alphonse (30 Jan 2008 - 15:38)
Salut,

oui il y a une différence fondamentale entre quote et doublequote les " interpretre le contenu qui est a l'intérieur. les \n les autres antislashes ( \r \t etc...)ou aussi l'interpretation des noms de variables.

moi je n'ai pas de regle d'or. quand j'ai envie d'un contenu dynamique je mets des " quand au contraire je veux être sur que ça bouge pas je mets des '.

en général je suis plus " mais bon.

et puis ensuite il y a des considérations via l'injection de code selon certaines bases, l'usage de tooltip,etc....
des fois y a une solution qui marche l'autre pas.

des fois aucune solution ne marche et faut ruser en passant par les entités,etc...

donc mon conseil passe de l'un a l'autre des solutions selon les besoins.
Modifié par CPascal (30 Jan 2008 - 15:42)
Salut,

Personnellement, je préfère l'utilisation des simples quotes ' ' pour une raison simple, tu contrôles tes concaténations. Après, c'est plus lourd à l'écriture, mais avec une coloration syntaxique, tu as, en un coup d'œil, toutes les variables exposées.
Modifié par Super_baloo8 (31 Jan 2008 - 00:34)
Oui moi aussi je privélégie les simple quoto, surtout pour avoir une meilleur lecture des variables qui sont dedans les textes.

En tout cas merci pour vos réponses