'. $date_fin ;
$ann_email = !empty( $res['ann_email'] ) && $res['ann_email_visu'] == 1 ? '' : null ;
//$ann_lien = !empty( $res['ann_lien'] ) ? '' : null ;
//$plusinfo = $ann_email || $ann_lien ? 'Plus d\'info
' : null ;
//$aut_nom = isset( $res['aut_nom'] ) ? htmlentities( strtoupper( $res['aut_nom'] ) ) : $aut_nom2 ;
//$pluspartenaire = $res['idaut'] > 2 ? 'voir les autres annonces de '.$aut_nom.'' : 'modifier' ;
//$pluspartenaire = $res['idaut'] > 2 && $res['idaut'] == $annaut ? 'modifier' : $pluspartenaire ;
//$pluspartenaire = eregi( 'index' , $_SERVER['SCRIPT_NAME'] ) ? $pluspartenaire : 'haut' ;
$texte = convrss($res['ann_texte']);//substr($res['ann_texte'], 0, 150).'[...]';
$texte = str_replace(''',"'",$texte);
$texte = nl2br($texte);
$texte = str_replace('&','&',$texte);
$ann_titre = convrss($res['ann_titre']);
$ann_titre = str_replace('&','&',$res['ann_titre']);
$titrerep = $res['titrerep'];
$prodphotorss = null;
$urlphoto = !empty($res['annimg']) ? $res['annimg'] : null;
if($urlphoto && is_file($_SERVER['DOCUMENT_ROOT'].'/gestion/photos/'.$urlphoto))
{
$dimphoto = getimagesize($_SERVER['DOCUMENT_ROOT'].'/gestion/photos/'.str_replace('.', '_pdf.', $urlphoto));
$dimx = $dimphoto[0];
$dimy = $dimphoto[1];
$dim = $dimx >= $dimy ? 'width: 90px;' : null;
$dim = $dimx < $dimy ? 'height: 90px;' : $dim;
$marginL = floor((90 - $dimx) /2);
$marginT = floor((90 - $dimy) /2);
$prodphoto = '';
$prodphotorss = '';
}
$tableaffiche .= '