56 lines
2.8 KiB
PHP
Executable File
56 lines
2.8 KiB
PHP
Executable File
<div id="div_listeconsommable">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th rowspan="2" width="5%" style="text-align:center" > <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popCreerConsommable" style='font-size:10pt;' > + </button> </td>
|
|
<th rowspan="2" width="45%" style="text-align:center"> <?= _("Nom Consommable") ?> </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Valeurs") ?> </th>
|
|
<th rowspan="2" width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th rowspan="2" width="10%" style="text-align:center"> <?= _("Frais") ?> </th>
|
|
<th rowspan="2" width="5%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th rowspan="2"width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th width="10%" style="text-align:center"> <?= _("Ancien") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Nouveau") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($consommables as $consommable):
|
|
$idConsommable = $this->nettoyer($consommable['id']);
|
|
$libelleConsommable = $this->echapper($consommable['libelleConsommable']);
|
|
$valeurActe = $this->nettoyer($consommable['valeurActe']);
|
|
?>
|
|
<tr ondblclick="javascript:ajouter_consommable('<?=$idConsommable?>','<?=$libelleConsommable?>');" valign="top">
|
|
|
|
<?php if($valeurActe=="0") : ?>
|
|
<td width="5%" align='center'> </td>
|
|
<?php else: ?>
|
|
<td width="5%" align='center'> <input type="button" value=" + " onClick="javascript:ajouter_consommable('<?=$idConsommable?>','<?=$libelleConsommable?>');" ></td>
|
|
<?php endif; ?>
|
|
|
|
<td> <?= $this->dechapper($libelleConsommable) ?> </td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($consommable['valeurActe'])) ?> </td>
|
|
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($consommable['valeurActe']) ?>"
|
|
onBlur="ajax_maj_prix_consommable('<?=$idConsommable?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($consommable['quantite']) ?>"
|
|
onBlur="ajax_maj_qte_consommable('<?=$idConsommable?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($consommable['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($consommable['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($consommable['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|