84 lines
3.2 KiB
PHP
Executable File
84 lines
3.2 KiB
PHP
Executable File
<?php
|
|
$nbligne = 0;
|
|
|
|
if (est_anglophone()){
|
|
if($existeselection){
|
|
$libbouton = "Uncheck all";
|
|
}else{
|
|
$libbouton = "Check all";
|
|
}
|
|
}else{
|
|
if($existeselection){
|
|
$libbouton = "Décocher tous";
|
|
}else{
|
|
$libbouton = "Cocher tous";
|
|
}
|
|
}
|
|
|
|
?>
|
|
|
|
<div id="div_liste_prestataire">
|
|
<input class="sr-only" type="text" id="fichier_lister" name="fichier_lister" value="Ajaxlisteprestatairegroupe" >
|
|
<div id="div_nblignes_cochee" style="width:20%; margin:auto;">
|
|
<table class="table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbcoche"
|
|
name="nbcoche" value="Lignes Cochées : <?= $this->nettoyer($nbreprestataire['nbcoche']) ?>" readonly>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th > <?= _("Nom") ?> </th>
|
|
<th style="text-align:center" width="5%" >Code</th>
|
|
<th style="text-align:center"> <?= _("Catégorie") ?> </th>
|
|
<th style="text-align:center" > Type </th>
|
|
<th style="text-align:center" > <?= _("Ville") ?> </th>
|
|
<th style="text-align:center"> <?= _("Pays") ?> </th>
|
|
<th class="text-center">
|
|
<button
|
|
type="button" id="btn-coche" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;"
|
|
class="form-control btn" onclick="javascript:selection_prestataire_groupe();" > <?= $libbouton; ?>
|
|
</button>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($prestataires as $prestataire):
|
|
$id = $this->nettoyer($prestataire['id']);
|
|
$codePrestataire = $this->nettoyer($prestataire['codePrestataire']);
|
|
$nbligne++;
|
|
?>
|
|
<tr ondblclick="javascript:afficher_prestataire_id(<?= $id ?>);" valign="top">
|
|
<td><?= $this->nettoyer($prestataire['libelle']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($prestataire['codePrestataire']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($prestataire['libelleCategorie']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($prestataire['typeprestataire']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($prestataire['localite']) ?></td>
|
|
<td align="center"><?= $this->nettoyer($prestataire['codePays']) ?></td>
|
|
<td class="text-center" width="10%">
|
|
<?php
|
|
if($this->nettoyer($prestataire['choix'] == '0')){
|
|
$check ='';
|
|
}
|
|
else{
|
|
$check = 'checked';
|
|
}
|
|
?>
|
|
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix"
|
|
NAME="choix" value="<?=(($this->nettoyer($prestataire['choix'])==0)? 0 : 1);?>"
|
|
onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),
|
|
<?= $id; ?>);" <?= $check;?>>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
|
|
</div>
|