<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="fr">
  <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Paramètres PHP</title>
    <link rel="stylesheet" type="text/css" href="affiche_parametres.css">
  </head>
  <body>
  <?php
    
include "tools.php";
    
$dh=opendir("../fichiers");
    while(
$file=readdir($dh)) {
      if(!
is_dir("$fichiers/$file") && $file!="current_id") {
        
$array=unserialize(file_get_contents("../fichiers/$file"));  ?>
        <table>
      <caption>Paramètres de la requête <?= $file ?></caption>
          <tr><th>Nom</th><th>Valeur</th></tr>
          <?php foreach ($array as $cle => $valeur) {
                  echo 
"<tr><td>$cle</td><td>";
                  if(
is_array($valeur))
                    echo 
join(',',$valeur);
                  else
                    echo 
$valeur;
                  echo 
"</td></tr>\n";
                } 
?>
        </table>
      <?php }
    } 
?>
    <p><a href="formulaire.html">Ajouter un enregistrement</a></p>
  </body>
</html>