72 lines
4.2 KiB
PHP
Executable File
72 lines
4.2 KiB
PHP
Executable File
<?php $nbligne = 0; ?>
|
|
<div id="div_bonpecs">
|
|
<!-- <table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;"> -->
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align: center;"> <?= _("Type") ?> </th>
|
|
<th style="text-align: center;"> <?= _("No Bon") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Attribution") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Réception") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Reçu par") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Etat") ?> </th>
|
|
<th style="text-align: center;"> <?= _("No Benef") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Nom Bénéf") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Date Util") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Util par") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Récept") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Rempl") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($bonpecs as $bonpec):
|
|
$codeEtatBon = $bonpec['codeEtatBon'];
|
|
$numeroBon = $bonpec['numeroBon'];
|
|
$idBon = $bonpec['idBon'];
|
|
$idgenerartionbon = $bonpec['idgenerartionbon'];
|
|
$motifAnnulation = $this->echapper($bonpec['motifAnnulation']);
|
|
$nbligne++;
|
|
?>
|
|
|
|
<?php if ($codeEtatBon=='0'): ?>
|
|
<tr style="text-align: center; color: rgb(220,20,54);"
|
|
onclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>');"
|
|
ondblclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>'); demander_annulation_bon();" valign="top"
|
|
>
|
|
<?php elseif($bonpec['codeEtatBon']=='1'): ?>
|
|
<tr style="text-align: center; color: rgb(0,128,0);" style="text-align: center;"
|
|
onclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>');"
|
|
ondblclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>'); demander_annulation_bon();" valign="top"
|
|
>
|
|
<?php elseif($bonpec['codeEtatBon']=='2'): ?>
|
|
<tr style="text-align: center; color: rgb(190,190,190);"
|
|
onclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>');"
|
|
ondblclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>'); demander_annulation_bon();" valign="top"
|
|
>
|
|
<?php elseif($bonpec['codeEtatBon']=='3' || $bonpec['codeEtatBon']=='4' || $bonpec['codeEtatBon']=='9'): ?>
|
|
<tr style="text-align: center; color: rgb(190,190,190); text-decoration: line-through;"
|
|
onclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>');"
|
|
ondblclick="javascript:selectionner_bon(<?= $idBon ?>,'<?= $numeroBon ?>','<?= $codeEtatBon ?>','<?= $motifAnnulation ?>'); demander_annulation_bon();" valign="top"
|
|
>
|
|
<?php endif; ?>
|
|
|
|
<td><?= $this->nettoyer($bonpec['codeTypeBon']) ?></td>
|
|
<td><?= $numeroBon ?></td>
|
|
<td><?= dateLang($this->nettoyer($bonpec['dateGeneration'])) ?></td>
|
|
<td><?= dateLang($this->nettoyer($bonpec['dateReception'])) ?></td>
|
|
<td><?= $this->nettoyer($bonpec['codeUtilisateurReception']) ?></td>
|
|
<td><?= $this->nettoyer($bonpec['etatBon']) ?></td>
|
|
<td><?= $this->nettoyer($bonpec['numeroBeneficiaire']) ?></td>
|
|
<td><?= $this->nettoyer($bonpec['beneficiaire']) ?></td>
|
|
<td><?= dateheureLang($this->nettoyer($bonpec['dateImpression'])) ?></td>
|
|
<td><?= $this->nettoyer($bonpec['codeUtilisateurImpression']) ?></td>
|
|
<td align="center"> <input type="button" value="<?= $idgenerartionbon ?>" onClick="javascript:afficher_detail_generartionbon(<?= $idgenerartionbon ?>);"> </td>
|
|
<td><?= $this->nettoyer($bonpec['numeroRemplacement']) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
|
|
</div>
|