| |
 |
 |
 |
| |
/* On charge l'ensemble des fiches */
$SQL = 'SELECT * FROM offre WHERE Langue="'.$Langue_code.'" AND Etat=2 ORDER BY Id DESC LIMIT 0, '.$nb_offres_pages;
$query = mysql_query($SQL) or die($query.' '.mysql_error());
?>
$Id = 0;
$Offre_rubrique_id = 0;
$Ref = '';
$Chapo = '';
$Conception = '';
$Description ='';
$Photo_1 = '';
$Photo_2 = '';
$Photo_3 = '';
$Photo_4 = '';
$Last_Photo = "";
$Id = $entite['Id'];
$Offre_rubrique_id = $entite['Offre_rubrique'];
$Ref = (isset($entite['Reference'])) ? html_entities($entite['Reference']) : $Ref;
$Chapo = (isset($entite['Chapo'])) ? $entite['Chapo'] : $Chapo;
$Conception = (isset($entite['Conception'])) ? $entite['Conception'] : $Conception;
$Description = (isset($entite['Description'])) ? $entite['Description'] : $Texte;
$Photo_1 = (isset($entite['Photo_1'])) ? $entite['Photo_1'] : $Photo_1;
$Photo_2 = (isset($entite['Photo_2'])) ? $entite['Photo_2'] : $Photo_2;
$Photo_3 = (isset($entite['Photo_3'])) ? $entite['Photo_3'] : $Photo_3;
$Photo_4 = (isset($entite['Photo_4'])) ? $entite['Photo_4'] : $Photo_4;
$Last_Photo = selLastPhoto($Photo_1, $Photo_2, $Photo_3, $Photo_4);
?>
| | | |