1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
   |  
<? //fiche technique
if(isset($_GET['idprojet'])){         //affichage de toutes les données
$req="SELECT ORG_Nomorg,ID_Projet,PR_Libelle,PR_Date,PR_Chapeau,PR_Descriptif FROM projet,organismes WHERE projet.ID_Projet=".$_GET['idprojet']." AND organismes.ID_Organisme IN (SELECT ID_Organisme FROM projet_organisme WHERE projet_organisme.ID_Projet=projet.ID_Projet)";
$oConnexion->execute($req);
$oConnexion->moveNext();
$TempRecord = $oConnexion->get();
?> <table border="0"cellspacing="5" cellpadding="0" width="100%">
<tr>
<td><br> 
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 10px;color: #666666;"><?=$TempRecord['PR_Date']?></span><br>
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 14px;color: Black;font-weight: bold;text-transform: uppercase;"><?=$TempRecord['ORG_Nomorg']?><br></span><br>
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #CC0000;font-weight: normal;"><?=$TempRecord['PR_Libelle']?><br></span><br>
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #CC0000;font-weight: normal;"><?=$TempRecord['PR_Chapeau']?><br></span><br>
 
<?if(isset($_GET['PR_Libelle like www%'])){//pour reconnaitre si  c'est un site
 
$req="SELECT ID_Projet,PR_Libelle,PR_Descriptif FROM projet WHERE ID_Projet=".$_GET['idprojet']." AND PR_Libelle like'www%' ";     //requete
$oConnexion->execute($req);
$oConnexion->moveNext();
$TempRecord = $oConnexion->get(); ?>
 
<a style="font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: Black;font-weight: bold;" href="#"><?=$TempRecord['PR_Libelle']?><br></a><br>   //jaffiche dans un lien
 
<?}
else{                    //sinon dans un bloc
 
$req="SELECT ID_Projet,PR_Libelle,PR_Descriptif FROM projet WHERE ID_Projet=".$_GET['idprojet'];
$oConnexion->execute($req);
$oConnexion->moveNext();
$TempRecord = $oConnexion->get(); ?>
 
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: Black;font-weight: bold;"><?=$TempRecord['PR_Libelle']?><br></span><br>
<?}?>
</td>
<td>
<span style="font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: Black;font-weight: normal;"><br><br><br><?=$TempRecord['PR_Descriptif'];?></span> 
</td>
</tr>
</table> 
<?                
}
?> | 
Partager