<?php /* Smarty version Smarty-3.1.8, created on 2020-05-12 17:01:55
         compiled from "/home/agmc/beta/application/core/views/manage/standard/ContentAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5008037945eba9e433bc338-27135749%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8988e7f2b3492d8f7a134ed0f6871b28e7369807' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/ContentAdd.tpl',
      1 => 1589195807,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5008037945eba9e433bc338-27135749',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'contentID' => 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,
    'versionID' => 0,
    'publishVersionID' => 0,
    'modifiedByUser' => 0,
    'modifiedUserStatus' => 0,
    'adminname' => 0,
    'createAdminStatus' => 0,
    'modifiedDate' => 0,
    'date_format' => 0,
    'versionCreatedDate' => 0,
    'contentCreatedDate' => 0,
    'resVersionList' => 0,
    'versionList' => 0,
    'key' => 0,
    'pubVersionID' => 0,
    'contentStatus' => 0,
    'keylist' => 0,
    'editprivilage' => 0,
    'alleditPrivilege' => 0,
    'owneditPrivilege' => 0,
    'userID' => 0,
    'grpeditPrivilege' => 0,
    'typeID' => 0,
    'revertPrivilege' => 0,
    'trashprivilage' => 0,
    'global_http_url' => 0,
    'previewUrl' => 0,
    'listBrand' => 0,
    'contentUrlKey' => 0,
    'settingsRedirectforurl' => 0,
    'formPrivilege' => 0,
    'resultForm' => 0,
    'contentList' => 0,
    'forms' => 0,
    'selectedForms' => 0,
    'currentLCIDstring' => 0,
    'languages' => 0,
    'languageVar' => 0,
    'currentContentLanguageID' => 0,
    'specificLanguage' => 0,
    'resLanguageSelects' => 0,
    'resListCustomerGroup' => 0,
    'list' => 0,
    'draftPrivilege' => 0,
    'publishPrivilege' => 0,
    'versionStatus' => 0,
    'actionList' => 0,
    'status' => 0,
    'createdBy' => 0,
    'mainAdminID' => 0,
    'adminUserID' => 0,
    'contentPublishFrom' => 0,
    'contentPublishTo' => 0,
    'articleAttribs' => 0,
    'publishFrom' => 0,
    'publishTo' => 0,
    'sysKeys' => 0,
    'common_js' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5eba9e4365fc51_84404346',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5eba9e4365fc51_84404346')) {function content_5eba9e4365fc51_84404346($_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["contentID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['contentID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php if ($_smarty_tpl->tpl_vars['contentID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditCMSPage'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewCMSPage'];?>
<?php }?></title>
<?php echo $_smarty_tpl->getSubTemplate ('CommonStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<?php echo $_smarty_tpl->getSubTemplate ('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;?>
/jqueryui.plugin.css" rel="stylesheet" type="text/css" />
<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"	/>
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</head>
<body>
	<div class="outer_container"><?php echo $_smarty_tpl->getSubTemplate ('CommonTop.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

		<!--End:Header Container-->
		<!--***********************************************************************END HEADER CONTAINER******************************************************-->
		<div class="content_container">
			<div class="content_wrapper">
				<?php if ($_smarty_tpl->tpl_vars['contentID']->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 }?>
				<div id="common_message" ></div>
				<h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCmsPage'];?>
</h2>
				<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('href'=>"content/index/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCms']),$_smarty_tpl);?>
</h2>
						</div>
						<ul class="left-tab">
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a active"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContentInfo'];?>
</a></li>
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContentSettings'];?>
</a></li>
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDetails'];?>
</a></li>
							<?php if ($_smarty_tpl->tpl_vars['contentID']->value){?>
								<li class="sub"><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'=>"frmContent",'method'=>"post"),$_smarty_tpl);?>

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

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

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

                             <div id="basic-info-section" class="save-floating-section">
							<div class="cm-buttons-floating " id="contentSubmit"> 
								<div class="submit-position">
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitContent",'id'=>"submit",'class'=>"curve-3 button03",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave'])),$_smarty_tpl);?>
 
									<?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>
<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"content/index/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel']),$_smarty_tpl);?>

								</div> 
							</div>
							<div class="cm-buttons"> 
							</div>
                            </div>
							<?php if ($_smarty_tpl->tpl_vars['contentID']->value){?> 
								<?php if ((($tmp = @$_smarty_tpl->tpl_vars['publishVersionID']->value)===null||$tmp==='' ? '' : $tmp)){?>
									<?php $_smarty_tpl->tpl_vars["pubVersionID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['publishVersionID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
								<?php }else{ ?>
									<?php $_smarty_tpl->tpl_vars["pubVersionID"] = new Smarty_variable($_smarty_tpl->tpl_vars['versionID']->value, null, 0);?>
								<?php }?>
								
								<div class="static-dropdown"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblVersions'];?>
 - <span id="keyDisplay"></span> [ <i><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditedBy'];?>
 </i> : 
															<?php if ($_smarty_tpl->tpl_vars['modifiedByUser']->value){?> <?php echo $_smarty_tpl->tpl_vars['modifiedByUser']->value;?>
 <?php if ($_smarty_tpl->tpl_vars['modifiedUserStatus']->value!='Active'){?> (<?php echo $_smarty_tpl->tpl_vars['modifiedUserStatus']->value;?>
)<?php }?> <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['adminname']->value;?>
 <?php if ($_smarty_tpl->tpl_vars['createAdminStatus']->value!='Active'){?> (<?php echo $_smarty_tpl->tpl_vars['createAdminStatus']->value;?>
)<?php }?><?php }?> <i> on </i>
															<?php if ($_smarty_tpl->tpl_vars['modifiedDate']->value!='0000-00-00 00:00:00'){?> <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['modifiedDate']->value,$_smarty_tpl->tpl_vars['date_format']->value);?>
 
															<?php }else{ ?> 
																<?php if ((($tmp = @$_smarty_tpl->tpl_vars['versionCreatedDate']->value)===null||$tmp==='' ? '' : $tmp)){?> 
																	<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['versionCreatedDate']->value,$_smarty_tpl->tpl_vars['date_format']->value);?>

																<?php }else{ ?>
																	<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['contentCreatedDate']->value,$_smarty_tpl->tpl_vars['date_format']->value);?>

																<?php }?>
															<?php }?>] <span class="arrow-section"><span class="arw"></span></span>
									<div class="tooltip01"> 
										<span class="arw"></span><span class="arw1"></span> 
										<div class="head-strip clearfix">
											<span class="clmn c5"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblVersionLists'];?>
</span><span class="clmn c3"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLastEdit'];?>
</span>
										</div>
										<div class="list-outer">
											<?php  $_smarty_tpl->tpl_vars["versionList"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["versionList"]->_loop = false;
 $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resVersionList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["versionList"]->key => $_smarty_tpl->tpl_vars["versionList"]->value){
$_smarty_tpl->tpl_vars["versionList"]->_loop = true;
 $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["versionList"]->key;
?>
												<div class="list-strip clearfix<?php if (($_smarty_tpl->tpl_vars['versionID']->value==$_smarty_tpl->tpl_vars['versionList']->value['versionNum'])){?> active<?php }?>">
													<span class="clmn c1"><?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
 
														<?php $_smarty_tpl->createLocalArrayVariable('keylist', null, 0);
$_smarty_tpl->tpl_vars['keylist']->value[$_smarty_tpl->tpl_vars['versionList']->value['versionNum']] = $_smarty_tpl->tpl_vars['key']->value+1;?>  
														<?php if ((isset($_smarty_tpl->tpl_vars['publishVersionID']->value))){?>
															<?php if (($_smarty_tpl->tpl_vars['versionID']->value==$_smarty_tpl->tpl_vars['versionList']->value['versionNum'])){?> 
																<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"currentPublish",'value'=>(($_smarty_tpl->tpl_vars['key']->value+1))),$_smarty_tpl);?>

															<?php }?>
														<?php }else{ ?>
															<?php if (($_smarty_tpl->tpl_vars['pubVersionID']->value==$_smarty_tpl->tpl_vars['versionList']->value['versionNum'])){?> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"currentPublish",'value'=>(($_smarty_tpl->tpl_vars['key']->value+1))),$_smarty_tpl);?>
 <?php }?> 
														<?php }?>
														<?php if (($_smarty_tpl->tpl_vars['pubVersionID']->value==$_smarty_tpl->tpl_vars['versionList']->value['versionNum'])&&$_smarty_tpl->tpl_vars['contentStatus']->value=='publish'){?><span class="published02 icon-set" title="<?php echo $_smarty_tpl->tpl_vars['contentStatus']->value;?>
"></span><?php }?>
													</span>
													<span class="clmn c2">  
													<?php if (($_smarty_tpl->tpl_vars['pubVersionID']->value==$_smarty_tpl->tpl_vars['versionList']->value['versionNum'])){?>
													
													<?php if ($_smarty_tpl->tpl_vars['contentStatus']->value=='draft'){?>
														<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDraft'];?>

													<?php }?>
													<?php if ($_smarty_tpl->tpl_vars['contentStatus']->value=='publish'){?>
														<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPublish'];?>

													<?php }?>
													<?php if ($_smarty_tpl->tpl_vars['contentStatus']->value=='unpublish'){?>
														<?php echo $_smarty_tpl->tpl_vars['language']->value['lblUnpublish'];?>

													<?php }?>	
													<?php if ($_smarty_tpl->tpl_vars['contentStatus']->value=='trash'){?>
														<?php echo $_smarty_tpl->tpl_vars['language']->value['lblTrash'];?>

													<?php }?>	
														<i><br /><?php echo $_smarty_tpl->tpl_vars['versionList']->value['adminname'];?>
<?php if ($_smarty_tpl->tpl_vars['versionList']->value['createAdminStatus']!='Active'){?> (<?php echo $_smarty_tpl->tpl_vars['versionList']->value['createAdminStatus'];?>
)<?php }?> <?php if ($_smarty_tpl->tpl_vars['versionList']->value['versionCreatedDate']!='0000-00-00 00:00:00'){?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['versionList']->value['versionCreatedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php }?></i><?php }else{ ?>
														
															<?php if ($_smarty_tpl->tpl_vars['versionList']->value['versionStatus']=='draft'){?>
																<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDraft'];?>

															<?php }?>	
															<?php if ($_smarty_tpl->tpl_vars['versionList']->value['versionStatus']=='trash'){?>
																<?php echo $_smarty_tpl->tpl_vars['language']->value['lblTrash'];?>

															<?php }?>
														<?php }?> 
													</span>
													<span class="clmn c3"><?php if ($_smarty_tpl->tpl_vars['versionList']->value['modifiedByUser']){?> <?php echo $_smarty_tpl->tpl_vars['versionList']->value['modifiedByUser'];?>
 <?php if ($_smarty_tpl->tpl_vars['versionList']->value['modifiedUserStatus']!='Active'){?> (<?php echo $_smarty_tpl->tpl_vars['versionList']->value['modifiedUserStatus'];?>
)<?php }?> <?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['versionList']->value['adminname'];?>
 <?php if ($_smarty_tpl->tpl_vars['versionList']->value['createAdminStatus']!='Active'){?> (<?php echo $_smarty_tpl->tpl_vars['versionList']->value['createAdminStatus'];?>
)<?php }?>  <?php }?><br><i><?php if ($_smarty_tpl->tpl_vars['versionList']->value['modifiedDate']!='0000-00-00 00:00:00'){?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['versionList']->value['modifiedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php }else{ ?><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['versionList']->value['versionCreatedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
<?php }?></i> </span>
													<span class="clmn c4">
														<?php if ($_smarty_tpl->tpl_vars['versionList']->value['versionReason']!=''){?>
															<a href="#" class="icon-set info02" title="Info">
																<div class="tooltip03">
																	<span class="arw2"></span> 
																	<?php if ($_smarty_tpl->tpl_vars['versionList']->value['revertStatus']=='yes'){?>
																		<?php echo $_smarty_tpl->tpl_vars['versionList']->value['versionReason'];?>
 <?php echo $_smarty_tpl->tpl_vars['keylist']->value[$_smarty_tpl->tpl_vars['versionList']->value['orginalVerID']];?>

																	<?php }else{ ?>
																		<?php echo $_smarty_tpl->tpl_vars['versionList']->value['versionReason'];?>
  
																	<?php }?>	
																</div>
															</a>
														<?php }else{ ?>
															<span class="icon-set info02-inactive"></span>
														<?php }?>
                                                                                                                <?php if ($_smarty_tpl->tpl_vars['editprivilage']->value){?>
                                                                                                                    <?php if ($_smarty_tpl->tpl_vars['alleditPrivilege']->value){?> 
                                                                                                                           <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"content/edit/id/".($_smarty_tpl->tpl_vars['contentID']->value)."/verid/".($_smarty_tpl->tpl_vars['versionList']->value['versionNum'])."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'history'=>"yes",'class'=>"icon-set edit02 img-aline",'content'=>''),$_smarty_tpl);?>

                                                                                                                    <?php }elseif($_smarty_tpl->tpl_vars['owneditPrivilege']->value){?> 
                                                                                                                            <?php if ($_smarty_tpl->tpl_vars['userID']->value==$_smarty_tpl->tpl_vars['versionList']->value['createdUser']){?>
                                                                                                                                    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"content/edit/id/".($_smarty_tpl->tpl_vars['contentID']->value)."/verid/".($_smarty_tpl->tpl_vars['versionList']->value['versionNum'])."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'history'=>"yes",'class'=>"icon-set edit02 img-aline",'content'=>''),$_smarty_tpl);?>

                                                                                                                            <?php }?>
                                                                                                                    <?php }elseif($_smarty_tpl->tpl_vars['grpeditPrivilege']->value){?>
                                                                                                                            <?php if ($_smarty_tpl->tpl_vars['typeID']->value==$_smarty_tpl->tpl_vars['versionList']->value['verCreatedTypeID']){?>
                                                                                                                                    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"content/edit/id/".($_smarty_tpl->tpl_vars['contentID']->value)."/verid/".($_smarty_tpl->tpl_vars['versionList']->value['versionNum'])."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'history'=>"yes",'class'=>"icon-set edit02 img-aline",'content'=>''),$_smarty_tpl);?>

                                                                                                                            <?php }?>	
                                                                                                                    <?php }?> 
														<?php }?>
														<?php if ($_smarty_tpl->tpl_vars['revertPrivilege']->value&&$_smarty_tpl->tpl_vars['versionList']->value['parentID']!=0&&$_smarty_tpl->tpl_vars['versionList']->value['parentIsExists']!=0){?> 
															<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"content/revert/id/".($_smarty_tpl->tpl_vars['contentID']->value)."/verid/".($_smarty_tpl->tpl_vars['versionList']->value['versionNum'])."/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblRevertContent']),'history'=>"yes",'class'=>"icon-set revert02 img-aline"),$_smarty_tpl);?>

														<?php }else{ ?>
															<?php if ($_smarty_tpl->tpl_vars['revertPrivilege']->value){?><span class="icon-set revert02-inactive img-aline"></span><?php }?>
														<?php }?>
														<?php if ($_smarty_tpl->tpl_vars['trashprivilage']->value&&$_smarty_tpl->tpl_vars['pubVersionID']->value!=$_smarty_tpl->tpl_vars['versionList']->value['versionNum']&&$_smarty_tpl->tpl_vars['versionList']->value['versionStatus']!='trash'){?>
															<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>($_smarty_tpl->tpl_vars['language']->value['lblDeleteVersion']),'history'=>"yes",'content'=>'','class'=>"icon-set delete02 img-aline versionDelete",'id'=>$_smarty_tpl->tpl_vars['versionList']->value['versionNum']),$_smarty_tpl);?>

														<?php }else{ ?>
															<?php if ($_smarty_tpl->tpl_vars['trashprivilage']->value){?><span class="icon-set delete02-inactive img-aline" > </span><?php }?>
														<?php }?>
														<?php if ($_smarty_tpl->tpl_vars['versionList']->value['versionStatus']!='trash'){?>
														<?php $_smarty_tpl->tpl_vars["previewUrl"] = new Smarty_variable(($_smarty_tpl->tpl_vars['global_http_url']->value).("/page/preview/id/".($_smarty_tpl->tpl_vars['contentID']->value)."/verid/".($_smarty_tpl->tpl_vars['versionList']->value['versionNum'])."/"), null, 0);?>
														<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['previewUrl']->value),'target'=>'_blank','history'=>"yes",'class'=>"icon-set view02 img-aline",'id'=>$_smarty_tpl->tpl_vars['versionList']->value['versionNum']),$_smarty_tpl);?>
 
														<?php }else{ ?>
														<span class="icon-set view02-inactive img-aline" ></span>
														<?php }?>
													</span>
												</div>
											<?php } ?>
										</div>
									</div>
								</div> 
							<?php }?>
							<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'=>"content/index/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblCmsPage']),$_smarty_tpl);?>
 &raquo; </li>
											<li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContentsInfo'];?>
</span></li>
										</ul>
									</span>
									<div class="form_listing"> 
										<ul class="levl-00">
											<li>
												<h3><span>
													<?php if ($_smarty_tpl->tpl_vars['contentID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditCMSPage'];?>
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewCMSPage'];?>
<?php }?>
												</span></h3>
											</li>
                                                                                                <li class="clearfix">
                                                                                                <div class="left1 mandatory">
                                                                                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>

                                                                                                </div>
                                                                                                <!--End:Left-->
                                                                                                <div class="right1"> 
                                                                                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('style'=>"width:28%;",'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']),$_smarty_tpl);?>

                                                                                                </div>
                                                                                                <!--End:right-->
                                                                                          </li>
											<li class="clearfix">
												<div class="left1 mandatory">
													<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPageTitle'];?>
 
												</div>
												<div class="right1 ">
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"contentTitle",'name'=>"contentTitle",'maxlength'=>"120",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errCMSTitle'],'class'=>"textbox width_50per"),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblUrlKey'];?>
 </div>
												<!--End:Left-->
												<div class="right1">
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('id'=>"contentUrlKey",'name'=>"contentUrlKey",'validate'=>"isUrlKey~*callback_checkContentUrlKey",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errValidCMSUrlKey']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errCMSIsExists']),'class'=>"textbox width_50per",'maxlength'=>"120"),$_smarty_tpl);?>

													<span class="small-txt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblUrlKeyHelpText'];?>
</span>
                                                                                               <?php if ($_smarty_tpl->tpl_vars['contentID']->value){?>
                                                                                                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"oldContentUrlKey",'value'=>$_smarty_tpl->tpl_vars['contentUrlKey']->value),$_smarty_tpl);?>

                                                                                                <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['settingsRedirectforurl']->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>
												<!--End:right-->
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblIntroduction'];?>
</div>
												<div class="right1 editor" tabindex="1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('name'=>"introText",'rows'=>"5",'cols'=>"30",'mode'=>"basic",'skin'=>2),$_smarty_tpl);?>
 </div>
											</li>
											<li class="selection clearfix">
												  <div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContent'];?>
</div>
												  <!--End:Left-->
												<div class="right1 editor">
													<?php if ($_smarty_tpl->tpl_vars['formPrivilege']->value&&$_smarty_tpl->tpl_vars['resultForm']->value){?>
													<div class="select-fld_links">
														<span class="field-list curve-3">    
															<?php echo $_smarty_tpl->tpl_vars['language']->value['lblImportForm'];?>

														</span>
															<ul class="select-fld_ul">  

															<?php $_smarty_tpl->tpl_vars['contentList'] = new Smarty_variable(0, null, 0);?>
															<?php  $_smarty_tpl->tpl_vars["forms"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["forms"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resultForm']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["forms"]->key => $_smarty_tpl->tpl_vars["forms"]->value){
$_smarty_tpl->tpl_vars["forms"]->_loop = true;
?>
															<?php $_smarty_tpl->tpl_vars['contentList'] = new Smarty_variable($_smarty_tpl->tpl_vars['contentList']->value+1, null, 0);?>
																<li class="formlist <?php if (in_array($_smarty_tpl->tpl_vars['forms']->value['formID'],$_smarty_tpl->tpl_vars['selectedForms']->value)){?>active<?php }?>" data="<?php echo $_smarty_tpl->tpl_vars['forms']->value['formID'];?>
" >
																	<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"text_2",'title'=>($_smarty_tpl->tpl_vars['forms']->value['formName']),'content'=>($_smarty_tpl->tpl_vars['forms']->value['formName'])),$_smarty_tpl);?>

																</li>
																
															 <?php } ?>						

															</ul>														 
													</div>
													<?php }?>
												  <div class="editor right001"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('name'=>"content",'rows'=>"5",'cols'=>"30",'mode'=>"advanced",'skin'=>2,'uploads'=>"editor-images/",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errProductDescription'],'lang'=>$_smarty_tpl->tpl_vars['currentLCIDstring']->value,'enable_css'=>"Yes"),$_smarty_tpl);?>
</div>

												  <!--End:right-->
												</div>  
											</li>
                                                                                     <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
											<li class="clearfix">
											
												<div class="left1">
													<?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguages'];?>
 
												</div>						
												<div class="right1 ">
													<?php if ($_smarty_tpl->tpl_vars['languages']->value==0||$_smarty_tpl->tpl_vars['languages']->value==''){?>
													<?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'=>"customradio",'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="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguages'];?>
</div>
												<div class="right1">
													
											  <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'=>$_smarty_tpl->tpl_vars['currentContentLanguageID']->value),$_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'=>"languageID",'class'=>"cntntlanguage",'options'=>((($_smarty_tpl->tpl_vars['specificLanguage']->value[0]).("->")).("&nbsp;")).($_smarty_tpl->tpl_vars['specificLanguage']->value[1]),'value'=>$_smarty_tpl->tpl_vars['resLanguageSelects']->value),$_smarty_tpl);?>
</li>
												  <?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 }else{ ?>
                                                                                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"languageID[]",'value'=>"0"),$_smarty_tpl);?>
												    
											<?php }?>
											
											<li class="selection clearfix">
												<div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAccess'];?>
</div>
												<div class="right1"> 
													<select multiple="multiple" class="width-234px" 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['resListCustomerGroup']->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 $_smarty_tpl->tpl_vars['list']->value[0];?>
" <?php echo $_smarty_tpl->tpl_vars['list']->value[3];?>
 ><?php echo $_smarty_tpl->tpl_vars['list']->value[1];?>
</option>
														<?php } ?>  
													</select>
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAction'];?>
</div>
												<div class="right1">
													<?php $_smarty_tpl->tpl_vars["actionList"] = new Smarty_variable('', null, 0);?>
													<?php if ($_smarty_tpl->tpl_vars['draftPrivilege']->value&&!$_smarty_tpl->tpl_vars['publishPrivilege']->value){?> 
														<?php $_smarty_tpl->tpl_vars["actionList"] = new Smarty_variable("draft->".($_smarty_tpl->tpl_vars['language']->value['lblDraft']), null, 0);?>
													<?php }elseif($_smarty_tpl->tpl_vars['publishPrivilege']->value){?>
														<?php $_smarty_tpl->tpl_vars["actionList"] = new Smarty_variable("draft->".($_smarty_tpl->tpl_vars['language']->value['lblDraft'])."~*publish->".($_smarty_tpl->tpl_vars['language']->value['lblPublish']), null, 0);?>
													<?php }?>
                                                                                                         <?php if (($_smarty_tpl->tpl_vars['contentID']->value>0&&!$_smarty_tpl->tpl_vars['draftPrivilege']->value&&!$_smarty_tpl->tpl_vars['publishPrivilege']->value)){?>
                                                                                                            <?php $_smarty_tpl->tpl_vars["actionList"] = new Smarty_variable("draft->".($_smarty_tpl->tpl_vars['language']->value['lblDraft']), null, 0);?>
                                                                                                            <?php }?>
													<?php if (($_smarty_tpl->tpl_vars['contentID']->value>0&&$_smarty_tpl->tpl_vars['contentStatus']->value=='trash')||($_smarty_tpl->tpl_vars['versionID']->value>0&&$_smarty_tpl->tpl_vars['versionStatus']->value=='trash')){?>
														<?php $_smarty_tpl->tpl_vars["actionList"] = new Smarty_variable((($_smarty_tpl->tpl_vars['actionList']->value).("~*")).("trash->".($_smarty_tpl->tpl_vars['language']->value['lblTrash'])), null, 0);?>
													<?php }?>
                                                                                                        
													<?php if (($_smarty_tpl->tpl_vars['publishVersionID']->value)){?>
														<?php if (($_smarty_tpl->tpl_vars['publishVersionID']->value==$_smarty_tpl->tpl_vars['versionID']->value)){?>
															<?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['contentStatus']->value, null, 0);?>
														<?php }else{ ?>
															<?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['versionStatus']->value, null, 0);?>
														<?php }?>
													<?php }else{ ?>
														<?php $_smarty_tpl->tpl_vars["status"] = new Smarty_variable($_smarty_tpl->tpl_vars['contentStatus']->value, null, 0);?>         
													<?php }?>
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'name'=>"action",'options'=>$_smarty_tpl->tpl_vars['actionList']->value,'value'=>$_smarty_tpl->tpl_vars['status']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectAction']),$_smarty_tpl);?>

												</div>
											</li>
											</ul>
											<ul class="newVersion">
											<?php if ($_smarty_tpl->tpl_vars['contentID']->value){?>
												<li class="selection clearfix">
													<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCreateNewVersion'];?>
</div>
													<div class="right1">
													<?php if ($_smarty_tpl->tpl_vars['contentID']->value>0&&!$_smarty_tpl->tpl_vars['publishPrivilege']->value&&$_smarty_tpl->tpl_vars['status']->value=='publish'){?>
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"isCreateVersion",'class'=>"checkbox01",'style'=>"margin-top:6px;",'value'=>'yes','checked'=>"checked",'disabled'=>"disabled",'onclick'=>"return false"),$_smarty_tpl);?>

													<?php }else{ ?>
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"isCreateVersion",'class'=>"checkbox01",'style'=>"margin-top:6px;",'value'=>'yes'),$_smarty_tpl);?>

													<?php }?>
													</div>
												</li>
												<li class="selection clearfix versionReason">
													<div class="right1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"reasonText",'class'=>"textbox"),$_smarty_tpl);?>
</div>
												</li>
											<?php }?>
										</ul>
									</div>
								</div>
								<!--end: left pane --> 
							</div>
							<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'=>"content/index/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblCmsPage']),$_smarty_tpl);?>
 &raquo; </li>
											<li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContentsettings'];?>
</span></li>
										</ul>
									</span>
									<div class="form_listing"> 
										<ul class="levl-00">
											<li> <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPublishDetails'];?>
</span></h3></li>
											<li class="selection clearfix">
												<div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWrittenorCreatedBy'];?>
</div>
												<div class="right1"> 
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-234px",'value'=>$_smarty_tpl->tpl_vars['adminname']->value,'name'=>"createdBy",'content'=>$_smarty_tpl->tpl_vars['createdBy']->value,'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errCreatedBy']),$_smarty_tpl);?>
 
													<?php if ($_smarty_tpl->tpl_vars['contentID']->value&&($_smarty_tpl->tpl_vars['mainAdminID']->value!=$_smarty_tpl->tpl_vars['adminUserID']->value)){?>
														<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAuthor'];?>
 - <?php echo $_smarty_tpl->tpl_vars['adminname']->value;?>

													<?php }?>
												</div>
											</li>   
											 <?php if ($_smarty_tpl->tpl_vars['contentPublishFrom']->value!=''&&$_smarty_tpl->tpl_vars['contentPublishFrom']->value!="0000-00-00 00:00"){?> 
                                                                                            <?php $_smarty_tpl->tpl_vars["contentPublishFrom"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['contentPublishFrom']->value), null, 0);?>
                                                                                            <?php }else{ ?>
                                                                                            <?php $_smarty_tpl->tpl_vars["contentPublishFrom"] = new Smarty_variable('', null, 0);?>
                                                                                            <?php }?> 
											
                                                                                        <?php if ($_smarty_tpl->tpl_vars['contentPublishTo']->value!=''&&$_smarty_tpl->tpl_vars['contentPublishTo']->value!="0000-00-00 00:00"){?> 
                                                                                        <?php $_smarty_tpl->tpl_vars["contentPublishTo"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['contentPublishTo']->value), null, 0);?>
                                                                                        <?php }else{ ?>
                                                                                        <?php $_smarty_tpl->tpl_vars["contentPublishTo"] = new Smarty_variable('', null, 0);?>
                                                                                        <?php }?>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartPublish'];?>
</div>
												<div class="right1">
													<div class="text-box-div-date">
														<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"contentPublishFrom",'class'=>"date_picker_field width-234px",'maxlength'=>"15",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate']),$_smarty_tpl);?>

													</div>
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinishPublish'];?>
</div>
												<div class="right1"><div class="text-box-div-date">
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"contentPublishTo",'maxlength'=>"15",'validate'=>"isDate",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidDate'],'class'=>"date_picker_field width-234px"),$_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></div>
											</li>
											<li>
												<h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAttributes'];?>
</span></h3>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowSocialSharing'];?>
</div>
												<div class="right1 top-spc">    
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['contentID']->value){?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showSocialSharing']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php }else{ ?><?php echo "Yes";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showSocialSharing",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp2),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowTitle'];?>
</div>
												<div class="right1 top-spc">    
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['contentID']->value){?><?php echo " ";?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showTitle']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php }else{ ?><?php echo "Yes";?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showTitle",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp3),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowAuthor'];?>
</div>
												<div class="right1 top-spc">   
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showauthor']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showauthor",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp4),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowCreatedDate'];?>
</div>
												<div class="right1 top-spc">    
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showCreatedDate']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp5=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showCreatedDate",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp5),$_smarty_tpl);?>

												</div>
											</li> 
											<?php $_smarty_tpl->tpl_vars["ShowPublishDate"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['publishFrom']->value), null, 0);?>
											<?php $_smarty_tpl->tpl_vars["showModifyDate"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['publishTo']->value), null, 0);?>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowModifyDate'];?>
</div>
												<div class="right1 top-spc"> 
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showModifyDate']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp6=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showModifyDate",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp6),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowPublishDate'];?>
</div>
												<div class="right1 top-spc"> 
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showPublishDate']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp7=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showPublishDate",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp7),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowPrintIcon'];?>
</div>
												<div class="right1 top-spc"> 
													<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showPrintIcon']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp8=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showPrintIcon",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp8),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowEmailIcon'];?>
</div>
												<div class="right1 top-spc">    
														<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['articleAttribs']->value['showEmailIcon']=='Yes'){?><?php echo "Yes";?><?php }else{ ?><?php echo "No";?><?php }?><?php $_tmp9=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showEmailIcon",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>$_tmp9),$_smarty_tpl);?>

												</div>
											</li>
											<!--<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowHits'];?>
</div>
												<div class="right1">    
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"showHits",'options'=>((("Yes->").($_smarty_tpl->tpl_vars['language']->value['lblYes'])).("~*No->")).($_smarty_tpl->tpl_vars['language']->value['lblNo']),'value'=>"No",'tabindex'=>"1"),$_smarty_tpl);?>

												</div>
											</li>-->
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblContentRight'];?>
</div>
												<div class="right1">    
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('maxlength'=>"200",'name'=>"contentRights",'class'=>"width-54per",'rows'=>"4",'cols'=>"50"),$_smarty_tpl);?>

												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblExternaReference'];?>
</div>
												<div class="right1">    
													<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"xReference",'maxlength'=>"100",'class'=>"textbox width-54per"),$_smarty_tpl);?>

												</div>
											</li>
										</ul>
									</div>
								</div>
								<!--End: left Block-->
								<div class="clear"></div>
							</div>
							<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'=>"content/index/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblCmsPage']),$_smarty_tpl);?>
 &raquo; </li>
											<li><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDetails'];?>
</span></li>
										</ul>
									</span>
								<div class="form_listing"> 
									<ul class="levl-00">
										<li> <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDetails'];?>
</span></h3></li>
										<li class="selection clearfix">
											<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaTitle'];?>
 </div>
											<!--End:Left-->
											<div class="right1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"contentMetaTitle",'class'=>"textbox width-54per",'maxlength'=>"100"),$_smarty_tpl);?>
 </div>
											<!--End:right-->
										</li>
										<li class="selection clearfix">
											<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaKeyword'];?>
</div>
											<!--End:Left-->
											<div class="right1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"contentMetaKeywords",'class'=>"textbox width-54per",'maxlength'=>"200",'onkeyup'=>"return ismaxlength(this)",'onchange'=>"return ismaxlength(this)"),$_smarty_tpl);?>
</div>
											<!--End:right-->
										</li>
										<li class="selection clearfix">
											<div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDescription'];?>
</div>
											<!--End:Left-->
											<div class="right1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"contentMetaDescription",'class'=>"textbox width-54per",'maxlength'=>"200",'onkeyup'=>"return ismaxlength(this)",'onchange'=>"return ismaxlength(this)"),$_smarty_tpl);?>
</div>
											<!--End:right-->
										</li>
                    <li class="selection clearfix">
                  <div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCanonicalLink'];?>
</div>
                  <!--End:Left-->
                  <div class="right1"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"canonicalLink",'class'=>"textbox width-54per",'maxlength'=>"200",'onkeyup'=>"return ismaxlength(this)",'onchange'=>"return ismaxlength(this)"),$_smarty_tpl);?>
</div>
                  <!--End:right-->
                  </li>
                  
                </ul>
           </div>
        <!--End:From Listing-->
      </div>
      <!--End:Border 2-->
    </div>
    <?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 " 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'=>"content/index/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel']),$_smarty_tpl);?>

              </div> 
             </div>
              <div class="cm-buttons"> 
              </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'=>"content/index/",'rel'=>'','content'=>$_smarty_tpl->tpl_vars['language']->value['lblCmsPage']),$_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>
  </div>
  </div>
  </div>
  <!--End:Content Container-->
<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 </div>
<!--End:Outer Container-->
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor_script(array('names'=>"introText,content"),$_smarty_tpl);?>

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

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

<script type="text/javascript">
var msgConfirmsub ="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDeleteVersion'];?>
"
var settingsRedirectUrl = "<?php echo $_smarty_tpl->tpl_vars['settingsRedirectforurl']->value;?>
";
var errAlreadyFormExists = "<?php echo $_smarty_tpl->tpl_vars['language']->value['errAlreadyFormExists'];?>
";
var sysKeys = '<?php echo $_smarty_tpl->tpl_vars['sysKeys']->value;?>
';
</script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/jquery.ui.plugin.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" 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;?>
/contentAdd.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 () {
	$(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 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();
}
$('.static-dropdown').click(function()
	{
		if($(".tooltip01").is(':visible')){
		  $(".tooltip01").slideUp();
	}
	else
	{
		$(".tooltip01").slideDown();  
	}
});

$(document).mouseup(function (e)
{
	var container2 = $(".tooltip01");

    if (container2.has(e.target).length === 0)
    {
       container2.slideUp('fast');
		
    }
	});
$('#keyDisplay').html($('#currentPublish').val());	
</script>
</body>
</html><?php }} ?>