1 2 3 4 5 6 7 8 9 10 11
|
$result=mysql_query("select pid, ptitle, cont from ".$NPDS_Prefix."annu_pays where cont='$cont' order by ptitle");
while (list($pid, $ptitle, $cont) = mysql_fetch_row($result)) {
//On remplace les accents
$ptitle1= strtr(utf8_decode($ptitle),"ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ"
,"aaaaaaaaaaaaooooooooooooeeeeeeeecciiiiiiiiuuuuuuuuynn");
//On passe tout en minuscule et on supprime les caracteres speciaux
$special = array(" ",".",":",",","!","?","-","_","\\","'","(",")","$","&","%","*","«","»");
$ptitle1 = strtolower(str_replace($special,"",$ptitle1));
echo '<td><img src="modules/'.$ModPath.'/images/drapeaux/'.$ptitle1.'.png" border="0" title="'.$ptitle.'" />'
.'<td valign="top" width="200" class="ongl"><a href="'.$ThisFile.'&op=index&pid='.$pid.'">'.stripslashes($ptitle).'</a></td>' |
Partager