File: /www/exchange0old/exchange/admin/cache/%%E1^E19^E19D3CB6%%changes_history.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 10:34:25
compiled from invoices/changes_history.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'invoices/changes_history.html', 6, false),array('modifier', 'number_format', 'invoices/changes_history.html', 33, false),array('modifier', 'storage', 'invoices/changes_history.html', 50, false),array('function', 'isYesOrNo', 'invoices/changes_history.html', 38, 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 - Changes History ::</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>
</head>
<body style="background: none;">
<h4 style="color: #FFF;background: #555;margin: 0;padding: 15px 0 15px 0;"><?php echo $this->_tpl_vars['title']; ?>
</h4>
<table class="table table-striped table-responsive table-bordered">
<tr>
<th>Date</th>
<th>Value</th>
<th>Changed By</th>
<?php if ($this->_tpl_vars['field'] == 'face_value_charge'): ?>
<th>Event</th>
<?php endif; ?>
</tr>
<?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['item']):
?>
<tr>
<td><?php echo $this->_tpl_vars['item']['created_at']; ?>
</td>
<td>
<?php if ($this->_tpl_vars['field'] == 'face_value' || $this->_tpl_vars['field'] == 'purchase_price_percent' || $this->_tpl_vars['field'] == 'trade_fee' || $this->_tpl_vars['field'] == 'reserve'): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php elseif ($this->_tpl_vars['field'] == 'vat_included' || $this->_tpl_vars['field'] == 'unscheduled_cetr' || $this->_tpl_vars['field'] == 'is_aetr' || $this->_tpl_vars['field'] == 'override_180_day_rule'): ?>
<?php echo smarty_function_isYesOrNo(array('value' => $this->_tpl_vars['item']['value']), $this);?>
<?php elseif ($this->_tpl_vars['field'] == 'max_thirty_day_reserve' || $this->_tpl_vars['field'] == 'face_value_charge' || $this->_tpl_vars['field'] == 'ldc_premium' || $this->_tpl_vars['field'] == 'agent_commission'): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
<?php elseif ($this->_tpl_vars['field'] == 'invoice_link'): ?>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<?php $this->assign('invoice_storage', 'd-etr-invoices'); ?>
<?php else: ?>
<?php $this->assign('invoice_storage', 'c-etr-invoices'); ?>
<?php endif; ?>
<a title="<?php echo $this->_tpl_vars['item']['value']; ?>
" href="javascript:void(0);" onclick="openWindow('<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['value'])) ? $this->_run_mod_handler('storage', true, $_tmp, $this->_tpl_vars['invoice_storage']) : smarty_modifier_storage($_tmp, $this->_tpl_vars['invoice_storage'])); ?>
')"><img src="images/download_history_pdf.png" border="0" height="16"></a>
<?php elseif ($this->_tpl_vars['field'] == 'po_link'): ?>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<?php $this->assign('po_storage', 'd-purchase-orders'); ?>
<?php else: ?>
<?php $this->assign('po_storage', 'c-purchase-orders'); ?>
<?php endif; ?>
<a title="<?php echo $this->_tpl_vars['item']['value']; ?>
" href="javascript:void(0);" onclick="openWindow('<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['value'])) ? $this->_run_mod_handler('storage', true, $_tmp, $this->_tpl_vars['po_storage']) : smarty_modifier_storage($_tmp, $this->_tpl_vars['po_storage'])); ?>
')"><img src="images/download_history_pdf.png" border="0" height="16"></a>
<?php else: ?>
<?php echo $this->_tpl_vars['item']['value']; ?>
<?php endif; ?>
</td>
<td>
<?php if ($this->_tpl_vars['item']['created_type'] == 'admin'): ?>
<?php echo $this->_tpl_vars['item']['created_by']; ?>
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'originator'): ?>
<?php echo $this->_tpl_vars['item']['originator_name']; ?>
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'api'): ?>
API
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'import'): ?>
Import
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'system'): ?>
System
<?php endif; ?>
</td>
<?php if ($this->_tpl_vars['field'] == 'face_value_charge'): ?>
<td><?php echo $this->_tpl_vars['item']['history_action']; ?>
</td>
<?php endif; ?>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</body>
</html>