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/%%D0^D0E^D0EADE9F%%debmasterusers.html.php
<?php /* Smarty version 2.6.19, created on 2024-11-25 07:58:40
         compiled from debtors/debmasterusers.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getPlainInterface', 'debtors/debmasterusers.html', 71, false),array('function', 'getTraderStatus', 'debtors/debmasterusers.html', 72, 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>
    $('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">&nbsp;</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');">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="cms">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="user">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="prayer">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="group">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="event">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="message">&nbsp;</a> </div>
      <div class="center_menu"> <a href="#" class="news">&nbsp;</a> </div>
      <div class="bottom_menu"> <a href="#" class="logs">&nbsp;</a> </div>
    </div>
    <div id="right_content">
      <?php if (count ( $this->_tpl_vars['success_trausers'] ) > 0): ?>
      <div class="success-msgbox"><span>
        <?php $_from = $this->_tpl_vars['success_trausers']; 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_trausers']; ?>

        <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">&nbsp;</td>
          <td valign="top" align="left" width="45%" class="hdr_tc">Originator / Broker Accounts</td>
          <td valign="top" align="left" width="" class="hdr_tc"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="right" valign="middle">
                <?php if ($_GET['view'] == 'invapp'): ?>
                <a class="under_blue" href="adminindex.php?do=invapplications&page=<?php echo $_GET['pg']; ?>
">Back</a>
                <?php else: ?>
                <a class="under_blue" href="adminindex.php?do=debmaster&page=<?php echo $_GET['pg']; ?>
">Back</a>
                <?php endif; ?>
                &nbsp;</td>
              </tr>
            </table>
            </td>
          <td valign="top" align="left" width="2%" class="hdr_tr">&nbsp;</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" width="25%" valign="top">Organisation</th>
                            <th align="left" width="25%" valign="top">Organisation ID</th>
                            <th width="16%" align="left" valign="top">Type</th>
                            <th width="7%" align="left" valign="top">Status</th>
                            <th width="7%" align="right" valign="top">Trades</th>
                            <th width="10%" align="center" 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 width="" align="left" valign="top"><a href="?do=traviewapplications&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
"><?php echo $this->_tpl_vars['item']['organisation_name']; ?>
</a></td>
                            <td width="" align="left" valign="top"><?php echo $this->_tpl_vars['item']['organisation_reference_id']; ?>
</td>
                            <td align="left" valign="top" width="" ><?php echo smarty_function_getPlainInterface(array('interface' => $this->_tpl_vars['item']['interface']), $this);?>
</td>
                            <td align="left" valign="top"><?php echo smarty_function_getTraderStatus(array('status' => $this->_tpl_vars['item']['status'],'variance' => 1), $this);?>
</td>
                            <td align="right"><?php echo $this->_tpl_vars['item']['counters']; ?>
</td>
                            <td align="left" valign="top">
                                <a href="?do=traviewapplications&aid=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
&master=<?php echo $_GET['master_id']; ?>
&view=debmasteruser" title="View" class="btn btn-sm btn-default">
                                    <i class="glyphicon glyphicon-search"></i>
                                </a>
                                <a href="?do=invoiceapplications&id=<?php echo $this->_tpl_vars['item']['organisation_id']; ?>
&master=<?php echo $_GET['master_id']; ?>
&view=debmasteruser" title="View trades" class="btn btn-sm btn-default">
                                    <i class="glyphicon glyphicon-list"></i>
                                </a>
                                <?php if ($this->_tpl_vars['item']['status'] == '1'): ?>
                                <button  onclick="changeSuspend('<?php echo $this->_tpl_vars['item']['relation_id']; ?>
');" title="Suspend" class="btn btn-sm btn-default">
                                    <i class="glyphicon glyphicon-remove"></i>
                                </button>
                                <?php else: ?>
                                <button  onclick="changeActivate('<?php echo $this->_tpl_vars['item']['relation_id']; ?>
');" title="Activate" class="btn btn-sm btn-default">
                                    <i class="glyphicon glyphicon-ok"></i>
                                </button>
                                <?php endif; ?>
                            </td>
                        </tr>
                        <?php endforeach; endif; unset($_from); ?>
                    </tbody>
                </table>
          </td>
        </tr>
        <tr>
          <td valign="top" align="left" width="2%" class="hdr_bl">&nbsp;</td>
          <td valign="top" align="left" width="" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="2%" class="hdr_br">&nbsp;</td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
  </div>
</div>
<script type="text/javascript" language="javascript">
function changeSuspend(id)
{
    if(confirm("Are you sure want to suspend the user?"))
    {
        window.location = "?do=debmasteractivate&master_id=<?php echo $_GET['master_id']; ?>
&id="+id+"&type=suspend";
    }
}
function  changeActivate(id)
{
    if(confirm("Are you sure want to activate the user?"))
    {
        window.location = "?do=debmasteractivate&master_id=<?php echo $_GET['master_id']; ?>
&id="+id+"&type=active";
    }
}
</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);
 ?>