materiels/src/templates/historique.tpl
Jean-Christophe Engel b236ef5f71 évolution code pour version 1.3 de paheko
correction décalage date affichée
2023-09-30 20:56:38 +02:00

55 lines
1.3 KiB
Smarty

<!-- nav bar-->
{include file="%s_nav.tpl"|args:$plugin_tpl current_nav="index"}
<!-- -->
<!-- -->
<h2 class="ruler">Historique des entrées / sorties</h2>
<br>
<!-- table of movements -->
{if $mvts}
<table class="list">
<thead>
<tr>
<th colspan="5">
<h3 class="ruler">{$eqmt_requested.designation} | {$eqmt_requested.category}</h3>
</th>
</tr>
<tr>
<th><b>Date</b></th>
<th><b>Sens</b></th>
<th><b>Type</b></th>
<th class="num"><b>Nombre</b></th>
<th><b>Remarques</b></th>
</tr>
</thead>
<tbody>
{foreach from=$mvts item="mvt"}
<tr>
<?php
$mvt_date = date("d/m/Y", strtotime($mvt->mvt_date));
?>
{*
<td>{$mvt.mvt_date|date_format:'%d/%m/%y'}</td>
Erreur : dates décalées d'un jour (en arrière)
*}
<td>{$mvt_date}</td>
{if $mvt.side}
<td>Sortie</td>
{else}
<td>Entrée</td>
{/if}
<td>{$mvt.kind}</td>
<td class="num">{$mvt.equipment_number}</td>
<td>{$mvt.additional_comment}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
<!-- -->
{linkbutton label="Retour" shape="export" href=$return_link}
<!-- footer -->
{include file="_foot.tpl"}
<!-- -->