<?php /* Smarty version Smarty-3.1.8, created on 2024-12-26 16:45:10
         compiled from "/home/agmc/beta/application/core/views/manage/standard/RolesAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:215787695e58a698a1e8b4-01485133%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b06be17fd09656a30ea5cfcba8198f0bf5516a62' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/RolesAdd.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '215787695e58a698a1e8b4-01485133',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e58a698a79de7_02671248',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'userTypeID' => 0,
    'resTreeRolesModules' => 0,
    'view_common_manageUserTypeID' => 0,
    'userTypeStatus' => 0,
    'resPrivileges' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e58a698a79de7_02671248')) {function content_5e58a698a79de7_02671248($_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;?>
/inner-formlisting.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/tree.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 echo $_smarty_tpl->getSubTemplate ('AdminUserRightLinks.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
      </div>
     </div>
    <!--End: Right Block-->
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formRoles",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

    <div class="left_wrapper">
      <div class="content_wrapper">
	  <?php $_smarty_tpl->tpl_vars["userTypeID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['userTypeID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
	  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"userTypeID"),$_smarty_tpl);?>

       <h2> <?php if ($_smarty_tpl->tpl_vars['userTypeID']->value){?>
      <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditAdminRole'];?>

      <?php }else{ ?>
      <?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddAdminRole'];?>

      <?php }?> </h2>
        <div class="inner_content_wrapper">
          <div class="form_listing">
            <ul>
              <li >
                <div class="leftside01 mandatory">
                  <p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblGroupName'];?>
<br />
                  </p>
                </div>
                <!--End:Left-->
                <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"userTypeName",'class'=>"textbox",'validate'=>"required~*userTypeName->database->admin_user_type,userTypeName,userTypeID!='".($_smarty_tpl->tpl_vars['userTypeID']->value)."' AND userTypeStatus!='Deleted'",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errGroupName']).('~*')).($_smarty_tpl->tpl_vars['language']->value['errGroupAlreadyExist']),'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                <!--End:right-->
                <div class="clear"></div>
              </li>
			<?php if (!$_smarty_tpl->tpl_vars['userTypeID']->value||$_smarty_tpl->tpl_vars['userTypeID']->value>1){?>
              <li>
                <div class="leftside01 mandatory">
                  <p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermissions'];?>
 </p>
                </div>
                <!--End:Left-->
                <div class="rightside01">
                  <div>
                    <div id="treecontrol"> 
                     <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('tabindex'=>"1",'href'=>'','title'=>($_smarty_tpl->tpl_vars['language']->value['lblExpandTree']),'class'=>"expandable",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblExpandAll'])),$_smarty_tpl);?>

                    | 
                   <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('tabindex'=>"1",'href'=>'','title'=>($_smarty_tpl->tpl_vars['language']->value['lblCollapseTree']),'class'=>"collapsable",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblCollapseAll'])),$_smarty_tpl);?>

                  |<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('tabindex'=>"1",'href'=>'','title'=>($_smarty_tpl->tpl_vars['language']->value['lblSelectAllDefault']),'class'=>"selectall",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblSelectAllDefault'])),$_smarty_tpl);?>

| <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('tabindex'=>"1",'href'=>'','title'=>($_smarty_tpl->tpl_vars['language']->value['lblDeselectAll']),'class'=>"deselectall",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblDeselectAll'])),$_smarty_tpl);?>
</div>
                    <?php echo $_smarty_tpl->tpl_vars['resTreeRolesModules']->value;?>

					</div>

                </div>
                <!--End:right-->
                <div class="clear"></div>
								
					
              </li>
			  <li style="padding :0">
                <div class="leftside01 ">&nbsp;</div>
                <div class="rightside01">
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"validateRoles",'validate'=>"callback_checkRoleSelect",'error'=>$_smarty_tpl->tpl_vars['language']->value['errUserPermission']),$_smarty_tpl);?>

                </div>
                <div class="clear"></div>
              </li>
			<?php }?>  
              <li >
                <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
</div>
                <div class="rightside01">
                  <div id="perioddiv">
				  <?php if ($_smarty_tpl->tpl_vars['userTypeID']->value=="1"||$_smarty_tpl->tpl_vars['userTypeID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value){?>
				  <?php echo $_smarty_tpl->tpl_vars['userTypeStatus']->value;?>

				  <?php }else{ ?>
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('tabindex'=>"1",'name'=>"userTypeStatus",'class'=>"customradio",'options'=>(((("Active->").($_smarty_tpl->tpl_vars['language']->value['lblActive'])).("~*Inactive->")).($_smarty_tpl->tpl_vars['language']->value['lblInactive'])).(''),'value'=>"Active"),$_smarty_tpl);?>
        
                   
					 <?php }?>
                   </div>
                </div>
                <div class="clear"></div>
              </li>
              <li>
              	<div class="submit-block clearfix"> 
                        <span>&nbsp; </span>
                        <div class="leftside01">&nbsp;</div>
                    	<div class="rightside01">	
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('tabindex'=>"1",'name'=>"submitRoles",'class'=>"curve-3",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave']),'form'=>"formRoles"),$_smarty_tpl);?>

                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
 
                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('tabindex'=>"1",'href'=>"roles/index/",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblCancel']),'class'=>"cancel"),$_smarty_tpl);?>

                         </div>
                    </div>
                <!--End:right-->
                <div class="clear"></div>
              </li>
            </ul>
          </div>
          <!--End:From Listing-->
        </div>
        <!--End:Border 3-->
      </div>
      <!--End:Border 2-->
    </div>
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

    <!--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">
var resPrivileges = '';
<?php if (isset($_smarty_tpl->tpl_vars['resPrivileges']->value)){?>
resPrivileges = <?php echo $_smarty_tpl->tpl_vars['resPrivileges']->value;?>
;
<?php }?>
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.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" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custom-radiobutton.js"></script>
<script type="text/javascript">
$(function(){
	 $('#perioddiv input').customInput('');
});

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

</script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"formRoles"),$_smarty_tpl);?>

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

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