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/%%B5^B54^B54A991D%%originator_data.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 09:06:58
         compiled from originators/originator_data.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'originators/originator_data.html', 92, false),array('modifier', 'ucfirst', 'originators/originator_data.html', 116, false),array('modifier', 'substr', 'originators/originator_data.html', 187, false),array('function', 'isYesOrNo', 'originators/originator_data.html', 120, false),array('function', 'getMillionSeperator', 'originators/originator_data.html', 394, false),)), $this); ?>
<tr>
    <td valign="top" align="left" colspan="4" class="hdr_center">
        <style>
            .error-msgbox {
                background: #ffe1ea url("/exchange/images/icon_error.png") no-repeat scroll 8px 7px;
                border: 1px solid #ff3a76;
                border-radius: 4px;
                color: #000;
                font-family: Verdana,Arial,Helvetica,sans-serif;
                font-size: 11px;
                margin: 5px 0;
                padding: 8px 8px 8px 35px;
                text-align: left;
            }
        </style>
        <?php if (! empty ( $this->_tpl_vars['error_message'] )): ?>
        <div class="error-msgbox">
            <?php echo $this->_tpl_vars['error_message']; ?>

        </div>
        <?php endif; ?>

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="50%" valign="top">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                            <td width="53%" valign="top">
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr class="grays_bg">
                                        <td colspan="2" align="left" valign="top"><b>Organisation</b></td>
                                    </tr>
                                    <tr class="row1">
                                        <td width="50%" align="left" valign="top">Organisation Name :</td>
                                        <td width="50%" align="left" valign="top"><?php echo $this->_tpl_vars['data']['organisation_name']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Organisation Trade Name :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['organisation_trade_name']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Organisation Type :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['labels']['organisation_type']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Organisation Status :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['labels']['business_entity_type']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Parent Company Details :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['parent_company_name']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Organisation Overview :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['organisation_overview']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Formation Year <i>(YYYY)</i> :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['formation_year']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Share Capital :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['share_capital']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Website :</td>
                                        <td valign="top" align="left">
                                            <a href="http:<?php echo $this->_tpl_vars['data']['website']; ?>
"><?php echo $this->_tpl_vars['data']['website']; ?>
</a>
                                        </td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Company Number :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['tax_number']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">VAT Number :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['vat_number']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Total Employees :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['total_employee']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Previous Company Name :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['previous_company_name']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">ETR Type :</td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['etr_type']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">d-ETR Face Value Charge :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['face_value_charge'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">b/c-ETR Face Value Charge :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['creditor_face_value_charge'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">d-ETR LDC Premium :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['ldc_premium'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">b/c-ETR LDC Premium :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['creditor_ldc_premium'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">d-ETR Agent Commission :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['agent_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">b/c-ETR Agent Commission :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['creditor_agent_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Credebt Facility Type :</td>
                                        <td valign="top" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['credebt_facility_type'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Is a-ETR :</td>
                                        <td valign="top" align="left"><?php echo smarty_function_isYesOrNo(array('value' => $this->_tpl_vars['data']['is_aetr']), $this);?>
</td>
                                    </tr>
                                    <tr class="row1">
                                    	<td width="50%" align="left" valign="top">Credebt Machine<br/>Sync Status :</td>
                                        <td width="50%" align="left" valign="top">
                                        <?php if ($this->_tpl_vars['data']['cm_sync_date']): ?>Synced: <?php echo $this->_tpl_vars['data']['cm_sync_date']; ?>

					                  	<?php else: ?>Not Synced
					                  	<?php endif; ?>
                                        </td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Other Changes: </td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['other_changes']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Other Details: </td>
                                        <td valign="top" align="left"><?php echo $this->_tpl_vars['data']['other_details']; ?>
</td>
                                    </tr>
                                    <?php $this->assign('address_title', 'Primary Trading Address'); ?>
                                    <?php $this->assign('address_id', 'mail_address'); ?>
                                    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/addresses.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                </table>
                            </td>
                            <td width="47%" valign="top" style="border-left:4px solid #FFF;">
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr class="grays_bg">
                                        <td align="center" valign="top" colspan="2"><b><?php echo $this->_tpl_vars['data']['organisation_reference_id']; ?>
</b></td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Annual Revenue&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['annual_revenue']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Debtors Balance&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['debtors_balance']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Financing Relationship&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['financing_relationship']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Bill Allowance&nbsp;&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['bill_allowance']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Bill Sell Consignment&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo smarty_function_isYesOrNo(array('value' => $this->_tpl_vars['data']['bill_sell_consignment']), $this);?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Bill Warranty&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['bill_warranty']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Bill Return Rights&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo smarty_function_isYesOrNo(array('value' => $this->_tpl_vars['data']['bill_return_rights']), $this);?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left"></td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                        <td width="52%" align="left" valign="top">Fiscal Date : </td>
                                        <td width="47%" align="right" valign="top"><?php echo $this->_tpl_vars['data']['fiscal_year_enddate']; ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Last Filling Year <i>(YYYY)</i>&nbsp;:</td>
                                        <td align="right" valign="top">
                                            <?php if ($this->_tpl_vars['data']['fiscal_year_enddate']): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['fiscal_year_enddate'])) ? $this->_run_mod_handler('substr', true, $_tmp, 0, 4) : substr($_tmp, 0, 4)); ?>
<?php endif; ?>
                                        </td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Average Invoice Value&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['average_invoice_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Payment Terms&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['payment_terms']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Bill Customer Paywork&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo smarty_function_isYesOrNo(array('value' => $this->_tpl_vars['data']['bill_coustomer_pay_work']), $this);?>
</td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Bill Invoice System&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['bill_invoice_system']; ?>
</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Bill Other Details&nbsp;:</td>
                                        <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['bill_other_details']; ?>
</td>
                                    </tr>
                                    <tr class="grays_bg">
                                        <td align="left" valign="top" colspan="2"><b>D-Score</b></td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Current Assets&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Current Liabilities&nbsp;:</td>
                                        <td align="right" valign="top">&nbsp;</td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Total Assets&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Total Liabilities&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Retained Earnings&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Annual Profit&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">Equity (Net Assets)&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row2">
                                        <td valign="top" align="left">Annual Sales&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                    <tr class="row1">
                                        <td valign="top" align="left">D-Score&nbsp;:</td>
                                        <td align="right" valign="top"></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <?php $this->assign('address_title', 'Organisation Billing Address'); ?>
                                    <?php $this->assign('address_id', 'bill_address'); ?>
                                    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/addresses.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="50%" valign="top" style="border-left:4px solid #FFF;">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <tr class="grays_bg">
                                                    <td colspan="2" align="left" valign="top"><b>Application Overview</b></td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="75%" align="left" valign="top">Debtors :</td>
                                                    <td width="" align="right" valign="top"><?php echo $this->_tpl_vars['debtors_count']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top">Currency: </td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['data']['currency_code']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top">Average Value :</td>
                                                    <td align="right" valign="top">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['average_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 0) : smarty_modifier_number_format($_tmp, 0)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top">Currency Total :</td>
                                                    <td align="right" valign="top">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['currency_total'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top">Trades :</td>
                                                    <td align="right" valign="top">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['trades_sum'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top">Investors :</td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['inv_count']; ?>
</td>
                                                </tr>
                                                <tr class="grays_bg">
                                                    <td colspan="2" align="left" valign="top" style="padding:3px;">
                                                        <b>Rating & Classification</b>
                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top"></td>
                                                    <td align="left" valign="top"></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="middle"><?php echo $this->_tpl_vars['ratings']['1']['r_long']; ?>
 LT :</td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider1_credit_limit']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="middle"><?php echo $this->_tpl_vars['ratings']['1']['r_long']; ?>
 ST :</td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider1_risk_score']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="middle"><?php echo $this->_tpl_vars['ratings']['2']['r_long']; ?>
 LT :</td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider2_credit_limit']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="middle"><?php echo $this->_tpl_vars['ratings']['2']['r_long']; ?>
 ST :</td>
                                                    <td align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider2_risk_score']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td valign="top" align="left">NACE Category [NACEC] :</td>
                                                    <td valign="top" align="right">
                                                        <?php echo $this->_tpl_vars['data']['nace_group_code']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['nace_code'])) ? $this->_run_mod_handler('substr', true, $_tmp, 0, 2) : substr($_tmp, 0, 2)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td valign="top" align="left">NACE Description [NACED] :</td>
                                                    <td valign="top" align="right"><?php echo $this->_tpl_vars['data']['nace_code']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td valign="top" align="left">Our current credit<br/>Insurance provider :</td>
                                                    <td valign="top" align="right"><?php echo $this->_tpl_vars['data']['insurance_provider']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td valign="top" align="left">Our current invoice<br/>discounting provider :</td>
                                                    <td valign="top" align="right"><?php echo $this->_tpl_vars['data']['discount_provider']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top"></td>
                                                    <td align="left" valign="top"></td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td valign="top" style="border-left:4px solid #FFF;">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <tr class="grays_bg">
                                                    <td colspan="2" align="left" valign="top"><b>Current Trading Position</b></td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="67%" align="left" valign="top">Single Debtors Risk :</td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Current Reserve :</td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="" align="left" valign="top">Current Trades :</td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Current Debtors :</td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="" align="left" valign="top">Current ETR :</td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Average DSO : </td>
                                                    <td width="" align="right" valign="top"></td>
                                                </tr>
                                                <tr class="grays_bg">
                                                    <td colspan="2" align="left" valign="top" style="padding:3px;">
                                                        <b>Recorded Risk & Limits </b>
                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="55%" align="left" valign="top"><?php echo $this->_tpl_vars['ratings']['4']['r_long']; ?>
 Risk :</td>
                                                    <td width="" align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider4_risk_score']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top"><?php echo $this->_tpl_vars['ratings']['4']['r_long']; ?>
 Todays Limit : </td>
                                                    <td width="" align="right" valign="top">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['risks']['provider4_credit_limit']), $this);?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="" align="left" valign="top">Creditsafe Report :</td>
                                                    <td width="" align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider4_document_path']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Downloaded :</td>
                                                    <td width="" align="left" valign="top"><?php echo $this->_tpl_vars['risks']['provider4_date_modified']; ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="55%" align="left" valign="top"><?php echo $this->_tpl_vars['ratings']['3']['r_long']; ?>
 Risk :</td>
                                                    <td width="" align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider3_risk_score']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top"><?php echo $this->_tpl_vars['ratings']['3']['r_long']; ?>
 Todays Limit :</td>
                                                    <td width="" align="right" valign="top">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['risks']['provider3_credit_limit']), $this);?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="" align="left" valign="top">Experian Report :</td>
                                                    <td width="" align="right" valign="top"><?php echo $this->_tpl_vars['risks']['provider3_document_path']; ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Downloaded :</td>
                                                    <td width="" align="left" valign="top"><?php echo $this->_tpl_vars['risks']['provider3_date_modified']; ?>
</td>
                                                </tr>
                                                <tr class="grays_bg">
                                                    <td colspan="2" align="left" valign="top" style="padding:3px;"><b>Trade Limits</b></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Trade Limit d-ETR :</td>
                                                    <td width="" align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['trade_limit'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">Trade Limit b/c-ETR :</td>
                                                    <td width="" align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['trade_limit_c_etr'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>
</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td width="" align="left" valign="top">TL Level :</td>
                                                    <td width="" align="right" valign="top">
                                                        <?php if ($this->_tpl_vars['data']['trade_limit_level'] == '0'): ?>Warning<?php endif; ?>
                                                        <?php if ($this->_tpl_vars['data']['trade_limit_level'] == '1'): ?>Enforced<?php endif; ?>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td valign="top" style="border-left:4px solid #FFF;">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <tr class="grays_bg">
                                                    <td colspan="3" align="left" valign="top"><b>Agreed Terms</b></td>
                                                </tr>
                                                <tr class="row1">
                                                    <td width="59%" align="left" valign="top">RSA :</td>
                                                    <td width="" align="right" valign="top" colspan="2"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['agreed_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %</td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top">Purchase :</td>
                                                    <td align="right" valign="top" colspan="2"><?php echo ((is_array($_tmp=$this->_tpl_vars['data']['purchase_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top">Posting :</td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['posting_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top">Transfer :</td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['data']['processing_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top">Membership :</td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['data']['membership']), $this);?>

                                                    </td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top"><nobr>Arrangement :</nobr></td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['data']['arrangement']), $this);?>

                                                    </td>
                                                </tr>
                                                <tr class="row1">
                                                    <td align="left" valign="top">M.A. :</td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php if ($this->_tpl_vars['agreement']): ?>
                                                        <a target="_blank" class="btn-agreement-print"><i class="glyphicon glyphicon-print"></i></a>
                                                        <?php else: ?>
                                                        <span class="agreement-not-signed-text">not signed</span>
                                                        <?php endif; ?>
                                                    </td>
                                                </tr>
                                                <?php if ($_GET['do'] == 'traappwinpop'): ?>
                                                <tr class="grays_bg">
                                                    <td valign="top" align="center" colspan="3" style="padding:3px;">
                                                        <a href="javascript:void(0);" onclick="riskEdit('<?php echo $this->_tpl_vars['risk_url']['uri']; ?>
','<?php echo $this->_tpl_vars['risk_url']['id']; ?>
');" class="under_blue">Edit Rate</a>
                                                    </td>
                                                </tr>
                                                <?php else: ?>
                                                <tr class="grays_bg" style="padding:3px;">
                                                    <td valign="top" align="center" colspan="3">
                                                        <a href="adminindex.php?do=<?php echo $this->_tpl_vars['risk_url']['uri']; ?>
&id=<?php echo $this->_tpl_vars['risk_url']['id']; ?>
" class="under_blue">Edit Rate</a>
                                                    </td>
                                                </tr>
                                                <?php endif; ?>
                                                <tr class="row1">
                                                    <td align="left" valign="top">Credit Limit :</td>
                                                    <td align="right" valign="top" colspan="2">
                                                        <?php echo $this->_tpl_vars['data']['currency_code']; ?>
 <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['data']['trade_limit']), $this);?>

                                                    </td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" valign="top"></td>
                                                    <td align="right" valign="top" colspan="2"></td>
                                                </tr>
                                                <tr class="grays_bg">
                                                    <td colspan="3" align="left" valign="top" style="padding:3px;"><b>Status Management</b></td>
                                                </tr>
                                                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "originators/statuses.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                                <tr class="grays_bg">
                                                    <td colspan="3" align="left" valign="top" style="padding:3px;"><b>Status on Tar</b></td>
                                                </tr>
                                                <tr class="row2">
                                                    <td align="left" colspan="3">
                                                        <form action="" method="post">
                                                            <input type="hidden" name="operation" value="set_tar_status" />
                                                            <nobr>
                                                                <select name="tar_status" class="tar_status" data-originator-id="<?php echo $this->_tpl_vars['organisation_id']; ?>
">
                                                                    <?php $_from = $this->_tpl_vars['tar_statuses']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tar_status_key'] => $this->_tpl_vars['tar_status']):
?>
                                                                    <option value="<?php echo $this->_tpl_vars['tar_status_key']; ?>
" <?php if ($this->_tpl_vars['data']['tar_status'] == $this->_tpl_vars['tar_status_key']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['tar_status']; ?>
</option>
                                                                    <?php endforeach; endif; unset($_from); ?>
                                                                </select>
                                                                <input type="submit" class="under_blue" value="OK">
                                                            </nobr>
                                                        </form>
                                                    </td>
                                                </tr>
                                                <tr class="grays_bg">
                                                    <td valign="top" align="center" colspan="3">
                                                        <a href="#" onclick="window.open('adminindex.php?do=trade-document-policy&id=<?php echo $_GET['aid']; ?>
&popup=1','new','width=900,height=500,scrollbars=yes');return false;" class="under_blue">Trade Document Policy</a
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3"></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                <?php if (count ( $this->_tpl_vars['banks'] ) > 0): ?>
                                                <?php $this->assign('bank_branch', $this->_tpl_vars['banks']['0']); ?>
                                                <tr class="grays_bg">
                                                    <td align="left" valign="middle" colspan="2"><b>Bank Details #1</b></td>
                                                </tr>
                                                <tr>
                                                    <td width="50%" valign="top">
                                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/bank_address.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                                        </table>
                                                    </td>
                                                    <td width="50%" valign="top">
                                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/bank_details.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <?php endif; ?>
                                                <?php $this->assign('address_title', 'Registered Office Address'); ?>
                                                <?php $this->assign('address_id', 'organisation_regoffice'); ?>
                                                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/addresses.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>

<?php if ($this->_tpl_vars['agreement']): ?>
<script>
    $(document).ready(function () {
        var $btn=$('.btn-agreement-print'),
            agreement="<?php echo $this->_tpl_vars['agreement']; ?>
";

        $btn.on('click', function () {
            if(<?php echo $this->_tpl_vars['data']['from_salesforce']; ?>
 >= '1') {
                alert('The e-signed copy of Master Agreement for this Originator is stored in AdobeSign or in CRM system!');
                return false;
            }

            var w=window.open();
            w.document.write(agreement);
            $(w.document).find('head').append('<style>* {font-size: 12px}</style>');
            w.document.close();
            w.focus();
            w.print();
            w.close();
            return false;
        });
    });
</script>
<?php endif; ?>