<!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" />
			{assign var="userGroupID" value=$userGroupID|default:''}
			<title>{$language.lblAdmin} : {if $userGroupID==''} {$language.lblAddNewUsergroup}  {else}  {$language.lblEditUsergroup}	 {/if}</title>
			{include file="CommonStyles.tpl"}
			{include file="CommonCustomStyles.tpl"}
			{include file="CommonJavaScript.tpl"}
			<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" />
			<link rel="stylesheet" type="text/css" href="{$view_styles}/inner-formlisting.css" />
			<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
			</head><body>
			<div class="outer_container"> {include file='CommonTop.tpl'} 
			  <!--End:Header Container--> 
			  <!--*************************************************START CONTAINER SECTION*************************************************-->
			  <div class="content_container2 clearfix">
				{if $section|default:''!='profileEdit'}
				<div class="right-sidebar">
					<div class="side_wrapper"> 
					   <ul>
						<li>
							{html->anchor 
								priv_href="usergroup/index/" 
								href="usergroup/index/" 
								class="side_menu_a" 
								content="<strong>{$language.lblManageUsergroups}</strong> <br><span>{$language.lblManageUsergroupsInSystem}</span>" 
								title="{$language.lblAddNewUsergroup} "}
						</li>
					</div>
					  
				</div>
				{/if}
				<!--End: Right Block-->
				<div class="left_wrapper">
				{form->start 
					name="formUsergroup" 
					action="" 
					method="post"}
					
				  <div class="content_wrapper">
				     <noscript>
					  <div class="message_info">{$language.lblJsEnable} !!</div>
					  </noscript>
					  <div class="fixing_right space-t-l">{include file='ContentLanguageOptions.tpl'}</div>
					<h2>
					{if $userGroupID==''}
						{$language.lblAddNewUsergroup}	
					{else}			
						{$language.lblEditUsergroup}				
					{/if}
					</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">
								{$language.lblGroupName}
							</div>
							<!--End:Left-->
							<div class="rightside01"> 
								{form->textbox
									name="userGroupName" 
									class="textbox" 
									validate="required" 
									error="{$language.errGroupName}"} 
							</div>
							<!--End:right-->
						  </li>
						  
						<li class="clearfix">
						
							<div class="leftside01 mandatory">
								{$language.lblUserGroupKey}
							</div>
							<!--End:Left-->
							<div class="rightside01"> 
								{if $userGroupID>1 || $userGroupID==''}
									{form->textbox
										name="userGroupKey" 
										class="textbox" 
										validate="required~*isKey~*callback_checkgroupkeyexist" 
										error="{$language.errUserGroupKey}~*{$language.errGroupKeyValid}~*{$language.errGroupKeyExists}"} 
								{else}
									{$userGroupKey}
								{/if}
							</div>
							<!--End:right-->
						  </li>
						{*
						<li class="clearfix">
							<div class="leftside01 mandatory">
								{$language.lblGroupType}
							</div>
							<!--End:Left-->
							<div class="rightside01">
								{if $userGroupID>1 || $userGroupID==''}
									{form->select 
										name="userGroupType" 
										class="textbox" 
										caption="->{$language.lblSelect}"
										options="Customer" 
										validate="required" 
										error="{$language.errGroupType}"} 
								{else}
									{$userGroupType}
								{/if}

								
							</div>
							<!--End:right-->
						  </li>
						  
						  *}
	
						<li class="clearfix">
							<div class="leftside01 mandatory">
								{$language.lblStatus} 
							</div>
							<!--End:Left-->
							

						  <div class="rightside01">
							<div id="perioddiv">
							{if $userGroupID>1 || $userGroupID==''}
								{form->radio name="userGroupStatus" 
									class="customradio" options="Active->{$language.lblActive}~*Inactive->{$language.lblInactive}"  
									value="Active" }
							{else}
								{$userGroupStatus}
							{/if}
							</div>
						  </div>
						</li>
						
				
							
							<!--End:right-->
						  </li>
						
						  <li class="clearfix">
							<div class="submit-block clearfix"> 
									<span>  </span>
									<div class="leftside01"> </div>
									<div class="rightside01">	
									{form->submit 
										name="submitUsergroup" 
										class="curve-3" 
										value="{if $userGroupID==''}{$language.lblSave}{else}{$language.lblUpdate}{/if}" 
										tabindex="1"}
									{if !$previousURL|default:''} 
										{assign var="previousURL" value="/usergroup/index/"}
									{/if} 
										{$language.lblOr} 
										{html->anchor id="cancel" name="cancelAdmin" caption="{$language.lblCancel}" href="$previousURL" tabindex="1"}
									 </div>
								</div>
							<!--End:right-->
						  </li>
						</ul>
					  </div>
					  <!--End:From Listing--> 
					</div>
					<!--End:Border 3--> 
				  </div>
				  <!--End:Border 2--> 
				  {form->close} 
				  </div>
				<!--End: left Block-->
				<div class="clear"></div>
			  </div>
			  <!--End: left Block-->
			  <div class="clear"></div>
			</div>
			<!--*********************************************END CONTAINER SECTION******************************************************--> 
			<!--End:Content Container--> 
			{include file='CommonBottom.tpl'}
			</div>
			<!--End:Outer Container--> 
			{include file='CommonJavaScriptBottom.tpl'} 
			<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script> 
			<script type="text/javascript" src="{$view_javascript}/adminuser.page.js"></script> 
			<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script>
			{if $userGroupID==''}
			<script  type="text/javascript">
			 $(function(){
				 $("#perioddiv input").customInput('');
				 $('#userGroupName').blur(function(){
					var userGroupName =this.value;
					var userGroupKey =  $.trim(userGroupName).replace(/[^a-zA-Z0-9]+/g,"-").toLowerCase();
					$("#userGroupKey").val(userGroupKey);
				});
				});
			</script> 
			{/if}
			{form->basepath_script}
			{form->validate_script form='formUsergroup'}
			{html->messages_script id="common_message"}
			</body>
			</html>
		