Example #1
0
if (isset($_GET['success'])) {
    //Message de succès
    ?>
		<div class="alert alert-success" role="alert">
			<i class="fa fa fa-check"></i>
				Opération fait avec succès.
		</div>
	<?php 
}
?>
		<!-- Formulaire de liste déroulante -->
		<form id='formProduit' method='POST' action='./gestionProduits.php'>
			<select name='choix'>
				<option value="nouveau">Nouveau Produit</option>
				<?php 
foreach ($catalogue->getCatalogue() as $value) {
    ?>
				<option value="<?php 
    echo $value->getNom();
    ?>
"><?php 
    echo $value->getNom();
    ?>
</option>
				<?php 
}
?>
			</select>
			<input type="submit" value="Continuer">
		</form>
<!-- Contenu principal -->