File: /www/exchange2/exchange/admin/cache/%%EB^EBD^EBDFC760%%adminusers.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-20 17:48:15
compiled from staff/adminusers.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getAdminType', 'staff/adminusers.html', 68, 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="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">
<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="70%" class="hdr_tc">Show Admin Users</td>
<td width="26%" valign="top" align="right" class="hdr_tc"><a class="under_blue" href="javascript::void(0);" onclick="redirectAddUser('admin','Admin User');"> Add Admin User</a></td>
<td valign="top" align="left" width="2%" class="hdr_tr"> </td>
</tr>
<?php if (count ( $this->_tpl_vars['success_part'] ) > 0): ?>
<div class="success-msgbox"><span>
<?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; ?>
<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 valign="top" align="left" width="15%">First Name</th>
<th valign="top" align="left" width="20%">Last Name</th>
<th valign="top" align="" width="25%">Email</th>
<th valign="top" align="" width="13%">Code</th>
<th valign="top" align="center" width="8%">Type</th>
<th valign="top" align="center" width="10%">Status</th>
<th valign="top" align="center" width="30%"> 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 valign="top" align="left"><?php echo $this->_tpl_vars['item']['first_name']; ?>
</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['item']['last_name']; ?>
</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['item']['admin_email']; ?>
</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['item']['admin_code']; ?>
</td>
<td valign="top" align="left"><?php echo smarty_function_getAdminType(array('admin_type' => $this->_tpl_vars['item']['admin_type']), $this);?>
</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['item']['user_status']; ?>
</td>
<td valign="top" align="left">
<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">
<li><a href="javascript:void(0);" onclick="updateAdminStatus('<?php echo $this->_tpl_vars['item']['admin_user_id']; ?>
','<?php if ($this->_tpl_vars['item']['admin_status'] == '1'): ?>Suspend<?php else: ?>Activate<?php endif; ?>','<?php if ($this->_tpl_vars['item']['admin_status'] == '1'): ?>act<?php else: ?>sus<?php endif; ?>');"><?php if ($this->_tpl_vars['item']['admin_status'] == '1'): ?>Suspend<?php else: ?>Activate<?php endif; ?></a></li>
<li><a href="javascript:void(0);" onclick="redirectEditUser('<?php echo $this->_tpl_vars['item']['admin_user_id']; ?>
','admin','Admin User Details')">Edit</a></li>
<li><a href="javascript:void(0);" onclick="deleteAdminUser('<?php echo $this->_tpl_vars['item']['admin_user_id']; ?>
');">Delete</a></li>
</ul>
</div>
</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="70%" class="hdr_bc"> </td>
<td valign="top" align="left" width="26%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table>
</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);
?>
</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>
<script type="text/javascript">
function changeSuspend(part_id)
{
window.open('?do=details&id='+part_id,'mywindowtitle','width=800,height=400');
}
</script>
<script type="text/javascript" language="javascript">
function updateAdminStatus(id,sta,tp)
{
if(confirm("Are you sure want to "+sta+"?"))
{
window.location = "?do=adminstatus&id="+id+"&type="+tp;
}
}
function deleteAdminUser(id)
{
if(confirm("Are you sure want to Delete?"))
{
window.location = "?do=deleteadminuser&id="+id;
}
}
function redirectAddUser(flag,str){
mywins = window.open('adminindex.php?do=adduserdetails&flag='+flag+'&title='+str,"mywins","width=900,height=500,scrollbars=yes");
mywins.focus();
}
function redirectEditUser(id,flag,str){
mywins = window.open('adminindex.php?do=edituserdetails&id='+id+'&flag='+flag+'&title='+str,"mywins","width=900,height=500,scrollbars=yes");
mywins.focus();
}
</script>