<div class="modal fade" id="dialog-form_prescription" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <form class="" action="" method="post" onsubmit="javascript:traitFormPrescription();return false;">
        <input type="hidden" name="id_prescription" id="id_prescription" value="<?=intval($prescription['id']);?>">
        <div class="modal-header">
          <h5 class="modal-title" id="staticBackdropLabel">
            Prescription : <?=$libel_prescription;?>
          </h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Annuler"></button>
        </div>
        <div class="modal-body">

          <div class="container-fluid">
            <div class="row">
              <div class="col">
                <h3 class="border-bottom border-dark text-center mt-3">Patient</h3>
              </div>
            </div>
            <div class="row">
              <div class="col">
                <p>
                  Nom prénom : <?=$patient['nom'];?> <?=$patient['prenom'];?><br>
                  Date de naissance : <?=$patient['dn'];?>
                </p>
              </div>
            </div>
            <div class="row">
              <div class="col">
                <h3 class="border-bottom border-dark text-center mt-3">Dates</h3>
              </div>
            </div>
            <div class="row">
              <div class="col-4">
                <label for="date" class="form-label">Prescription</label>
                <input type="text" data-role="date" data-inline="true" class="form-control form-control-sm date_picker" name="date" id="date" value="<?=$prescription['aff_date'];?>">
              </div>

              <div class="col-4">
                <label for="du" class="form-label">Début</label>
                <input type="text" class="form-control form-control-sm date_picker" name="du" id="du" value="<?=$prescription['aff_du'];?>">
              </div>

              <div class="col-4">
                <label for="au" class="form-label">Fin</label>
                <input type="text" class="form-control form-control-sm date_picker" name="au" id="au" value="<?=$prescription['aff_au'];?>">
              </div>
            </div>
            <div class="row">
              <div class="col">
                <h3 class="border-bottom border-dark text-center mt-3">Actes médicaux</h3>
              </div>
            </div>
            <div class="row">
              <div class="col" id="div_liste_acte">

              </div>
            </div>
            <div class="row">
              <div class="col">
                <h3 class="border-bottom border-dark text-center mt-3">Détails</h3>
              </div>
            </div>
            <div class="row mb-3">
              <div class="col">
                <textarea name="details" id="details" class="form-control form-control-sm" placeholder="détails" style="height:50px;"><?=$prescription['details'];?></textarea>
              </div>
            </div>

            <button type="button" onclick="javascript:scanOrdonnance();">SCAN ORDONNANCE</button>

            <?php if (is_file('./assets/images/ordonnance/'.$prescription['id'].'.png')): ?>
              <img src="<?=base_url();?>/assets/images/ordonnance/<?=$prescription['id'];?>.png" class="img-fluid" alt="">
            <?php endif; ?>

          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
          <button type="submit" class="btn btn-primary">Enregistrer</button>
        </div>
      </form>
    </div>
  </div>
</div>
