<?php /* Smarty version Smarty-3.1.8, created on 2025-03-07 15:58:08
         compiled from "/home/agmc/beta/application/core/views/manage/standard/AdminuserList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4956083965e7318fb248156-26163547%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '06e01dfaa3a82e56ce29646b64c1dee2da2fc562' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/AdminuserList.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4956083965e7318fb248156-26163547',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e7318fb2d5233_01877080',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'view_javascript' => 0,
    'resListAdmin' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'resAdmin' => 0,
    'view_common_manageUserID' => 0,
    'curr_adminUserID' => 0,
    'fullName' => 0,
    'config' => 0,
    'curr_page' => 0,
    'newstatus' => 0,
    'changeStatus' => 0,
    'statusoptions' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e7318fb2d5233_01877080')) {function content_5e7318fb2d5233_01877080($_smarty_tpl) {?><?php if (!is_callable('smarty_mb_wordwrap')) include '/home/agmc/beta/library/template/plugins/shared.mb_wordwrap.php';
if (!is_callable('smarty_modifier_date_format')) include '/home/agmc/beta/library/template/plugins/modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lbladminSettings'];?>
 :  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblmanageAdmin'];?>
</title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script>
</head><body>
<div class="outer_container"> <?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  <!--End:Header Container--> 
  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
  <div class="content_container2 clearfix">
    <div class="right-sidebar">
      <div class="side_wrapper"> 
      <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewAdmin2'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"adminuser/new/",'href'=>"adminuser/new/",'class'=>"custom-btnt",'content'=>" <strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddNewAdmin2'])."</strong>",'title'=>$_tmp1),$_smarty_tpl);?>

      <?php echo $_smarty_tpl->getSubTemplate ('AdminUserRightLinks.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
      </div>
    </div>
    <!--End: Right Block-->
    <div class="left_wrapper">
      <div class="content_wrapper">
        <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblmanageAdmin'];?>
</h2>
        <div class="inner_content_wrapper"> 
          <div id="common_message"></div>
          <?php if ($_smarty_tpl->tpl_vars['resListAdmin']->value){?>
          <div class="grid_table00"> 
           <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formAdminList",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>
 
           <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
              <tr>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?><th align="left" valign="middle"  class="checkbox_column" width="35"> <div class="chekingdiv">
                    <ul>
                      <li> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"ListStatusLinkCheckbox",'id'=>"ListStatusLinkCheckbox",'class'=>"fixing_left",'value'=>''),$_smarty_tpl);?>

                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','id'=>"ListStatusLink",'class'=>"status-arw fixing_left",'alt'=>"down arrow"),$_smarty_tpl);?>

                        <ul id="ListStatusSelection"  class="check_status">
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListActive",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblActive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListInactive",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblInactive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','rel'=>"ListAll",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblSelectAll']),$_smarty_tpl);?>
</li>
                        </ul>
                      </li>
                    </ul>
                  </div></th><?php }?>
                <th  align="left" valign="middle"  width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdminName'];?>
</th>
                <th  align="left" valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmail'];?>
</th>
                <th  align="left" valign="middle"  width="15%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblUserName'];?>
</th>
                <th  align="left" valign="middle"  width="13%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRole'];?>
</th>
                <th  align="left" valign="middle"  width="15%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLastAccessed'];?>
</th>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
				<th width="60" align="left" valign="middle" >&nbsp;</th>
				<?php }?>
              </tr>
              <?php  $_smarty_tpl->tpl_vars["resAdmin"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resAdmin"]->_loop = false;
 $_smarty_tpl->tpl_vars["key1"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resListAdmin']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars["resAdmin"]->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars["resAdmin"]->key => $_smarty_tpl->tpl_vars["resAdmin"]->value){
$_smarty_tpl->tpl_vars["resAdmin"]->_loop = true;
 $_smarty_tpl->tpl_vars["key1"]->value = $_smarty_tpl->tpl_vars["resAdmin"]->key;
 $_smarty_tpl->tpl_vars["resAdmin"]->iteration++;
?>
              <?php $_smarty_tpl->tpl_vars["curr_adminUserID"] = new Smarty_variable($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID'], null, 0);?>
              <?php $_smarty_tpl->tpl_vars["fullName"] = new Smarty_variable((($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserFirstName']).(' ')).($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserLastName']), null, 0);?>
              <tr <?php if (!(1 & $_smarty_tpl->tpl_vars['resAdmin']->iteration / 1)){?> class="shade01" <?php }?>>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
		<td align="left" valign="middle" class="checkbox_column">
		  <?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']=="1"||$_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']==$_smarty_tpl->tpl_vars['view_common_manageUserID']->value){?>
		  <span class="user rmv-mrg-lf icon-set">&nbsp;</span>
		  <?php }else{ ?>
                  <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserStatus']=='Active'){?><?php echo "ListActive";?><?php }else{ ?><?php echo "ListInactive";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"adminUserBulkStatus[]",'class'=>"adminUserBulkStatus checkbox01 ListAll ".$_tmp2,'options'=>'','value'=>$_smarty_tpl->tpl_vars['curr_adminUserID']->value),$_smarty_tpl);?>
                  
                  <?php }?> </td><?php }?>
                <td align="left" valign="middle"><?php echo smarty_mb_wordwrap(htmlspecialchars($_smarty_tpl->tpl_vars['fullName']->value),15,"<br />
                  ",true);?>
</td>
                <td align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['resAdmin']->value['adminUserEmail'];?>
</td>
                <td align="left" valign="middle"><?php echo smarty_mb_wordwrap($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserLoginName'],16,"<br />
                  ",true);?>
</td>
                <td align="left" valign="middle"><?php echo $_smarty_tpl->tpl_vars['resAdmin']->value['userTypeName'];?>
</td>
                <td align="left" valign="middle"><?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserLastAccessDate']=='0000-00-00 00:00:00'){?>
                  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblNotyetAccessed'];?>
<?php }else{ ?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserLastAccessDate'],$_smarty_tpl->tpl_vars['config']->value['date']);?>
&nbsp;<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserLastAccessDate'],$_smarty_tpl->tpl_vars['config']->value['time']);?>
<?php }?></td>
               <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
			   <td align="left" valign="middle">
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
				<?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']=="1"||$_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']==$_smarty_tpl->tpl_vars['view_common_manageUserID']->value){?>
					<span class="icon-set-space"></span>
				<?php }else{ ?>
						<?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserStatus']!="Blocked"){?>
					<?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserStatus']=="Active"){?>
                  		<?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("Inactive", null, 0);?>
                  		<?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-active", null, 0);?>
               		 <?php }else{ ?>
                  		<?php $_smarty_tpl->tpl_vars["newstatus"] = new Smarty_variable("Active", null, 0);?>
                  		<?php $_smarty_tpl->tpl_vars["changeStatus"] = new Smarty_variable("status-inactive", null, 0);?>
               		 <?php }?>
				<?php if ($_smarty_tpl->tpl_vars['curr_page']->value>0){?><?php $_smarty_tpl->tpl_vars["curpage"] = new Smarty_variable($_smarty_tpl->tpl_vars['curr_page']->value, null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars["curpage"] = new Smarty_variable("1", null, 0);?><?php }?>
				  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('task'=>'status-change','id'=>($_smarty_tpl->tpl_vars['curr_adminUserID']->value),'rel'=>($_smarty_tpl->tpl_vars['newstatus']->value),'title'=>($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserStatus']),'class'=>($_smarty_tpl->tpl_vars['changeStatus']->value)." icon-set"),$_smarty_tpl);?>

                  <?php }else{ ?>
                <span class="status-locked  icon-set" title="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBlockedUser'];?>
">&nbsp;</span> <?php }?>
                <?php }?>  
				<?php if ($_smarty_tpl->tpl_vars['view_common_manageUserID']->value!="1"&&$_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']=="1"){?>	
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-locked icon-set"),$_smarty_tpl);?>
 
				<?php }else{ ?>	
					<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"adminuser/edit/id/".($_smarty_tpl->tpl_vars['curr_adminUserID']->value)."/",'caption'=>'','class'=>"edit02 icon-set",'alt'=>"Edit",'history'=>"yes"),$_smarty_tpl);?>

				<?php }?>	
                <?php }?>
				<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                  <?php if ($_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']=="1"||$_smarty_tpl->tpl_vars['resAdmin']->value['adminUserID']==$_smarty_tpl->tpl_vars['view_common_manageUserID']->value){?> 
                  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('alt'=>($_smarty_tpl->tpl_vars['language']->value['lblAdminCantDelete']),'class'=>"delete02-inactive icon-set"),$_smarty_tpl);?>

                  <?php }else{ ?>
                  
                  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('confirm'=>($_smarty_tpl->tpl_vars['language']->value['msgDeleteAdmin']),'href'=>"adminuser/destroy/id/".($_smarty_tpl->tpl_vars['curr_adminUserID']->value)."/",'alt'=>"delete",'class'=>"delete02 icon-set",'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete']),$_smarty_tpl);?>
                  
                  <?php }?>
				<?php }?>  
				 </td>
				  <?php }?>
              </tr>
              <?php } ?>
             
            </table>
            </div>
            <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
            	<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?>
          		<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
          		<?php }elseif($_smarty_tpl->tpl_vars['deletePrivilege']->value&&(!$_smarty_tpl->tpl_vars['editPrivilege']->value)){?> 
          		<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?> 
          		<?php }elseif((!$_smarty_tpl->tpl_vars['deletePrivilege']->value)&&$_smarty_tpl->tpl_vars['editPrivilege']->value){?> 
          		<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?> 
          <?php }?> 
            
            <div class="action_box">
            	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"adminUserStatus",'class'=>"select-box width-auto",'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value,'value'=>''),$_smarty_tpl);?>

                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitBulkStatus",'id'=>"submitBulkStatus",'class'=>"button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>

            </div>
            <?php }?> 
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

            <div class="fixing_right pagination_outer" ><?php echo $_smarty_tpl->smarty->registered_objects['paginate'][0]->layout(array('key'=>"page",'label_record'=>($_smarty_tpl->tpl_vars['language']->value['lblRecorsFound']),'label_pages'=>($_smarty_tpl->tpl_vars['language']->value['lblPages'])),$_smarty_tpl);?>
 </div>
            <div class="clear"></div>
            <?php }else{ ?>
            <div class="message_info" id="common_message"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
            <?php }?>
          <!--End:From Listing--> 
        </div>
        <!--End:Border 3--> 
      </div>
      <!--End:Border 2--> 
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End: Content--> 
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
<!--***********************************************************************END CONTAINER SECTION******************************************************--> 
<!--End:Content Container--> 
<!--End:Outer Container--> 
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/adminuser.page.js"></script> 
<script type="text/javascript">
var msgDeleteSelectedAdmin	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteSelectedAdmin'];?>
';
var lblSelectAction			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var lblSelectItem			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';

$(document).ready(function(){
		$('.side_wrapper ul li a[rel=adminuser]').addClass('selected'); 
});

</script>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->messages_script(array('id'=>"common_message"),$_smarty_tpl);?>

</body>
</html>
<?php }} ?>