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/%%A4^A41^A41B2F51%%showapiaccess.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-19 12:25:48
         compiled from api/showapiaccess.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="center_menu"> <a href="#" class="user">&nbsp;</a> </div>

    </div>
    <div id="right_content">
      <form method="post" action="adminindex.php?do=deleteapiaccess">
      <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" colspan="2" align="left" width="96%" class="hdr_tc">
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tr>
                  <td valign="top" align="left">API Access</td>
                  <td valign="middle" align="right">
                    <a href="adminindex.php?do=addapiaccess" class="under_blue">Add API Access</a>
                 </td>
                </tr>
            </table>
          </td>
          <td valign="top" align="left" width="2%" class="hdr_tr">&nbsp;</td>
        </tr>
		 <?php if (count ( $this->_tpl_vars['success_org'] ) > 0): ?>            

		<div class="success-msgbox"><span>
                    <?php $_from = $this->_tpl_vars['success_org']; 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_org']; ?>
<br>

                    <?php endforeach; endif; unset($_from); ?></span></div>
                <?php endif; ?>  

        <tr>
          <td valign="top" align="left" colspan="4" class="hdr_center">
            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table table-hover table-striped table-responsive dynamicTable">
                <thead>
                    <tr>
                        <th width="5%" align="center" valign="top"><input type="checkbox" id="chechapi" name="checkapi[]"></th>
                        <th width="15%" align="left" valign="top">Organisation</th>
                        <th width="10%" align="left" valign="top">Org.ID</th>
                        <th width="25%" align="left" valign="top" style="border-right:4px solid #FFF;">API Key</th>
                        <th width="10%" align="center" valign="top" style="border-right:4px solid #FFF;">Status</th>
                        <th width="12%" align="center" valign="top">Created</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 align="left" valign="top">&nbsp;<input type="checkbox" value="<?php echo $this->_tpl_vars['item']['id']; ?>
" class="checkdeleteApi" name="checkdeleteApi[]"> </td>
                        <td align="left" valign="top"><?php echo $this->_tpl_vars['item']['sortorganisation']; ?>
</td>
                        <td align="left" valign="top"><?php echo $this->_tpl_vars['item']['organisation_id']; ?>
</td>
                        <td align="left" valign="top"><?php echo $this->_tpl_vars['item']['api_key']; ?>
</td>
                        <td align="center" valign="top"><?php if ($this->_tpl_vars['item']['status'] == '1'): ?>Enable<?php else: ?>Disable<?php endif; ?></td>
                        <td align="center" valign="top"><?php echo $this->_tpl_vars['item']['created_at']; ?>
</td>
                        <td align="left" valign="top"> 
                            <a class="btn btn-sm btn-default" href="adminindex.php?do=editapiaccess&id=<?php echo $this->_tpl_vars['item']['id']; ?>
" title="Edit">
                                <i class="glyphicon glyphicon-edit"></i>
                            </a>
                            <a class="btn btn-sm btn-default" href="adminindex.php?do=apilog&id=<?php echo $this->_tpl_vars['item']['id']; ?>
" title="View API Log">
                                <i class="glyphicon glyphicon-search"></i>
                            </a>
                          </td>
                    </tr>
                    <?php endforeach; endif; unset($_from); ?>
                </tbody>
                <tfoot>
                    <tr>
                        <th colspan="6" style="text-align: center;">
                            <input type="submit" class="btn btn-primary" id="deleteApi" value="Delete API Access">
                        </th>
                        <th colspan="5"></th>
                    </tr>
                </tfoot>
            </table>
          </td>
        </tr>
        <tr>
          <td valign="top" align="left" width="2%" class="hdr_bl">&nbsp;</td>
          <td valign="top" align="left" width="56%" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="46%" class="hdr_bc">&nbsp;</td>
          <td valign="top" align="left" width="2%" class="hdr_br">&nbsp;</td>
        </tr>
      </table>
    </from>
    </div>
    <div class="clear"></div>
  </div>
</div>
 <?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);
 ?>
 <script type="text/javascript">
  $('#chechapi').click(function() {
    if(this.checked) {
            $('.checkdeleteApi').each(function() {
                this.checked = true;
            });
        }else{
            $('.checkdeleteApi').each(function() {
                this.checked = false;
            });
        }
  });

  $('#deleteApi').click(function() {
    
    if ($("[name='checkdeleteApi[]']:checked").length == 0) {

      alert("No API can selected."); 
      return false;
    }else {

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

        return true;
      }else{

        return false;
      }
    }

  });

  </script>
</body>
<div class="center_menu_dd" id="left_dd_Mnu" style="display:none; position:absolute;" onmouseover="this.style.display='block';" onmouseout="this.style.display='none'">
  <div class="center_menu_hdr">Settings</div>
  <ul class="child1">
    <li><a href="#" class="select">Site Settings</a></li>
    <li><a href="#">Registration Settings</a></li>
    <li><a href="#">Mail Settings</a></li>
    <li><a href="#">IP Block Settings</a></li>
  </ul>
</div>
</html>