145 lines
7.2 KiB
Smarty
145 lines
7.2 KiB
Smarty
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.css"/>
|
|
<link rel="stylesheet" type="text/css" href="include/jQuery/jquery-ui/themes/base/jquery-ui.css"/>
|
|
<script type="text/javascript" src="include/jQuery/jquery-2.1.0.min.js"></script>
|
|
<script type="text/javascript" src="include/jQuery/jquery-table/jquery.appendGrid-1.3.1.js"></script>
|
|
<script type="text/javascript" src="include/jQuery/jquery-ui/ui/jquery-ui.js"></script>
|
|
<script type="text/javascript" src="modules/EcmPaymentStates/javascript/summary.js"></script>
|
|
|
|
<style type="text/css">
|
|
{literal}
|
|
thead, tfoot {font-weight: bold;}
|
|
{/literal}
|
|
</style>
|
|
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td><h2>{$MOD.LBL_SUMMARY_TITLE}</h2></td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<!--
|
|
<form action="index.php" method="post" name="searchForm">
|
|
<input type="hidden" name="module" value="EcmPaymentStates" />
|
|
<input type="hidden" name="action" value="summaryNew" />
|
|
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td class="dataLabel" width="10%" nowrap="nowrap">Typ kontrahenta</td>
|
|
<td class="dataField" width="10%" nowrap="nowrap">
|
|
<select id="account_type" name="account_type">
|
|
<option value="" {if $account_type eq ''} selected {/if}>Wszyscy</option>
|
|
<option value="rec" {if $account_type eq 'rec'} selected {/if}>Odbiorca</option>
|
|
<option value="sup" {if $account_type eq 'sup'} selected {/if}>Dostawca</option>
|
|
<option value="rs" {if $account_type eq 'rs'} selected {/if}>Odbiorca/Dostawca</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<input class="button" name="submit" value="Szukaj" type="submit">
|
|
<br />
|
|
<br>
|
|
</form>
|
|
-->
|
|
<table cellpadding="0" cellspacing="0" border="0" class="ListView" style="width:100%;">
|
|
<thead>
|
|
<tr>
|
|
<td class="oddListRowS1" style="text-align:left; width: 15%">
|
|
<p style="cursor: pointer;" onClick="sortOrder('account', '{$SORT.account}')">{$MOD.LBL_SUMMARY_ACCOUNT}
|
|
{if $SORT.account == 'asc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_down.gif">
|
|
{elseif $SORT.account == 'desc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_up.gif">
|
|
{else}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow.gif">
|
|
{/if}
|
|
</p>
|
|
</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 10%;">
|
|
<p style="cursor: pointer;" onClick="sortOrder('unsettled', '{$SORT.unsettled}')">{$MOD.LBL_SUMMARY_UNSETTLED}
|
|
{if $SORT.unsettled == 'asc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_down.gif">
|
|
{elseif $SORT.unsettled == 'desc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_up.gif">
|
|
{else}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow.gif">
|
|
{/if}
|
|
</p>
|
|
</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 10%;">
|
|
<p style="cursor: pointer;" onClick="sortOrder('not_overdue', '{$SORT.not_overdue}')">{$MOD.LBL_SUMMARY_NOT_OVERDUE}
|
|
{if $SORT.not_overdue == 'asc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_down.gif">
|
|
{elseif $SORT.not_overdue == 'desc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_up.gif">
|
|
{else}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow.gif">
|
|
{/if}
|
|
</p>
|
|
</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_NOT_OVERDUE_61}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_NOT_OVERDUE_31_60}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_NOT_OVERDUE_1_30}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 10%;">
|
|
<p style="cursor: pointer;" onClick="sortOrder('overdue', '{$SORT.overdue}')">{$MOD.LBL_SUMMARY_OVERDUE}
|
|
{if $SORT.overdue == 'asc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_down.gif">
|
|
{elseif $SORT.overdue == 'desc'}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow_up.gif">
|
|
{else}
|
|
<img width="8" height="10" border="0" align="absmiddle" alt="Sortuj" src="themes/Sugar5/images/arrow.gif">
|
|
{/if}
|
|
</p>
|
|
</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_OVERDUE_1_30}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_OVERDUE_31_60}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_OVERDUE_61_90}</td>
|
|
<td class="oddListRowS1" style="text-align:right; width: 7%;">{$MOD.LBL_SUMMARY_OVERDUE_91_180}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$MOD.LBL_SUMMARY_OVERDUE_181}</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$DATA item=ROW name=loop}
|
|
{if $smarty.foreach.loop.index % 2 == 1}
|
|
<tr>
|
|
{else}
|
|
<tr style="background-color: #e6e6e6;">
|
|
{/if}
|
|
<td class="oddListRowS1" style="text-align:left;">
|
|
<img src="modules/EcmQuotes/images/search.gif" style="cursor: pointer;" onclick="showDetails('{$ROW.id}')"/>
|
|
<a target="new" href="index.php?module=EcmPaymentStates&action=AccountPaymentStates&return_module=EcmPaymentStates&return_action=DetailView&parentTab=Rozrachunki&account_id={$ROW.id}">
|
|
{$ROW.name}
|
|
</a>
|
|
</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.unsettled}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.not_overdue}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.10}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.9}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.8}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.overdue}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.2}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.3}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.4}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.5}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$ROW.6}</td>
|
|
</tr>
|
|
<tr id="details_{$ROW.id}" style="border-collapse: collapse; display:none;">
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
<tfoot>
|
|
<td class="oddListRowS1" style="text-align:left;"> </td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.unsettled}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.not_overdue}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.10}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.9}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.8}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.overdue}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.2}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.3}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.4}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.5}</td>
|
|
<td class="oddListRowS1" style="text-align:right;">{$SUM.6}</td>
|
|
</tr>
|
|
<tfoot>
|
|
</table> |