<div class="container-fluid">
  <div class="row">
    <div class="col">
      <p>
        <?=count($actes);?> résultat<?=((count($actes)>1)?"s":"");?>
        &nbsp;|&nbsp;
        <a href="javascript:form(0);" class="icon-plus"> ajouter</a>
      </p>
    </div>
  </div>
  <?php if ($actes): ?>
    <div class="row">
      <div class="col p-0">
        <table class="table table-sm table-striped">
          <thead class="table-dark">
            <tr>
              <th style="width:50px;">Couleur</th>
              <th style="width:150px;">Abréviation</th>
              <th style="width:50px;">durée</th>
              <th>Nom</th>
              <th style="width:50px;">&nbsp;</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach ($actes as $key => $act): ?>
              <tr>
                <td valign="middle"> <input type="text" class="form-control form-control-sm color_picker" rel="<?=$act['id'];?>" name="couleur" id="couleur_<?=$act['id'];?>" value="<?=$act['couleur'];?>" onchange="javascript:maj(this);"> </td>
                <td><input type="text" class="form-control form-control-sm" rel="<?=$act['id'];?>" name="abrev" id="abrev_<?=$act['id'];?>" value="<?=$act['abrev'];?>" onblur="javascript:maj(this);"></td>
                <td><input type="text" class="form-control form-control-sm text-center" rel="<?=$act['id'];?>" name="duree" id="duree_<?=$act['id'];?>" value="<?=$act['duree'];?>" onblur="javascript:maj(this);"></td>
                <td><input type="text" class="form-control form-control-sm" rel="<?=$act['id'];?>" name="libel" id="libel_<?=$act['id'];?>" value="<?=$act['libel'];?>" onblur="javascript:maj(this);"></td>
                <td> <button type="button" class="btn btn-sm btn-link text-danger text-decoration-none icon-cross" onclick="javascript:supprime(<?=$act['id'];?>);"></button> </td>
              </tr>
            <?php endforeach; ?>
          </tbody>
        </table>
      </div>
    </div>
  <?php else: ?>
    <div class="row">
      <div class="col">
        <p>Aucun résultat...</p>
      </div>
    </div>
  <?php endif; ?>
</div>
