<!DOCTYPE html> <html> <style> /* Style des boutons */ .func-button{ height: 30px; width: 80px; background: #fff; border-radius: 10px; position: absolute; } .func-button:hover{ background: #b8ff70; } .func-button:active{ background: #07e50a; } </style> <?php echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">'; echo '<div class="mr-md-3 pt-3 px-3 pt-md-5 px-md-5 text-center">'; /* Affichage image */ include('./Scripts/creation_img.php'); echo '</div>'; echo '<div class="bg-light mr-md-3 pt-3 px-3 pt-md-5 px-md-5 overflow-hidden">'; /* Affichage des commandes de l'appareil */ echo '<div class="my-3 py-3">'; echo '<h2 class="display-6 text-center">Panel de commande</h2>'; echo '</div>'; //$chemin = $Appareil[$i]['type']; //$files = array_diff(scandir($chemin),array('..','.')); echo '<div class="d-md-flex flex-md-equal w-100 my-md-3 pl-md-3">'; /* On parcourt l'arborescence pour trouver les fichiers 'form_fichiers.php' * Ces fichiers affichent les différents boutons correspondant aux commandes de l'appareil */ foreach($files as $dir){ $path = $chemin.'/'.$dir; if(is_dir($path)){ $subdir = array_diff(scandir($path),array('..','.')); if($dir!="Menus"){ echo '<div class="mr-md-1 pt-1 px-1 pt-md-1 px-md-1">'; } foreach($subdir as $new_dir){ $path2 = $path.'/'.$new_dir; if(is_dir($path2)){ $fichiers = array_diff(scandir($path2),array('..','.')); foreach($fichiers as $form){ $path3 = $path2.'/'.$form; if(is_file($path3) && strpos($path3,"form")!=false){ include($path3); } } } } if($dir!="Menus"){ echo '</div>'; } } } echo '</div>'; echo '</div>'; echo '</div>'; ?> </html>