1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<label for="thematique_rapport">Thématique du rapport :</label>
<select name="thematique">
<?php
// php formulaire selection de destination lors de la creation de dossiers
$sql = "SELECT id_dossier, nom_dossier, path_dossier, id_rapport, thematique_rapport, id_liste_th, nom_liste_th FROM bak_dossier B, rapports R, liste_thematique L WHERE B.nom_dossier=L.nom_liste_th AND L.nom_liste_th=R.thematique_rapport order by id_rapport";
$req = mysql_query($sql) or die(mysql_error());
while($destination = mysql_fetch_array($req))
{
echo '<option label="'.$destination['path_dossier'].'" value="'.$destination['path_dossier'].'"';
if($destination['nom_dossier']=='' .$destination['thematique_rapport'].'') echo ' selected="selected"';
echo '>'.$destination['nom_dossier'].'</option> <br/>';
}
?>
</select> |
Partager