File: /www/exchange0old/exchange/admin/cache/%%DF^DF1^DF13B7D2%%alltradelog.html.php
<?php /* Smarty version 2.6.19, created on 2024-09-18 10:31:47
compiled from logs/alltradelog.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,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "adminindex.php?do=alltradelog",
"fnServerData": function ( sSource, aoData, fnCallback ) {
$.getJSON( sSource, aoData, function (json) { fnCallback(json) } );
},
"aoColumns" : [
{ "mData": "trade_reference_id" },
{ "mData": "trading_close_date" },
{ "mData": "posting_interface" },
{ "mData": "debtor_reference_id" },
{ "mData": "debtor_name" },
{ "mData": "organisation_reference_id" },
{ "mData": "actual_date" },
{ "mData": "po_id" },
{ "mData": "invoice_no" },
{ "mData": "face_value" },
{ "mData": "expected_date" },
{ "mData": "edso" },
{ "mData": "log_status" },
{ "mData": "invoice_url" }
],
"aoColumnDefs": [
{
"aTargets": [2],
"mData": "posting_interface",
"mRender": function ( data, type, full ) {
return 'ETR - '+(data=='0'?'U':'O');
}
},
{
"aTargets": [4],
"mData": "debtor_name",
"mRender": function ( data, type, full ) {
return ((data.length>12))?(data.substring(0,12)+'...'):data;
}
},
{
"aTargets": [7],
"mData": "po_id",
"mRender": function ( data, type, full ) {
return ((data.length>7))?(data.substring(0,7)+'...'):data;
}
},
{
"aTargets": [11],
"mData": "edso",
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
$(nTd).css('text-align', 'center')
}
},
{
"aTargets": [12],
"mData": "log_status",
"mRender": function ( data, type, full ) {
return ((data == 1)?'A':((data == 2)?'R':''));
},
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
$(nTd).css('text-align', 'center')
}
},
{
"aTargets": [13],
"mData": "invoice_url",
"mRender": function ( data, type, full ) {
return ((data)?('<button class="btn btn-sm btn-default" onclick="openWindow(\''+data+'\')"><i class="glyphicon glyphicon-download-alt"></i></button>'):'');
},
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
$(nTd).css('text-align', 'center')
}
}
],
"aaSorting": [[0,'desc']],
"showAll":true
});
});
function openWindow(url)
{
var mypdf = window.open(url,"mypdf","scrollbars=yes,width=1000,height=800") ;
mypdf.focus();
}
</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="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="center_menu"> <a href="#" class="cms"> </a> </div>
<div class="center_menu"> <a href="#" class="user"> </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="bottom_menu"> <a href="#" class="logs"> </a> </div>
</div>
<div id="right_content">
<?php if (count ( $this->_tpl_vars['success_invusers'] ) > 0): ?>
<div class="success-msgbox"><span>
<?php $_from = $this->_tpl_vars['success_invusers']; 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_invusers']; ?>
<br>
<?php endforeach; endif; unset($_from); ?></span></div>
<?php endif; ?>
<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="50%" class="hdr_tc">All ETR Trade Logs </td>
<td valign="top" align="right" width="46%" class="hdr_tc">
<table width="75%" border="0" cellspacing="0" cellpadding="0"></table>
</td>
<td valign="top" align="left" width="2%" class="hdr_tr"> </td>
</tr>
<tr>
<td valign="top" align="left" colspan="4" class="hdr_center">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table table-hover table-striped table-responsive dynamicTable">
<thead>
<tr>
<th align="left" valign="top">Trade ID</th>
<th align="left" valign="top">Closed</th>
<th align="left" valign="top">Sales</th>
<th align="left" valign="top">Debtor ID</th>
<th align="left" valign="top">Debtor</th>
<th align="left" valign="top">Orig.ID</th>
<th align="left" valign="top">Inv.date</th>
<th align="left" valign="top">Po.Ref.</th>
<th align="left" valign="top">Inv.Ref.</th>
<th align="left" valign="top">Value</th>
<th align="left" valign="top">Expected</th>
<th align="center" valign="top">EDSO</th>
<th align="center" valign="top">A/R</th>
<th align="left" valign="top">File</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" width="2%" class="hdr_bl"> </td>
<td valign="top" align="left" width="50%" class="hdr_bc"> </td>
<td valign="top" align="left" width="46%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>
<style>
.grays_bg td{
padding:5px 3px !important;
}
.row1 td , .row2 td{
padding:3px 5px !important;
}
</style>
<?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);
?>