File: /www/exchange0old/exchange/admin/cache/%%07^073^07395DFB%%debtors_statements.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 09:07:00
compiled from statements/debtors_statements.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'statements/debtors_statements.html', 166, false),array('modifier', 'number_format', 'statements/debtors_statements.html', 198, false),array('function', 'substr', 'statements/debtors_statements.html', 393, false),array('function', 'getDebtorStatus', 'statements/debtors_statements.html', 399, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="body_portion">
<div id="admin_menu">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="left_menu1" class="folded" style="display:none;"> <a href="javascript:void(0)" class="panel_open" onclick="showLeftPanel('left_menu','left_menu1','body_portion');"></a>
<div class="center_menu"> <a href="#" class="user"> </a> </div>
</div>
<div id="right_content">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="margin_table">
<tr>
<td valign="top" align="left" width="2%" class="hdr_tl"> </td>
<td valign="top" align="left" width="96%" class="hdr_tc">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td width="60%">
Statement Summary - <?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
<span style="font-weight:bold;padding-left:70px;">Originator ID : <a href="adminindex.php?do=traviewapplications&aid=<?php echo $this->_tpl_vars['organisation']['organisation_id']; ?>
"><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</a></span>
</td>
<td width="40%" id="cell_with_tabs">
<div id="brief_tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
<li class="ui-state-default ui-corner-top" role="tab" tabindex="1" aria-labelledby="ui-id-3" aria-selected="false">
<a href="#" class="ui-tabs-anchor" onclick="$('#originator-notes').dialog('open'); return false;">Notes</a>
</li>
<li class="ui-state-default ui-corner-top" role="tab" tabindex="1" aria-labelledby="ui-id-3" aria-selected="false">
<a href="#" class="ui-tabs-anchor" onclick="$('#dialog').dialog('open'); small_report(); return false;">Reports</a>
</li>
<li class="ui-state-default ui-corner-top <?php if ($this->_tpl_vars['type'] == 'debtor'): ?> ui-tabs-active ui-state-active <?php endif; ?> " role="tab" tabindex="0" aria-controls="debtors_stat" aria-labelledby="ui-id-1" aria-selected="true">
<a href="adminindex.php?do=originatorstatements&user_id=<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
&type=debtor" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">Debtors</a>
</li>
<li class="ui-state-default ui-corner-top <?php if ($this->_tpl_vars['type'] == 'creditor'): ?> ui-tabs-active ui-state-active <?php endif; ?>" role="tab" tabindex="-1" aria-controls="creditors_stat" aria-labelledby="ui-id-2" aria-selected="false">
<a href="adminindex.php?do=originatorstatements&user_id=<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
&type=creditor" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-2">Creditors</a>
</li>
<li class="ui-state-default ui-corner-top <?php if ($this->_tpl_vars['type'] == 'transactions'): ?> ui-tabs-active ui-state-active <?php endif; ?>" role="tab" tabindex="-1" aria-controls="transactions_stat" aria-labelledby="ui-id-2" aria-selected="false">
<a href="adminindex.php?do=all_transactions&user_id=<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-3">All Transactions</a>
</li>
</ul>
</div>
</td>
</tr>
</table>
</td>
<td valign="top" align="left" width="2%" class="hdr_tr"> </td>
</tr>
<?php if (count ( $this->_tpl_vars['success_org'] ) > 0): ?>
<tr>
<td colspan="3" class="hdr_center">
<div class="success-msgbox"><span>
<?php $_from = $this->_tpl_vars['success_org']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['err'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['err']['total'] > 0):
foreach ($_from as $this->_tpl_vars['err']):
$this->_foreach['err']['iteration']++;
?>
<?php echo $this->_tpl_vars['success_org']; ?>
<br>
<?php endforeach; endif; unset($_from); ?></span>
</div>
</td>
</tr>
<?php endif; ?>
<?php if (count ( $this->_tpl_vars['data'] ) == 0): ?>
<tr>
<td colspan="3" class="hdr_center">
<div class="success-msgbox">
<span>
This originator doesn't have debtors
</span>
</div>
</td>
</tr>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['country_id'] => $this->_tpl_vars['debtors']):
?>
<tr class="grays_bg">
<td align="center" colspan="3"><b><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</b></td>
</tr>
<tr>
<td colspan="3" class="hdr_center">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" valign="top" width="964">
<img alt="OriginatorExperience" src="adminindex.php?do=viewOriginatorLiveGraph&cid=<?php echo $this->_tpl_vars['country_id']; ?>
&type=debtor&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
" />
<br/>
</td>
<td valign="top">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="grays_bg">
<td align="center" colspan="2"><b>Live Experience Summary</b></td>
</tr>
<tr class="row2">
<td width="65%" align="right">ETR Frequency :</td>
<td><?php echo $this->_tpl_vars['debtors']['dl']['stats_si']['averageInterval']; ?>
day(s)</td>
</tr>
<tr class="row1">
<td align="right">Maximum ETR Value :</td>
<td align="right"><?php echo $this->_tpl_vars['debtors']['dl']['currency']; ?>
<?php echo $this->_tpl_vars['debtors']['dl']['stats_si']['maxVal']; ?>
</td>
</tr>
<tr class="row2">
<td align="right">Average ETR Value :</td>
<td align="right"><?php echo $this->_tpl_vars['debtors']['dl']['currency']; ?>
<?php echo $this->_tpl_vars['debtors']['dl']['stats_si']['averageVal']; ?>
</td>
</tr>
<tr class="row1">
<td align="right">Settled ETR Frequency :</td>
<td><?php echo $this->_tpl_vars['debtors']['dl']['stats_rec']['averageInterval']; ?>
day(s)</td>
</tr>
<tr class="row2">
<td align="right">Settled ETR Limit :</td>
<td><?php echo $this->_tpl_vars['debtors']['dl']['stats_rec']['maxInterval']; ?>
day(s)</td>
</tr>
<tr class="row1">
<td align="right">Settled ETR Average Value :</td>
<td align="right"><?php echo $this->_tpl_vars['debtors']['dl']['currency']; ?>
<?php echo $this->_tpl_vars['debtors']['dl']['stats_rec']['averageVal']; ?>
</td>
</tr>
<tr class="row2">
<td align="right">Credit Note Frequency :</td>
<td><?php echo $this->_tpl_vars['debtors']['dl']['stats_cn']['averageInterval']; ?>
day(s)</td>
</tr>
<tr class="row1">
<td align="right">Credit Note Limit :</td>
<td align="right"><?php echo $this->_tpl_vars['debtors']['dl']['currency']; ?>
<?php echo $this->_tpl_vars['debtors']['dl']['stats_cn']['maxVal']; ?>
</td>
</tr>
<tr class="row2">
<td align="right">Credit Note Average Value :</td>
<td align="right"><?php echo $this->_tpl_vars['debtors']['dl']['currency']; ?>
<?php echo $this->_tpl_vars['debtors']['dl']['stats_cn']['averageVal']; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="3" class="hdr_center">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="clsoverride">
<tr>
<td valign="top" align="center" class="inves_top1" colspan="3" width="50%">Overview</td>
<td valign="top" align="right" class="inves_top1" colspan="3" width="50%"><?php echo $this->_tpl_vars['debtors']['debtors']['0']['country_name']; ?>
</td>
</tr>
<tr>
<td colspan="5"> <div style="display:none;" class="error-msgbox"></div></td>
</tr>
<tr class="row3">
<td valign="top" align="right" width="17%"><strong>Start Date :</strong></td>
<td valign="top" align="left" width="15%"><?php echo $this->_tpl_vars['start_date']; ?>
</td>
<td valign="top" align="right" width="19%"><strong>Originator ID :</strong></td>
<td valign="top" align="left" width="16%"><?php echo $this->_tpl_vars['rate']['5']; ?>
</td>
<td valign="top" align="center" colspan="2" width="32%" style="border-left:2px solid #CCC;"><strong style="color:#666;">Period Overview</strong></td>
</tr>
<tr class="row3">
<td valign="top" align="right"><strong>Statement From :</strong></td>
<td valign="middle" align="left">
<?php if ($_GET['stmt_from']): ?>
<?php echo $_GET['stmt_from']; ?>
<input type="hidden" name="stmt_from_date<?php echo $this->_tpl_vars['country_id']; ?>
" id="stmt_from_date<?php echo $this->_tpl_vars['country_id']; ?>
" value="<?php echo $_GET['stmt_from']; ?>
">
<?php else: ?>
<?php echo $this->_tpl_vars['rate']['3']['3']; ?>
<input type="hidden" name="stmt_from_date<?php echo $this->_tpl_vars['country_id']; ?>
" id="stmt_from_date<?php echo $this->_tpl_vars['country_id']; ?>
" value="<?php echo $this->_tpl_vars['rate']['3']['3']; ?>
">
<?php endif; ?>
<input type="hidden" name="statement_date" id="statement_date<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<input type="hidden" name="statement_month" id="statement_month<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<input type="hidden" name="statement_year" id="statement_year<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<script type="text/javascript">
$(function(){
$("#statement_year<?php echo $this->_tpl_vars['country_id']; ?>
").datepicker({
minDate: null,
showOn: "button",
buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i=0;selDate=selectedDate.split("/");
var dates=new Array("statement_month<?php echo $this->_tpl_vars['country_id']; ?>
","statement_date<?php echo $this->_tpl_vars['country_id']; ?>
","statement_year<?php echo $this->_tpl_vars['country_id']; ?>
");
var datasplited=selDate[2]+"-"+selDate[0]+"-"+selDate[1];
var toDate=$("#stmt_to_date<?php echo $this->_tpl_vars['country_id']; ?>
").val();
if(datasplited > toDate) {
$(".error-msgbox<?php echo $this->_tpl_vars['country_id']; ?>
").css("display","block").html("Statement from date is greater than statement to date.");
}else{
var url=document.URL;
var url_split=url.split("&");
var id=url_split[1];
if(id!=""){
window.location.href="adminindex.php?do=originatorstatements&stmt_from="+datasplited+"&stmt_to="+toDate+"&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
&type=debtor";
}else{
window.location.href="adminindex.php?do=originatorstatements&stmt_from="+datasplited+"&stmt_to="+toDate+"&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
&type=debtor";
}
}
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</td>
<td valign="top" align="right"><strong>Sell Rate (%) :</strong></td>
<td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['1'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
%</td>
<td valign="top" align="right" style="border-left:2px solid #CCC;"><strong>Total ETR Face Value (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
):</strong></td>
<td valign="top" align="right" width="">
<span id="traded<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tradedTotal'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
</tr>
<tr class="row3">
<td valign="bottom" align="right"><strong>Statement To :</strong></td>
<td valign="middle" align="left">
<?php if ($_GET['stmt_to']): ?>
<?php echo $_GET['stmt_to']; ?>
<input type="hidden" name="stmt_to_date<?php echo $this->_tpl_vars['country_id']; ?>
" id="stmt_to_date<?php echo $this->_tpl_vars['country_id']; ?>
" value="<?php echo $_GET['stmt_to']; ?>
">
<?php else: ?>
<?php echo $this->_tpl_vars['rate']['3']['2']; ?>
<input type="hidden" name="stmt_to_date<?php echo $this->_tpl_vars['country_id']; ?>
" id="stmt_to_date<?php echo $this->_tpl_vars['country_id']; ?>
" value="<?php echo $this->_tpl_vars['rate']['3']['2']; ?>
">
<?php endif; ?>
<input type="hidden" name="statement_date_to" id="statement_date_to<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<input type="hidden" name="statement_month_to" id="statement_month_to<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<input type="hidden" name="statement_year_to" id="statement_year_to<?php echo $this->_tpl_vars['country_id']; ?>
" value="" />
<script type="text/javascript">
// * For Date Picker
$(function() {
$( "#statement_year_to<?php echo $this->_tpl_vars['country_id']; ?>
" ).datepicker({
minDate: null,
showOn: "button",
buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i=0;selDate=selectedDate.split("/");
var dates=new Array("statement_month_to<?php echo $this->_tpl_vars['country_id']; ?>
","statement_date_to<?php echo $this->_tpl_vars['country_id']; ?>
","statement_year_to<?php echo $this->_tpl_vars['country_id']; ?>
");
var datasplited=selDate[2]+"-"+selDate[0]+"-"+selDate[1];
var fromDate=$("#stmt_from_date<?php echo $this->_tpl_vars['country_id']; ?>
").val();
if(datasplited < fromDate) {
$(".error-msgbox<?php echo $this->_tpl_vars['country_id']; ?>
").css("display","block").html("Statement to date is less than statement from date.");
} else{
var url=document.URL;
var url_split=url.split("&");
var id=url_split[1];
if(id!=""){
window.location.href="adminindex.php?do=originatorstatements&stmt_from="+fromDate+"&stmt_to="+datasplited+"&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
&type=debtor";
}else{
window.location.href="adminindex.php?do=originatorstatements&stmt_from="+fromDate+"&stmt_to="+datasplited+"&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
&type=debtor";
}
}
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script></td>
<td valign="top" align="right"><strong>Face Value Charge :</strong></td>
<td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['7'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
%</td>
<td valign="top" align="right" style="border-left:2px solid #CCC;"><strong>Total Purchase Price (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
):</strong></td>
<td valign="top" align="right" width="">
<span id="total<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tradedTPurchase'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
</tr>
<tr class="row3">
<td valign="bottom" align="right"><strong>Average EDSO :</strong></td>
<td valign="middle" align="left">
<span id="avgEdso<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['avgValues'][$this->_tpl_vars['country_id']]['edsoAvg'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 1) : smarty_modifier_number_format($_tmp, 1)); ?>
</span>
</td>
<td valign="top" align="right"><strong>Purchase Payment :</strong></td>
<td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['6'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
%</td>
<td valign="top" align="right" style="border-left:2px solid #CCC;"><strong>Total Reserve (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
) :</strong></td>
<td valign="top" align="right" width="">
<span id="reserve<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tot_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
</tr>
<tr class="row3">
<td valign="top" align="right"><strong>Average ADSO :</strong></td>
<td valign="top" align="left">
<span id="avgAdso<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['avgValues'][$this->_tpl_vars['country_id']]['adsoAvg'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
<td valign="top" align="right"><strong>LDC Premium:</strong></td>
<td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['8'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
%</td>
<td valign="top" align="right" style="border-left:2px solid #CCC;"><strong>Monthly Average Purchase Price (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
):</strong></td>
<td valign="top" align="right" width="">
<span id="avgPurchase<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['avgValues'][$this->_tpl_vars['country_id']]['AvgPurchase'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
</tr>
<tr class="row3">
<td valign="bottom" align="right"><strong>Last Traded Date :</strong></td>
<td valign="middle" align="left">
<?php if ($this->_tpl_vars['last_dates'][$this->_tpl_vars['originator_id']][$this->_tpl_vars['type']][$this->_tpl_vars['country_id']]['last_traded_date']): ?>
<?php echo $this->_tpl_vars['last_dates'][$this->_tpl_vars['originator_id']][$this->_tpl_vars['type']][$this->_tpl_vars['country_id']]['last_traded_date']; ?>
<?php else: ?>
-
<?php endif; ?>
</td>
<td valign="top" align="right"><strong>Agent Commission :</strong></td>
<td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['9'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
%</td>
<td valign="top" align="right" style="border-left:2px solid #CCC;"><strong>Monthly Average Trade Volume (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
):</strong></td>
<td valign="top" align="right" width="">
<span id="avgTradeVolume<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['avgValues'][$this->_tpl_vars['country_id']]['AvgTradeVolume'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
</tr>
<tr class="row3">
<td valign="bottom" align="right"><strong>Last Payment Date :</strong></td>
<td valign="middle" align="left">
<?php if ($this->_tpl_vars['last_dates'][$this->_tpl_vars['originator_id']][$this->_tpl_vars['type']][$this->_tpl_vars['country_id']]['last_payment_date']): ?>
<?php echo $this->_tpl_vars['last_dates'][$this->_tpl_vars['originator_id']][$this->_tpl_vars['type']][$this->_tpl_vars['country_id']]['last_payment_date']; ?>
<?php else: ?>
-
<?php endif; ?>
</td>
<td valign="top" align="right"><strong>Reserve Due (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
):</strong></td>
<td valign="top" align="left">
<span id="reserveDue<?php echo $this->_tpl_vars['country_id']; ?>
">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['reserveDue'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</span>
</td>
<td colspan="2" style="border-left:2px solid #CCC;"></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" align="center" class="inves_top1" width="29%">Counterparty Details</td>
<td valign="top" align="center" class="inves_top1" width="31%">Transaction Overview</td>
</tr>
</table>
<style>
.hdr_center td b{font-size:11px !important;}
</style>
<table cellpadding="0" cellspacing="0" border="0" width="100%" id="listDebtor" class="table table-hover table-striped table-responsive">
<tr class="grays_bg4">
<td valign="top" align="left" width="" >ID</td>
<td valign="top" align="left" width="">Name</td>
<td valign="top" align="left" width="10%">Face Value (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="left" width="9%">Receipts (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="center" width="7%">Paid (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="left" width="6%">Status</td>
<td valign="top" align="center" width="8%">Traded (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="center" width="11%">Overdue Now (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="center" width="10%">Outstanding (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="center" width="9%">Reserve (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)</td>
<td valign="top" align="center" width="">
<?php if ($_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin'): ?>
Commission (<?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
)
<?php endif; ?>
</td>
</tr>
<tbody>
<?php if ($this->_tpl_vars['old_balance']): ?>
<tr>
<td align="right" colspan="4">Closing Balance as at <?php echo $this->_tpl_vars['before_from_date']; ?>
:</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance'][$this->_tpl_vars['country_id']]['stat']['totPaid'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td></td>
<td></td>
<td valign="top" align="right" style="color:#FF0000; font-weight: bold; text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance'][$this->_tpl_vars['country_id']]['stat']['totOverdueNow'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance'][$this->_tpl_vars['country_id']]['stat']['tot_outstanding'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance'][$this->_tpl_vars['country_id']]['stat']['tot_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php if ($_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin'): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance'][$this->_tpl_vars['country_id']]['stat']['tot_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php endif; ?></td>
</tr>
<?php if ($this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['country_id']]): ?>
<tr>
<td align="right" colspan="4">
<i class="glyphicon glyphicon-th-list" style="cursor: pointer" onclick="showDelayedReserves(<?php echo $this->_tpl_vars['country_id']; ?>
);return false;"></i>
Period Sell Rate - ADSO :
</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td align="right">-<?php echo ((is_array($_tmp=$this->_tpl_vars['delayed_reserves']['summary'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<?php if ($_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin'): ?>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['delayed_commissions']['summary'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<?php endif; ?>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['debtors']['debtors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['debtor']):
?>
<tr>
<td valign="top" align="left">
<a class="btn-link" href="adminindex.php?do=trastatusmgnt&id=<?php echo $this->_tpl_vars['debtor']['debtor_id']; ?>
&user_id=<?php echo $this->_tpl_vars['originator_id']; ?>
&type=debtor"><?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</a>
</td>
<td valign="top" align="left"><?php echo smarty_function_substr(array('string' => $this->_tpl_vars['debtor']['debtor_name'],'lenght' => 45), $this);?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['traded'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="right">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['paid'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['paid'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="left"><?php echo smarty_function_getDebtorStatus(array('data' => $this->_tpl_vars['debtor']), $this);?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['outstanding_traded'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="right" style="color:#FF0000; font-weight: bold;">
<?php if ($this->_tpl_vars['debtor']['overdue_now'] > 0): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['overdue_now'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php else: ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['overdue_now'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php endif; ?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['outstanding_total'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="right">
<?php if ($_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin'): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<?php if ($this->_tpl_vars['processing_commissions']['trade'][$this->_tpl_vars['country_id']] && ( $_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin' )): ?>
<tr>
<td valign="top" align="left">
<a class="btn-link" style="cursor: pointer;" onclick="showCommissions(<?php echo $this->_tpl_vars['country_id']; ?>
,'trade');return false;"><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</a>
</td>
<td valign="top" align="left" colspan="9">Processing Commissions (Traded d-ETR)</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['trade'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['processing_commissions']['drp'][$this->_tpl_vars['country_id']] && ( $_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin' )): ?>
<tr>
<td valign="top" align="left">
<a class="btn-link" style="cursor: pointer;" onclick="showCommissions(<?php echo $this->_tpl_vars['country_id']; ?>
,'drp');return false;"><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</a>
</td>
<td valign="top" align="left" colspan="9">Processing Commissions (Reserve Payment)</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['drp'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['processing_commissions']['rp'][$this->_tpl_vars['country_id']] && ( $_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin' )): ?>
<tr>
<td valign="top" align="left">
<a class="btn-link" style="cursor: pointer;" onclick="showCommissions(<?php echo $this->_tpl_vars['country_id']; ?>
,'rp');return false;"><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</a>
</td>
<td valign="top" align="left" colspan="9">Processing Commissions (Returned Payments)</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['rp'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endif; ?>
</tbody>
<tfoot>
<tr>
<th valign="top" align="left"><strong>Balances</strong></th>
<td valign="top" align="left"> </td>
<td valign="top" align="left"> </td>
<td valign="top" align="left"> </td>
<th valign="top" align="right" style="text-align: right;">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['totPaid'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</th>
<th valign="top" align="left"> </th>
<th valign="top" align="left"> </th>
<th valign="top" align="right" style="color:#FF0000; font-weight: bold; text-align: right;">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['totOverdueNow'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</th>
<th valign="top" align="right" style="text-align: right;">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tot_outstanding'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</th>
<th valign="top" align="right" style="text-align: right; font-weight: bold;">
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tot_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</th>
<th valign="top" align="right" style="text-align: right; font-weight: bold;">
<?php if ($_SESSION['admin_type'] == 'Board' || $_SESSION['admin_type'] == 'Admin'): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['debtors']['stat']['tot_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php endif; ?>
</th>
</tr>
<tr class="excel-remove">
<td colspan="7">
<form method="post" action="?do=downloadreport" onsubmit="downloadTable(this);" style="display: inline-block">
<input type="hidden" name="user_id" value="<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
">
<input type="hidden" name="report_type" value="8">
<input type="hidden" name="currency_id" value="<?php echo $this->_tpl_vars['country_id']; ?>
">
<input type="hidden" name="stmt_from" value="">
<input type="hidden" name="stmt_to" value="">
<button type="submit"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Download XLS</button>
</form>
<form method="post" action="?do=download-pdf" onsubmit="downloadPdf(this);" style="display: inline-block">
<input type="hidden" name="user_id" value="<?php echo $this->_tpl_vars['organisation']['user_id']; ?>
">
<input type="hidden" name="currency_id" value="<?php echo $this->_tpl_vars['country_id']; ?>
">
<input type="hidden" name="stmt_from" value="">
<input type="hidden" name="stmt_to" value="">
<button type="submit"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Download PDF</button>
</form>
</td>
<td align="right">
<button onclick="$('#dialog_two').dialog('open'); get_overdue_report(<?php echo $this->_tpl_vars['country_id']; ?>
); return false;"><span class="glyphicon glyphicon-search" aria-hidden="true"></span> View</button>
</td>
<td colspan="3"></td>
</tr>
</tfoot>
</table></td></tr>
<?php if ($this->_tpl_vars['processing_commissions']['trade'][$this->_tpl_vars['country_id']]): ?>
<tr>
<td>
<div class="trade_commissions" id="trade_commissions_<?php echo $this->_tpl_vars['country_id']; ?>
">
<table class="table table-hover table-striped table-responsive" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="grays_bg4">
<td>Receipt</td>
<td>Originator ID</td>
<td>Originator Name</td>
<td><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</td>
</tr>
<?php $_from = $this->_tpl_vars['processing_commissions']['trade'][$this->_tpl_vars['country_id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['com']):
?>
<tr>
<td><?php echo $this->_tpl_vars['com']['posted_date']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['com'][$this->_tpl_vars['debtors']['currency']['currency_code']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td colspan="3" align="right"><b>Total :</b></td>
<td align="right"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['trade'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</b></td>
</tr>
</table>
</div>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['processing_commissions']['drp'][$this->_tpl_vars['country_id']]): ?>
<tr>
<td>
<div class="drp_commissions" id="drp_commissions_<?php echo $this->_tpl_vars['country_id']; ?>
">
<table class="table table-hover table-striped table-responsive" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="grays_bg4">
<td>Receipt</td>
<td>Originator ID</td>
<td>Originator Name</td>
<td><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</td>
</tr>
<?php $_from = $this->_tpl_vars['processing_commissions']['drp'][$this->_tpl_vars['country_id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['com']):
?>
<tr>
<td><?php echo $this->_tpl_vars['com']['posted_date']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['com'][$this->_tpl_vars['debtors']['currency']['currency_code']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td colspan="3" align="right"><b>Total :</b></td>
<td align="right"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['drp'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</b></td>
</tr>
</table>
</div>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['processing_commissions']['rp'][$this->_tpl_vars['country_id']]): ?>
<tr>
<td>
<div class="rp_commissions" id="rp_commissions_<?php echo $this->_tpl_vars['country_id']; ?>
">
<table class="table table-hover table-striped table-responsive" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="grays_bg4">
<td>Receipt</td>
<td>Originator ID</td>
<td>Originator Name</td>
<td><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</td>
</tr>
<?php $_from = $this->_tpl_vars['processing_commissions']['rp'][$this->_tpl_vars['country_id']]['rp_commissions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['com']):
?>
<tr>
<td><?php echo $this->_tpl_vars['com']['posted_date']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_reference_id']; ?>
</td>
<td><?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['com']['retpay_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td colspan="3" align="right"><b>Total :</b></td>
<td align="right"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['processing_commissions']['summary']['rp'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</b></td>
</tr>
</table>
</div>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['country_id']]): ?>
<tr>
<td>
<div class="delayed_reserves" id="delayed_reserves_<?php echo $this->_tpl_vars['country_id']; ?>
">
<table class="table table-hover table-striped table-responsive" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr class="grays_bg4">
<td>Debtor ID</td>
<td>Debtor Name</td>
<td>Trade ID</td>
<td>Invoice Ref.</td>
<td>Ccy</td>
<td>Face Value</td>
<td>At Traded Date</td>
<td>At <?php echo $this->_tpl_vars['before_from_date']; ?>
</td>
<td>At <?php echo $_GET['stmt_to']; ?>
</td>
<td>Period Reduction</td>
</tr>
<?php $_from = $this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['country_id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['invoice']):
?>
<tr>
<td><?php echo $this->_tpl_vars['invoice']['debtor_reference_id']; ?>
</td>
<td><?php echo $this->_tpl_vars['invoice']['debtor_name']; ?>
</td>
<td><?php echo $this->_tpl_vars['invoice']['trade_reference_id']; ?>
</td>
<td><?php echo $this->_tpl_vars['invoice']['invoice_no']; ?>
</td>
<td><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['traded_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['from_reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['to_reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td colspan="9" align="right"><b>Total Period Reduction :</b></td>
<td align="right"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['delayed_reserves']['summary'][$this->_tpl_vars['country_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</b></td>
</tr>
</table>
</div>
</td>
</tr>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<tr>
<td valign="top" align="left" width="2%" class="hdr_bl"> </td>
<td valign="top" align="left" width="96%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>
<style>
#cell_with_tabs .ui-widget-content,#cell_with_tabs .ui-widget-header{background: none !important;border: none !important;}
#listDebtor td{
padding:5px;
font-size:11px;
}
#listDebtor td b{
font-size:11px;
}
.clsoverride .row1 td{
padding:5px 3px !important;
line-height: 15px !important;
}
.clsoverride .row1 td img{
vertical-align: bottom;
}
* {
color: #000000;
font-family: Verdana,Geneva,sans-serif;
font-size: 11px;
margin: 0;
}
.inves_top1{ background:#848284;height:35px;color:#fff;line-height:32px; padding-left:10px;font-weight:bold;}
.inves_top3{ background:#e4e3e3;height:15px;line-height:32px; padding-left:10px;font-weight:bold;}
.inves_top1 span{ background:#848284;height:35px;color:#fff;line-height:32px; padding-left:10px;font-weight:bold;cursor:pointer;}
.inves_top1 span:hover{ background:#848284;height:35px;color:#fff;line-height:32px; padding-left:10px;font-weight:bold;text-decoration:underline;}
.row3 td {
background: none repeat scroll 0 0 #FFFFFF;
font-size: 11px;
line-height: 18px;
padding: 5px 10px;
border-bottom: none;
}
.grays_bg4 td{background:#c0c0c0; padding:10px 0px; font-size:11px; line-height:16px; border-top:2px solid #fff; font-weight: bolder;}
.ui-tabs-nav li{float:right !important}
.trade_commissions, .drp_commissions, .rp_commissions, .delayed_reserves{display: none}
</style>
<script type="text/javascript">
$(function () {
$(".trade_commissions").dialog({
autoOpen: false,
width: 900,
height: 600,
modal: true,
title: 'Processing Commissions (Traded d-ETR)',
open: function () {
}
});
$(".drp_commissions").dialog({
autoOpen: false,
width: 900,
height: 600,
modal: true,
title: 'Processing Commissions (Reserve Payment)',
open: function () {
}
});
$(".rp_commissions").dialog({
autoOpen: false,
width: 900,
height: 600,
modal: true,
title: 'Processing Commissions (Returned Payments)',
open: function () {
}
});
$(".delayed_reserves").dialog({
autoOpen: false,
width: 900,
height: 600,
modal: true,
title: 'Reserve Reduction Summary',
open: function () {
}
});
});
function changeDeb(id)
{
window.location = 'adminindex.php?do=originatorstatements&cid='+id;
}
function downloadTable(obj){
downloadPdf(obj);
}
function downloadPdf(obj) {
var curId = $(obj).find('[name="currency_id"]').val();
$(obj).find('[name="stmt_from"]').val($('#stmt_from_date' + curId).val());
$(obj).find('[name="stmt_to"]').val($('#stmt_to_date' + curId).val());
}
function showCommissions(currency, type) {
var id = '#' + type + '_commissions_' + currency;
$(id).dialog('open');
}
function showDelayedReserves(ccy) {
$('#delayed_reserves_' + ccy).dialog('open');
}
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "reports/originator_reports.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "reports/overdue_reports.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "originator_notes.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>