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
   | <form action="choisirstagetest.php" method="post">
		<select name="listboxe">
<?php
		if (file_exists('stages.xml')) {
		echo 'oui';
			$stages = simplexml_load_file('stages.xml');
			foreach($stages->stage as $stage) {
				if($stage->Pseudo == 'personne' AND $_SESSION['section']== $stage->Section) {
					?>
					<option value="<?php echo $stage->Ets;?>"> <?php echo $stage->Ets . ' - OBJET  : ' . $stage->Objet; ?> </option>	
					<?php
				}else{
					echo ' Il n\'y a plus de stages disponibles pour votre section ';
				}
			}
		}else{
			echo ' Les fichiers de données sont inexistants, veuillez contacter l\'administrateur ';
		}
		echo'oui';
?>
<?php
	echo 'oui';
?>
		</select>
			<input type="submit" value="Valider" />
	</form> | 
Partager