357 lines
14 KiB
Smarty
357 lines
14 KiB
Smarty
<style type="text/css">
|
|
{literal}
|
|
body {
|
|
font-size: 8px;
|
|
}
|
|
/* 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: #fff;
|
|
background-color: #252525;
|
|
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 */
|
|
background-image: url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
|
|
/* 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 */
|
|
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjI8Bya2wnINUMopZAQA7);
|
|
/* 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 */
|
|
background-image: url(data:image/gif;base64,R0lGODlhFQAEAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAQAAAINjB+gC+jP2ptn0WskLQA7);
|
|
/* 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; */
|
|
background-image: url('data:image/gif;base64,R0lGODlhFAAUAKEAAO7u7lpaWgAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQBCgACACwAAAAAFAAUAAACQZRvoIDtu1wLQUAlqKTVxqwhXIiBnDg6Y4eyx4lKW5XK7wrLeK3vbq8J2W4T4e1nMhpWrZCTt3xKZ8kgsggdJmUFACH5BAEKAAIALAcAAAALAAcAAAIUVB6ii7jajgCAuUmtovxtXnmdUAAAIfkEAQoAAgAsDQACAAcACwAAAhRUIpmHy/3gUVQAQO9NetuugCFWAAAh+QQBCgACACwNAAcABwALAAACE5QVcZjKbVo6ck2AF95m5/6BSwEAIfkEAQoAAgAsBwANAAsABwAAAhOUH3kr6QaAcSrGWe1VQl+mMUIBACH5BAEKAAIALAIADQALAAcAAAIUlICmh7ncTAgqijkruDiv7n2YUAAAIfkEAQoAAgAsAAAHAAcACwAAAhQUIGmHyedehIoqFXLKfPOAaZdWAAAh+QQFCgACACwAAAIABwALAAACFJQFcJiXb15zLYRl7cla8OtlGGgUADs=') !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 {
|
|
background-color: #96FF7C;
|
|
}
|
|
|
|
#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 id="myTable" class="tablesorter tablesorter-blue" role="grid">
|
|
<thead>
|
|
<tr class="tablesorter-headerRow" role="row">
|
|
|
|
<th>{$MOD.LBL_PRODUCTS}</th>
|
|
{if $searchBy=="product"}
|
|
<th>Indeks</th>
|
|
{/if}
|
|
<th>{$MOD.LBL_SOLD_AMOUNT}</th>
|
|
<th>{$MOD.LBL_VALUE_SALES}</th>
|
|
{*<th>Wartość sprzedaży bez korekt</th>*}
|
|
<th>{$MOD.LBL_AVERAGE_PRICE}</th>
|
|
<th>{$MOD.LBL_COST}</th>
|
|
<th>{$MOD.LBL_MARGIN}</th>
|
|
{if $searchBy=="none"}
|
|
<th>{$MOD.LBL_STOCK_STATES}</th>
|
|
<th>{$MOD.LBL_STOCK_VALUE}</th>
|
|
{/if}
|
|
</tr>
|
|
</thead>
|
|
{foreach from=$DATA item=CAT key=CATNAME name=loop}
|
|
{* Table headers *}
|
|
<tbody>
|
|
<tr class="category">
|
|
{if $CATNAME != ""}
|
|
<td class="oddListRowS1 alignLeft"><b> {$CATNAME}</b></td>
|
|
{/if}
|
|
{if $searchBy=="product"}
|
|
<td class="oddListRowS1" ></td>
|
|
{/if}
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.IloscSum|number_format:0:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.SoldSum|number_format:2:",":"." }</b></td>
|
|
{* <td class="sumRow" ><b><span class='green-text'>{$DATA.$CATNAME.SoldSumNormal|number_format:2:",":"." }</span></b></td>*}
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.SredniaSum|number_format:2:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.KosztSum|number_format:2:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.MarzaSum|number_format:2:",":"." }%</b></td>
|
|
{if $searchBy=="none"}
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.StanSum|number_format:0:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$DATA.$CATNAME.WartoscSum|number_format:2:",":"." }</b></td>
|
|
{/if}
|
|
</tr>
|
|
</tbody>
|
|
{foreach from=$CAT item=CAT2 key=CAT2NAME name=loop}
|
|
{if $CAT2NAME!="IloscSum" && $CAT2NAME!="SoldSum" && $CAT2NAME!="SoldSumNormal" && $CAT2NAME!="IloscNormal" && $CAT2NAME!="SredniaSum" && $CAT2NAME!="KosztSum" && $CAT2NAME!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum"}
|
|
<tbody>
|
|
<tr>
|
|
<td class="subcategory alignLeft"><b> {$CAT2NAME}</b></td>
|
|
{if $searchBy=="product"}
|
|
<td></td>
|
|
{/if}
|
|
<td class="sumRow" ><b>{$CAT.$CAT2NAME.IloscSum2|number_format:0:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$CAT.$CAT2NAME.SoldSum2|number_format:2:",":"." }</b></td>
|
|
{*<td class="sumRow" ><b><span class='green-text'>{$CAT.$CAT2NAME.SoldSumNormal2|number_format:2:",":"." }</span></b></td>*}
|
|
<td class="sumRow" ><b>{$CAT.$CAT2NAME.SredniaSum2|number_format:2:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$CAT.$CAT2NAME.KosztSum2|number_format:2:",":"." }</b></td>
|
|
<td class="sumRow" ><b>{$CAT.$CAT2NAME.MarzaSum2|number_format:2:",":"." }%</b></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
<tbody aria-live="polite" aria-relevant="all">
|
|
{foreach from=$CAT2 item=ROW name=loop}
|
|
{if $ROW.name!="IloscSum" && $ROW.name!="SoldSum" && $ROW.name!="SredniaSum" && $ROW.name!="KosztSum" && $ROW.name!="MarzaSum" && $CAT2NAME!="StanSum" && $CAT2NAME!="WartoscSum" && $ROW.name!=""}
|
|
<tr role="row">
|
|
|
|
<td class="alignLeft product" style="text-align:left;">
|
|
{$ROW.name}
|
|
</td>
|
|
|
|
{if $searchBy=="product"}
|
|
<td class="oddListRowS1 alignLeft" >{$ROW.code}</td>
|
|
{/if}
|
|
<td class="oddListRowS1" >{$ROW.ilosc|number_format:0:",":"."}</td>
|
|
<td class="oddListRowS1" >{$ROW.netto|number_format:2:",":"."}</td>
|
|
{* <td class="oddListRowS1" ><span class='green-text'>{$ROW.nettoNormal|number_format:2:",":"." }</span></td>*}
|
|
<td class="oddListRowS1" >{$ROW.srednia|number_format:2:",":"."}</td>
|
|
<td class="oddListRowS1" >{$ROW.koszt|number_format:2:",":"."}</td>
|
|
<td class="oddListRowS1" >{$ROW.marza|number_format:2:",":"."}%</td>
|
|
</tr>
|
|
{/if}
|
|
{/foreach}
|
|
</tbody>
|
|
<tbody id="stopRows"></tbody>
|
|
{/if}
|
|
{/foreach}
|
|
<tbody id="stopTables"></tbody>
|
|
{/foreach}
|
|
<tbody id="functions-core" class="tablesorter-infoOnly">
|
|
<tr class="sumAll">
|
|
<td class="oddListRowS1 alignLeft"><b>{$MOD.LBL_SUM}:</b></td>
|
|
{if $searchBy=="product"}
|
|
<td class="oddListRowS1" ></td>
|
|
{/if}
|
|
<td class="oddListRowS1 sumRow" ><b>{$SUM.IloscSumSum|number_format:0:",":"." }</b></td>
|
|
<td class="oddListRowS1 sumRow" ><b>{$SUM.SoldSumSum|number_format:2:",":"." }</b></td>
|
|
{* <td class="oddListRowS1 sumRow" ><b><span class='green-text'>{$SUM.SoldSumSumNormal|number_format:2:",":"." }</span></b></td>*}
|
|
<td class="oddListRowS1 sumRow" ><b>{$SUM.SredniaSumSum|number_format:2:",":"." }</b></td>
|
|
<td class="oddListRowS1 sumRow" ><b>{$SUM.KosztSumSum|number_format:2:",":"." }</b></td>
|
|
<td class="oddListRowS1 sumRow" ><b>{$SUM.MarzaSumSum|number_format:2:",":"." }%</b></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<br/> |