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/admin/cache/%%22^22A^22A00CBB%%add_adjustments.html.php
<?php /* Smarty version 2.6.19, created on 2025-04-04 09:00:54
         compiled from override_rule/add_adjustments.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'override_rule/add_adjustments.html', 7, false),array('modifier', 'number_format', 'override_rule/add_adjustments.html', 62, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>:: Credebt Exchange - Add Adjustments ::</title>
    <link rel="stylesheet" href="<?php echo ((is_array($_tmp='admin/css/stylesheet.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" type="text/css"/>
    <link type="text/css" href="<?php echo ((is_array($_tmp='css/bootstrap.min.css?ver=2')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" rel="stylesheet"/>
    <link rel="shortcut icon" href="<?php echo $_SESSION['base_url']; ?>
images/logo_favicon.ico"/>
    <link type="text/css" href="<?php echo ((is_array($_tmp='/css/ui-lightness/jquery-ui-1.10.4.custom.min.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"
          rel="stylesheet"/>

    <script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.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-ui-1.10.4.custom.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
    <style type="text/css">
        .without_border td {
            border-left: none !important;
            border-right: none !important;
            border-bottom: none !important;
        }
    </style>
</head>
<body style="background: none;">
<h4 style="color: #FFF;background: #555;margin: 0;padding: 15px 0 15px 5px;">Creating adjustments</h4>
<?php if ($this->_tpl_vars['data']['data']): ?>
<form action="adminindex.php?do=add-adjustments&debtor_id=<?php echo $_GET['debtor_id']; ?>
&step=2"
      method="post">
    <table class="table table-hover table-striped table-responsive table-bordered">
        <thead>
        <tr>
            <th nowrap="nowrap">Traded</th>
            <th nowrap="nowrap">Trade ID</th>
            <th nowrap="nowrap">Ref.</th>
            <th nowrap="nowrap">Ccy</th>
            <th nowrap="nowrap">Face Value</th>
            <th nowrap="nowrap">Expected</th>
            <th nowrap="nowrap">EDSO</th>
            <th nowrap="nowrap">ADSO</th>
            <th nowrap="nowrap">Actual Reserve</th>
            <th nowrap="nowrap">>180 days penalty charge</th>
            <th nowrap="nowrap"></th>
            <th nowrap="nowrap">Adjustment</th>
            <th nowrap="nowrap">Apply</th>
        </tr>
        </thead>
        <tbody>
        <?php $_from = $this->_tpl_vars['data']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
        <tr>
            <td>
                <?php echo $this->_tpl_vars['item']['traded_date']; ?>

            </td>
            <td>
                <?php echo $this->_tpl_vars['item']['trade_reference_id']; ?>

            </td>
            <td>
                <?php echo $this->_tpl_vars['item']['invoice_no']; ?>

            </td>
            <td>
                <?php echo $this->_tpl_vars['item']['currency_code']; ?>

            </td>
            <td align="right">
                <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

            </td>
            <td>
                <?php echo $this->_tpl_vars['item']['expected_date']; ?>

            </td>
            <td align="right">
                <?php echo $this->_tpl_vars['item']['edso']; ?>

            </td>
            <td align="right">
                <?php echo $this->_tpl_vars['item']['adso']; ?>

            </td>
            <td align="right" nowrap>
                <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['full_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['item']['180_days_penalty'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

            </td>
            <td></td>
            <td align="right">
                <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['adjustment'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

            </td>
            <td align="center">
                <input class="apply_adjustment" type="checkbox" name="invoice_id[]"
                       value="<?php echo $this->_tpl_vars['item']['invoice_id']; ?>
"
                       data-amount="<?php echo $this->_tpl_vars['item']['adjustment']; ?>
"/>
            </td>
        </tr>
        <?php endforeach; endif; unset($_from); ?>
        <tr class="without_border">
            <td colspan="11" align="right">Total :</td>
            <td align="right">
                <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['total'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

            </td>
            <td></td>
        </tr>
        <tr class="without_border">
            <td colspan="11" align="right">Total Applied:</td>
            <td align="right" id="total_applied">0.00</td>
            <td></td>
        </tr>
        <tr class="without_border">
            <td colspan="13" align="center"><input value="Next" class="btn btn-primary" type="submit"></td>
        </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    function numberWithCommas(x) {
        var parts = x.toString().split(".");
        parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
        return parts.join(".");
    }

    function calculateAppliedAmount() {
        var amount = 0;
        $('.apply_adjustment:checked').each(function (k, val) {
            amount += $(val).data('amount');
        });
        $('#total_applied').html(numberWithCommas(amount.toFixed(2)));
    }

    $('.apply_adjustment').change(function (e) {
        calculateAppliedAmount();
    });
    $(function () {
        calculateAppliedAmount();
    });
</script>
<?php else: ?>
There is no invoices available
<?php endif; ?>
</body>