<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 12:50:45
         compiled from "/home/agmc/beta/application/core/views/manage/standard/MenuItemAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5073606325e71e95fabbbf1-26079499%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e403b192a3d3a4621aa30b3d506aff658832f18b' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/MenuItemAdd.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5073606325e71e95fabbbf1-26079499',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e71e95fc51071_54164326',
  'variables' => 
  array (
    'menuItemID' => 0,
    'language' => 0,
    'view_styles' => 0,
    'resLanguageSelect' => 0,
    'view_javascript' => 0,
    'view_common_languages' => 0,
    'contentLangSelctdDet' => 0,
    'view_content_languageName' => 0,
    'view_common_languageImage' => 0,
    'view_host' => 0,
    'selContentLangImage' => 0,
    'selContentLang' => 0,
    'resCommonLanguages' => 0,
    'bannerprivilege' => 0,
    'menuResultItem' => 0,
    'blockprivilege' => 0,
    'resFrontendModules' => 0,
    'settingsRedirectUrl' => 0,
    'listBrand' => 0,
    'languageVar' => 0,
    'currentContentLanguageID' => 0,
    'specificLanguage' => 0,
    'resLanguageSelects' => 0,
    'parentItems' => 0,
    'resUserTypesList' => 0,
    'list' => 0,
    'imageName' => 0,
    'moduleKeyVar' => 0,
    'paramsValues' => 0,
    'imagePath' => 0,
    'parameters' => 0,
    'itemTypeSel' => 0,
    'publishFrom' => 0,
    'publishTo' => 0,
    'resBanner' => 0,
    'banner' => 0,
    'view_public_path' => 0,
    'settingsDateFormat' => 0,
    'listItemBanner' => 0,
    'itemBanner' => 0,
    'resBlocks' => 0,
    'blocks' => 0,
    'resItemBlocks' => 0,
    'itemBlocks' => 0,
    'itemDefLangs' => 0,
    'menuItemAction' => 0,
    'common_js' => 0,
    'sysKeys' => 0,
    'view_images' => 0,
    'paramsEncoded' => 0,
    'defmoduleID' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e71e95fc51071_54164326')) {function content_5e71e95fc51071_54164326($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/home/agmc/beta/library/template/plugins/modifier.date_format.php';
?><!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" /><?php $_smarty_tpl->tpl_vars["menuItemID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['menuItemID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditMenuItem'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewMenuItem'];?>
<?php }?></title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php $_smarty_tpl->tpl_vars["jqueryversion"] = new Smarty_variable('1.9', null, 0);?>
<?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/ui.daterangepicker.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/add-edit.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/colorbox.css" media="screen" />
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>


<style type="text/css">
.fileuploader_edit_section {display:none !important;}
</style>

<script>
    $(document).ready(function () {
     $(".caturl").hide();
     });
</script>
</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--> 
<!--***********************************************************************END HEADER CONTAINER******************************************************-->
<div class="content_container">
  <div class="content_wrapper">
    <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?><div class="fixing_right">

				<?php if ($_smarty_tpl->tpl_vars['resLanguageSelect']->value){?>
				 <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/language.plugin.js"></script>
				  <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
				 <div class="language-block-inner normal">						  
                                     <?php if ($_smarty_tpl->tpl_vars['contentLangSelctdDet']->value['languageID']>0){?>
                                         <?php $_smarty_tpl->tpl_vars["selContentLang"] = new Smarty_variable($_smarty_tpl->tpl_vars['contentLangSelctdDet']->value['languageName'], null, 0);?>
                                         <?php $_smarty_tpl->tpl_vars["selContentLangImage"] = new Smarty_variable($_smarty_tpl->tpl_vars['contentLangSelctdDet']->value['languageImage'], null, 0);?>
                                         <?php }else{ ?>
                                              <?php $_smarty_tpl->tpl_vars["selContentLang"] = new Smarty_variable($_smarty_tpl->tpl_vars['view_content_languageName']->value, null, 0);?>
                                              <?php $_smarty_tpl->tpl_vars["selContentLangImage"] = new Smarty_variable($_smarty_tpl->tpl_vars['view_common_languageImage']->value, null, 0);?>
                                             <?php }?>
						  <div class="flagbox"><img src="<?php echo $_smarty_tpl->tpl_vars['view_host']->value;?>
/public/uploads/languages/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['selContentLangImage']->value, ENT_QUOTES, 'UTF-8', true);?>
" width="14" height="11" alt="<?php echo $_smarty_tpl->tpl_vars['selContentLang']->value;?>
" /></div>
						  <div class="languagebox_head-inner"><?php echo $_smarty_tpl->tpl_vars['selContentLang']->value;?>
</div><span class="arw"></span> <span class="clse">x</span>				         
						   <div class="languageList-inner" id="languageDropdown">
							<ul>
							  <?php  $_smarty_tpl->tpl_vars["resCommonLanguages"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = false;
 $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resLanguageSelect']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resCommonLanguages"]->key => $_smarty_tpl->tpl_vars["resCommonLanguages"]->value){
$_smarty_tpl->tpl_vars["resCommonLanguages"]->_loop = true;
 $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["resCommonLanguages"]->key;
?>
							  <?php if ($_smarty_tpl->tpl_vars['selContentLang']->value!=$_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName']){?>
							  <li id="content_language_<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageID'];?>
" class="clearfix">
								<div class="flagbox-inner"><img src="<?php echo $_smarty_tpl->tpl_vars['view_host']->value;?>
/public/uploads/languages/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageImage'], ENT_QUOTES, 'UTF-8', true);?>
" width="14" height="11" alt="<?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName'];?>
" /></div>
								<div class="languagebox-inner"><?php echo $_smarty_tpl->tpl_vars['resCommonLanguages']->value['languageName'];?>
</div>
							  </li>
							  <?php }?>
							  <?php } ?>
							</ul>
						  </div>
						</div>
				  <?php }?>
				  <?php }?>
				</div><?php }?>
				<h2><?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditMenuItem'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewMenuItem'];?>
<?php }?></h2>
    <div id="common_message" ></div>
    <div class="tab-content-outer clearfix">
      <div class="left_block fixing_left">
        <div class="tab-block-01">
          <h2><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"custommenu/listitemdetails/",'href'=>"custommenu/listitemdetails/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblMenuItem']),$_smarty_tpl);?>
</h2>
        </div>
        <ul class="left-tab">
          <li class="sub first-item"><a href="javascript:void(0);" rel="basic-info" class="left-tab-a active"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicInfo'];?>
</a></li>        
		 <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?>
			<?php if ($_smarty_tpl->tpl_vars['bannerprivilege']->value){?>
				<li class="sub" style="<?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='singlepage'){?>display:none;<?php }?>"><a href="javascript:void(0);" rel="basic-info" class="left-tab-a"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBanners'];?>
</a></li> 
			<?php }?>
			<?php if ($_smarty_tpl->tpl_vars['blockprivilege']->value){?>
				<li class="sub" style="<?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='singlepage'){?>display:none;<?php }?>"><a href="javascript:void(0);" rel="basic-info" class="left-tab-a"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBlocks'];?>
</a></li>
			<?php }?>
            <li class="sub" style="<?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='singlepage'){?>display:none;<?php }?>"><a href="javascript:void(0);" rel="track"  class="left-tab-a"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSalesTracking'];?>
</a></li><?php }?>
        </ul>
      </div>
      <div class="right_block fixing_right">
         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmMenuItem",'method'=>"post"),$_smarty_tpl);?>

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

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

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

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

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

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

         <div id="basic-info-section" class="save-floating-section">
        <div class="cm-buttons-floating" id="menuSubmit">
          <div class="submit-position"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitMenuItem",'id'=>"submit",'class'=>"curve-3 button03",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave']),'tabindex'=>"1"),$_smarty_tpl);?>
 
            <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"custommenu/menuitems/",'href'=>"/custommenu/menuitems/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel']),$_smarty_tpl);?>
 </div>
        </div>
        <div class="cm-buttons"> </div>
        </div>
        <div class="tabpane" style="display:block;">
          <div class="tabpane_inner"> <span class="BreadCrump">
            <ul class="clearfix">
              <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"custommenu/listitemdetails/",'rel'=>'','content'=>($_smarty_tpl->tpl_vars['language']->value['lblMenuItems'])),$_smarty_tpl);?>
 &raquo; </li>
              <li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicInfo'];?>
</span></li>
            </ul>
            </span>
            <div class="form_listing">
              <ul class="levl-00">
                <li>
                  <h3><span><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->errors(array('name'=>'frmMenuItem'),$_smarty_tpl);?>
<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicInfo'];?>
</span></h3>
                </li>
                <li class="clearfix">
                  <div class="left_box">
                    <ul class="levl-01">
                      <li class="clearfix">
                        <div class="left01 mandatory "><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItemType'];?>
</div>
                        <div class="right01 fixing_right"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('tabindex'=>"1",'name'=>"menuItemType",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'content'=>$_smarty_tpl->tpl_vars['resFrontendModules']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errMenuItemType'],'onChange'=>"changeItemType();"),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="clearfix">
                        <div class="left01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItemTitle'];?>
</div>
                        <div class="right01 fixing_right"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('maxlength'=>"100",'id'=>"menuItemTitle",'name'=>"menuItemTitle",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['menuItemName'])===null||$tmp==='' ? '' : $tmp),'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errMenuItemTitle'],'class'=>"textbox",'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuItemKey'];?>
</div>
                        <div class="right01 fixing_right top-spc"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"menuItemKey",'name'=>"menuItemKey",'validate'=>"isUrlKey~*callback_checkItemKey",'class'=>"textbox",'tabindex'=>"1",'maxlength'=>"120",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errValidMenuItemKey']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errKeyAlreayExits']),'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['menuItemKey'])===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

                            <div id="redirectDiv" style="display:none">
                            <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?>
                            <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['settingsRedirectUrl']->value=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"redirectOption",'value'=>"RP",'checked'=>$_tmp1,'tabindex'=>"1",'disabled'=>"disabled"),$_smarty_tpl);?>

                            <?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermanentRedirect'];?>
	
                            <?php }?>
                            </div>
                        </div>
                      </li>
					  <li class="clearfix">
                        <div class="left01 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>
</div>
                        <div class="right01 fixing_right">
						  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select",'name'=>"brandID",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'options'=>$_smarty_tpl->tpl_vars['listBrand']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errFranchisee'],'tabindex'=>"1",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['brandID'])===null||$tmp==='' ? 0 : $tmp)),$_smarty_tpl);?>

						  </div>
                      </li>
                             <li class="clearfix AjaxSetCMSSourceUrl" style="<?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='singlepage'&&(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='customerservice'&&(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)!='singlecategory'){?>display:none;<?php }?>">  
                               <div class="right01 fixing_right"> 
                                <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['set_cms_homepage'])===null||$tmp==='' ? '0' : $tmp)=='1'){?><?php echo "True";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"set_cms_homepage",'value'=>"1",'checked'=>$_tmp2,'tabindex'=>"1"),$_smarty_tpl);?>
 				                       
                              <label for="set_cms_homepage"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSetCategoryURL'];?>
</label> 
				</div>
                   
                          </li>
                       <li class="clearfix">
					 <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDefaultUrl'];?>
</div>
                       <div class="right01 fixing_right">
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('maxlength'=>"100",'id'=>"default_url",'name'=>"default_url",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['default_url'])===null||$tmp==='' ? '' : $tmp),'class'=>"textbox",'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                   
                       </li>
                     
                       <li class=" clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDescription'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01">
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('id'=>"description",'name'=>"description",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['menuItemDesc'])===null||$tmp==='' ? '' : $tmp),'maxlength'=>"200",'onkeyup'=>"return ismaxlength(this)",'onchange'=>"return ismaxlength(this)",'class'=>"length0_50pers",'rows'=>"4",'cols'=>"4",'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                        <!--End:right--> 
                      </li>
                       <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
                        <li class="clearfix">

                                <div class="left01">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguages'];?>
 
                                </div>						
                                <div class="right01 ">
                                        <?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['availableLang'])===null||$tmp==='' ? '' : $tmp)==0||(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['availableLang'])===null||$tmp==='' ? '' : $tmp)==''){?>
                                        <?php $_smarty_tpl->tpl_vars["languageVar"] = new Smarty_variable("Yes", null, 0);?> 
                                        <?php }else{ ?>
                                        <?php $_smarty_tpl->tpl_vars["languageVar"] = new Smarty_variable("No", null, 0);?> 
                                        <?php }?>
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"langSelect",'class'=>"AllLangOptions",'options'=>"Yes->".($_smarty_tpl->tpl_vars['language']->value['lblCommonLanguage'])."~*No->".($_smarty_tpl->tpl_vars['language']->value['lblSpecificLanguage']),'value'=>$_smarty_tpl->tpl_vars['languageVar']->value),$_smarty_tpl);?>

                                </div>
                        </li>											 

                        <li class="selection clearfix langSpecific">
                                <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguages'];?>
</div>
                                <div class="right01">

                                    <div class="div-languageSpecific" id="specificLangDiv">
                            <ul class="levl-03 blogLanguage"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"currentContentLanguageID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['currentContentLanguageID']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
												
                              <?php  $_smarty_tpl->tpl_vars["specificLanguage"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["specificLanguage"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['view_common_languages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["specificLanguage"]->key => $_smarty_tpl->tpl_vars["specificLanguage"]->value){
$_smarty_tpl->tpl_vars["specificLanguage"]->_loop = true;
?>
                              <li class="clearfix"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('tabindex'=>"3",'name'=>"selectedLang",'class'=>"cntntlanguage",'options'=>((($_smarty_tpl->tpl_vars['specificLanguage']->value[0]).("->")).("&nbsp;")).($_smarty_tpl->tpl_vars['specificLanguage']->value[1]),'value'=>(($tmp = @$_smarty_tpl->tpl_vars['resLanguageSelects']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
</li>
                                  <?php } ?>
                                 <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?><span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectContentLanguage'];?>
</span>                    
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hiddenParentLangCheck",'value'=>"0"),$_smarty_tpl);?>
                          
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"checkParentLang",'validate'=>"hiddenParentLangCheck->isequal->1~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errParentMenuItemLanguageChange']),$_smarty_tpl);?>
 
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hiddenLangCheck",'value'=>"0"),$_smarty_tpl);?>

                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"checkContentLang",'validate'=>"hiddenLangCheck->isequal->1~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errMenuWithLanguageNotExists']),$_smarty_tpl);?>
             
			<?php }?> 
                            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"checkLangSelect",'validate'=>"langSelect->isequal->No~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errLanguage']),$_smarty_tpl);?>
                                     
                            </ul>

                       </div>  													
                            </div>
                    </li>
                    <?php }?>
                     
                      
                      <li class="clearfix">
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblParentItem'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('tabindex'=>"1",'name'=>"parent",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['parentID'])===null||$tmp==='' ? '' : $tmp),'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblRootLevel']),'content'=>(($tmp = @$_smarty_tpl->tpl_vars['parentItems']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
 </div>
                        <!--End:right--> 
                      </li>
                      <li class="clearfix">
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAccess'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01">
                          <select multiple="multiple" tabindex="1"  id="access" name="access[]">
                            
                              <?php  $_smarty_tpl->tpl_vars["list"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["list"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resUserTypesList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["list"]->key => $_smarty_tpl->tpl_vars["list"]->value){
$_smarty_tpl->tpl_vars["list"]->_loop = true;
?> 
                                      
                            <option value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[0])===null||$tmp==='' ? '' : $tmp);?>
" <?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[3])===null||$tmp==='' ? '' : $tmp);?>
 ><?php echo (($tmp = @$_smarty_tpl->tpl_vars['list']->value[1])===null||$tmp==='' ? '' : $tmp);?>
</option>
                            
                              <?php } ?>  
                          
                          </select>
                        </div>
																		
                      </li>
                      <!--End:right-->
                      <li class="clearfix">														
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuIcon'];?>

                          <div class="clear"></div>
						  </div>
                        <div class="right01 icon"><span tabindex="1"> 
                                 <?php $_smarty_tpl->tpl_vars["moduleKeyVar"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
                                 <?php $_smarty_tpl->tpl_vars["imageName"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['imageName']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
                          <?php if (($_smarty_tpl->tpl_vars['moduleKeyVar']->value=='singlecategory')&&(isset($_smarty_tpl->tpl_vars['paramsValues']->value['showSectionImage'])&&$_smarty_tpl->tpl_vars['paramsValues']->value['showSectionImage']=='Yes')){?>
                             <?php $_smarty_tpl->tpl_vars["imagePath"] = new Smarty_variable("uploads/product-category/", null, 0);?>
                          <?php }else{ ?>
                              <?php $_smarty_tpl->tpl_vars["imagePath"] = new Smarty_variable("uploads/menus/menu-items/", null, 0);?>
                          <?php }?>
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>"menuIcon",'width'=>25,'height'=>20,'path'=>$_smarty_tpl->tpl_vars['imagePath']->value,'file'=>(($tmp = @$_smarty_tpl->tpl_vars['imageName']->value)===null||$tmp==='' ? '' : $tmp),'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['msgimageDelConfirm']),'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="left01 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01">
                          <div id="perioddiv"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"menuItemStatus",'class'=>"customradio",'options'=>((("Active->").($_smarty_tpl->tpl_vars['language']->value['lblActive'])).("~*Inactive->")).($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['status'])===null||$tmp==='' ? 'Active' : $tmp),'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                        </div>
                        <!--End:right--> 
                      </li>
                    </ul>										
                  </div>										
                  <div class="right_box">
                    <ul class="levl-01">
                        <li class="AjaxLinkDiv clearfix" style="<?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['moduleKey'])===null||$tmp==='' ? '' : $tmp)=='text'){?>display:none;<?php }?>">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLink'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"link",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['itemLink'])===null||$tmp==='' ? '' : $tmp),'class'=>"textbox",'tabindex'=>"1"),$_smarty_tpl);?>

						<span class="showGenerateCatalogLink hide">
						<br/><br/>
						<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['menuItemID']->value)===null||$tmp==='' ? 0 : $tmp);?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"ajax/generatecataloglink/?id=link&itemID=".$_tmp3,'id'=>"generateCatalogLink",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblImportCatUrl']),'title'=>($_smarty_tpl->tpl_vars['language']->value['lblGenerateCatalogLinks']),'class'=>"linkbtnt01"),$_smarty_tpl);?>

						</span>
						</div>
                        <!--End:right--> 
                      </li>
                     
                       <li class="clearfix" id="mainSettings" style="<?php if ((($tmp = @count($_smarty_tpl->tpl_vars['parameters']->value))===null||$tmp==='' ? '' : $tmp)==0){?>display:none<?php }?>">
                 <ul class="levl-01" id="reqSettings"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>'itemTypeSel','value'=>(($tmp = @$_smarty_tpl->tpl_vars['itemTypeSel']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

                    <?php echo $_smarty_tpl->getSubTemplate ('AjaxMenuItemSettings.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                    </ul> 
                </li>
                      <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['publishFrom']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp4=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["publishFrom"] = new Smarty_variable($_tmp4, null, 0);?>
                      <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['publishTo']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp5=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["publishTo"] = new Smarty_variable($_tmp5, null, 0);?>
                      <li class="clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>
 </div>
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"publishFrom",'tabindex'=>"1",'class'=>"date_picker_field",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate']),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>
 </div>
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"publishTo",'tabindex'=>"1",'class'=>"date_picker_field",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate']),$_smarty_tpl);?>

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

                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"StartEndDatecheck",'validate'=>"hiddenStartEndDate->isequal->1~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errStartEndDate']),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="AjaxLinkDiv clearfix">
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTarget'];?>
 </div>
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('tabindex'=>"1",'name'=>"target",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['target'])===null||$tmp==='' ? '' : $tmp),'options'=>((((("_blank->").($_smarty_tpl->tpl_vars['language']->value['lblBlank'])).("~*_self->")).($_smarty_tpl->tpl_vars['language']->value['lblSelf'])).("~*_parent->")).($_smarty_tpl->tpl_vars['language']->value['lblParent']),'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect'])),$_smarty_tpl);?>
 </div>
                      </li>
                    </ul>
                  </div>
                </li>
                <li>
                  <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdvancedSettings'];?>
</span></h3>
                </li>
                <li class="clearfix">
                  <div class="left_box">
                    <ul class="levl-01">
                      <li class="clearfix">
                        <div class="left01"> </div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['showDesc'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp6=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showDesc",'value'=>"Yes",'checked'=>$_tmp6,'tabindex'=>"1"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowDescIntroText'];?>
 </div>
                        <!--End:right--> 
                      </li>
                      <li class="AjaxLinkDiv selection clearfix">
                        <div class="left01"></div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['descLinkable'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp7=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"descLinkable",'value'=>"Yes",'checked'=>$_tmp7,'tabindex'=>"1"),$_smarty_tpl);?>
  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowDescriptionLink'];?>
 </div>
                        <!--End:right--> 
                      </li>
                      <li class="selection clearfix">
                        <div class="left01"></div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['ShowTitle'])===null||$tmp==='' ? '' : $tmp)=='No'){?><?php echo "True";?><?php }?><?php $_tmp8=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showTitle",'value'=>"No",'checked'=>$_tmp8,'tabindex'=>"1"),$_smarty_tpl);?>
  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblHideTitle'];?>
 </div>
                        <!--End:right--> 
                      </li>
                       <li class="AjaxLinkDiv selection clearfix">
                        <div class="left01"></div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['showBreadCrumb'])===null||$tmp==='' ? '' : $tmp)=='No'){?><?php echo "True";?><?php }?><?php $_tmp9=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showBreadCrumb",'value'=>"No",'checked'=>$_tmp9,'tabindex'=>"1"),$_smarty_tpl);?>
  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblHideBreadCrumb'];?>
 </div>
                        <!--End:right--> 
                      </li>
                    </ul>
                  </div>
                </li>
                <li>
                  <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lbllinkTypeOptions'];?>
</span></h3>
                </li>
                <li class="clearfix">
                  <div class="left_box">
                    <ul class="levl-01">
                      <li class="selection clearfix">
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLinkCssStyle'];?>
</div>
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"cssStyle",'tabindex'=>"1",'maxlength'=>"100",'class'=>"textbox",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['cssStyle'])===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="selection clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowIcon'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['showIcon'])===null||$tmp==='' ? '' : $tmp)){?><?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['showIcon'];?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp10=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showIcon",'class'=>"customradio",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblAlertYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblAlertNo']),'value'=>$_tmp10,'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                        <!--End:right--> 
                      </li>
                      <li class="AjaxLinkDiv selection clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblIconLinkable'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php ob_start();?><?php if ((($tmp = @$_smarty_tpl->tpl_vars['menuResultItem']->value['iconLinkable'])===null||$tmp==='' ? '' : $tmp)){?><?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['iconLinkable'];?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp11=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"iconLinkable",'class'=>"customradio",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblAlertYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblAlertNo']),'value'=>$_tmp11,'tabindex'=>"1"),$_smarty_tpl);?>
 </div>
                        <!--End:right--></li>
                    </ul>
                  </div>
                </li>
                             <li>
                  <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDetails'];?>
</span></h3>
                </li>
                <li class="clearfix">
                  <div class="left_box">
                    <ul class="levl-01">
                      <li class="selection clearfix">
                        <div class="left01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaTitle'];?>
</div>
                        <div class="right01">  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('tabindex'=>"1",'name'=>"metaTitle",'value'=>($_smarty_tpl->tpl_vars['menuResultItem']->value['metaTitle']),'class'=>"textbox"),$_smarty_tpl);?>
 </div>
                      </li>
                      <li class="selection clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaKeyword'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('tabindex'=>"1",'name'=>"metaKeywords",'value'=>($_smarty_tpl->tpl_vars['menuResultItem']->value['metaKeywords']),'class'=>"text-area-01",'cols'=>"4",'rows'=>"4"),$_smarty_tpl);?>
 </div>
                        <!--End:right--> 
                      </li>
                      <li class=" selection clearfix">
                        <div class="left01"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDescription'];?>
 </div>
                        <!--End:Left-->
                        <div class="right01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('tabindex'=>"1",'name'=>"metaDescription",'value'=>($_smarty_tpl->tpl_vars['menuResultItem']->value['metaDescription']),'class'=>"text-area-01",'cols'=>"4",'rows'=>"4"),$_smarty_tpl);?>
 </div>
                        <!--End:right--></li>
                    </ul>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </div>
		<?php if ((($tmp = @$_smarty_tpl->tpl_vars['bannerprivilege']->value)===null||$tmp==='' ? '' : $tmp)){?>
        <div class="tabpane" style="display:none;">
          <div class="tabpane_inner"> <span class="BreadCrump">
            <ul class="clearfix">
              <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"custommenu/listitemdetails/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblMenuItems']),$_smarty_tpl);?>
 &raquo; </li>
              <li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblManageBanner'];?>
</span></li>
            </ul>
            </span>
            <div class="form_listing">
              <ul class="levl-00">
                <li>
                  <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectBanners'];?>
</span></h3>
                </li>
                <li class="selection clearfix">
                 <div class="pane01 form_listing">
                <table width="100%" border="0" cellspacing="2" cellpadding="0">
                  <tr>
                    <td align="left" valign="middle" class="leftpane" >
                    <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDragBannersRight'];?>

                    </td>
                    <td rowspan="2" align="left" valign="middle" class="midpane">&nbsp;</td>
                    <td align="left" valign="middle" class="rightpane"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectedBanners'];?>
</td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><div class="drop-div">
                        <ul id="draggable" class="banner_left connectedSortable">
                        <?php  $_smarty_tpl->tpl_vars["banner"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["banner"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resBanner']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["banner"]->key => $_smarty_tpl->tpl_vars["banner"]->value){
$_smarty_tpl->tpl_vars["banner"]->_loop = true;
?>
                          <li class="clearfix" data-id="<?php echo $_smarty_tpl->tpl_vars['banner']->value['bannerID'];?>
"> 
                              <?php if ($_smarty_tpl->tpl_vars['banner']->value['bannerDisplayType']=='Image'){?>
                          	<img style="float:left;padding-right:5px;" src='<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['banner']->value['bannerImage'];?>
' width='45'	height='40'/>
                                <?php }else{ ?>
                                    <img style="float:left;padding-right:5px;" width='45' height='40'/>
                                    <?php echo $_smarty_tpl->tpl_vars['banner']->value['bannerSwf'];?>

                                    <?php }?>
                            <span class='banner_delete remove'  style='display:none;'>x</span>
                            <div class="title"><?php echo $_smarty_tpl->tpl_vars['banner']->value['bannerTitle'];?>
</div>
                            <div style="font-size:12px;">
                            <?php if ($_smarty_tpl->tpl_vars['banner']->value['bannerStartTime']&&$_smarty_tpl->tpl_vars['banner']->value['bannerStartTime']!='0000-00-00 00:00:00'){?> 
                            	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>
 : <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['banner']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>

                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['banner']->value['bannerStartTime']&&$_smarty_tpl->tpl_vars['banner']->value['bannerStartTime']!='0000-00-00 00:00:00'&&$_smarty_tpl->tpl_vars['banner']->value['bannerEndTime']&&$_smarty_tpl->tpl_vars['banner']->value['bannerEndTime']!='0000-00-00 00:00:00'){?> 
                            	 - 
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['banner']->value['bannerEndTime']&&$_smarty_tpl->tpl_vars['banner']->value['bannerEndTime']!='0000-00-00 00:00:00'){?>
                            	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>
 : <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['banner']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>
 
                            <?php }?>
                            
                            
                            </div>
                          </li>
                          <?php } ?>
                          
                        </ul>
                      </div>
                   </td>
                   <td align="left" valign="top"><div class="drop-div">
                        <ul id="sortable1" class='banner_right connectedSortable'>
                        <?php  $_smarty_tpl->tpl_vars["itemBanner"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["itemBanner"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listItemBanner']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["itemBanner"]->key => $_smarty_tpl->tpl_vars["itemBanner"]->value){
$_smarty_tpl->tpl_vars["itemBanner"]->_loop = true;
?>
                            <li class="clearfix" data-id="<?php echo $_smarty_tpl->tpl_vars['itemBanner']->value['bannerID'];?>
" itembannerid="<?php echo $_smarty_tpl->tpl_vars['itemBanner']->value['ItemBannerID'];?>
"> 
                                 <?php if ($_smarty_tpl->tpl_vars['itemBanner']->value['bannerDisplayType']=='Image'){?>
                            	<img style="float:left;padding-right:5px;" src='<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/banner/thumb/<?php echo $_smarty_tpl->tpl_vars['itemBanner']->value['bannerImage'];?>
' width='45' height='40'/>
                                <?php }else{ ?>
                                    <img style="float:left;padding-right:5px;" width='45' height='40'/><?php echo $_smarty_tpl->tpl_vars['itemBanner']->value['bannerSwf'];?>

                                    <?php }?>
                                <span class='banner_delete remove'  style='display:none;'>x</span>
                                <div class="title"><?php echo $_smarty_tpl->tpl_vars['itemBanner']->value['bannerTitle'];?>
</div>
                                <div style="font-size:12px;">
                                <?php if ($_smarty_tpl->tpl_vars['itemBanner']->value['bannerStartTime']&&$_smarty_tpl->tpl_vars['itemBanner']->value['bannerStartTime']!='0000-00-00 00:00:00'){?> 
                               	 	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>
 :  <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['itemBanner']->value['bannerStartTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>
 
                                <?php }?>
                                 <?php if ($_smarty_tpl->tpl_vars['itemBanner']->value['bannerStartTime']&&$_smarty_tpl->tpl_vars['itemBanner']->value['bannerStartTime']!='0000-00-00 00:00:00'&&$_smarty_tpl->tpl_vars['itemBanner']->value['bannerEndTime']&&$_smarty_tpl->tpl_vars['itemBanner']->value['bannerEndTime']!='0000-00-00 00:00:00'){?> 
                            	 - 
                            	<?php }?>
                                <?php if ($_smarty_tpl->tpl_vars['itemBanner']->value['bannerEndTime']&&$_smarty_tpl->tpl_vars['itemBanner']->value['bannerEndTime']!='0000-00-00 00:00:00'){?>
                                	<?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>
 :  <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['itemBanner']->value['bannerEndTime'],$_smarty_tpl->tpl_vars['settingsDateFormat']->value);?>
  
                                 <?php }?>
                                </div>
                                 
                            </li>
                           <?php } ?>
                        </ul>
                      </div>
                   </td>
                  </tr>
                </table>
              </div>
                </li>
              </ul>
            </div>
          </div>
        </div>
		<?php }?>
		<?php if ((($tmp = @$_smarty_tpl->tpl_vars['blockprivilege']->value)===null||$tmp==='' ? '' : $tmp)){?>
        <div class="tabpane" style="display:none;">
          <div class="tabpane_inner"> <span class="BreadCrump">
            <ul class="clearfix">
              <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"custommenu/listitemdetails/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblMenuItems']),$_smarty_tpl);?>
 &raquo; </li>
              <li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblManageStaticBlocks'];?>
</span></li>
            </ul>
            </span>
            <div class="form_listing">
              <ul class="levl-00">
                <li>
                  <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectBlocks'];?>
</span></h3>
                </li>
                <li class="selection clearfix">
                 <div class="pane01 form_listing">
                <table width="100%" border="0" cellspacing="2" cellpadding="0">
                  <tr>
                    <td align="left" valign="middle" class="leftpane">
                    <?php echo $_smarty_tpl->tpl_vars['language']->value['lblDragBlocksRight'];?>

                    </td>
                    <td rowspan="2" align="left" valign="middle" class="midpane">&nbsp;</td>
                    <td align="left" valign="middle" class="rightpane"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectedBlocks'];?>
</td>
                  </tr>
                  <tr>
                    <td align="left" valign="top">
                     <div class="drop-div">
                        <ul id="draggable"  class="static_block_left connectedSortable">
                            <?php  $_smarty_tpl->tpl_vars["blocks"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["blocks"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resBlocks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["blocks"]->key => $_smarty_tpl->tpl_vars["blocks"]->value){
$_smarty_tpl->tpl_vars["blocks"]->_loop = true;
?>
                              <li data-id="<?php echo $_smarty_tpl->tpl_vars['blocks']->value['blockID'];?>
"> 
                                <span class='static_block_delete remove'  style='display:none;'>x</span>
                                <div class="title"><?php echo $_smarty_tpl->tpl_vars['blocks']->value['blockTitle'];?>
</div>
                              </li>
                             <?php } ?>
                        </ul>
                      </div>
                    </td>
                    <td align="left" valign="top">
                      <div class="drop-div">
                        <ul id="sortable1" class="static_block_right connectedSortable">
                          <?php  $_smarty_tpl->tpl_vars["itemBlocks"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["itemBlocks"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resItemBlocks']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["itemBlocks"]->key => $_smarty_tpl->tpl_vars["itemBlocks"]->value){
$_smarty_tpl->tpl_vars["itemBlocks"]->_loop = true;
?>
                            <li class="clearfix" data-id="<?php echo $_smarty_tpl->tpl_vars['itemBlocks']->value['blockID'];?>
" itemblockid="<?php echo $_smarty_tpl->tpl_vars['itemBlocks']->value['itemBLockID'];?>
"> 
                              <!--	<a href="javascript:;" class="remove">x</a>-->
                                <span class='static_block_delete remove'  style='display:none;'>x</span>
                                <div class="title"><?php echo $_smarty_tpl->tpl_vars['itemBlocks']->value['blockTitle'];?>
</div>
                                
                            </li>
                          <?php } ?> 
                        </ul>
                     </div>
                   </td>
                  </tr>
                </table>
              </div>
                </li>
              </ul>
            </div>
          </div>
        </div>
        <?php }?>
         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

<div  class="tabpane" style="display:none;">
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->errors(array('form'=>"formTracking"),$_smarty_tpl);?>

     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formTracking",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>

      <div id="track-section" class="save-floating-section">
        <div class="cm-buttons-floating trackingSubmit" id="trackingSubmit"> 
                 <div class="submit-position ">
                 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitTracking",'id'=>"submitTracking",'class'=>"curve-3 button03",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSaveTracking'])),$_smarty_tpl);?>
 
                 <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"custommenu/menuitems/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel']),$_smarty_tpl);?>

              </div> 
             </div>
              <div class="cm-buttons trackingSubmit"> 
              </div>
              </div>
            <div class="tabpane_inner">
              <span class="BreadCrump">
                <ul class="clearfix">
                  <li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"custommenu/listitemdetails/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblMenuItems']),$_smarty_tpl);?>
 &raquo; </li>
                  <li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblManageTracking'];?>
</span></li>
                </ul>
                </span>
              <div class="form_listing"> 
                <ul class="levl-00">
                  <li> <h3><span>
                  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddRemarketingCode'];?>
 / <?php echo $_smarty_tpl->tpl_vars['language']->value['lblConversionTracking'];?>

                  </span></h3></li>
                  <li class="selection clearfix">
                  <div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRemarketingStart'];?>

                  <span class="small-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTrackingMultipleCode'];?>
</span></div>
                  <!--End:Left-->
                  <div class="right1"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('maxlength'=>"200",'name'=>"remarketingCodeStart",'class'=>"width-54per",'rows'=>"4",'cols'=>"50"),$_smarty_tpl);?>
 </div>
                  <!--End:right-->
                  </li>
                  <li class="selection clearfix">
                  <div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblRemarketingEnd'];?>

                  <span class="small-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTrackingMultipleCode'];?>
</span></div>
                  <!--End:Left-->
                  <div class="right1"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('maxlength'=>"200",'name'=>"remarketingCodeEnd",'class'=>"width-54per",'rows'=>"4",'cols'=>"50"),$_smarty_tpl);?>
</div>
                  <!--End:right-->
                  </li>
                  <li class="selection clearfix">
                  <div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblConversionCode'];?>

                  <span class="small-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTrackingMultipleCode'];?>
</span></div>
                  <!--End:Left-->
                  <div class="right1"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('maxlength'=>"200",'name'=>"conversionCode",'class'=>"width-54per",'rows'=>"4",'cols'=>"50"),$_smarty_tpl);?>
</div>
                  <!--End:right-->
                  </li>
                  </ul>
                  </div>
                  </div>
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

                  </div>
                  </div>
      <!--End:Border 2--> 
    </div>
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?>
  <?php $_smarty_tpl->tpl_vars["itemDefLangs"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['itemDefLangs']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
  <?php }?> 
  <?php $_smarty_tpl->tpl_vars["menuItemAction"] = new Smarty_variable($_smarty_tpl->tpl_vars['menuItemAction']->value, null, 0);?> 
  </div>
  <!--End:Content Container--> 
  <?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
  <?php echo $_smarty_tpl->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

  </div>
<!--End:Outer Container--> 
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor_script(array(),$_smarty_tpl);?>

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

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

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

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>
 
<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['common_js']->value;?>
/uploadImage.plugin.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custommenu.page.js"></script> 

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery-ui-timepicker-addon.js"></script> 
<script  type="text/javascript">
var menuItemAction = '<?php echo $_smarty_tpl->tpl_vars['menuItemAction']->value;?>
';
var sysKeys = '<?php echo $_smarty_tpl->tpl_vars['sysKeys']->value;?>
';
var selmoduleID = '';

 $(function(){
	 $("#perioddiv input").customInput('');
	});
	$( "#sortable1, #sortable2" ).sortable({
			connectWith: ".connectedSortable",
		}).disableSelection();
	
	

var lblSelect="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelect'];?>
";
var lblRootLevel="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblRootLevel'];?>
";
var languageMismatchRollback="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageMismatchSortingRollBacked'];?>
";
var languageMismatch="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguageMismatch'];?>
";
var SelectMenuItemTypeDetails = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectMenuItemTypeDetails'];?>
";
var defImagePath ='<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
';
 var settingsRedirectUrl = '<?php echo (($tmp = @$_smarty_tpl->tpl_vars['settingsRedirectUrl']->value)===null||$tmp==='' ? '' : $tmp);?>
';
</script> 
 <?php if ($_smarty_tpl->tpl_vars['menuItemID']->value){?>
     <script  type="text/javascript">
        var paramsEncoded = '<?php echo $_smarty_tpl->tpl_vars['paramsEncoded']->value;?>
';
        var selmoduleID = '<?php echo $_smarty_tpl->tpl_vars['defmoduleID']->value;?>
';
        var itemDefLangs = '<?php echo $_smarty_tpl->tpl_vars['itemDefLangs']->value;?>
';
        var children = '<?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['children'];?>
';
        var orderchilds = '<?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['orderchilds'];?>
';
        var orderchildsLanguages = '<?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['orderchildsLanguages'];?>
';
        var childrenLanguages = '<?php echo $_smarty_tpl->tpl_vars['menuResultItem']->value['childrenLanguages'];?>
';
     </script> 
     <?php }?>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/menuItemBlocks.page.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/menuItemBanners.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" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custommenuitem.page.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function () {
        changeItemType();
	$(document).on("click","ul.left-tab>li>a",function () {
        $("ul.left-tab>li>a").removeClass("active");
        $(this).addClass("active");
		var thisIndex = $("ul.left-tab>li>a").index(this);
        $(".tabpane").hide();
        
        $(".tabpane:eq(" + thisIndex + ")").show();
		setActiveTabSaveButton();
		});
setActiveTabSaveButton();
});
function changeItemType() {
           if(($('select[name="menuItemType"] :selected').val() == 46 ) || ($('select[name="menuItemType"] :selected').val() == 9))
                   $('.caturl').show();
            else 
                   $('.caturl').hide();
        };
function setActiveTabSaveButton()
{
	var thisRel =   $(".left-tab li a.active").attr("rel");
	var cmButtonsFloating = $("#"+thisRel+"-section").children(".cm-buttons-floating");
	var cmButtons = $("#"+thisRel+"-section").children(".cm-buttons");
	$.scrollPane({
			floating: cmButtonsFloating,
			fixed: cmButtons,
			padding: 71
			});
	$.fn.hasScrollBar = function()
	{
		var thisRel =   $(".left-tab li a.active").attr("rel");
		toggleSaveButton(thisRel);
	}
	var thisRel =   $(".left-tab li a.active").attr("rel");
	toggleSaveButton(thisRel);
}
function toggleSaveButton(thisRel)
{
	$(".save-floating-section").hide();
	$("#"+thisRel+"-section").show();
}

$(document).ready(function(){
	$("#generateCatalogLink").colorbox({iframe:true, width:"80%", height:"80%"});
});	

</script>
<script type="text/javascript">

$(document).ready(function(){
	$("#generateCatalogLink").colorbox({iframe:true, width:"80%", height:"80%"});
});	

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