File: /www/exchange0old/exchange/admin/cache/%%1E^1E2^1E292FFA%%deleteddebtors.html.php
<?php /* Smarty version 2.6.19, created on 2024-08-01 15:40:41
compiled from content/deleteddebtors.html */ ?>
<?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
});
});
</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_part'] ) > 0): ?>
<div><span style="color:green">
<?php $_from = $this->_tpl_vars['success_part']; 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_part']; ?>
<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="78%" class="hdr_tc">Deleted Items</td>
<td valign="middle" align="right" class="hdr_tr" width="20"> </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">
<thead>
<tr>
<th width="25%" align="left" valign="top">Debtors Name</th>
<th width="13%" align="left" valign="top">Reg. No.</th>
<th width="12%" align="left" valign="top" style="border-right:4px solid #FFF;">Status</th>
<th width="11%" align="left" valign="top">Options</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 href="?do=debviewapplications&id=<?php echo $this->_tpl_vars['item']['debtor_id']; ?>
"><?php echo $this->_tpl_vars['item']['debtor_name']; ?>
</a>
</td>
<td align="left" valign="top"><?php echo $this->_tpl_vars['item']['debtor_company_registration_number']; ?>
</td>
<td align="left" valign="top" style="border-right:4px solid #FFF;">Deleted</td>
<td align="left" valign="top">
<button class="btn btn-sm btn-default" onclick="deleteDebtor('<?php echo $this->_tpl_vars['item']['debtor_id']; ?>
');" title="Delete">
<i class="glyphicon glyphicon-remove"></i>
</button>
</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>
<script>
(function(){
$('.revolve').on('click',function(){
$this = $(this);
var debtor = $this.val();
var checks = $this.is(':checked');
var org_id = '<?php echo $_GET['org_id']; ?>
';
if(checks == true){
var r = confirm("Activate Revolving ETR for this Counterparty")
}else{
var r = confirm("Remove Revolving ETR for this Counterparty")
}
if(r==true){
if(checks == true){
var status = 1;
}else{
var status = 0;
}
$.post("?do=updaterevolve",{id: debtor,flag: status,org_id: org_id},
function(responseText){
var request = responseText;
location.href = location.href;
},
"html"
)
}
else
{
if(checks == true){
$this.attr('checked', false);
}else{
$this.attr('checked', true);
}
}
});
})();
function deleteDebtor(id){
if(confirm("Are you sure want to delete this debtor?"))
{
window.location = "?do=deletedebtor&debtor="+id+'&view=cms';
}
}
</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);
?>