102 lines
4.1 KiB
PHP
Executable File
102 lines
4.1 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
?>
|
|
<div class="modal-dialog modal-lg" style="width:70%">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal">×</button>
|
|
<legend class="modal-title" id="user" style="text-align:center;"><?= _("Motifs d'exclusions"); ?></legend>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="div_exclusion" style="margin-top:-50px;">
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%" align="center" class="required"> <?= _("Motif d'exclusion") ?> </td>
|
|
<td>
|
|
<select class="form-select" data-live-search="true" id="codeMotifRejet" NAME="codeMotifRejet" required AUTOCOMPLETE="OFF" style='font-size:10pt;' >
|
|
<?php liste_options($motifrejets, ""); ?>
|
|
</select>
|
|
</td>
|
|
<br>
|
|
<input id="idFacture" name="idFacture" type="hidden" value="<?= $idFacture ?>" >
|
|
<input id="numeroLotDecompte" name="numeroLotDecompte" type="hidden" value="<?= $numeroLotDecompte ?>" >
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" align="center" > <?= _("Observation particulière") ?> </td>
|
|
<td>
|
|
<textarea class="form-control"name="motifManuel" id="motifManuel" cols="30" rows="10"></textarea>
|
|
</td>
|
|
<br>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<input id="btn_enreg_exlusion_decompte" name="btn_enreg_exlusion_decompte" class="form-control btn btn-primary" type="button" value="Enregistrer" onclick="javascript:enregistrer_motif_decompte();" style="font-size:10pt;">
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div id="div_motif_exclusions">
|
|
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" width="13%" style="text-align:center"> Date </th>
|
|
<th rowspan="2" style="text-align:center"> <?= _("Motif") ?> </th>
|
|
<th rowspan="2" style="text-align:center"> Observation </th>
|
|
<th rowspan="2" width="10%" style="text-align:center"> User </th>
|
|
<th colspan="3" style='text-align:center'> <?= _("Suppression") ?> </th>
|
|
</tr>
|
|
<tr>
|
|
<th style="text-align:center"> X </th>
|
|
<th style="text-align:center"> User </th>
|
|
<th style="text-align:center"> Date </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($motifrejetsAll as $motifrejet):
|
|
|
|
$idMotifDecompte = $this->nettoyer($motifrejet['idMotifDecompte']);
|
|
$supprime = $this->nettoyer($motifrejet['supprime']);
|
|
|
|
$codeMotifRejet = $this->nettoyer($motifrejet['codeMotifRejet']);
|
|
$motifManuel = $this->nettoyer($motifrejet['motifManuel']);
|
|
|
|
$motif = $this->nettoyer($motifrejet['motif']);
|
|
|
|
if (est_anglophone()){
|
|
$motif = $this->nettoyer($motifrejet['motifEng']);
|
|
}
|
|
|
|
?>
|
|
<?php if($supprime=='1'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td align='center'><?= dateheureLang($this->nettoyer($motifrejet['dateSysteme'])) ?></td>
|
|
<td align='center'> <?= $motif ?> </td>
|
|
<td align='center'> <?= $motifManuel ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($motifrejet['userSaisie']) ?> </td>
|
|
|
|
<td align='center'>
|
|
<?php if($supprime!='1'): ?>
|
|
<input type="button" value="X" onClick="javascript:supprimer_motifs('<?= $idMotifDecompte ?>');">
|
|
<?php endif; ?>
|
|
</td>
|
|
<td align='center'> <?= $this->nettoyer($motifrejet['userSuppression']) ?> </td>
|
|
<td align='center'><?= dateheureLang($this->nettoyer($motifrejet['heueSuppression'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" id="close_pop_motifs" class="btn btn-default" data-bs-dismiss="modal">Fermer</button>
|
|
</div>
|
|
</div>
|
|
</div>
|