113 lines
5.9 KiB
PHP
Executable File
113 lines
5.9 KiB
PHP
Executable File
<?php $this->titre = "INTER SANTE - Factures Garants"; ?>
|
|
<legend><?= _("Sélectionner Garants et Nature Facture")?></legend>
|
|
|
|
|
|
<div id="div_filtre" style="border-bottom: 3px solid black;">
|
|
<div class="row">
|
|
<div id="div_garant" class="col-6 scrollable-div" >
|
|
<INPUT class="sr-only" TYPE="text" id="nbreGarantsSelection" name="nbreGarantsSelection" value="<?= $nbreGarantsSelection ?>"/>
|
|
|
|
<table id="tab_garant" class="table table-striped table-bordered table-hover table-condensed table-responsive datatab compact" style="font-size:11pt; margin-top:5px;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center '>
|
|
<?php if($choixTousGarant=='1'): ?>
|
|
<input type="checkbox" checked value="<?php echo $choixTousGarant; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_tous_garant_a_facturer(this.value);">
|
|
<?php else: ?>
|
|
<input type="checkbox" value="<?php echo $choixTousGarant; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_tous_garant_a_facturer(this.value);"></td>
|
|
<?php endif; ?>
|
|
</th>
|
|
|
|
<th style='text-align:center; font-size:12pt '> <span id="span_selec_garant"><?= _("Garants")." ( ".$nbreGarantsSelection." / ".count($listeGarants)." )" ?> </span></th>
|
|
</tr>
|
|
<tr>
|
|
<th style='text-align:center ' width="10%"> <?= _("Choix") ?> </th>
|
|
|
|
<th style='text-align:center'> <?= _("Nom") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
foreach ($listeGarants as $v):
|
|
$idGarant=$this->nettoyer($v['id']);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if($v['choix']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $v['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_garant_a_facturer(this.value, <?= $idGarant ?>);"></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $v['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_garant_a_facturer(this.value, <?= $idGarant ?>);"></td>
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $this->nettoyer($v['libelle']) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="div_type_facture" class="col-6 scrollable-div">
|
|
<INPUT class="sr-only" TYPE="text" id="nbreNatureFacSelection" name="nbreNatureFacSelection" value="<?= $nbreNatureFacSelection ?>"/>
|
|
<table id="tab_nature_facture" class="table table-striped table-bordered table-hover table-condensed table-responsive datafiltre compact" style="font-size:11pt; margin-top:5px;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'>
|
|
<?php if($choixToutesNaturesFacture=='1'): ?>
|
|
<input type="checkbox" checked value="<?php echo $choixToutesNaturesFacture; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_toutes_natures_facture(this.value);">
|
|
<?php else: ?>
|
|
<input type="checkbox" value="<?php echo $choixToutesNaturesFacture; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_toutes_natures_facture(this.value);"></td>
|
|
<?php endif; ?>
|
|
</th>
|
|
<th colspan="2" style='text-align:center; font-size:12pt '> <span id="span_selec_typefac"><?= _("Nature Facture")." ( ".$nbreNatureFacSelection." / ".count($listeNatureFacture)." )" ?> </span></th>
|
|
</tr>
|
|
<tr>
|
|
<th style='text-align:center ' width="10%"> <?= _("Choix") ?> </th>
|
|
<th style='text-align:center'> <?= _("Code") ?> </th>
|
|
<th style='text-align:center'> <?= _("Nom") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
|
|
foreach ($listeNatureFacture as $v):
|
|
$idNature=$this->nettoyer($v['id']);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if($v['choix']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $v['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_naturefacture_garant_a_facturer(this.value, <?= $idNature ?>);"></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $v['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_naturefacture_garant_a_facturer(this.value, <?= $idNature ?>);"></td>
|
|
<?php endif; ?>
|
|
<td style="text-align:center"> <?= $this->nettoyer($v['codeNatureFacturationGarant']) ?> </td>
|
|
<td > <?= $this->nettoyer($v['libelle']) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_filtre_facture" class="col-12" >
|
|
<legend> <?= _("LISTE DES FACTURES") ?> </legend>
|
|
<INPUT class="sr-only" TYPE="text" id="encaisse" NAME="encaisse" value="">
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td width="21%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="debut" NAME="debut" value="<?= dateLang($_SESSION['debutExercice_C']) ?>" required AUTOCOMPLETE="OFF" onchange="javascript:filtrer_facture_garants();"></td>
|
|
|
|
<td width="5%" align="center"> <?= _("Fin") ?> </td>
|
|
<td width="21%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="fin" NAME="fin" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required AUTOCOMPLETE="OFF" onchange="javascript:filtrer_facture_garants();"></td>
|
|
|
|
<td width="1%"> </td>
|
|
<td width="15%"> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:filtrer_facture_garants();"><?= _("Filtrer...") ?></button> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="div_liste_facture_garant" class="scrollable-div">
|
|
|
|
</div>
|