'. coupe_chaine($contenu->getText(),182) .'
'.get_string("Plus de détails").'
';
}
?>
function get_string($txt){ return $txt; }
function clean_txt($txt){ return $txt; }
$query="select * from representant where etat =1 order by ordre asc";
$sql= mysql_query($query);
$count = mysql_num_rows($sql);
$NB_PAR_PAGE = 8;
$NBP = ceil($count/$NB_PAR_PAGE);
// if($c > 0) $NB_PAR_PAGE = 8;
// if($c == 0) $deb=0;
// elseif($c > 0) $deb=$c*$NB_PAR_PAGE - 4;
$deb=$c*$NB_PAR_PAGE;
$query.=" limit $deb,$NB_PAR_PAGE";
$req = mysql_query($query);
$count = mysql_num_rows($req);
$i=0;
while($res = mysql_fetch_array($req)){
$societe=clean_txt($res['societe']);
$adresse=clean_txt($res['adresse']);
// $pays=clean_txt($res['pays']);
// $ville=clean_txt($res['ville']);
$description=clean_txt($res['description']);
$i++;
echo '
';
if($societe!='') echo '
'.get_string("Point de vente").' : '.$societe.'
';
// if($pays!='') echo '
'.get_string("Pays").' : '.$pays.'
';
// if($ville!='') echo '
'.get_string("Ville").' : '.$ville.'
';
if($adresse!='') echo '
'.get_string("Adresse").' : '.strip_tags($adresse).'
';
if(clean_txt($res['tel'])!='') echo '
'.get_string("Tél.").' : '.clean_txt($res['tel']).'
';
if(clean_txt($res['fax'])!='') echo '
'.get_string("Fax").' : '.clean_txt($res['fax']).'
';
if(clean_txt($res['lien'])!='')
echo '
'.get_string("Google Maps").' :
';
if($description!='') echo '
'.get_string("Plus de détails").'';
if($description!='') echo '
';
echo '
';
if($NBP>1){
if($c>0) echo '
';
else echo '
';
for($i=1; $i<=$NBP; $i++){
if(($i-1)==$c) echo '
'.$i.'';
else echo '
'.$i.'';
}
if(($c+1)<$NBP) echo '
';
}
echo '