init
This commit is contained in:
121
modules/EcmPaymentStates/tpls/CompareSummary.tpl
Normal file
121
modules/EcmPaymentStates/tpls/CompareSummary.tpl
Normal file
@@ -0,0 +1,121 @@
|
||||
<script type="text/javascript" src="modules/EcmPaymentStates/javascript/jquery-latest.js"></script>
|
||||
<script type="text/javascript" src="modules/EcmPaymentStates/javascript/jquery.tablesorter.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
{literal}
|
||||
/* tables */
|
||||
table.tablesorter {
|
||||
font-family:arial;
|
||||
background-color: #CDCDCD;
|
||||
margin:10px 0pt 15px;
|
||||
font-size: 8pt;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
|
||||
background-color: #e6EEEE;
|
||||
border: 1px solid #FFF;
|
||||
font-size: 8pt;
|
||||
padding: 4px;
|
||||
}
|
||||
table.tablesorter thead tr .header {
|
||||
background-image: url(modules/EcmPaymentStates/css/bg.gif);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right;
|
||||
cursor: pointer;
|
||||
}
|
||||
table.tablesorter tbody td {
|
||||
color: #3D3D3D;
|
||||
padding: 4px;
|
||||
background-color: #FFF;
|
||||
vertical-align: top;
|
||||
}
|
||||
table.tablesorter tbody tr.odd td {
|
||||
background-color:#F0F0F6;
|
||||
}
|
||||
table.tablesorter thead tr .headerSortUp {
|
||||
background-image: url(modules/EcmPaymentStates/css/asc.gif);
|
||||
}
|
||||
table.tablesorter thead tr .headerSortDown {
|
||||
background-image: url(modules/EcmPaymentStates/css/desc.gif);
|
||||
}
|
||||
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
|
||||
background-color: #8dbdd8;
|
||||
}
|
||||
|
||||
{/literal}
|
||||
</style>
|
||||
<script>
|
||||
{literal}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTable").tablesorter({
|
||||
theme: 'blue',
|
||||
// initialize zebra striping of the table
|
||||
widgets: ["zebra"],
|
||||
// change the default striping class names
|
||||
// updated in v2.1 to use widgetOptions.zebra = ["even", "odd"]
|
||||
// widgetZebra: { css: [ "normal-row", "alt-row" ] } still works
|
||||
widgetOptions : {
|
||||
zebra : [ "normal-row", "alt-row" ]
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
var ajax_url = "index.php?module=EcmPaymentStates&action=javahelper&to_pdf=1";
|
||||
function showDetails(id) {
|
||||
$('.hide_all').hide('slow');
|
||||
$("#details_"+id).show('slow');
|
||||
|
||||
var params = {
|
||||
job : 'searchBadTransactions',
|
||||
parent_id : id,
|
||||
};
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : ajax_url,
|
||||
dataType : "text",
|
||||
success : function(data) {
|
||||
|
||||
if (data != '-1')
|
||||
$("#details_div_"+id).html(data);
|
||||
$("#details_div_"+id).show('slow');
|
||||
},
|
||||
data : params
|
||||
});
|
||||
}
|
||||
function hideDetails(id) {
|
||||
$("#details_div_"+id).hide('slow');
|
||||
}
|
||||
{/literal}
|
||||
</script>
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><h2>Raport poprawności sald</h2></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;" id="myTable" class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 35%">Kontrahent</th>
|
||||
<th style="width: 10%">Saldo ogółem</th>
|
||||
<th style="width: 10%">Saldo nierozliczonych</th>
|
||||
<th style="width: 10%">Saldo wynikające z transakcji roliczonych</th>
|
||||
<th>Szczegóły</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$tabela key="klucz" item="item" name="zostawienie"}
|
||||
<tr>
|
||||
<td style="font-weight:bold;"><a target="_blank" href="index.php?module=EcmPaymentStates&action=AccountPaymentStates&account_id={$item.parent_id}">{$item.parent_name}</a></td>
|
||||
<td style="font-weight:bold;text-align: right;" data-sort-value="{$item.saldo}">{$item.saldo|number_format:2:",":"."}</td>
|
||||
<td style="font-weight:bold;text-align: right;{if $item.saldo|string_format:"%.2f"==$item.saldo_nierozliczone|string_format:"%.2f"}color: green;{else}color:red;{/if}"" data-sort-value="{$item.saldo_nierozliczone}">{$item.saldo_nierozliczone|number_format:2:",":"."}</td>
|
||||
<td style="font-weight:bold;text-align: right;{if $item.saldo_roz==0}color: green;{else}color:red;{/if}" data-sort-value="{$item.saldo_roz}">{$item.saldo_roz|number_format:2:",":"."}</td>
|
||||
<td onclick="showDetails('{$item.parent_id}')">{if $item.saldo_roz!=0}Szczegoły{/if}<div id="details_div_{$item.parent_id}"></div></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user