202 lines
7.6 KiB
PHP
Executable File
202 lines
7.6 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER SANTE - Liste Prestataires réseau";
|
|
|
|
?>
|
|
|
|
|
|
<legend> <?= _("BASCULEMENT DES ADHERENTS DANS UNE AUTRE POLICE") ?> </legend>
|
|
|
|
<div id="div_garant_police">
|
|
<table class="table table-responsive table-condensed" style="font-size:10pt;">
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" class="required text-center"> <?= _("Garant") ?> </td>
|
|
<td width="40%">
|
|
<SELECT style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" id="codeGcAssureur" NAME="codeGcAssureur" required AUTOCOMPLETE="OFF" autofocus
|
|
onChange="filtrepolicesgarant(); filtreproduitgarant();" >
|
|
<?php liste_options($garants,"",false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td width="6%" class="required text-center"> <?= _("Produit") ?> </td>
|
|
<td width="40%">
|
|
<div id="div_produit">
|
|
<SELECT style="font-size:10pt; height:30px;" class="form-select" id="codeProduit" NAME="codeProduit" required AUTOCOMPLETE="OFF">
|
|
<?php liste_options($produits,"",false); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="required text-center" > <?= _("Police") ?> </td>
|
|
<td>
|
|
<div id="div_police">
|
|
<select name="idPolice" id="idPolice" class="form-select" onchange="">
|
|
<?= liste_options($polices,'',false) ?>
|
|
</select>
|
|
<div>
|
|
</td>
|
|
|
|
<td class="required text-center"> <?= _("Collège") ?> </td>
|
|
<td >
|
|
<div id="div_college">
|
|
<SELECT style="font-size:10pt; height:30px;" class="form-control selectpicker" data-live-search="true" id="idCollege" NAME="idCollege" required AUTOCOMPLETE="OFF" autofocus
|
|
onChange="" >
|
|
<?php liste_options($colleges,"",false); ?>
|
|
</SELECT>
|
|
<div>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" class="required"> <?= _("Option") ?> </td>
|
|
<td>
|
|
|
|
<select name="idOption" id="idOption" class="form-select" onchange="" style="font-size:12pt; height:30px;">
|
|
<?= liste_options($options,'',true) ?>
|
|
</select>
|
|
</td>
|
|
<td align="center" class="required"> <?= _("Date effet") ?> </td>
|
|
<td > <INPUT style='text-align:center; font-size:11pt;' class="form-control datepicker" TYPE="text" id="dateEffet" NAME="dateEffet" value="" required AUTOCOMPLETE="OFF"> </td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td align='center' colspan="4">
|
|
<button type="button" style="font-size:10pt;" class="form-control btn btn-primary"
|
|
onclick="javascript:afficher_adherent_bascule();" > <?= _("Actualiser...") ?>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="div_adherents" class="col-lg-20">
|
|
<div id="div_adherents_police" class="table-responsive col-lg-6">
|
|
<legend align='center' style="font-size:10pt; font-weight:bold; vertical-align: middle;"><?= _("Adhérents à basculer") ?></legend>
|
|
|
|
<table id="tab_entete1" class="table table-condensed table-responsive">
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" align="center" > <?= _("Collège") ?> </td>
|
|
<td >
|
|
<select name="idCollegePolice" id="idCollegePolice" class="form-control selectpicker" data-live-search="true" onchange="filtreadherentcollege();" style="font-size:12pt; height:30px;">
|
|
<?php liste_options_consultation($collegesPolice, $_SESSION['idCollegePolice']); ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_college_police">
|
|
<table class="table table-condensed table-responsive">
|
|
<tbody>
|
|
<tr>
|
|
<td >
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne1" name="nbligne1" value="Total :<?= format_N(count($adherents));?>" readonly>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table id="tab_adherents_dispo" class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center' width="8%"> <?= _("Numéro") ?> </th>
|
|
<th> <?= _("Nom & Prénoms") ?> </th>
|
|
<th style='text-align:center'> <?= _("Produit") ?> </th>
|
|
<th style='text-align:center'> <?= _("Collège") ?> </th>
|
|
<th style='text-align:center'> => </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="6">
|
|
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-primary"
|
|
onclick="javascript:ajouter_tous_adherents_basculer();" >
|
|
<?= "============================ "._("Basculer Tous")." ============================>" ?>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($adherents as $adherent):
|
|
$idAdherent=$adherent['id'];
|
|
$noAdh=$this->nettoyer($adherent['numeroAdherent']);
|
|
$nomAdh= $this->nettoyer($adherent['nom'])." ".$this->nettoyer($adherent['prenoms']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align="center"> <?= $noAdh ?> </td>
|
|
<td><?= $nomAdh ?></td>
|
|
<td align='center'><?= $this->nettoyer($adherent['codeProduit']) ?></td>
|
|
<td><?= $this->nettoyer($adherent['libelleCollege']) ?></td>
|
|
|
|
<td align='center'>
|
|
<input type="button" value="=>" onClick="javascript:ajouter_adherent_bascule('<?=$noAdh?>');"
|
|
style="font-size:10pt; width:30px;" >
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_adherents_bascule" class="table-responsive">
|
|
<legend align='center' style="font-size:10pt; font-weight:bold; vertical-align: middle;">
|
|
<?= _("Adhérents basculés") ?>
|
|
</legend>
|
|
<table class="table table-condensed table-responsive">
|
|
<tbody>
|
|
<tr>
|
|
<td >
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne2" name="nbligne2"
|
|
value="Total : <?= Format_N(count($adherentsBascules))?>" readonly>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <= </th>
|
|
<th style='text-align:center' width="8%"> <?= _("Numéro") ?> </th>
|
|
<th> <?= _("Nom & Prénoms") ?> </th>
|
|
<th style='text-align:center'> <?= _("Produit") ?> </th>
|
|
<th style='text-align:center'> <?= _("Collège") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="6">
|
|
<button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_adherent_bascule();" >
|
|
<?= "<================== " . _("Retirer Tous")." ==================" ?>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($adherentsBascules as $adherent):
|
|
$idAdherent=$adherent['id'];
|
|
$noAdh=$this->nettoyer($adherent['numeroAdherent']);
|
|
$nomAdh= $this->nettoyer($adherent['nom'])." ".$this->nettoyer($adherent['prenoms']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'>
|
|
<input type="button" value="<=" onclick="javascript:retirer_adherent_bascule('<?=$noAdh?>');"
|
|
style="font-size:10pt; width:30px;">
|
|
</td>
|
|
<td align="center"> <?= $noAdh ?> </td>
|
|
<td><?= $nomAdh ?></td>
|
|
<td align='center'><?= $this->nettoyer($adherent['codeProduit']) ?></td>
|
|
<td><?= $this->nettoyer($adherent['libelleCollege']) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|