72 lines
3.2 KiB
PHP
Executable File
72 lines
3.2 KiB
PHP
Executable File
<?php
|
|
$nbDestinataires = count($destinataire_selections);
|
|
?>
|
|
<div id="div_destinataire">
|
|
<div id="div_adherent_destinataire">
|
|
</div>
|
|
|
|
<div id="div_destinataire_final">
|
|
<input class="sr-only" type="text" id="nbDestinataires" name="nbDestinataires" value="<?= $nbDestinataires ?>">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"> <input style='font-size:10pt;' type="button" class = "form-control btn btn-primary" value="<?= _("Envoyer") ?>" onClick="javascript:mettre_sms_commun_attente();"> </td>
|
|
|
|
<td width="10%"> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" value="<?= format_N($nbDestinataires) ?>" readonly>
|
|
|
|
<td> <input style='font-size:10pt;' class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick='javascript:annuler_envoi_sms();'/> </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_selectionnes" class="col-6" style="padding-left:0px;padding-right:1px;">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" style='text-align:center'> <?= _("Destinataires non sélectionnés") ?> </th>
|
|
<th width="5%" style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="=>>" onClick="javascript:ajouter_tous_destinataires_sms();" > </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($destinataire_non_selections as $destinataire_non_selection):
|
|
$idDestinataire=$this->nettoyer($destinataire_non_selection['id']);
|
|
?>
|
|
<tr valign="top">
|
|
<td> <?= $this->nettoyer($destinataire_non_selection['libelleDestinataire']) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($destinataire_non_selection['destination']) ?></td>
|
|
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_destinataire_sms('<?=$idDestinataire?>');" ></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_non_selectionnes" class="col-6" style="padding-left:0px;padding-right:0px;">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="<<=" onClick="javascript:retirer_tous_destinataires_sms();" > </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Destinataires sélectionnés") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($destinataire_selections as $destinataire_selection):
|
|
$idDestinataire=$this->nettoyer($destinataire_selection['id']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_destinataire_sms('<?=$idDestinataire?>');" ></td>
|
|
<td> <?= $this->nettoyer($destinataire_selection['libelleDestinataire']) ?></td>
|
|
<td align='center'><?= $this->nettoyer($destinataire_selection['destination']) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|