a
This commit is contained in:
parent
2fd53094ff
commit
4f420ebbe8
|
|
@ -17986,12 +17986,13 @@ function affichelisteprestataires(libelle)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectPrestataire(code, libelle){
|
function selectPrestataire(code, libelle, rdvPossible){
|
||||||
nomForm = $("#nomForm").val();
|
nomForm = $("#nomForm").val();
|
||||||
|
alert("rdvPossible => "+rdvPossible);
|
||||||
$("#searchInputPrestataire").val(libelle);
|
$("#searchInputPrestataire").val(libelle);
|
||||||
$("#div_selection_prestataire").hide();
|
$("#div_selection_prestataire").hide();
|
||||||
$("#codePrestataire").val(code);
|
$("#codePrestataire").val(code);
|
||||||
|
$("#rdvPossible").val(rdvPossible);
|
||||||
}
|
}
|
||||||
|
|
||||||
function estDateAnncienne(date) {
|
function estDateAnncienne(date) {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ if(!empty($prestataires)) {
|
||||||
<?php
|
<?php
|
||||||
foreach($prestataires as $v) {
|
foreach($prestataires as $v) {
|
||||||
?>
|
?>
|
||||||
<li onClick="selectPrestataire('<?=$v["code"];?>', '<?=$v["libelle"];?>')"><?= $v["libelle"]; ?></li>
|
<li onClick="selectPrestataire('<?=$v["code"];?>', '<?=$v["libelle"];?>', '<?=$v["rdvPossible"];?>')"><?= $v["libelle"]; ?></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
$debutRdv = $this->nettoyer($demande['debutRdv']);
|
$debutRdv = $this->nettoyer($demande['debutRdv']);
|
||||||
$finRdv = $this->nettoyer($demande['finRdv']);
|
$finRdv = $this->nettoyer($demande['finRdv']);
|
||||||
$codePrestataire = $this->nettoyer($demande['codePrestataire']);
|
$codePrestataire = $this->nettoyer($demande['codePrestataire']);
|
||||||
|
$rdvPossible = $this->nettoyer($demande['rdvPossible']);
|
||||||
$prestataire = $this->nettoyer($demande['prestataire']);
|
$prestataire = $this->nettoyer($demande['prestataire']);
|
||||||
$codeSpecialite = $this->nettoyer($demande['codeSpecialite']);
|
$codeSpecialite = $this->nettoyer($demande['codeSpecialite']);
|
||||||
$etatRdv = $this->nettoyer($demande['etatRdv']);
|
$etatRdv = $this->nettoyer($demande['etatRdv']);
|
||||||
|
|
@ -34,6 +35,7 @@
|
||||||
$debutRdv = date('Y-m-d');
|
$debutRdv = date('Y-m-d');
|
||||||
$finRdv = date('Y-m-d');
|
$finRdv = date('Y-m-d');
|
||||||
$codePrestataire = "";
|
$codePrestataire = "";
|
||||||
|
$rdvPossible = "1";
|
||||||
$prestataire = "";
|
$prestataire = "";
|
||||||
$codeSpecialite = "";
|
$codeSpecialite = "";
|
||||||
$etatRdv = "";
|
$etatRdv = "";
|
||||||
|
|
@ -177,10 +179,12 @@
|
||||||
value="<?= $prestataire; ?>"
|
value="<?= $prestataire; ?>"
|
||||||
placeholder="<?= _('Rechercher un prestataire') ?>">
|
placeholder="<?= _('Rechercher un prestataire') ?>">
|
||||||
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $codePrestataire; ?>">
|
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $codePrestataire; ?>">
|
||||||
|
<input class="sr-only" type="text" id="rdvPossible" name="rdvPossible" value="<?= $rdvPossible; ?>">
|
||||||
<div id="div_selection_prestataire" class="mt-2"></div>
|
<div id="div_selection_prestataire" class="mt-2"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Affichage mobile (cartes) -->
|
<!-- Affichage mobile (cartes) -->
|
||||||
<div class="d-md-none">
|
<div class="d-md-none">
|
||||||
|
<input class="sr-only" type="text" id="rdvPossible" name="rdvPossible" value="<?= $rdvPossible; ?>">
|
||||||
<select class="form-select mobile-select" id="codePrestataire" name="codePrestataire"
|
<select class="form-select mobile-select" id="codePrestataire" name="codePrestataire"
|
||||||
<?= ($codeEtatRdv != "0") ? 'disabled' : 'required' ?>>
|
<?= ($codeEtatRdv != "0") ? 'disabled' : 'required' ?>>
|
||||||
<?php liste_options($prestataires, $codePrestataire); ?>
|
<?php liste_options($prestataires, $codePrestataire); ?>
|
||||||
|
|
|
||||||
|
|
@ -548,7 +548,7 @@
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
|
|
||||||
<script src="Js/fonctions.js?ver=2026.01.16.01"></script>
|
<script src="Js/fonctions.js?ver=2026.03.05.00"></script>
|
||||||
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
<script src="Bootstrap/js/bootstrap.min.js"></script>
|
||||||
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user