function parcourir_encore($dossier) { $titre = titrage($dossier); if (is_file($dossier . '.jpg')) { ?> <form action="content.php" method="post"> <button type="submit" name="article" value="<?php echo $titre; ?> "> <img src="<?php echo $dossier; ?> .jpg"><?php echo $titre; ?> </button> </form> <?php } else { ?> <form action="content.php" method="post"> <input type="submit" name="article" value="<?php echo $titre; ?> "> </form> <?php } }
function parcourir_encore($dossier) { echo "<h1>"; echo titrage($dossier); echo "</h1>"; foreach (glob($dossier . '/*') as $result) { if ($result) { parcourir_encores($result); } } }