<?php
  switch ($type_repete) {
    case 'j':

    break;
    case 's':
      ?>
      <div class="d-flex flex-row flex-wrap align-items-center my-2">
        <span class="me-2"><b>Répéter le</b></span>
        <?php foreach ($jours as $key => $jour): ?>
          <a href="#" style="font-size:15px;line-height:1;" rel="<?=$jour['num'];?>" class="case_jour<?=(($num_jour==$jour['num'])?" case_jour_sel":"");?>"><?=$jour['abrev'];?></a>
        <?php endforeach; ?>
      </div>
      <?php
    break;
    case 'm':
    ?>
    <div class="my-2">
      <select class="" name="choix_repete_mois" id="choix_repete_mois">
        <option value="1"><?=$libel_choix_1;?></option>
        <option value="2"><?=$libel_choix_2;?></option>
      </select>
    </div>
    <?php
    break;
    case 'a':

    break;
  }
?>
<b>Se termine</b>
<div class="d-flex flex-row flex-wrap justify-content-start align-items-center mb-2">
  <input type="radio" name="fin_actes" id="fad" value="d" onclick="javascript:radioFinActes();" checked>
  <label for="fad" class="ms-1 me-2">Le</label>
  <input type="text" class="date_picker form-control form-control-sm px-0" style="width:120px;" name="new_acte_date_fin" id="new_acte_date_fin" value="<?=$df;?>">
</div>
<div class="d-flex flex-row flex-wrap justify-content-start align-items-center mb-2">
  <input type="radio" name="fin_actes" id="fao" value="o" onclick="javascript:radioFinActes();">
  <label for="fao" class="ms-1 me-2">Après</label>
  <input type="text" class="form-control form-control-sm mx-1" name="new_acte_nb_o" id="new_acte_nb_o" value="<?=$nbo;?>" style="width:50px;" disabled>
  <span>visite(s)</span>
</div>

<div class="form-check form-switch">
  <input class="form-check-input" type="checkbox" role="switch" id="new_acte_renouvelable" name="new_acte_renouvelable">
  <label class="form-check-label" for="new_acte_renouvelable">Renouvelable</label>
</div>
