1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00
openstamanager/templates/automezzi_inventario/body.php

57 lines
2.2 KiB
PHP
Raw Normal View History

2023-11-30 12:57:03 +01:00
<?php
2023-12-01 17:21:47 +01:00
2024-01-15 15:30:45 +01:00
include_once __DIR__.'/../../core.php';
2023-11-30 12:57:03 +01:00
2024-01-15 15:30:45 +01:00
echo '<br>';
2023-12-01 17:21:47 +01:00
2024-01-15 15:30:45 +01:00
$targa = '';
if ($rs) {
for ($r = 0; $r < sizeof($rs); ++$r) {
if ($targa != $rs[$r]['targa']) {
if ($targa != '') {
echo '
2023-12-28 14:24:49 +01:00
</table>
<br/>';
2024-01-15 15:30:45 +01:00
}
echo "
2023-12-28 14:24:49 +01:00
<table cellspacing='0' style='table-layout:fixed;'>
<col width='150'><col width='250'>
<tr>
<th bgcolor='#ffffff' class='full_cell1 cell-padded' width='150'>Targa: ".$rs[$r]['targa']."</th>
<th bgcolor='#ffffff' class='full_cell cell-padded' width='250'>Automezzo: ".$rs[$r]['nome']."</th>
</tr>
</table>
<table class='table table-bordered' cellspacing='0' style='table-layout:fixed;'>
<col width='50'><col width='300'><col width='50'><col width='50'><col width='50'>
<tr>
<th bgcolor='#dddddd' class='full_cell1 cell-padded' width='10%'>Codice</th>
<th bgcolor='#dddddd' class='full_cell cell-padded' >Descrizione</th>
<th bgcolor='#dddddd' class='full_cell cell-padded' width='20%'>Sub.Cat.</th>
<th bgcolor='#dddddd' class='full_cell cell-padded' width='15%'>Q.t&agrave;</th>
<th bgcolor='#dddddd' class='full_cell cell-padded' width='5%'></th>
</tr>";
2024-01-15 15:30:45 +01:00
$targa = $rs[$r]['targa'];
}
echo '
2023-12-28 14:24:49 +01:00
<tr>';
2023-12-01 17:21:47 +01:00
2024-01-15 15:30:45 +01:00
$qta = number_format($rs[$r]['qta'], 3, ',', '.').'&nbsp;'.$rs[$r]['um'];
2023-11-30 12:57:03 +01:00
2024-01-15 15:30:45 +01:00
echo "
2023-12-28 14:24:49 +01:00
<td class='first_cell cell-padded'>".$rs[$r]['codice']."</td>
<td class='table_cell cell-padded'>".$rs[$r]['descrizione']."</td>
<td class='table_cell cell-padded'>".$rs[$r]['subcategoria']."</td>
<td class='table_cell text-right cell-padded'>".$qta."</td>
<td class='table_cell cell-padded'></td>
</tr>";
2023-11-30 12:57:03 +01:00
}
2024-01-15 15:30:45 +01:00
} else {
echo 'Nessun articolo caricato negli automezzi.';
}
2023-12-28 14:24:49 +01:00
2024-01-15 15:30:45 +01:00
if ($targa != '') {
echo '
2023-12-01 17:21:47 +01:00
</table>';
2024-01-15 15:30:45 +01:00
}