Add html files

This commit is contained in:
2025-05-12 15:45:02 +00:00
parent 82d5804ac4
commit 7ddd15c4fa
1224 changed files with 277606 additions and 0 deletions

View File

@@ -0,0 +1,332 @@
<style type="text/css">
{literal}
body {
font-size: 7px;
}
/* overall */
.tablesorter-blue {
width: 100%;
background-color: #fff;
margin: 10px 0 15px;
text-align: left;
border-spacing: 0;
border: #fff 1px solid;
border-width: 1px 0 0 1px;
}
.tablesorter-blue th,
.tablesorter-blue td {
border: #fff 1px solid;
border-width: 0 1px 1px 0;
}
/* header */
.tablesorter-blue th,
.tablesorter-blue thead td {
font: bold 10px/18px Arial, Sans-serif;
color: #000;
background-color: #E6F2EE;
border-collapse: collapse;
padding: 4px;
border-top: 2px solid #ABC3D7;
}
.tablesorter-blue tbody td,
.tablesorter-blue tfoot th,
.tablesorter-blue tfoot td {
padding: 4px;
vertical-align: top;
}
.tablesorter-blue .header,
.tablesorter-blue .tablesorter-header {
/* black (unsorted) double arrow */
/* white (unsorted) double arrow */
/* background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAAP///////yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==); */
/* image */
/* background-image: url(images/black-unsorted.gif); */
background-repeat: no-repeat;
background-position: center right;
padding: 3px 18px 3px 3px;
white-space: normal;
cursor: pointer;
}
.tablesorter-blue .headerSortUp,
.tablesorter-blue .tablesorter-headerSortUp,
.tablesorter-blue .tablesorter-headerAsc {
background-color: #E7E7E9;
/* black asc arrow */
/* white asc arrow */
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7); */
/* image */
/* background-image: url(images/black-asc.gif); */
}
.tablesorter-blue .headerSortDown,
.tablesorter-blue .tablesorter-headerSortDown,
.tablesorter-blue .tablesorter-headerDesc {
background-color: #E7E7E9;
/* black desc arrow */
/* white desc arrow */
/* background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAAP///////yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7); */
/* image */
/* background-image: url(images/black-desc.gif); */
}
.tablesorter-blue thead .sorter-false {
background-image: none;
padding: 4px;
}
/* tfoot */
.tablesorter-blue tfoot .tablesorter-headerSortUp,
.tablesorter-blue tfoot .tablesorter-headerSortDown,
.tablesorter-blue tfoot .tablesorter-headerAsc,
.tablesorter-blue tfoot .tablesorter-headerDesc {
/* remove sort arrows from footer */
background-image: none;
}
/* tbody */
.tablesorter-blue td {
color: #3d3d3d;
background-color: #fff;
padding: 0px;
vertical-align: top;
}
/* hovered row colors
you'll need to add additional lines for
rows with more than 2 child rows
*/
.tablesorter-blue tbody > tr:hover > td,
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow > td,
.tablesorter-blue tbody > tr:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td,
.tablesorter-blue tbody > tr.even:hover > td,
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow > td,
.tablesorter-blue tbody > tr.even:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
background: #d9d9d9;
}
.tablesorter-blue tbody > tr.odd:hover > td,
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow > td,
.tablesorter-blue tbody > tr.odd:hover + tr.tablesorter-childRow + tr.tablesorter-childRow > td {
background: #bfbfbf;
}
/* table processing indicator */
.tablesorter-blue .tablesorter-processing {
background-position: center center !important;
background-repeat: no-repeat !important;
/* background-image: url(../addons/pager/icons/loading.gif) !important; */
}
/* Zebra Widget - row alternating colors */
.tablesorter-blue tbody tr.odd td {
background-color: #ebf2fa;
}
.tablesorter-blue tbody tr.even td {
background-color: #fff;
}
/* Column Widget - column sort colors */
.tablesorter-blue td.primary,
.tablesorter-blue tr.odd td.primary {
background-color: #99b3e6;
}
.tablesorter-blue tr.even td.primary {
background-color: #c2d1f0;
}
.tablesorter-blue td.secondary,
.tablesorter-blue tr.odd td.secondary {
background-color: #c2d1f0;
}
.tablesorter-blue tr.even td.secondary {
background-color: #d6e0f5;
}
.tablesorter-blue td.tertiary,
.tablesorter-blue tr.odd td.tertiary {
background-color: #d6e0f5;
}
.tablesorter-blue tr.even td.tertiary {
background-color: #ebf0fa;
}
/* caption */
caption {
background: #fff;
}
/* filter widget */
.tablesorter-blue .tablesorter-filter-row td {
background: #eee;
line-height: normal;
text-align: center; /* center the input */
-webkit-transition: line-height 0.1s ease;
-moz-transition: line-height 0.1s ease;
-o-transition: line-height 0.1s ease;
transition: line-height 0.1s ease;
}
/* optional disabled input styling */
.tablesorter-blue .tablesorter-filter-row .disabled {
opacity: 0.5;
filter: alpha(opacity=50);
cursor: not-allowed;
}
/* hidden filter row */
.tablesorter-blue .tablesorter-filter-row.hideme td {
/*** *********************************************** ***/
/*** change this padding to modify the thickness ***/
/*** of the closed filter row (height = padding x 2) ***/
padding: 2px;
/*** *********************************************** ***/
margin: 0;
line-height: 0;
cursor: pointer;
}
.tablesorter-blue .tablesorter-filter-row.hideme .tablesorter-filter {
height: 1px;
min-height: 0;
border: 0;
padding: 0;
margin: 0;
/* don't use visibility: hidden because it disables tabbing */
opacity: 0;
filter: alpha(opacity=0);
}
/* filters */
.tablesorter-blue .tablesorter-filter {
width: 98%;
height: auto;
margin: 0;
padding: 4px;
background-color: #fff;
border: 1px solid #bbb;
color: #333;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: height 0.1s ease;
-moz-transition: height 0.1s ease;
-o-transition: height 0.1s ease;
transition: height 0.1s ease;
}
/* ajax error row */
.tablesorter .tablesorter-errorRow td {
cursor: pointer;
background-color: #e6bf99;
}
#myTable tbody tr td.subcategory {
padding-left: 30px;
}
#myTable tbody tr td.product {
padding-left: 55px;
}
#myTable tbody tr.category td {
}
#myTable tbody tr.sumAll td{
background-color: #242424;
color: #fff;
}
#myTable tbody tr td.sumRow {
text-align: right;
}
#myTable tbody tr td.oddListRowS1 {
text-align: right;
}
#myTable tbody tr td.alignLeft {
text-align: left;
}
{/literal}
</style>
<table style="width:100%;vertical-align:top;">
<tr>
<td style="width:50%;text-align;left"><h1>Raport sprzedaży z podziałem na grupy produktów</h1></td>
<td style="width:25%;text-align;right;vertical-align:top;">
Data raportu od: {$date_from}<br>
</td>
<td style="width:25%;text-align;right;vertical-align:top;">
Data raportu do: {$date_to}<br>
{if $product_category_name_basic!=""}
Kategoria produktu: {$product_category_name_basic}<br>
{/if}
{if $product_group_name_basic!=""}
Grupa produktowa: {$product_group_name_basic}<br>
{/if}
</td>
</tr>
</table>
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
<thead>
<tr class="tablesorter-headerRow" role="row">
<th>Nr dok</th>
<th>Data dok</th>
<th>Typ dok</th>
<th>Nabywca</th>
<th>Wart netto</th>
<th>Wart VAT</th>
<th>Wart brutto</th>
<th>Wart TH</th>
<th>Wart WG</th>
<th>Wart S</th>
<th>Wart t</th>
</tr>
</thead>
{foreach from=$DATA item=item key=key name=loop}
{* Table headers *}
<tbody>
<tr class="category">
<td class="oddListRowS1 alignLeft"><b> {$item.document_no}</b></td>
<td class="oddListRowS1 alignLeft"><b> {$item.register_date|date_format:"%d.%m.%Y"}</b></td>
<td class="oddListRowS1 alignLeft"><b> {$item.type}</b></td>
<td class="oddListRowS1 alignLeft"><b> {$item.parent_name}</b></td>
<td class="sumRow" ><b>{$item.total_netto|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.total_vat|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.total_brutto|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.TH|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.WG|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.S|number_format:2:",":"." }</b></td>
<td class="sumRow" ><b>{$item.T|number_format:2:",":"." }</b></td>
</tr>
</tbody>
{/foreach}
<tfoot>
<tr class="category">
<th colspan=4 style="text-align:right;">Razem:</th>
<th class="sumRow " style="text-align:right;">{$totals.total_netto|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.total_vat|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.total_brutto|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.TH|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.WG|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.S|number_format:2:",":"." }</th>
<th class="sumRow " style="text-align:right;">{$totals.T|number_format:2:",":"." }</th>
</tr>
</tfoot>
</table>
<br/>

View File

@@ -0,0 +1,302 @@
<script type="text/javascript" src="https://mottie.github.io/tablesorter/docs/js/jquery-latest.min.js"></script>
<link class="theme" rel="stylesheet" href="https://mottie.github.io/tablesorter/docs/css/jquery-ui.min.css">
<script type="text/javascript" src="https://mottie.github.io/tablesorter/docs/js/jquery-ui.min.js"></script>
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.js"></script>
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.widgets.js"></script>
<script src="https://mottie.github.io/tablesorter/js/widgets/widget-scroller.js"></script>
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorterNew/css/theme.blue.css">
<script type="text/javascript" src="modules/EcmReports/javascript/RaportZamowien.js"></script>
<script type="text/javascript" src="modules/EcmReports/javascript/RaportMM.js"></script>
<style type="text/css">
{literal}
thead, tfoot {font-weight: bold;}
.additionalColumn {
background-color: #87CCED;
border-top: 1px solid black;
}
.groupActive {
border-top: 1px solid black;
border-bottom: 1px solid black;
border-left: 1px solid black;
background-color: #87CCED;
}
.sumRow {
background-color: #BDC7B5;
}
.sumAll td{
background-color: #BDC7B5;
}
table.tablesorter tbody tr:hover td {
background: #E8E8E8;
color: #343432;
}
/* Extra selectors needed to override the default styling */
table.tablesorter tbody tr.normal-row td {
background: #EFEFF1;
color: #343432;
}
table.tablesorter tbody tr.alt-row td {
background: #FFF;
color: #343432;
}
/* Extra selectors needed to override the default styling */
table.tablesorter tbody tr.normal-row:hover td {
background: #E8E8E8;
color: #343432;
}
table.tablesorter tbody tr.alt-row:hover td {
background: #E8E8E8;
color: #343432;
}
table.tablesorter tbody tr.sumAll td {
background: #EBEBED;
color: black;
}
table.tablesorter tbody tr.sumAll:hover td {
background: #E0E0E2;
color: black;
font-weight: bold;
}
table.tablesorter .sumRow, .oddListRowS1 {
text-align: right;
}
table.tablesorter .alignLeft {
text-align: left;
}
table.tablesorter .subcategory .alignLeft {
padding-left: 20px;
}
table.tablesorter .contractor .alignLeft {
padding-left: 40px;
}
.plusStyle {
color: #abc3d7;
text-decoration: none;
cursor: pointer;
}
.green-text{
color:#2E8B57;
}
.no-price{
color: red !important;
}
{/literal}
</style>
<table id="tableMenu" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<img src="themes/Sugar/images/EcmProducts.gif" style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts" width="16" border="0" height="16">
</td>
<td>
<h2>Ranking sprzedaży marketów </h2>
</td>
</tr>
</table>
<br />
<ul class="tablist" style="width:100%;">
<li>
<a class="current" href="#">Podstawowe wyszukiwanie</a>
</li>
</ul>
<form action="index.php" method="get" name="searchReportSales">
<input type="hidden" name="module" value="EcmReports" />
<input type="hidden" name="action" value="RaportMM" />
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
<tr>
{* Search by date_from *}
<td class="dataLabel" width="5%" nowrap="nowrap"> Data od </td>
<td class="dataField" width="10%" 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 : "{$dateFormat}",
button : "date_from_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
</td>
{* Search by date_to *}
<td class="dataLabel" width="5%" nowrap="nowrap">Data do</td>
<td class="dataField" width="10%" 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 : "{$dateFormat}",
button : "date_to_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
{* Search by date_to *}
<td class="dataLabel" width="5%" nowrap="nowrap">Wybierz plik</td>
<td class="dataField" width="10%" nowrap="nowrap">
<select name="file_id" required>
<option value=""></option>
{foreach from=$files key="key" item="item"}
<option value="{$item.file_id}" {if $item.file_id==$file_id}selected="selected"{/if}>{$item.file_name} - {$item.file_date|date_format:"%d.%m.%Y %H:%M" }</option>
{/foreach}
</select>
</td>
</tr>
</tbody>
</table>
<input class="button" name="submit" value="Wykonaj" type="submit">
<input class="button" name="clear" value="Wyczyść" type="button" onclick="location.href='index.php?module=EcmReports&action=RaportMM';">
<br>
<br>
{if $rows|@count>0}
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
<thead>
<tr class="tablesorter-headerRow" role="row">
<th width="30%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" colspan=2 scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Kontrahent</th>
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="2"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;"
aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Sprzedana ilość</th>
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on"
style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Ilość w markecie</th>
<th width="10%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="3" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on"
style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość sprzedaży</th>
<th width="8%" class="sorter-saas tablesorter-header tablesorter-headerUnSorted" data-column="4" tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on"
style="-moz-user-select: none;" aria-sort="none" aria-label="Name: No sort applied, activate to apply an ascending sort">Wartość odsprzedaży</th>
</tr>
</thead>
{* id="functions-core" class="tablesorter-infoOnly" *}
<tbody>
{foreach from=$rows key="key" item="item"}
<tr class="">
<td class="oddListRowS1 alignLeft {if $item.brak_ceny_odsprzedazy==1 || $item.brak_ceny_zakupu==1}no-price{/if}" colspan=2 onclick="showChildren('{$item.parent_id}');"><a style="color: cadetblue; text-decoration: none; cursor: pointer;">[+]</a><b class="parent_{$item.parent_id}" data-value='0'> {$item.name}</b></td>
<td class="oddListRowS1 sumRow {if $item.brak_ceny_odsprzedazy==1 || $item.brak_ceny_zakupu==1}no-price{/if}" ><b>{$item.sell_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow {if $item.brak_ceny_odsprzedazy==1 || $item.brak_ceny_zakupu==1}no-price{/if}" ><b>{$item.purchase_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow {if $item.brak_ceny_odsprzedazy==1 || $item.brak_ceny_zakupu==1}no-price{/if}" data-value="{$item.total_sell}" ><b>{$item.total_sell|number_format:2:",":"." }</b></td>
<td class="oddListRowS1 sumRow {if $item.brak_ceny_odsprzedazy==1 || $item.brak_ceny_zakupu==1}no-price{/if}" data-value="{$item.total_purchase}"><b>{$item.total_purchase|number_format:2:",":"." }</b></td>
</tr>
{if $item.products|@count>0}
<tr style="width:100%;display:none;" class="subcategory tablesorter-infoOnly {$item.parent_id}" >
<td colspan="6">
<table style="width:100%" id="table_{$item.parent_id}">
<thead>
<th>Indeks</th>
<th>Nazwa produktu</th>
<th>Sprzedana ilość</th>
<th>Ilość w markecie</th>
<th>Cena sprzedaży</th>
<th>Cena odsprzedaży</th>
<th>Wartość sprzedaży</th>
<th>Wartość odsprzedaży</th>
</thead>
<tbody>
{foreach from=$item.products key="key2" item="prod"}
<tr>
<td class="oddListRowS1 alignLeft"><a target="_blank" href="index.php?module=EcmProducts&action=DetailView&record={$prod.product_id}"><b> {$prod.code}</b></a></td>
<td class="oddListRowS1 alignLeft"><b><a>{$prod.name}</a></b></td>
<td class="oddListRowS1 sumRow" ><b>{$prod.sell_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow" ><b>{$prod.buy_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow {if $prod.purchase_price==''}no-price{/if}" data-value="{$prod.purchase_price}"><b>{$prod.purchase_price|number_format:2:",":"." }</b></td>
<td class="oddListRowS1 sumRow {if $prod.sell_price==''}no-price{/if}" data-value="{$prod.sell_price}"><b>{$prod.sell_price|number_format:2:",":"." }</b></td>
<td class="oddListRowS1 sumRow" data-value="{$prod.total_sell}"><b>{$prod.total_sell|number_format:2:",":"." }</b></td>
<td class="oddListRowS1 sumRow" data-value="{$prod.total_purchase}"><b>{$prod.total_purchase|number_format:2:",":"." }</b></td>
</tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
{/if}
<script>
{literal}
$(document)
.ready(
function() {
$('#table_{/literal}{$item.parent_id}{literal}').tablesorter({
cssChildRow: "subcategory",
widget: ['zebra'],
headers: {
4: {
sorter: 'number'
},
5: {
sorter: 'number'
},
6: {
sorter: 'number'
},
7: {
sorter: 'number'
}
}
});
});
{/literal}
</script>
{/foreach}
</tbody>
<tfoot>
<tr class="">
<td class="oddListRowS1 alignRight" colspan=2><b>Razem:</b></td>
<td class="oddListRowS1 sumRow" ><b>{$total.sell_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow" ><b>{$total.purchase_quantity|number_format:0:".":"" }</b></td>
<td class="oddListRowS1 sumRow" ><b>{$total.total_sell|number_format:2:",":"." }</b></td>
<td class="oddListRowS1 sumRow" ><b>{$total.total_purchase|number_format:2:",":"." }</b></td>
</tr>
</tfoot>
</table>
<br/>
{/if}

View File

@@ -0,0 +1,364 @@
<!-- Tablesorter -->
<script type="text/javascript" src="https://mottie.github.io/tablesorter/docs/js/jquery-latest.min.js"></script>
<link class="theme" rel="stylesheet" href="https://mottie.github.io/tablesorter/docs/css/jquery-ui.min.css">
<script type="text/javascript" src="https://mottie.github.io/tablesorter/docs/js/jquery-ui.min.js"></script>
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.js"></script>
<script src="https://mottie.github.io/tablesorter/js/jquery.tablesorter.widgets.js"></script>
<script src="https://mottie.github.io/tablesorter/js/widgets/widget-scroller.js"></script>
<link class="theme" rel="stylesheet" href="modules/EcmReports/TableSorterNew/css/theme.blue.css">
<script type="text/javascript" src="modules/EcmReports/javascript/RaportZamowien.js"></script>
<style type="text/css">
{literal}
thead, tfoot {font-weight: bold;}
.additionalColumn {
background-color: #87CCED;
border-top: 1px solid black;
}
.groupActive {
border-top: 1px solid black;
border-bottom: 1px solid black;
border-left: 1px solid black;
background-color: #87CCED;
}
.sumRow {
background-color: #BDC7B5;
}
.sumAll td{
background-color: #BDC7B5;
}
table.tablesorter tbody tr:hover td {
background: #E8E8E8;
color: #343432;
}
/* Extra selectors needed to override the default styling */
table.tablesorter tbody tr.normal-row td {
background: #EFEFF1;
color: #343432;
}
table.tablesorter tbody tr.alt-row td {
background: #FFF;
color: #343432;
}
/* Extra selectors needed to override the default styling */
table.tablesorter tbody tr.normal-row:hover td {
background: #E8E8E8;
color: #343432;
}
table.tablesorter tbody tr.alt-row:hover td {
background: #E8E8E8;
color: #343432;
}
table.tablesorter tbody tr.sumAll td {
background: #EBEBED;
color: black;
}
table.tablesorter tbody tr.sumAll:hover td {
background: #E0E0E2;
color: black;
font-weight: bold;
}
table.tablesorter .sumRow, .oddListRowS1 {
text-align: right;
}
table.tablesorter .alignLeft {
text-align: left;
}
table.tablesorter .subcategory .alignLeft {
padding-left: 20px;
}
table.tablesorter .contractor .alignLeft {
padding-left: 40px;
}
/*
table#myTable-sticky th:first-child {
display:none;
}
*/
.plusStyle {
color: #abc3d7;
text-decoration: none;
cursor: pointer;
}
.green-text{
color:#2E8B57;
}
.fix {
position: absolute;
margin-left: -50px;
width: 100px;
}
.outer {
position: relative;
}
.inner {
overflow-x: scroll;
overflow-y: visible;
width: auto;
}
.ui-widget-content{
opacity: 0.9 !important;
}
#back2Top {
width: 40px;
line-height: 40px;
overflow: hidden;
z-index: 999;
display: block;
cursor: pointer;
position: fixed;
bottom: 50px;
right: 0;
background-color: #DDD;
color: #555;
text-align: center;
font-size: 30px;
text-decoration: none;
}
#back2Top:hover {
background-color: #DDF;
color: #000;
}
{/literal}
</style>
<script>
// call the tablesorter plugin
{literal}
$(document).ready(function(){
var startFixedColumns=1;
$("table").tablesorter({
showProcessing: true,
headerTemplate : '{content} {icon}',
widgets: [ 'zebra', 'scroller','stickyHeaders' ],
widgetOptions : {
scroller_height : '100%',
// set number of columns to fix
scroller_fixedColumns : startFixedColumns,
// add a fixed column overlay for styling
scroller_addFixedOverlay : false,
// add hover highlighting to the fixed column (disable if it causes slowing)
scroller_rowHighlight : 'hover',
// bar width is now calculated; set a value to override
scroller_barWidth : null,
stickyHeaders : '',
stickyHeaders_appendTo: $(".outer"),
// number or jquery selector targeting the position:fixed element
stickyHeaders_offset : 0,
// added to table ID, if it exists
stickyHeaders_cloneId : '-sticky',
// trigger "resize" event on headers
stickyHeaders_addResizeEvent : true,
// if false and a caption exist, it won't be included in the sticky header
stickyHeaders_includeCaption : true,
// The zIndex of the stickyHeaders, allows the user to adjust this to their needs
stickyHeaders_zIndex : 2,
// jQuery selector or object to attach sticky header to
stickyHeaders_attachTo : null
},
headers: {
4: {
sorter: 'number'
},
5: {
sorter: 'number'
},
6: {
sorter: 'number'
},
7: {
sorter: 'number'
},
8: {
sorter: 'number'
},
9: {
sorter: 'number'
},
10: {
sorter: 'number'
}
}
});
$($('.tablesorter-headerRow')[0]).children().click();
// update column value display
$( '.fixed-columns' ).text( startFixedColumns )
});
{/literal}
</script>
<table id="tableMenu" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<img src="themes/Sugar/images/EcmProducts.gif" style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts" width="16" border="0" height="16">
</td>
<td>
<h2>Raport sprzedaży z podziałem na grupy produktów</h2>
</td>
</tr>
</table>
<br />
<ul class="tablist" style="width:100%;">
<li>
<a class="current" href="#">Podstawowe wyszukiwanie</a>
</li>
</ul>
<form action="index.php" target="" method="get" name="searchReportSales" id='searchReportSales'>
<input type="hidden" name="module" value="EcmReports" />
<input type="hidden" name="action" value="ReportSalesByProductGroups" />
<input type="hidden" name="to_pdf" id="to_pdf" value="0" />
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
<tr>
{* Search by date_from *}
<td class="dataLabel" width="5%" nowrap="nowrap"> Data od </td>
<td class="dataField" width="10%" nowrap="nowrap">
<input id="date_from" name="date_from" type="text" maxlength="10" size="11" tabindex="" value="{$date_from}" autocomplete="off">
<img id="date_from_trigger" border="0" align="absmiddle" src="themes/default/images/jscalendar.gif">
<script language="JavaScript" type="text/javascript">
Calendar.setup ({ldelim}
inputField : "date_from",
daFormat : "{$dateFormat}",
button : "date_from_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
</td>
{* Search by date_to *}
<td class="dataLabel" width="5%" nowrap="nowrap">Data do</td>
<td class="dataField" width="10%" nowrap="nowrap">
<input autocomplete="off" name="date_to" id="date_to" value="{$date_to}" tabindex="" size="11" maxlength="10" type="text">
<img src="themes/default/images/jscalendar.gif" id="date_to_trigger" align="absmiddle" border="0">
<script language="JavaScript" type="text/javascript">
Calendar.setup ({ldelim}
inputField : "date_to",
daFormat : "{$dateFormat}",
button : "date_to_trigger",
singleClick : true,
dateStr : "",
step : 1
{rdelim}
);
</script>
</td>
</tr>
</tbody>
</table>
<input class="button" name="submit" id="wykonaj" value="Wykonaj" onclick="$('#to_pdf').val(0);$('#searchReportSales').attr('target',null);$('#submit').click();" type="button">
<input class="button" name="submit" id="submit" value="" type="submit" style="display:none;">
<input class="button" name="submit" id="pdf" value="PDF" onclick="$('#to_pdf').val(1);$('#searchReportSales').attr('target','_blank');$('#submit').click();" type="button">
<input class="button" name="submit" id="clear" value="Wyczyść" onclick="window.location='index.php?module=EcmReports&action=ReportSalesByProductGroups';" type="button">
<br>
<br>
</form>
{if $DATA!=NULL}
<table id="myTable" class="tablesorter tablesorter-blue" role="grid">
<thead>
<tr class="tablesorter-headerRow" role="row">
<th width="10%" class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Nr dokumentu</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Data dokumentu</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Typ dokumentu</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Nabywca</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość netto</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość VAT</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość brutto</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość TH</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość WG</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość S</th>
<th class="sorter-text tablesorter-header tablesorter-headerUnSorted" data-column="0"
tabindex="0" scope="col" role="columnheader" aria-disabled="false" unselectable="on" style="-moz-user-select: none;" aria-sort="none" aria-label="">Wartość T</th>
</tr>
</thead>
<tbody>
{foreach from=$DATA item=item name=loop key=id}
<tr>
<td class="oddListRowS1" style="text-align:left;"><a target="_blank" href="index.php?module=EcmInvoiceOuts&action=DetailView&record={$item.id}"><span title="{$item.name}">{$item.document_no}</span></a></td>
<td class="oddListRowS1" style="text-align:left;" >{$item.register_date|date_format:"%d.%m.%Y"}</td>
<td class="oddListRowS1" style="text-align:left;" >{$item.type}</td>
<td class="oddListRowS1" style="text-align:left;"><a target="_blank" href="index.php?module=Accounts&action=DetailView&record={$item.parent_id}">{$item.parent_name}</a></td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.total_netto}">{$item.total_netto|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.total_vat}">{$item.total_vat|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.total_brutto}">{$item.total_brutto|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.TH}">{$item.TH|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.WG}">{$item.WG|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.S}">{$item.S|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" data-value="{$item.T}">{$item.T|number_format:2:",":"."}</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<td class="oddListRowS1" style="text-align:right;"></td>
<td class="oddListRowS1" style="text-align:right;"></td>
<td class="oddListRowS1" style="text-align:right;"></td>
<td class="oddListRowS1" style="text-align:right;">Razem:</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" >{$totals.total_netto|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;">{$totals.total_vat|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;">{$totals.total_brutto|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;">{$totals.TH|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" >{$totals.WG|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;">{$totals.S|number_format:2:",":"."}</td>
<td class="oddListRowS1" style="text-align:right;color:blue;" >{$totals.T|number_format:2:",":"."}</td>
</tfoot>
</table>
{/if}

File diff suppressed because it is too large Load Diff