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/%%CD^CD3^CD3E3100%%pension_users.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-19 12:14:40
         compiled from users/pension_users.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getUserStatus', 'users/pension_users.html', 102, false),array('function', 'getUserActions', 'users/pension_users.html', 106, false),array('function', 'getUserOptions', 'users/pension_users.html', 117, 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
     });
});
</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="right_content">
       
        <script type="text/javascript" src="<?php echo $_SESSION['admin_url']; ?>
js/selecbox.js"></script>
        <script type="text/javascript">
        $(document).ready(function() {
            $('#Items').selectbox();
        });
        </script>
      <?php if (count ( $this->_tpl_vars['success_users'] ) > 0): ?>
      <div class="success-msgbox"><span>
        <?php $_from = $this->_tpl_vars['success_users']; 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_users']; ?>

        <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" class="hdr_tc">User Management - Pension</td>
          <td align="right" class="hdr_tc"></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 class="table">
                <tr>
                    <td align="center" valign="top">
                  <div class="vendor_total_div1 Clsimp">
                        <div class="vendor_divs2">
                            <h4><a href="adminindex.php?do=pensionusers&status=0"><?php echo $this->_tpl_vars['statistics']['total']; ?>
<br /><span>Registered</span></a></h4> 
                        </div>
                        <div class="vendor_divs1">
                            <h4><a href="adminindex.php?do=pensionusers&status=2"><?php echo $this->_tpl_vars['statistics']['app']; ?>
<br /><span>Approved</span></a></h4> 
                        </div>
                        <div class="vendor_divs1">
                            <h4><a href="adminindex.php?do=pensionusers&status=21"><?php echo $this->_tpl_vars['statistics']['reapp']; ?>
<br /><span>Re-Approved</span></a></h4> 
                        </div>
                        <div class="vendor_divs2">
                            <h4><a href="adminindex.php?do=pensionusers&status=3"><?php echo $this->_tpl_vars['statistics']['active']; ?>
<br /><span>Active</span></a></h4> 
                        </div>
                        <div class="vendor_divs1">
                            <h4><a href="adminindex.php?do=pensionusers&status=4"><?php echo $this->_tpl_vars['statistics']['auth']; ?>
<br /><span>Authorised</span></a></h4> 
                        </div>
                        <div class="vendor_divs1">
                            <h4><a href="adminindex.php?do=pensionusers&status=5"><?php echo $this->_tpl_vars['statistics']['sus']; ?>
<br /><span>Suspended</span></a></h4> 
                        </div>
                        <div class="vendor_divs2">
                            <h4><a href="adminindex.php?do=pensionusers&status=6"><?php echo $this->_tpl_vars['statistics']['ter']; ?>
<br /><span>Terminated</span></a></h4> 
                        </div>
                        <div class="vendor_divs3">
                            <h4><a href="adminindex.php?do=pensionusers"><?php echo $this->_tpl_vars['statistics']['total']; ?>
<br /><span>Total</span></a></h4> 
                        </div>
                  </div>
                  </td>
                </tr>
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-hover table-striped table-responsive dynamicTable">
                <thead>
                    <tr>
                        <th width="8%" align="left" valign="middle">Date</th>
                        <th width="12%" align="left" valign="middle">User</th>
                        <th width="15%" align="left" valign="middle">Pension ID</th>
                        <th width="18%" align="left" valign="middle">Org. Name</th>
                        <th width="7%" align="left" valign="middle">Type</th>
                        <th width="14%" align="left" valign="middle">Status</th>
                        <th width="10%" align="left" valign="middle">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="middle"><?php echo $this->_tpl_vars['item']['created']; ?>
</td>
                        <td align="left" valign="middle">
                            <?php echo $this->_tpl_vars['item']['last_name']; ?>
 <?php echo $this->_tpl_vars['item']['first_name']; ?>
 
                            <?php if ($this->_tpl_vars['item']['int_users'] > 0): ?>
                            <a href="javascript:void(0);" onclick="javascript:mytra=window.open('adminindex.php?do=getuserdetails&uid=<?php echo $this->_tpl_vars['item']['user_id']; ?>
&view=int','mytra','scrollbars=yes,width=960,height=800');mytra.focus();">(<?php echo $this->_tpl_vars['item']['int_users']; ?>
)</a>
                            <?php endif; ?>
                        </td>
                        <td align="left" valign="middle"><?php echo $this->_tpl_vars['item']['ref_id']; ?>
</td>
                        <td align="left" valign="middle"><?php echo $this->_tpl_vars['item']['organization_name']; ?>
</td>
                        <td align="left" valign="middle"><span class="label label-primary">PU</span></td>
                        <td align="left" valign="middle">
                            <div class="dropdown">
                                <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="true">
                                    <?php echo smarty_function_getUserStatus(array('status' => $this->_tpl_vars['item']['status']), $this);?>

                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu user_actions">
                                    <?php echo smarty_function_getUserActions(array('status' => $this->_tpl_vars['item']['status'],'uid' => $this->_tpl_vars['item']['temp_reg_id'],'base_uri' => 'pensionusers','actions' => $this->_tpl_vars['actions'],'delete_class' => 'delete'), $this);?>

                                </ul>
                            </div>
                        </td>
                        <td align="left" valign="middle">
                            <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">
                                    <?php echo smarty_function_getUserOptions(array('username' => $this->_tpl_vars['item']['username'],'temp_reg_id' => $this->_tpl_vars['item']['temp_reg_id'],'id' => $this->_tpl_vars['item']['id'],'user_id' => $this->_tpl_vars['item']['user_id'],'base_uri' => 'pensionusers'), $this);?>

                                </ul>
                            </div>
                        </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>
$('.dropdown-menu.user_actions a').click(function(){
  if($(this).text()!='Delete')
  {
      var r=confirm("Are you Sure you want to "+$(this).text());
      if (r==true)
      {
          self.location = $(this).attr('href');
      }
      else
      {
          return false;
      }
  }
  return false;
});
$(".delete").click(function () {

    var uid=$(this).data('uid');
    $.ajax({
      type: "POST",
      url: "?do=getintermedorg",
      data: "&uid="+uid,
      success: function(response){


        if(response >0){

            alert('You can\'t delete the users with organisation');

        }else{

            if(confirm("Are you sure want to delete this user?"))
            {

              window.location ='?do=deleteintermedusers&uid='+uid;
            }
        }
      }
    });
});

$(".usr_delete").click(function () {

var user_id=$(this).data('uid');

if(confirm("Are you sure want to delete this user?"))
{

  window.location ='?do=deleteintermednewusers&user_id='+user_id+'&flg='+1;
}                 
});
</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);
 ?>