<?php /* Smarty version Smarty-3.1.8, created on 2020-07-07 11:02:44
         compiled from "/home/agmc/beta/application/core/views/manage/standard/AdminuserAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19812382685e4e4b5362ea85-43822854%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2c93b0831995cf4f024e9414de0c49b3fb30e20d' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/AdminuserAdd.tpl',
      1 => 1592891064,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19812382685e4e4b5362ea85-43822854',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e4e4b536b6c76_75308773',
  'variables' => 
  array (
    'section' => 0,
    'language' => 0,
    'view_styles' => 0,
    'adminUserID' => 0,
    'adminUserLoginName' => 0,
    'getUserTypeName' => 0,
    'userTypeID' => 0,
    'userTypeName' => 0,
    'resListAdminRoles' => 0,
    'view_common_manageUserTypeID' => 0,
    'listRestRoles' => 0,
    'view_common_manageUserID' => 0,
    'adminUserStatus' => 0,
    'previousURL' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e4e4b536b6c76_75308773')) {function content_5e4e4b536b6c76_75308773($_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 if ((($tmp = @$_smarty_tpl->tpl_vars['section']->value)===null||$tmp==='' ? '' : $tmp)=='profileEdit'){?>
	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuUpdateYourprofile'];?>

<?php }else{ ?>
	<?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'];?>

<?php }?>	
</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;?>
/inner-formlisting.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.css" />
</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">
    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['section']->value)===null||$tmp==='' ? '' : $tmp)!='profileEdit'){?>
	<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>
	<?php }?>
    <!--End: Right Block-->
	<?php $_smarty_tpl->tpl_vars["adminUserID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['adminUserID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
    <div class="left_wrapper"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formAdminAdd",'action'=>'','method'=>"post"),$_smarty_tpl);?>

      <div class="content_wrapper">
        <h2>
		<?php if ($_smarty_tpl->tpl_vars['adminUserID']->value){?>
			<?php if ((($tmp = @$_smarty_tpl->tpl_vars['section']->value)===null||$tmp==='' ? '' : $tmp)=='profileEdit'){?>
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuUpdateYourprofile'];?>

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

			<?php }?>	
		<?php }else{ ?>			
			<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewAdmin'];?>
				
		<?php }?>
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"adminUserID"),$_smarty_tpl);?>
</h2>
        <div class="inner_content_wrapper">
		<div id="common_message"></div>
          <div class="form_listing form_listing03">
            <ul>
              <li class="clearfix">
                <div class="leftside01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFirstName'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"adminUserFirstName",'class'=>"textbox",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errFirstName'],'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                <!--End:right-->
              </li>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLastName'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"adminUserLastName",'class'=>"textbox",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLastName'],'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                <!--End:right-->
              </li>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEmail'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"adminUserEmail",'class'=>"textbox",'validate'=>"required~*email~*adminUserEmail->database->admin_users,adminUserEmail,adminUserID!='".($_smarty_tpl->tpl_vars['adminUserID']->value)."' AND adminUserStatus!='deleted'",'error'=>(((($_smarty_tpl->tpl_vars['language']->value['errEnterValidEmailID']).('~*')).($_smarty_tpl->tpl_vars['language']->value['errEnterValidEmailID'])).('~*')).($_smarty_tpl->tpl_vars['language']->value['errEmailIDExists']),'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                <!--End:right-->
              </li>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblUserName'];?>

                  <?php if ($_smarty_tpl->tpl_vars['adminUserID']->value){?><?php }else{ ?> <span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgUsernameSuggest'];?>
</span><?php }?> </div>
                <!--End:Left-->
                <div class="rightside01"> <?php if ($_smarty_tpl->tpl_vars['adminUserID']->value){?><?php echo $_smarty_tpl->tpl_vars['adminUserLoginName']->value;?>
<?php }else{ ?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"adminUserLoginName",'class'=>"textbox",'validate'=>"isLoginName~*adminUserLoginName->database->admin_users,adminUserLoginName,adminUserID!='".($_smarty_tpl->tpl_vars['adminUserID']->value)."' AND adminUserStatus!='deleted'",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errValidUserName']).('~*')).($_smarty_tpl->tpl_vars['language']->value['errUserNameExists']),'tabindex'=>"1"),$_smarty_tpl);?>
<?php }?> </div>
                <!--End:right-->
              </li>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPassword'];?>
 <span class="sub-text" id="passwordNotify"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgUserPassword'];?>
</span> </div>
                <!--End:Left-->
                <div class="rightside01"> 
                <?php if ($_smarty_tpl->tpl_vars['adminUserID']->value>0){?>
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->password(array('name'=>"adminUserLoginPass",'autocomplete'=>"off",'class'=>"textbox",'validate'=>"isSecurePassword",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidPassword'],'tabindex'=>"1",'maxlength'=>"15",'postTrigger'=>"$"."('#adminUserConfirmPass').blur();"),$_smarty_tpl);?>
 <?php }else{ ?>
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->password(array('name'=>"adminUserLoginPass",'maxlength'=>"15",'validate'=>"required~*isSecurePassword",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errPaaaword']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errValidPassword']),'class'=>"textbox",'tabindex'=>"1",'postTrigger'=>"$"."('#adminUserConfirmPass').blur();"),$_smarty_tpl);?>
 <?php }?>
                  </div>
                <!--End:right-->
              </li>
              <li class="clearfix">
                <div class="leftside01 mandatory" > <?php echo $_smarty_tpl->tpl_vars['language']->value['lblConfirmPassword'];?>
 </div>
                <div class="rightside01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->password(array('tabindex'=>"1",'class'=>"textbox",'maxlength'=>"15",'name'=>"adminUserConfirmPass",'validate'=>"adminUserLoginPass->compare->value",'error'=>$_smarty_tpl->tpl_vars['language']->value['errPasswordMismatch']),$_smarty_tpl);?>
 </div>
              </li>
			  <?php if ((($tmp = @$_smarty_tpl->tpl_vars['section']->value)===null||$tmp==='' ? '' : $tmp)!='profileEdit'){?>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblRole'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01"> 
				<?php if ($_smarty_tpl->tpl_vars['getUserTypeName']->value==1){?>
					<?php if ((($tmp = @$_smarty_tpl->tpl_vars['userTypeID']->value)===null||$tmp==='' ? '' : $tmp)){?>
						<?php echo $_smarty_tpl->tpl_vars['userTypeName']->value;?>

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

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

						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"adminRole",'value'=>($_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value)),$_smarty_tpl);?>

					<?php }?>						 
				<?php }else{ ?>	
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"adminRole",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelectRole']),'id'=>"adminRole",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['userTypeID']->value)===null||$tmp==='' ? '' : $tmp),'options'=>$_smarty_tpl->tpl_vars['resListAdminRoles']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectRole'],'tabindex'=>"1"),$_smarty_tpl);?>
 
				<?php }?>	
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"adminType"),$_smarty_tpl);?>
 </div>
                <!--End:right-->
              </li>
			  <?php if ($_smarty_tpl->tpl_vars['view_common_manageUserTypeID']->value==1){?>
			   <li class="clearfix">
                <div class="leftside01 "> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblRestRole'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01"> 
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"roleID",'tabindex'=>"1",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'id'=>"roleID",'options'=>$_smarty_tpl->tpl_vars['listRestRoles']->value,'disabled'=>"disabled"),$_smarty_tpl);?>

                </div>
                <!--End:right-->
              </li>
			  <?php }?>
			  <?php }else{ ?>
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"adminRole",'value'=>($_smarty_tpl->tpl_vars['userTypeID']->value)),$_smarty_tpl);?>

			  <?php }?>
              <li class="clearfix">
                <div class="leftside01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
 </div>
                <!--End:Left-->
                <div class="rightside01">
                	<div id="perioddiv">
                    <?php if ($_smarty_tpl->tpl_vars['adminUserID']->value==$_smarty_tpl->tpl_vars['view_common_manageUserID']->value||$_smarty_tpl->tpl_vars['adminUserID']->value==1){?> 
					<?php if ($_smarty_tpl->tpl_vars['adminUserStatus']->value=='Active'){?>
						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblActive'];?>

					<?php }elseif($_smarty_tpl->tpl_vars['adminUserStatus']->value=='Inactive'){?>
						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblInactive'];?>

					<?php }elseif($_smarty_tpl->tpl_vars['adminUserStatus']->value=='Blocked'){?>
						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBlocked'];?>

					<?php }?>
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"adminUserStatus"),$_smarty_tpl);?>

					<?php }else{ ?>
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('tabindex'=>"1",'name'=>"adminUserStatus",'class'=>"customradio",'options'=>(((("Active->").($_smarty_tpl->tpl_vars['language']->value['lblActive'])).("~*Inactive->")).($_smarty_tpl->tpl_vars['language']->value['lblInactive'])).("~*Blocked->".($_smarty_tpl->tpl_vars['language']->value['lblLocked'])),'value'=>"Active"),$_smarty_tpl);?>

					                 
					 <?php }?>
                   </div>
                </div>
                <!--End:right-->
              </li>
			 
              <li class="clearfix">
              	<div class="submit-block clearfix"> 
                        <span>&nbsp; </span>
                        <div class="leftside01">&nbsp;</div>
                    	<div class="rightside01">	
                        <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['adminUserID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblUpdate'];?><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSave'];?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitAdmin",'class'=>"curve-3",'value'=>$_tmp1,'tabindex'=>"1"),$_smarty_tpl);?>

                        <?php if (!(($tmp = @$_smarty_tpl->tpl_vars['previousURL']->value)===null||$tmp==='' ? '' : $tmp)){?> <?php $_smarty_tpl->tpl_vars["previousURL"] = new Smarty_variable("/adminuser/index/", null, 0);?><?php }?> 
						<?php if ((($tmp = @$_smarty_tpl->tpl_vars['section']->value)===null||$tmp==='' ? '' : $tmp)!='profileEdit'){?>
							<?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
 
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>"cancel",'name'=>"cancelAdmin",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblCancel']),'href'=>($_smarty_tpl->tpl_vars['previousURL']->value),'tabindex'=>"1"),$_smarty_tpl);?>

						<?php }?>	
                         </div>
                    </div>
                <!--End:right-->
              </li>
            </ul>
          </div>
          <!--End:From Listing--> 
        </div>
        <!--End:Border 3--> 
      </div>
      <!--End:Border 2--> 
      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 </div>
    <!--End: left Block-->
    <div class="clear"></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['common_js']->value;?>
/validate.plugin.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=adminuser]').addClass('selected'); 
});

</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/adminuser.page.js"></script> 

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

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

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

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