193 lines
8.4 KiB
PHP
Executable File
193 lines
8.4 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER SANTE - Gestion Messagerie";
|
|
?>
|
|
|
|
|
|
<input class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="<?= $_SESSION['codePrestataire_C'] ?>">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="7%" > <?= _("Période du") ?> </td>
|
|
<td width="12%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="date1" NAME="date1" value="<?= dateLang($_SESSION['d1_C']) ?>" required AUTOCOMPLETE="OFF"></td>
|
|
|
|
<td width="5%" align="center" > <?= _("au") ?> </td>
|
|
<td width="12%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="date2" NAME="date2" value="<?= dateLang($_SESSION['d2_C']) ?>" required AUTOCOMPLETE="OFF"></td>
|
|
|
|
<td width="5%" align="center" > <?= _("Lu?") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="messageLu" NAME="messageLu" style='font-size:10pt;'>
|
|
<?php liste_options_consultation($ouinonlu, ""); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Prestataire") ?> </td>
|
|
<td colspan="2">
|
|
<?php if ($_SESSION['prestataire_C']>" "): ?>
|
|
<button id="btn_search_prestataire" name="btn_search_prestataire" type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRecherchePrestataire" style='font-size:10pt;' ><span id="nomPrestataire" name="nomPrestataire"> <?= $_SESSION['prestataire_C'] ?> </span></button>
|
|
<?php else : ?>
|
|
<button id="btn_search_prestataire" name="btn_search_prestataire" type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRecherchePrestataire" style='font-size:10pt;' ><span id="nomPrestataire" name="nomPrestataire"> <?= _("Tous / Rechercher Prestataire...") ?> </span></button>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> Message </td>
|
|
<td colspan="3"> <INPUT style='font-size:10pt;' class="form-control" type="text" id="textMessage" name="textMessage" > </td>
|
|
|
|
<td colspan="2" width="15%"> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="Lignes : 0" readonly> </td>
|
|
|
|
<td width="15%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:afficher_lite_messagerie_commun();"> <?= _("Mess Comm") ?> </button> </td>
|
|
<td width="15%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:afficher_lite_messagerie_form_me();"> <?= _("Pour moi seul...") ?> </button> </td>
|
|
<td width="15%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:afficher_lite_messagerie();"> <?= _("Tout...") ?> </button> </td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<div id="div_messagerie_gestion">
|
|
</div>
|
|
|
|
<button id="btn_pop_messagerie_reponse" NAME="btn_pop_messagerie_reponse" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popmessagerie_reponse"> <?= _("Répondre...") ?> </button>
|
|
|
|
<div class="modal fade" id="popmessagerie_reponse" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Répondre...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_messagerie_reponse">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="btn_pop_messagerie_reponse_quit" NAME="btn_pop_messagerie_reponse_quit" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button id="btn_pop_messagerie_historique" NAME="btn_pop_messagerie_historique" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popmessagerie_historique"> <?= _("Historique du message...") ?> </button>
|
|
|
|
<div class="modal fade" id="popmessagerie_historique" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Historique du message...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_messagerie_historique">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="btn_pop_messagerie_historique_quit" NAME="btn_pop_messagerie_historique_quit" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button id="btn_pop_messagerie_new" NAME="btn_pop_messagerie_new" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popmessagerie_new"> <?= _("Nouveau Message...") ?> </button>
|
|
|
|
<div class="modal fade" id="popmessagerie_new" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Nouveau Message...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_messagerie_new">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="btn_pop_messagerie_new_quit" NAME="btn_pop_messagerie_new_quit" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="modal fade" id="popRecherchePrestataire" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Rechercher un prestataire...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listeprestataires" onkeypress="javascript:ctrlkeypress_prestataire(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th colspan="2" style="text-align:center" > Type </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="codesearch" name="codesearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_prestataire();" /></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Ré-initialiser...") ?>" onclick="javascript:reinitialiser_prestataire();" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button id="btn_pop_messagerie_commun" NAME="btn_pop_messagerie_commun" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popmessagerie_commun"> <?= _("Message commun à tous les prestataires...") ?> </button>
|
|
|
|
<div class="modal fade" id="popmessagerie_commun" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Message commun à tous les prestataires...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_messagerie_commun">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="btn_pop_messagerie_commun_quit" NAME="btn_pop_messagerie_commun_quit" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|