HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/cache/%%07^073^07395DFB%%debtors_statements.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 07:22:45
         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', 2, false),array('modifier', 'number_format', 'statements/debtors_statements.html', 83, false),array('function', 'getDebtorStatus', 'statements/debtors_statements.html', 251, 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);
 ?>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.ui.core.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/ui.datepicker.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.form.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<link type="text/css" href="<?php echo ((is_array($_tmp='/css/bootstrap.min.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" rel="stylesheet" />

<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
    <tr>
      <td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tbody>
            <tr>
              <td align="center" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td align="left" valign="middle" class="login_bg"><table cellspacing="0" cellpadding="0" border="0" width="100%">
                  <tbody>
                    <tr>
                      <td align="left" valign="middle" class="login_bg_t">Exchange Trade Centre | Statement Summary</td>
                      <td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <?php echo $_SESSION['user']['org_ref_id']; ?>
  </td>
                      <td align="right"  valign="middle" class="txt_11"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
                    </tr>
                  </tbody>
                </table>
            <tr>
              <td align="center" valign="top" class="about_c"><table cellspacing="5" cellpadding="5" border="0" width="100%">
                  <tbody>
                    <tr>
                      <td align="left" width="18%" valign="top"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
                      
                      <td align="right" width="82%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td align="left" valign="top" 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 if ($_GET['uid'] != ''): ?>
                                    <a href="index.php?do=intermediaryhome" class="trade_floor_bttn">Dashboard</a>
                                    <?php else: ?>
                                    <a href="index.php?do=retailerhome" class="trade_floor_bttn">Dashboard</a>
                                    <?php endif; ?>
                                    &nbsp;</td>
                                </tr>
                                <tr >
                                    <td colspan="5"> 
                                        <div style="display:none;" class="error-msgbox"></div>
                                        <?php if (! empty ( $this->_tpl_vars['result'] )): ?>
                                        <div class="success-msgbox">
                                            <?php echo $this->_tpl_vars['result']; ?>

                                        </div>
                                        <?php endif; ?>
                                    </td>
                                </tr>
                                
                                </table>
                                
                                <?php if (count ( $this->_tpl_vars['data'] ) == 0): ?>
                                <tr>
                                    <td colspan="3" class="hdr_center">
                                    <div class="success-msgbox">
                                        <span>
                                           You don'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']):
?>
                                
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr class="grays_bg4">
                                    <td></td>
                                    <td align="center"><b><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</b></td>
                                    <td colspan="2"></td>
                                    <td align="center"><b><?php echo $this->_tpl_vars['debtors']['currency']['country_name']; ?>
</b></td>
                                    <td></td>
                                 </tr>
                                 <tr class="row1">
                                    <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)); ?>
 <?php if ($this->_tpl_vars['rate']['1'] != ''): ?>%<?php endif; ?></td>
                                    <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"><strong>Total ETR Face Value :</strong></td>
                                    <td valign="top" align="left" 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="row1">
                                  <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)); ?>
 <?php if ($this->_tpl_vars['rate']['6'] != ''): ?>%<?php endif; ?></td>
                                  <td valign="bottom" align="right"><strong>Statement From :</strong> </td>
                                  <td valign="middle" align="left">
                                    <?php if ($_GET['stmt_from'] == ''): ?>
                                      <?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 else: ?>
                                       <?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 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>
                                      //For Date Picker
                                      $(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{
                                                
                                                 window.location.href='index.php?do=mytrastatements&stmt_from='+datasplited+'&stmt_to='+toDate+'&type=debtor';
                                               }

                                        for(i = 0; i <=2; i++){
                                          $( "#"+dates[i] ).val(selDate[i]);
                                        }
                                        }
                                        });
                                        });
                                    </script>
                                    </td>
                                    <td valign="top" align="right"><strong>Total Purchase Price :</strong></td>
                                    <td valign="top" align="left" 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="row1">                                  
                                  <td valign="top" align="right"></td>
                                  <td valign="top" align="right"></td>
                                    <td valign="bottom" align="right"><strong>Statement To:</strong></td>

                                  <td valign="middle" align="left">
                                    <?php if ($_GET['stmt_to'] == ''): ?>
                                       <?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 else: ?>
                                       <?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 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>
                                      //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{
                                               
                                             window.location.href='index.php?do=mytrastatements&stmt_from='+fromDate+'&stmt_to='+datasplited+'&type=debtor';
                                           }

                                        for(i = 0; i <=2; i++){
                                          $( "#"+dates[i] ).val(selDate[i]);
                                        }
                                        }
                                        });
                                        });
                                    </script></td>
                                    <td valign="top" align="right"><strong>Reserve Due :</strong>
                                    </td>
                                    <td valign="top" align="left" width="">
                                        <span id="reserve<?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>
                                </tr>
                              </table>
                               <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                <tr>
                                  <td valign="top" align="center" class="inves_top1" width="29%">Debtor Details</td>
                                  <td valign="top" align="center" class="inves_top1" width="31%">Transaction Overview</td>
                                </tr>
                              </table>
                              
                              <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">ID</b></td>
                                    <td valign="top" align="center">Name</b></td>
                                    <td valign="top" align="left">Paid</td>
                                    <td valign="top" align="center" style="border-right:4px solid #FFF;">Status</td>
                                    <td valign="top" align="left" colspan="2">Traded</td>
                                    <td valign="top" align="left">Overdue Now</td>
                                    <td valign="top" align="center">Total</td>
                                    <td valign="top" align="center">Reserve</td>
                                </tr>
                                
                                <tbody>
                                <?php if ($this->_tpl_vars['old_balance']): ?>
                                <tr>
                                    <td colspan="2" align="right">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 colspan="3"></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>
                                </tr>
                                <?php if ($this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['country_id']]): ?>
                                <tr>
                                    <td colspan="2" align="right">Delayed Settlement Reserve Reduction :</td>
                                    <td colspan="6"></td>
                                    <td align="right">
                                        <nobr style="font-size: 11px">
                                            - <?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)); ?>

                                            <i class="glyphicon glyphicon-th-list" style="cursor: pointer" onclick="showDelayedReserves(<?php echo $this->_tpl_vars['country_id']; ?>
);return false;"></i>
                                        </nobr>
                                    </td>
                                </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="index.php?do=trastatusmgnt&id=<?php echo $this->_tpl_vars['debtor']['debtor_id']; ?>
"><?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</a>
                                    </td>
                                    <td valign="top" align="left"><?php echo $this->_tpl_vars['debtor']['debtor_name']; ?>
</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="center" style="border-right:4px solid #FFF;"><?php echo smarty_function_getDebtorStatus(array('data' => $this->_tpl_vars['debtor']), $this);?>
</td>
                                    <td valign="top" align="right" colspan="2"><?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">
                                        <?php if ($this->_tpl_vars['debtor']['overdue_now'] > 0): ?>
                                        <strong style="color:#FF0000;"><?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)); ?>
</strong>
                                        <?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>
                                </tr>
                                <?php endforeach; endif; unset($_from); ?>
                                <?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; ?>
                                    </tbody>
                            
                                    <tfoot>
                                        <tr class="row1">
                                            <th valign="top" align="left" colspan="2" style="padding-left:15px;text-align: left;"><strong>Balances</strong></th>
                                            <th valign="top" align="right" style="text-align: right;"><strong><?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)); ?>
</strong></th>
                                            <th valign="top" align="left" colspan="3">&nbsp;</th>
                                            <th valign="top" align="right" style="text-align: right"><strong style="color:#FF0000;"><?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)); ?>
</strong></th>
                                            <th valign="top" align="right" style="text-align: right;"><strong><?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)); ?>
</strong></th>
                                            <th valign="top" align="right" style="text-align: right;"><strong><?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)); ?>
</strong></th>
                                            </tr>
                                    </tfoot>
                                
                                <?php endforeach; endif; unset($_from); ?>
                              </table>
                            </td>
                          </tr>
                        </table></td>
                    </tr>
                  </tbody>
                </table></td>
            </tr>
          </tbody>
        </table></td>
    </tr>
    <tr>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
  </tbody>
</table>
<style>
#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;
}
.grays_bg4 td{font-weight: bolder;}

.about_c > table{border-spacing: 5px;}

.delayed_reserves {
    display: none
}

.ui-widget-overlay {
    position: fixed
}

.ui-dialog-titlebar-close .ui-button-text {
    display: none !important;
}

.ui-state-default .ui-icon {
    background-image: url(images/ui-icons_ffffff_256x240.png) !important;
    background-position: -98px -130px;
}
</style>

<script type="text/javascript">

function changeDeb(id){

  window.location = 'index.php?do=mytrastatements&type=<?php echo $this->_tpl_vars['type']; ?>
&cid='+id;
}

function showDelayedReserves(ccy) {
    $('#delayed_reserves_' + ccy).dialog('open');
}

$(function () {
    $(".delayed_reserves").dialog({
        autoOpen: false,
        width: 900,
        height: 600,
        modal: true,
        title: 'Reserve Reduction Summary',
        open: function () {

        }
    });
});
</script>
<?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);
 ?>