Files
crm.twinpol.com/modules/EcmReports/tpls/pkwiu.tpl
2025-05-12 15:46:37 +00:00

103 lines
3.1 KiB
Smarty

<link rel="stylesheet" type="text/css" href="modules/EcmReports/css/SearchTable.css"/>
<script src="include/jQuery/tablesorter/jquery.tablesorter.min.js"></script>
<link class="theme" rel="stylesheet" href="include/jQuery/tablesorter/themes/blue/style.css">
<h1>Raport PKWiU</h1>
<ul class="tablist" style="width:100%;"></ul>
<form action="index.php" method="get" name="RaportAktywnosci">
<input type="hidden" id="module" name="module" value="EcmReports"/>
<input type="hidden" id="action" name="action" value="pkwiu"/>
<input type="hidden" id="process" name="process" value="1"/>
<table class="tabForm" cellspacing="0" cellpadding="0" border="0" style="border-top: 0px none; margin-bottom: 4px;width:100%">
<tr>
<td class="dataLabel" width="5%" nowrap="nowrap">Data od: </td>
<td class="dataField" width="8%" nowrap="nowrap">
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" title="" value="{$date_from}" autocomplete="off">
<img id="date_from_trigger" border="0" align="absmiddle" alt="Enter Date" src="themes/default/images/jscalendar.gif">
<script language="JavaScript" type="text/javascript">
Calendar.setup ({ldelim}
inputField : "date_from",
daFormat : "%d.%m.%Y",
button : "date_from_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
</tr>
<tr>
<td class="dataLabel" width="5%" nowrap="nowrap">Data do: </td>
<td class="dataField" width="8%" nowrap="nowrap">
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" title="" tabindex="" size="11" maxlength="10" type="text">
<img src="themes/default/images/jscalendar.gif" alt="Enter Date" id="date_to_trigger" align="absmiddle" border="0">
<script language="JavaScript" type="text/javascript">
Calendar.setup ({ldelim}
inputField : "date_to",
daFormat : "%d.%m.%Y",
button : "date_to_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
</tr>
</table>
<input type="submit" class="button" value="Wykonaj"/>
<input type="button" class="button" value="Wyczyść" onClick = "window.location='index.php?module=EcmReports&action=pkwiu'"/>
</form>
{if $fired==true}
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th class='sortby'>
KOD PKWiU
</th>
<th class='sortby'>
Kontrahent
</th>
<th width="10%" class='sortby'>
Ilość
</th>
</tr>
</thead>
{if $data|@count>0}
<tbody>
{foreach from=$data item=item key=item_name}
<tr>
<td><b>{$item.pkwiu}</b></td>
<td><b><a target="_blank" href="index.php?module=Accounts&action=DetailView&record={$item.parent_id}">{$item.parent_name}</a></b></td>
<td style="text-align:right"><b>{$item.sum|number_format:2:",":"."} kg</b></td>
</tr>
{assign var=total value=$total+$item.sum}
{/foreach}
</tbody>
<tfoot>
<tr>
<td colspan="2" style="text-align:right;">
Razem:
</td>
<td class="money">
{$total|number_format:2:",":"."} kg
</td>
</tr>
</tfoot>
{else}
<tbody>
<tr>
<td colspan="3"><b><center>BRAK DANYCH DO WYŚWIETLENIA</center></B></td>
</tr>
</tbody>
{/if}
</table>
{/if}