$id=$_GET['id'];
if($_GET['admin']==1){
echo '
';
$reqid2=mysql_query("select * from annonce where clefannonce='".$_GET['id'] . "'",$db);
if(!$reqid2){
die("
Cette annonce n'existe pas ...");
}
else
{
$ligneid2=mysql_fetch_assoc($reqid2);
$id=$ligneid2['codeannonce'];
}
}
$reqid=mysql_query("select * from annonce where codeannonce=".$id,$db);
if(!$reqid){
die("
Cette annonce n'existe plus ...");
}
else
{
$ligneid=mysql_fetch_assoc($reqid);
?>
if($ligneid['Reference']!=''){
?>
Réference :
}
if($ligneid['Titre']!=''){
?>
Titre :
}
if($ligneid['Fonction']!=''){
?>
Fonction recherchée :
}
?>
Secteur :
$sql="select libelle from secteur inner join annoncesecteur on secteur.codesecteur=annoncesecteur.codesecteur where codeannonce=".$_GET['id'];
$req=mysql_query($sql,$db);
if(!$req){
echo "Non spécifié";
}
else
{
$chaine='';
while($ligne=mysql_fetch_assoc($req))
{
if(!$chaine){
$chaine=$ligne['libelle'];
}
else
{
$chaine.=", ".$ligne['libelle'];
}
}
mysql_free_result($req);
echo $chaine;
}
?>
Region :
$sql="select libelle from region inner join annonceregion on region.coderegion=annonceregion.coderegion where codeannonce=".$_GET['id'];
$req=mysql_query($sql,$db);
if(!$req){
echo "Non spécifié";
}
else
{
$chaine='';
while($ligne=mysql_fetch_assoc($req))
{
if(!$chaine){
$chaine=$ligne['libelle'];
}
else
{
$chaine.=", ".$ligne['libelle'];
}
}
mysql_free_result($req);
echo $chaine;
}
?>
if($ligneid['LEntreprise']!=''){
?>
Description de l'entreprise :
}
if($ligneid['LePoste']!=''){
?>
Description du poste :
}
if($ligneid['LeProfil']!=''){
?>
Description du profil recherché :
}
if($ligneid['LeProfil']!='' || $ligneid['LEntreprise']!='' || $ligneid['LePoste']!=''){
?>
}
if($ligneid['TypeContrat']!=''){
?>
Type de contrat :
}
if($ligneid['DureeContrat']!=''){
?>
Durée du contrat :
}
if($ligneid['Salaire']!=''){
?>
Salaire proposée :
}
if($ligneid['TypeContrat']!='' || $ligneid['DureeContrat']!='' || $ligneid['Salaire']!=''){
?>
}
}
?>