<?php /* Smarty version Smarty-3.1.8, created on 2020-03-23 14:41:32
         compiled from "/home/agmc/beta/application/core/views/manage/standard/LanguageAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1669164455e73891cf14bc4-08307237%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3f3728baf6a0d63a5d8154ae18f2853b380d5462' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/LanguageAdd.tpl',
      1 => 1584879556,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1669164455e73891cf14bc4-08307237',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e73891d09da24_17701714',
  'variables' => 
  array (
    'language' => 0,
    'common_js' => 0,
    'view_styles' => 0,
    'view_javascript' => 0,
    'required_validate' => 0,
    'languageID' => 0,
    'listBrand' => 0,
    'brandID' => 0,
    'languageImage' => 0,
    'languageLogo' => 0,
    'LanguageLCIDstring' => 0,
    'views_path' => 0,
    'defaultLngID' => 0,
    'submit_button' => 0,
    'pageAction' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e73891d09da24_17701714')) {function content_5e73891d09da24_17701714($_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['lblSettings'];?>
</title>


<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery-migrate-1.4.1.js"></script>
<link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/popup.css" rel="stylesheet" type="text/css" media="screen" /> 
<script type="text/javascript">
var editImageTitle	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['lbleditImageTitle'];?>
";
var lblAlertOk='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertOk'];?>
';
var lblAlertCancel='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertCancel'];?>
';
var lblAlertYes='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertYes'];?>
';
var lblAlertNo='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertNo'];?>
';
var lblAlert='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlert'];?>
';
$(document).ready(function(){ 
 $('.div_delete_sub_languageImage').hide();
});
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/message.plugin.js"></script>
</head>

<body>
<?php $_smarty_tpl->tpl_vars["required_validate"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['required_validate']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<div class="popup-block">    
	   <div class="form_listing clearfix">
    <div id="common_message" ></div>
	<?php $_smarty_tpl->tpl_vars["languageID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['languageID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formLanguagesAdd",'id'=>"formLanguagesAdd",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

        <ul>
			<li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('style'=>"width:45%;",'class'=>"selectBx00 select",'name'=>"brandID",'options'=>$_smarty_tpl->tpl_vars['listBrand']->value,'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value).".errFranchisee",'value'=>$_smarty_tpl->tpl_vars['brandID']->value),$_smarty_tpl);?>

                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageName'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('tabindex'=>"1",'name'=>"languageName",'class'=>"textbox width_55",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLanguageName']),$_smarty_tpl);?>

                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageCode'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('maxlength'=>"4",'tabindex'=>"1",'class'=>"textbox width_55",'name'=>"languageCode",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLanguageCode']),$_smarty_tpl);?>

                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageLCIDstring'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('maxlength'=>"5",'tabindex'=>"1",'name'=>"LanguageLCIDstring",'class'=>"textbox width_55",'validate'=>"required~*isLCIDString",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errLanguageLCIDstring']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errValidLcidString'])),$_smarty_tpl);?>

                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageLocale'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"languageLocale",'class'=>"textbox width_55",'tabindex'=>"1",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLanguageLocale']),$_smarty_tpl);?>

                </div>
            </li>
			<li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageDirection'];?>
</strong></div>
                <div class="inner-right fixing_right">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"languageDirection",'class'=>"selectbox width_55",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>"ltr->LTR~*rtl->RTL"),$_smarty_tpl);?>

                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left">
                <strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageImage'];?>
</strong></div>
                <div class="inner-right fixing_right icon">
                 <span tabindex="5">
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>"languageImage",'width'=>"25",'path'=>"uploads/languages/",'file'=>(($tmp = @htmlspecialchars($_smarty_tpl->tpl_vars['languageImage']->value, ENT_QUOTES, 'UTF-8', true))===null||$tmp==='' ? '' : $tmp),'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLanguageImage'],'tabindex'=>"1",'size_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblMaximumFileSize'],'types_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblFileTypes']),$_smarty_tpl);?>

                 </span>
                 </div>
            </li>
			 <li class="clearfix">
                <div class="inner-left fixing_left">
                <strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblImage'];?>
</strong></div>
               <div class="inner-right fixing_right">
                 <span tabindex="5">
                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>"languageLogo",'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'path'=>"uploads/languages/logo/",'file'=>$_smarty_tpl->tpl_vars['languageLogo']->value,'size_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblMaximumFileSize'],'types_caption'=>$_smarty_tpl->tpl_vars['language']->value['lblFileTypes']),$_smarty_tpl);?>

                 </span>
               </div>
            </li>
			
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageTemplateFile'];?>
</strong><span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFrontEnd'];?>
(.xml)</span></div>
                <div class="inner-right fixing_right">
                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)===null||$tmp==='' ? '' : $tmp)==''){?>
                	<?php $_smarty_tpl->tpl_vars["required_validate"] = new Smarty_variable("required~*languageFileFrontEnd->isFileType->xml", null, 0);?>
                    <?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable('', null, 0);?>
                <?php }else{ ?>
                	<?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable((($tmp = @($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value).(".xml"))===null||$tmp==='' ? '' : $tmp), null, 0);?>
                <?php }?>
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload(array('name'=>"languageFileFrontEnd",'value'=>(($tmp = @((($_smarty_tpl->tpl_vars['views_path']->value)."/languages/").($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)).(".xml"))===null||$tmp==='' ? '' : $tmp),'tabindex'=>"1",'validate'=>$_smarty_tpl->tpl_vars['required_validate']->value,'error'=>(($_smarty_tpl->tpl_vars['language']->value['errLanguageFile']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errInvalidFileType'])),$_smarty_tpl);?>

                 <?php if ($_smarty_tpl->tpl_vars['languageID']->value){?>
                <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>("language/ajaxdownload/file/frontend/id/").($_smarty_tpl->tpl_vars['languageID']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblLanguageFileDownload'],'class'=>"button-link01",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblFrontEndDownload'],'tabindex'=>"1"),$_smarty_tpl);?>

                 <?php }?>
                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageTemplateFile'];?>
</strong><span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBusiness'];?>
(.xml)</span></div>
                <div class="inner-right fixing_right">
                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)===null||$tmp==='' ? '' : $tmp)==''){?>
                  <?php $_smarty_tpl->tpl_vars["required_validate"] = new Smarty_variable("required~*languageFileBusiness->isFileType->xml", null, 0);?>
                    <?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable('', null, 0);?>
                <?php }else{ ?>
                  <?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable((($tmp = @($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value).(".xml"))===null||$tmp==='' ? '' : $tmp), null, 0);?>
                <?php }?>
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload(array('name'=>"languageFileBusiness",'value'=>(($tmp = @((($_smarty_tpl->tpl_vars['views_path']->value)."/languages/").($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)).(".xml"))===null||$tmp==='' ? '' : $tmp),'tabindex'=>"1",'validate'=>$_smarty_tpl->tpl_vars['required_validate']->value,'error'=>(($_smarty_tpl->tpl_vars['language']->value['errLanguageFile']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errInvalidFileType'])),$_smarty_tpl);?>

                 <?php if ($_smarty_tpl->tpl_vars['languageID']->value){?>
                 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>("language/ajaxdownload/file/business/id/").($_smarty_tpl->tpl_vars['languageID']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblLanguageFileDownload'],'class'=>"button-link01",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblBusinessDownload'],'tabindex'=>"1"),$_smarty_tpl);?>

                 <?php }?>
                </div>
            </li>  
           
           
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageTemplateFile'];?>
</strong><span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBackEnd'];?>
(.xml)</span></div>
                <div class="inner-right fixing_right">
                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)===null||$tmp==='' ? '' : $tmp)==''){?>
                	<?php $_smarty_tpl->tpl_vars["required_validate"] = new Smarty_variable("required~*languageFile->isFileType->xml", null, 0);?>
                    <?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable('', null, 0);?>
                <?php }else{ ?>
                	<?php $_smarty_tpl->tpl_vars["filename"] = new Smarty_variable((($tmp = @($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value).(".xml"))===null||$tmp==='' ? '' : $tmp), null, 0);?>
                <?php }?>
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload(array('name'=>"languageFile",'value'=>(($tmp = @((($_smarty_tpl->tpl_vars['views_path']->value)."/languages/").($_smarty_tpl->tpl_vars['LanguageLCIDstring']->value)).(".xml"))===null||$tmp==='' ? '' : $tmp),'tabindex'=>"1",'validate'=>$_smarty_tpl->tpl_vars['required_validate']->value,'error'=>(($_smarty_tpl->tpl_vars['language']->value['errLanguageFile']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errInvalidFileType'])),$_smarty_tpl);?>

                 <?php if ($_smarty_tpl->tpl_vars['languageID']->value){?>
                 <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>("language/ajaxdownload/file/backend/id/").($_smarty_tpl->tpl_vars['languageID']->value),'title'=>$_smarty_tpl->tpl_vars['language']->value['lblLanguageFileDownload'],'class'=>"button-link01",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblBackEndDownload'],'tabindex'=>"1"),$_smarty_tpl);?>

                 <?php }?>
                </div>
            </li>
            <li class="clearfix">
                <div class="inner-left fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
</strong></div>
                <div class="inner-right fixing_right">
                	<div id="perioddiv">
                         <?php if ($_smarty_tpl->tpl_vars['languageID']->value!=$_smarty_tpl->tpl_vars['defaultLngID']->value){?>  
                         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('tabindex'=>"1",'name'=>"languageStatus",'class'=>"customradio",'options'=>"Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>"Active"),$_smarty_tpl);?>
   
                         <?php }else{ ?>
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('tabindex'=>"1",'name'=>"languageStatus",'class'=>"customradio",'options'=>"Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive']),'value'=>"Active"),$_smarty_tpl);?>
   
                           <?php }?>
                        </div>
                </div>
            </li>
            <li class="clearfix">
                <div class="submit-block clearfix textto_center">
                <span>&nbsp; </span>
                  	  <?php if ($_smarty_tpl->tpl_vars['languageID']->value){?>
                        	<?php $_smarty_tpl->tpl_vars["linkappend"] = new Smarty_variable((("id/").($_smarty_tpl->tpl_vars['languageID']->value)).("/"), null, 0);?>
                            <?php $_smarty_tpl->tpl_vars["submit_button"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblUpdate'], null, 0);?>
                      <?php }else{ ?>
                      		<?php $_smarty_tpl->tpl_vars["submit_button"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value['lblSave'], null, 0);?>
                      <?php }?>
                      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('tabindex'=>"1",'name'=>"submit",'class'=>"curve-3",'id'=>"submit",'value'=>$_smarty_tpl->tpl_vars['submit_button']->value),$_smarty_tpl);?>
 
                      <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
 
                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('id'=>"cancel",'tabindex'=>"1",'onclick'=>"top.location.reload();",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel']),$_smarty_tpl);?>

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

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

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

<?php if ($_smarty_tpl->tpl_vars['languageID']->value){?>
	<?php $_smarty_tpl->tpl_vars["pageAction"] = new Smarty_variable("edit", null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["pageAction"] = new Smarty_variable("add", null, 0);?>
<?php }?>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/languageAdd.page.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/uploadImage.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" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script>
<script type="text/javascript">
var pageAction="<?php echo $_smarty_tpl->tpl_vars['pageAction']->value;?>
";
var languageID="<?php echo $_smarty_tpl->tpl_vars['languageID']->value;?>
";
$(document).ready(function(){
	$("#brandID").change(function(){
		var id			=	$('#brandID').val();	
		if(pageAction=="edit" && languageID > 0) {
			window.location.href = GLOBAL_BASE_PATH+"/language/edit/id/"+languageID+"/brandID/"+ id+"/";
		}
	}); 
});
$(function(){
	 $('#perioddiv input').customInput('');
	});	
</script>
</body>
</html><?php }} ?>