initial commit of code
This commit is contained in:
parent
9b00433142
commit
17d2c64f66
13 changed files with 1928 additions and 0 deletions
16
templates/bazar/km.tpl.html
Normal file
16
templates/bazar/km.tpl.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
$total = 0;
|
||||
$datejour = date("Y-m-d");
|
||||
foreach ($fiches as $f) {
|
||||
$trajet = baz_valeurs_fiche($f['trajet']);
|
||||
if ($trajet['date_du_trajet'] < $datejour) {
|
||||
$producteur = baz_valeurs_fiche($trajet['listefiche8producteur']);
|
||||
$total = $total + floatval($producteur['bf_kms_evites']);
|
||||
}
|
||||
}
|
||||
echo round($total * 100) / 100;
|
||||
?>
|
||||
|
||||
<style>
|
||||
[data-template="km.tpl.html"] { display:inline-block;}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue