File: /www/exchange0old/exchange/admin/cache/%%ED^EDD^EDD133D8%%traapplications.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 09:06:53
compiled from originators/traapplications.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'substr', 'originators/traapplications.html', 91, false),array('function', 'getMillionSeperator', 'originators/traapplications.html', 104, false),array('modifier', 'number_format', 'originators/traapplications.html', 98, false),array('modifier', 'storage', 'originators/traapplications.html', 125, 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">
$('document').ready(function(){
current_table=$('.dynamicTable').dataTable({
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bLengthChange": false,
"aoColumns" : [
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
{"bSortable": false },
{"bSortable": false }
]
});
});
</script>
<div id="body_portion">
<div id="admin_menu">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="left_menu1" class="folded" style="display:none;"> <a href="javascript:void(0)" class="panel_open" onclick="showLeftPanel('left_menu','left_menu1','body_portion');"></a>
<div class="top_menu"> <a href="#" class="dashboard"> </a> </div>
<div class="center_menu"> <a href="#" class="user"> </a> </div>
<div class="center_menu"> <a href="#" class="location"> </a></div>
<div class="center_menu"> <a href="#" class="cms"> </a> </div>
<div class="center_menu"> <a href="#" class="prayer"> </a> </div>
<div class="center_menu"> <a href="#" class="group"> </a> </div>
<div class="center_menu"> <a href="#" class="event"> </a> </div>
<div class="center_menu"> <a href="#" class="message"> </a> </div>
<div class="center_menu"> <a href="#" class="news"> </a> </div>
<div class="center_menu"> <a href="javascript:void(0)" class="settings" onmouseover="showLeft_DD_Mnu('left_dd_Mnu','aele_id1');" id="aele_id1" onmouseout="HideLeft_DD_Mnu('left_dd_Mnu');"> </a> </div>
<div class="bottom_menu"> <a href="#" class="logs"> </a> </div>
</div>
<div id="right_content">
<?php if (count ( $this->_tpl_vars['success_invapplications'] ) > 0): ?>
<div class="success-msgbox"><span>
<?php $_from = $this->_tpl_vars['success_invapplications']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['err'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['err']['total'] > 0):
foreach ($_from as $this->_tpl_vars['err']):
$this->_foreach['err']['iteration']++;
?>
<?php echo $this->_tpl_vars['success_invapplications']; ?>
<br>
<?php endforeach; endif; unset($_from); ?>
</span></div>
<?php endif; ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top"><table cellpadding="0" cellspacing="0" border="0" width="100%" class="margin_table">
<tr>
<td valign="top" align="left" width="2%" class="hdr_tl"> </td>
<td valign="top" align="left" width="96%" class="hdr_tc"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left">Originator Organisations</td>
<td align="right">
<!-- <a class="under_blue" style="background-color: #ffcf46;color:#000;border: 1px solid #CCCCCC;font-weight: bold;height: 32px;padding: 7px;" href="adminindex.php?do=addorganisation">Add New Originator (SITH - No CM Sync)</a> //-->
<a class="under_blue" style="background-color: #ffcf46;color:#000;border: 1px solid #CCCCCC;font-weight: bold;height: 32px;padding: 7px;" href="adminindex.php?do=neworiginatororg">Add New Originator</a>
</td>
</tr>
</table></td>
<td valign="top" align="left" width="2%" class="hdr_tr"> </td>
</tr>
<tr>
<td valign="top" align="left" colspan="3" class="hdr_center">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table table-hover table-striped table-responsive dynamicTable tbl-originators">
<thead>
<tr>
<th width="17%" align="left" valign="top">Organisation</th>
<th width="6%" align="left" valign="top">Org.ID</th>
<th width="7%" align="left" valign="top" style="border-right:4px solid #FFF;">R/C</th>
<th width="6%" align="left" valign="top">Monthly</th>
<th width="3%" align="left" valign="top">PP</th>
<th width="5%" align="left" valign="top">Post</th>
<th width="5%" align="left" valign="top">Procs</th>
<th width="5%" align="left" valign="top">Tran.</th>
<th width="5%" align="left" valign="top" style="border-right:4px solid #FFF;">RSA</th>
<th width="5%" align="left" valign="top" style="border-right:4px solid #FFF;">Limit</th>
<th width="2%" align="left" valign="top" style="padding-right: 20px">Bk</th>
<th width="10%" align="center" valign="top">Actions</th>
<th width="28%" align="center" valign="top">Features</th>
</tr>
</thead>
<tbody>
<?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 align="left" valign="top">
<a class="btn-link" href="?do=traviewapplications&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
" title="<?php echo $this->_tpl_vars['item']['organisation_name']; ?>
" ><?php echo smarty_function_substr(array('string' => $this->_tpl_vars['item']['organisation_name'],'lenght' => 20), $this);?>
</a>
<span style="display: none"><?php echo $this->_tpl_vars['item']['real_organisation_name']; ?>
</span>
</td>
<td align="left" valign="top">
<a class="btn-link" href="javascript:void(0);" onclick="javascript:mytra=window.open('adminindex.php?do=traappwinpop&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
','mytra','scrollbars=yes,width=1300,height=800');mytra.focus();"><?php echo $this->_tpl_vars['item']['organisation_reference_id']; ?>
</a>
</td>
<td align="center" valign="top" style="border-right:4px solid #FFF;"><?php echo $this->_tpl_vars['item']['organisation_risk']; ?>
/<?php echo $this->_tpl_vars['item']['debtor_limit']; ?>
</td>
<td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['membership'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['purchase_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : smarty_modifier_number_format($_tmp)); ?>
%</td>
<td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['posting_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['processing_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['trade_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td align="right" valign="top" style="border-right:4px solid #FFF;"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['agreed_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
%</td>
<td align="right" valign="top" style="border-right:4px solid #FFF;"> <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['item']['trade_limit']), $this);?>
</td>
<td align="center" valign="top" > <?php echo smarty_function_getMillionSeperator(array('value' => $this->_tpl_vars['item']['currency_count']), $this);?>
</td>
<td align="left" valign="top">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true">
Actions
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="?do=traviewapplications&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">View</a></li>
<li><a href="?do=traeditapplications&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">Edit</a></li>
<li><a href="#" onclick="return forceLogin('<?php echo $this->_tpl_vars['item']['username']; ?>
');">Login</a></li>
<li><a href="?do=trausers&org_id=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
&view=org">Investors (<?php echo $this->_tpl_vars['item']['users']; ?>
) </a></li>
<li><a href="?do=tradebtors&org_id=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
&view=org" >Debtors (<?php echo $this->_tpl_vars['item']['debtors']; ?>
)</a></li>
<li><a href="?do=invoiceapplications&org_id=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
&view=org"> Trades (<?php echo $this->_tpl_vars['item']['trades']; ?>
)</a></li>
</ul>
</div>
</td>
<td align="left" valign="top">
<nobr class="cell-originator-proofs">
<?php if ($this->_tpl_vars['item']['personal_identity']): ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['personal_identity'])) ? $this->_run_mod_handler('storage', true, $_tmp, 'originator-documents') : smarty_modifier_storage($_tmp, 'originator-documents')); ?>
" target="_blank"><i title="Personal Identity Record Form" class="fa fa-info-circle" aria-hidden="true"></i></a>
<?php else: ?>
<i class="fa fa-info-circle" aria-hidden="true" title="Personal Identity Record Form"></i>
<?php endif; ?>
<?php if ($this->_tpl_vars['item']['utility_report_path']): ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['utility_report_path'])) ? $this->_run_mod_handler('storage', true, $_tmp, 'originator-documents') : smarty_modifier_storage($_tmp, 'originator-documents')); ?>
" target="_blank"><i title=" Proof of Address" class="fa fa-home" aria-hidden="true"></i></a>
<?php else: ?>
<i class="fa fa-home" aria-hidden="true" title=" Proof of Address"></i>
<?php endif; ?>
<?php if ($this->_tpl_vars['item']['photoid_report_path']): ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['photoid_report_path'])) ? $this->_run_mod_handler('storage', true, $_tmp, 'originator-documents') : smarty_modifier_storage($_tmp, 'originator-documents')); ?>
" target="_blank"><i title="Proof Of Identity" class="fa fa-user" aria-hidden="true"></i></a>
<?php else: ?>
<i class="fa fa-user" aria-hidden="true" title=" Proof Of Identity"></i>
<?php endif; ?>
<?php if ($this->_tpl_vars['item']['bank_statement_path']): ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['bank_statement_path'])) ? $this->_run_mod_handler('storage', true, $_tmp, 'originator-documents') : smarty_modifier_storage($_tmp, 'originator-documents')); ?>
" target="_blank"><i title="Proof of Bank Statement" class="fa fa-bank" aria-hidden="true"></i></a>
<?php else: ?>
<i class="fa fa-bank" aria-hidden="true" title="Proof of Bank Statement"></i>
<?php endif; ?>
</nobr>
<div class="btn-group" role="group">
<button class="btn btn-sm btn-default etr_auto_submit <?php if ($this->_tpl_vars['item']['etr_auto_submit'] == '1'): ?> active<?php endif; ?>" title="ETR auto submit" data-organisation="<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">
<i class="glyphicon glyphicon glyphicon-expand"></i>
</button>
<button class="btn btn-sm btn-default etr_manual_submit <?php if ($this->_tpl_vars['item']['etr_manual_submit'] == '1'): ?> active<?php endif; ?>" title="ETR manual submit" data-organisation="<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">
<i class="glyphicon glyphicon glyphicon-log-in"></i>
</button>
<button class="btn btn-sm btn-default etr_pod_mandatory <?php if ($this->_tpl_vars['item']['etr_pod_mandatory'] == '1'): ?> active<?php endif; ?>" title="ETR pod mandatory" data-organisation="<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">
<i class="glyphicon glyphicon glyphicon-copy"></i>
</button>
<button class="btn btn-sm btn-default etr_pod_mail <?php if ($this->_tpl_vars['item']['etr_pod_mail'] == '1'): ?> active<?php endif; ?>" title="ETR pod mail" data-organisation="<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">
<i class="glyphicon glyphicon-envelope"></i>
</button>
<button class="btn btn-sm btn-default orpa_enabled <?php if ($this->_tpl_vars['item']['orpa_enabled'] == '1'): ?> active<?php endif; ?>" title="b-ETR Enabled" data-organisation="<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
">
<i class="glyphicon glyphicon-phone"></i>
</button>
</div>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" width="2%" class="hdr_bl"> </td>
<td valign="top" align="left" width="96%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table></td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>
<style>
.grays_bg td{
padding:5px 0px 5px 2px !important;
}
.row1 td , .row2 td{
padding:5px 0px 5px 2px !important;
}
.grays_bg img{
padding-bottom: 2px;
vertical-align: bottom;
}
.btn-group .btn.btn-sm{line-height: 10px;}
</style>
<script>
$('.orpa_enabled').click(function(){
var val=($(this).hasClass('active'))?0:1;
$(this).toggleClass('active');
$.post('adminindex.php?do=orgetrformstatus',{
id: $(this).data('organisation'),
label: 'orpa_enabled', status: val
},
function(response){
alert('b-ETR Status Changed Successfully');
}
);
});
$('.etr_auto_submit').click(function(){
var val=($(this).hasClass('active'))?0:1;
$(this).toggleClass('active');
$.post('adminindex.php?do=orgetrformstatus',{
id: $(this).data('organisation'),
label: 'etr_auto_submit', status: val
},
function(response){
alert('Status Changed Successfully');
}
);
});
$('.etr_manual_submit').click(function(){
var val=($(this).hasClass('active'))?0:1;
$(this).toggleClass('active');
$.post('adminindex.php?do=orgetrformstatus', {
id: $(this).data('organisation'),
label: 'etr_manual_submit',
status: val
},
function(response){
alert('Status Changed Successfully');
}
);
});
$('.etr_pod_mandatory').click(function(){
var val=($(this).hasClass('active'))?0:1;
$(this).toggleClass('active');
$.post('adminindex.php?do=orgetrformstatus', {
id: $(this).data('organisation'),
label: 'etr_pod_mandatory',
status: val
},
function(response){
alert('Status Changed Successfully');
}
);
});
$('.etr_pod_mail').click(function(){
var val=($(this).hasClass('active'))?0:1;
$(this).toggleClass('active');
$.post('adminindex.php?do=orgetrformstatus', {
id: $(this).data('organisation'),
label: 'etr_pod_mail',
status: val
},
function(response){
alert('Status Changed Successfully');
}
);
});
</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);
?>