<?php /* Smarty version Smarty-3.1.8, created on 2024-12-26 16:45:04
         compiled from "/home/agmc/beta/application/core/views/manage/standard/Roles.tpl" */ ?>
<?php /*%%SmartyHeaderCode:18289735775e4e53c647cdd4-24721381%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ebb7f553e26f5ef3ead82cd57f149f99aeeed89e' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/Roles.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18289735775e4e53c647cdd4-24721381',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e4e53c64ff273_86622919',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'resListUserTypes' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'resUserTypes' => 0,
    'curr_userTypeID' => 0,
    'view_common_manageUserTypeID' => 0,
    'curr_page' => 0,
    'newstatus' => 0,
    'changeStatus' => 0,
    'statusoptions' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e4e53c64ff273_86622919')) {function content_5e4e53c64ff273_86622919($_smarty_tpl) {?><!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['lblManageAdminRoles'];?>
</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 ('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" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</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['lblAddRoles'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"roles/new/",'href'=>"/roles/new/",'class'=>"custom-btnt",'content'=>"<strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddRoles'])."</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['lblManageAdminRoles'];?>
</h2>
		<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formRoles",'id'=>"formRoles",'action'=>"roles/index/",'method'=>"post"),$_smarty_tpl);?>

        <div class="inner_content_wrapper">
        <div id="common_message" ></div>
            <?php if (count($_smarty_tpl->tpl_vars['resListUserTypes']->value)>0){?>
          <div class="grid_table00"> 
            
            <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('id'=>"ListStatusLinkCheckbox",'name'=>"rolesStatusAll",'class'=>"fixing_left",'options'=>''),$_smarty_tpl);?>
 
                      <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>"ListStatusLink",'class'=>"status-arw fixing_left"),$_smarty_tpl);?>

                        <ul id="ListStatusSelection"  class="check_status">
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"ListActive",'caption'=>$_smarty_tpl->tpl_vars['language']->value['lblActive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"ListInactive",'caption'=>$_smarty_tpl->tpl_vars['language']->value['lblInactive']),$_smarty_tpl);?>
</li>
                          <li> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"ListAll",'caption'=>$_smarty_tpl->tpl_vars['language']->value['lblSelectAll']),$_smarty_tpl);?>
</li>
                        </ul>
                      </li>
                    </ul>
                  </div></th><?php }?>
                <th align="left" valign="middle" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdminRole'];?>
</th>
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                <th width="64" align="left" valign="middle" >&nbsp;</th>
				<?php }?>
              </tr>
              <?php  $_smarty_tpl->tpl_vars["resUserTypes"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resUserTypes"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resListUserTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resUserTypes"]->key => $_smarty_tpl->tpl_vars["resUserTypes"]->value){
$_smarty_tpl->tpl_vars["resUserTypes"]->_loop = true;
?>
              <?php $_smarty_tpl->tpl_vars["curr_userTypeID"] = new Smarty_variable($_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeID'], null, 0);?>
              <tr>
                <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?><td align="left" valign="top" class="checkbox_column"> <?php if ($_smarty_tpl->tpl_vars['curr_userTypeID']->value=="1"||$_smarty_tpl->tpl_vars['curr_userTypeID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value){?> 
                <span class="status-locked rmv-mrg-lf icon-set">&nbsp;</span>
		<?php }else{ ?>
                  <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeStatus']=="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'=>"userTypeIDs[]",'options'=>'','class'=>"checkbox01 userTypeIDs ListAll ".$_tmp2,'value'=>$_smarty_tpl->tpl_vars['curr_userTypeID']->value),$_smarty_tpl);?>
 
                  <?php }?> </td><?php }?>
                <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeName'];?>
<br /></td>
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                <td align="left" valign="top"> 
				<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
               <?php if ($_smarty_tpl->tpl_vars['curr_userTypeID']->value=="1"||$_smarty_tpl->tpl_vars['curr_userTypeID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value){?>
				<?php ob_start();?><?php echo strtolower($_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeStatus']);?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('alert'=>($_smarty_tpl->tpl_vars['language']->value['lblRolesAlert']),'title'=>($_smarty_tpl->tpl_vars['language']->value['lblTaxAlt']),'class'=>"status-".$_tmp3." icon-set"),$_smarty_tpl);?>

			   <?php }else{ ?>
					 <?php if ($_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeStatus']=="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('id'=>($_smarty_tpl->tpl_vars['curr_userTypeID']->value),'rel'=>($_smarty_tpl->tpl_vars['newstatus']->value),'title'=>($_smarty_tpl->tpl_vars['resUserTypes']->value['userTypeStatus']),'class'=>($_smarty_tpl->tpl_vars['changeStatus']->value)." icon-set",'task'=>'status-change'),$_smarty_tpl);?>

				<?php }?>
				<?php if (($_smarty_tpl->tpl_vars['curr_userTypeID']->value!="1"&&$_smarty_tpl->tpl_vars['curr_userTypeID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value)||($_smarty_tpl->tpl_vars['curr_userTypeID']->value=="1"&&$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value!="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'=>"/roles/edit/id/".($_smarty_tpl->tpl_vars['curr_userTypeID']->value)."/",'history'=>"yes",'class'=>"edit02 icon-set",'alt'=>"Edit"),$_smarty_tpl);?>

				<?php }?>
				<?php }?>
				<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
                <?php if ($_smarty_tpl->tpl_vars['curr_userTypeID']->value=="1"||$_smarty_tpl->tpl_vars['curr_userTypeID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value){?>
                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"status-locked icon-set"),$_smarty_tpl);?>
 
                <?php }elseif((($tmp = @$_smarty_tpl->tpl_vars['resUserTypes']->value['usersCount'])===null||$tmp==='' ? 0 : $tmp)>0){?> 
                  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>'','confirm'=>$_smarty_tpl->tpl_vars['language']->value['lblAdminUsersDelete'],'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete'],'class'=>"delete02-inactive icon-set"),$_smarty_tpl);?>

                <?php }else{ ?>                  
                  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/roles/destroy/id/".($_smarty_tpl->tpl_vars['curr_userTypeID']->value)."/",'history'=>"yes",'confirm'=>$_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'],'class'=>"delete02 icon-set",'title'=>"Delete",'confirm_head'=>$_smarty_tpl->tpl_vars['language']->value['lblDelete']),$_smarty_tpl);?>
                  
                  <?php }?> 
				 <?php }?> 
                   </td>
				<?php }?>   
              </tr>
              <?php } ?>
            </table>
            </div>
          <!--End:From Listing-->
        </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'=>"userTypeStatus",'class'=>"select-box width-auto",'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value),$_smarty_tpl);?>

            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitStatus",'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_warning"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblNoUserType'];?>
</div>
          <?php }?>
      </div>
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--***********************************************************************END CONTAINER SECTION******************************************************-->
  <!--End:Content Container-->
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</div>
<!--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;?>
/table.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/tree.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/roles.page.js"></script>
<script type="text/javascript">
var lblAdminRoleDelete	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdminRoleDelete'];?>
';
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=adminroles]').addClass('selected'); 
		setSideMenu();
});

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

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