133 lines
5.0 KiB
PHP
Executable File
133 lines
5.0 KiB
PHP
Executable File
<?php
|
|
//var_dump($_SESSION['idCollegePolice']);
|
|
|
|
?>
|
|
|
|
<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>
|