89 lines
3.3 KiB
PHP
Executable File
89 lines
3.3 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Lister Souscripteurs";
|
|
|
|
$nbreTotal = count($clients);
|
|
if($nbreTotal < 10){
|
|
$nbreTotal = '0'.$nbreTotal;
|
|
}
|
|
|
|
?>
|
|
<legend> Listes des Souscripteurs </legend>
|
|
<button class="sr-only" id="btn_liste_clients" name="btn_liste_clients" type="button" data-bs-toggle="modal" data-bs-target="#pop_liste_clients" > </button>
|
|
|
|
<table style="margin: auto" class="table-responsive">
|
|
<tbody>
|
|
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="Total enregistré : <?= $nbreTotal; ?>" readonly> </td>
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="7%" > <?= _("Numéro") ?> </th>
|
|
<th width="20%"> <?= _("Nom") ?> </th>
|
|
<th style="text-align:center"> <?= _("Type") ?> </th>
|
|
<th style="text-align:center" > <?= _("Cel / Fixe") ?> </th>
|
|
<th width="20%" style="text-align:center" > <?= _("Ville") ?> </th>
|
|
<th style="text-align:center" > <?= _("Pays") ?> </th>
|
|
<th style="text-align:center" >Police Encours</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($clients as $client):
|
|
$id = $this->nettoyer($client['id']);
|
|
$nocli = $this->nettoyer($client['numeroClient']);
|
|
$court = $this->nettoyer($client['nomCourt']);
|
|
$long = $this->nettoyer($client['nomClient']);
|
|
$nom = !empty($cli) ? $court : $long;
|
|
$type = $this->nettoyer($client['clientTypeFr']);
|
|
$ec = $this->nettoyer($client['nbrePoliceEC']);
|
|
if ($ec < 10) {
|
|
$zero='0';
|
|
}else{
|
|
$zero = '';
|
|
}
|
|
|
|
if (est_anglophone()){
|
|
$type = $this->nettoyer($client['clientTypeEn']);
|
|
}
|
|
|
|
$nbeEC = empty($ec) ? '000' : $zero.$ec;
|
|
?>
|
|
<tr onclick="javascript:selectionner_client(<?= $id ?>,'<?= $nocli ?>');" ondblclick="javascript:selectionner_client(<?= $id ?>,'<?= $nocli ?>');afficher_client_id();" valign="top">
|
|
<td align="center"> <input type="button" value="<?= $nocli ?>" onClick="javascript:selectionner_client(<?= $id ?>,'<?= $nocli ?>');afficher_client_id();"> </td>
|
|
<td><?= $nom ?></td>
|
|
<td align="center"><?= $type ?></td>
|
|
<td align="center"><?= $this->nettoyer($client['telClient']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($client['localite']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($client['codePays']) ?></td>
|
|
<td align="center"><?= $nbeEC ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="modal fade" id="pop_liste_clients" 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"> <?= _("Exporter Liste Clients vers Excel...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_export_clients">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|