69 lines
3.9 KiB
PHP
Executable File
69 lines
3.9 KiB
PHP
Executable File
<?php $nbligne = 0; ?>
|
|
<div id="div_bonpecs">
|
|
<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 colspan="2" style="text-align: center;"> <?= _("Bénéficiaire") ?> </th>
|
|
<th colspan="2" style="text-align: center;"> <?= _("Utilisation") ?> </th>
|
|
<th style="text-align: center;"> <?= _("Attribution") ?> </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 ?>'); annuler_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 ?>'); annuler_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 ?>'); annuler_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 ?>'); annuler_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>
|