<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{assign var="contentID" value=$contentID|default:''}
<title>{$language.lblAdmin} : {if $contentID}{$language.lblEditCMSPage}{else}{$language.lblAddNewCMSPage}{/if}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link href="{$view_styles}/jqueryui.plugin.css" rel="stylesheet" type="text/css" />
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/ui.daterangepicker.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/add-edit.css" />
<link	rel="stylesheet"	type="text/css"	href="{$view_styles}/colorbox.css"	/>
{include file='CommonCustomStyles.tpl'}
</head>
<body>
	<div class="outer_container">{include file='CommonTop.tpl'}
		<!--End:Header Container-->
		<!--***********************************************************************END HEADER CONTAINER******************************************************-->
		<div class="content_container">
			<div class="content_wrapper">
				{if $contentID}<div class="fixing_right">
				{if $resLanguageSelect}
				 <script type="text/javascript" src="{$view_javascript}/language.plugin.js"></script>
				  {if $view_common_languages|@count>1}
				 <div class="language-block-inner normal">						  
                                     {if $contentLangSelctdDet.languageID>0}
                                         {assign var="selContentLang" value=$contentLangSelctdDet.languageName}
                                         {assign var="selContentLangImage" value=$contentLangSelctdDet.languageImage}
                                         {else}
                                              {assign var="selContentLang" value=$view_content_languageName}
                                              {assign var="selContentLangImage" value=$view_common_languageImage}
                                             {/if}
						  <div class="flagbox"><img src="{$view_host}/public/uploads/languages/{$selContentLangImage|escape}" width="14" height="11" alt="{$selContentLang}" /></div>
						  <div class="languagebox_head-inner">{$selContentLang}</div><span class="arw"></span> <span class="clse">x</span>				         
						   <div class="languageList-inner" id="languageDropdown">
							<ul>
							  {foreach from=$resLanguageSelect item="resCommonLanguages" key="key"}
							  {if $selContentLang neq $resCommonLanguages.languageName}
							  <li id="content_language_{$resCommonLanguages.languageID}" class="clearfix">
								<div class="flagbox-inner"><img src="{$view_host}/public/uploads/languages/{$resCommonLanguages.languageImage|escape}" width="14" height="11" alt="{$resCommonLanguages.languageName}" /></div>
								<div class="languagebox-inner">{$resCommonLanguages.languageName}</div>
							  </li>
							  {/if}
							  {/foreach}
							</ul>
						  </div>
						</div>
				  {/if}
				  {/if}
				</div>{/if}
				<div id="common_message" ></div>
				<h2>{$language.lblCmsPage}</h2>
				<div class="tab-content-outer clearfix">
					<div class="left_block fixing_left">
						<div class="tab-block-01">
							<h2>{html->anchor href="content/index/" content=$language.lblCms}</h2>
						</div>
						<ul class="left-tab">
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a active">{$language.lblContentInfo}</a></li>
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a">{$language.lblContentSettings}</a></li>
							<li class="sub"><a href="javascript:void(0);" rel="basic-info"  class="left-tab-a">{$language.lblMetaDetails}</a></li>
							{if $contentID}
								<li class="sub"><a href="javascript:void(0);" rel="track" class="left-tab-a">{$language.lblSalesTracking}</a></li>
							{/if}
						</ul>
					</div>
					<div class="right_block fixing_right">
						{form->start name="frmContent" method="post"}
							{*form->hidden name="languageID" value=1*}
							{form->hidden name="contentID" value=$contentID}
							{form->hidden name="versionID" value=$versionID|default:''}
                                                        {form->hidden name="publishVersionID" value=$publishVersionID|default:''}
                             <div id="basic-info-section" class="save-floating-section">
							<div class="cm-buttons-floating " id="contentSubmit"> 
								<div class="submit-position">
									{form->submit name="submitContent" id="submit" class="curve-3 button03" value="{$language.lblSave}"} 
									{$language.lblOr}{html->anchor href="content/index/" content=$language.lblCancel}
								</div> 
							</div>
							<div class="cm-buttons"> 
							</div>
                            </div>
							{if $contentID} 
								{if $publishVersionID|default:''}
									{assign var="pubVersionID" value=$publishVersionID|default:''}
								{else}
									{assign var="pubVersionID" value=$versionID}
								{/if}
								
								<div class="static-dropdown">{$language.lblVersions} - <span id="keyDisplay"></span> [ <i>{$language.lblEditedBy} </i> : 
															{if $modifiedByUser} {$modifiedByUser} {if $modifiedUserStatus !='Active'} ({$modifiedUserStatus}){/if} {else} {$adminname} {if $createAdminStatus !='Active'} ({$createAdminStatus}){/if}{/if} <i> on </i>
															{if $modifiedDate != '0000-00-00 00:00:00'} {$modifiedDate|date_format:$date_format} 
															{else} 
																{if $versionCreatedDate|default:''} 
																	{$versionCreatedDate|date_format:$date_format}
																{else}
																	{$contentCreatedDate|date_format:$date_format}
																{/if}
															{/if}] <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">{$language.lblVersionLists}</span><span class="clmn c3">{$language.lblLastEdit}</span>
										</div>
										<div class="list-outer">
											{foreach from=$resVersionList item="versionList" key="key"}
												<div class="list-strip clearfix{if ($versionID == $versionList.versionNum)} active{/if}">
													<span class="clmn c1">{$key+1} 
														{$keylist[$versionList.versionNum]=$key+1}  
														{if (isset($publishVersionID))}
															{if ($versionID == $versionList.versionNum)} 
																{form->hidden name="currentPublish" value="{$key+1}"}
															{/if}
														{else}
															{if ($pubVersionID == $versionList.versionNum)} {form->hidden name="currentPublish" value="{$key+1}"} {/if} 
														{/if}
														{if ($pubVersionID == $versionList.versionNum) && $contentStatus=='publish'}<span class="published02 icon-set" title="{$contentStatus}"></span>{/if}
													</span>
													<span class="clmn c2">  
													{if ($pubVersionID == $versionList.versionNum)}
													{*contentStatus*}
													{if $contentStatus=='draft'}
														{$language.lblDraft}
													{/if}
													{if $contentStatus=='publish'}
														{$language.lblPublish}
													{/if}
													{if $contentStatus=='unpublish'}
														{$language.lblUnpublish}
													{/if}	
													{if $contentStatus=='trash'}
														{$language.lblTrash}
													{/if}	
														<i><br />{$versionList.adminname}{if $versionList.createAdminStatus !='Active'} ({$versionList.createAdminStatus}){/if} {if $versionList.versionCreatedDate != '0000-00-00 00:00:00'}{$versionList.versionCreatedDate|date_format:$date_format}{/if}</i>{else}
														{*$versionList.versionStatus*}
															{if $versionList.versionStatus=='draft'}
																{$language.lblDraft}
															{/if}	
															{if $versionList.versionStatus=='trash'}
																{$language.lblTrash}
															{/if}
														{/if} 
													</span>
													<span class="clmn c3">{if $versionList.modifiedByUser} {$versionList.modifiedByUser} {if $versionList.modifiedUserStatus !='Active'} ({$versionList.modifiedUserStatus}){/if} {else}{$versionList.adminname} {if $versionList.createAdminStatus !='Active'} ({$versionList.createAdminStatus}){/if}  {/if}<br><i>{if $versionList.modifiedDate != '0000-00-00 00:00:00'}{$versionList.modifiedDate|date_format:$date_format}{else}{$versionList.versionCreatedDate|date_format:$date_format}{/if}</i> </span>
													<span class="clmn c4">
														{if $versionList.versionReason !=''}
															<a href="#" class="icon-set info02" title="Info">
																<div class="tooltip03">
																	<span class="arw2"></span> 
																	{if $versionList.revertStatus =='yes'}
																		{$versionList.versionReason} {$keylist[$versionList.orginalVerID]}
																	{else}
																		{$versionList.versionReason}  
																	{/if}	
																</div>
															</a>
														{else}
															<span class="icon-set info02-inactive"></span>
														{/if}
                                                                                                                {if $editprivilage}
                                                                                                                    {if $alleditPrivilege} 
                                                                                                                           {html->anchor  href="content/edit/id/{$contentID}/verid/{$versionList.versionNum}/" title="{$language.lblEdit}" history="yes" class="icon-set edit02 img-aline" content=""}
                                                                                                                    {else if $owneditPrivilege} 
                                                                                                                            {if $userID eq $versionList.createdUser}
                                                                                                                                    {html->anchor  href="content/edit/id/{$contentID}/verid/{$versionList.versionNum}/" title="{$language.lblEdit}" history="yes" class="icon-set edit02 img-aline" content=""}
                                                                                                                            {/if}
                                                                                                                    {else if $grpeditPrivilege}
                                                                                                                            {if $typeID eq $versionList.verCreatedTypeID}
                                                                                                                                    {html->anchor  href="content/edit/id/{$contentID}/verid/{$versionList.versionNum}/" title="{$language.lblEdit}" history="yes" class="icon-set edit02 img-aline" content=""}
                                                                                                                            {/if}	
                                                                                                                    {/if} 
														{/if}
														{if $revertPrivilege && $versionList.parentID != 0 && $versionList.parentIsExists!=0} 
															{html->anchor  href="content/revert/id/{$contentID}/verid/{$versionList.versionNum}/" title="{$language.lblRevertContent}" history="yes"  class="icon-set revert02 img-aline"}
														{else}
															{if $revertPrivilege}<span class="icon-set revert02-inactive img-aline"></span>{/if}
														{/if}
														{if $trashprivilage && $pubVersionID	!=	$versionList.versionNum && $versionList.versionStatus != 'trash'}
															{html->anchor title="{$language.lblDeleteVersion}" history="yes" content="" class="icon-set delete02 img-aline versionDelete" id=$versionList.versionNum}
														{else}
															{if $trashprivilage}<span class="icon-set delete02-inactive img-aline" > </span>{/if}
														{/if}
														{if $versionList.versionStatus != 'trash'}
														{assign var="previewUrl" value=$global_http_url|cat:"/page/preview/id/{$contentID}/verid/{$versionList.versionNum}/"}
														{html->anchor href="{$previewUrl}" target=_blank history="yes" class="icon-set view02 img-aline" id=$versionList.versionNum} 
														{else}
														<span class="icon-set view02-inactive img-aline" ></span>
														{/if}
													</span>
												</div>
											{/foreach}
										</div>
									</div>
								</div> 
							{/if}
							<div class="tabpane" style="display:block;">
								<div class="tabpane_inner">
									<span class="BreadCrump">
										<ul class="clearfix">
											<li>{html->anchor href="content/index/" rel="" content=$language.lblCmsPage} &raquo; </li>
											<li><span>{$language.lblContentsInfo}</span></li>
										</ul>
									</span>
									<div class="form_listing"> 
										<ul class="levl-00">
											<li>
												<h3><span>
													{if $contentID}{$language.lblEditCMSPage}{else}{$language.lblAddNewCMSPage}{/if}
												</span></h3>
											</li>
                                                                                                <li class="clearfix">
                                                                                                <div class="left1 mandatory">
                                                                                                        {$language.lblMenuBrands}
                                                                                                </div>
                                                                                                <!--End:Left-->
                                                                                                <div class="right1"> 
                                                                                                        {form->select style="width:28%;" class="select" name="brandID" caption="->{$language.lblSelect}" options=$listBrand validate="required" error=$language.errFranchisee}
                                                                                                </div>
                                                                                                <!--End:right-->
                                                                                          </li>
											<li class="clearfix">
												<div class="left1 mandatory">
													{$language.lblPageTitle} 
												</div>
												<div class="right1 ">
													{form->textbox id="contentTitle" name="contentTitle" maxlength="120" validate="required" error=$language.errCMSTitle class="textbox width_50per"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblUrlKey} </div>
												<!--End:Left-->
												<div class="right1">
													{form->textbox id="contentUrlKey" name="contentUrlKey" validate="isUrlKey~*callback_checkContentUrlKey" error=$language.errValidCMSUrlKey|cat:"~*"|cat:$language.errCMSIsExists class="textbox width_50per" maxlength="120"}
													<span class="small-txt">{$language.lblUrlKeyHelpText}</span>
                                                                                               {if $contentID}
                                                                                                   {form->hidden name="oldContentUrlKey" value=$contentUrlKey}
                                                                                                {form->checkbox name="redirectOption" value="RP" checked="{if $settingsRedirectforurl=='Yes'}True{/if}"  tabindex="1" disabled="disabled"}
                                                                                                {$language.lblPermanentRedirect}

                                                                                                {/if}
                                                                                                </div>
												<!--End:right-->
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblIntroduction}</div>
												<div class="right1 editor" tabindex="1">{form->editor  name="introText" rows="5" cols="30" mode="basic" skin=2} </div>
											</li>
											<li class="selection clearfix">
												  <div class="left1 mandatory">{$language.lblContent}</div>
												  <!--End:Left-->
												<div class="right1 editor">
													{if $formPrivilege && $resultForm}
													<div class="select-fld_links">
														<span class="field-list curve-3">    
															{$language.lblImportForm}
														</span>
															<ul class="select-fld_ul">  

															{assign var ='contentList' value=0}
															{foreach from=$resultForm item="forms"}
															{assign var ='contentList' value=$contentList+1}
																<li class="formlist {if in_array($forms.formID,$selectedForms)}active{/if}" data="{$forms.formID}" >
																	{html->anchor rel="text_2"  title="{$forms.formName}" content="{$forms.formName}"}
																</li>
																
															 {/foreach}						

															</ul>														 
													</div>
													{/if}
												  <div class="editor right001">{form->editor name="content" rows="5" cols="30" mode="advanced" skin=2 uploads="editor-images/" validate="required" error=$language.errProductDescription lang=$currentLCIDstring  enable_css="Yes"}</div>

												  <!--End:right-->
												</div>  
											</li>
                                                                                     {if $view_common_languages|@count>1}
											<li class="clearfix">
											
												<div class="left1">
													{$language.lblLanguages} 
												</div>						
												<div class="right1 ">
													{if $languages==0 || $languages==''}
													{assign var="languageVar" value="Yes"} 
													{else}
													{assign var="languageVar" value="No"} 
													{/if}
													{form->radio name="langSelect" class="customradio" options="Yes->{$language.lblCommonLanguage}~*No->{$language.lblSpecificLanguage}" value=$languageVar}
												</div>
											</li>											 
											 
											<li class="selection clearfix langSpecific">
												<div class="left1">{$language.lblLanguages}</div>
												<div class="right1">
													
											  <div class="div-languageSpecific"  id="specificLangDiv">
												<ul class="levl-03 blogLanguage">{form->hidden name="currentContentLanguageID" value=$currentContentLanguageID}												
												  {foreach item="specificLanguage" from=$view_common_languages}
												  <li class="clearfix"> {form->checkbox tabindex="3"  name="languageID" class="cntntlanguage" options=$specificLanguage.0|cat:"->"|cat:"&nbsp;"|cat:$specificLanguage.1 value=$resLanguageSelects}</li>
												  {/foreach}
                                                                                                  {form->validate name="checkLangSelect" validate="langSelect->isequal->No~*required" error=$language.errLanguage}             
												</ul>
								
											   </div>  													
												</div>
											</li>
                                                                                                {else}
                                                                                                {form->hidden name="languageID[]" value="0"}												    
											{/if}
											
											<li class="selection clearfix">
												<div class="left1 mandatory">{$language.lblAccess}</div>
												<div class="right1">{*form->select class="select-box" name="access" options=$resListCustomerGroups*} 
													<select multiple="multiple" class="width-234px" id="access" name="access[]">
														{foreach from=$resListCustomerGroup item="list"} 
															<option value="{$list[0]}" {$list[3]} >{$list[1]}</option>
														{/foreach}  
													</select>
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1 mandatory">{$language.lblAction}</div>
												<div class="right1">
													{assign var="actionList" value=""}
													{if $draftPrivilege && !$publishPrivilege} 
														{assign var="actionList" value="draft->{$language.lblDraft}"}
													{else if $publishPrivilege}
														{assign var="actionList" value="draft->{$language.lblDraft}~*publish->{$language.lblPublish}"}
													{/if}
                                                                                                         {if ($contentID gt 0 && !$draftPrivilege && !$publishPrivilege)}
                                                                                                            {assign var="actionList" value="draft->{$language.lblDraft}"}
                                                                                                            {/if}
													{if ($contentID gt 0 &&  $contentStatus eq 'trash') || ($versionID gt 0 && $versionStatus eq 'trash')}
														{assign var="actionList" value=$actionList|cat:"~*"|cat:"trash->{$language.lblTrash}"}
													{/if}
                                                                                                        
													{if ($publishVersionID)}
														{if ($publishVersionID == $versionID)}
															{assign var="status" value=$contentStatus}
														{else}
															{assign var="status" value=$versionStatus}
														{/if}
													{else}
														{assign var="status" value=$contentStatus}         
													{/if}
													{form->select class="select-box width-234px" name="action" options=$actionList value=$status validate="required" error=$language.errSelectAction}
												</div>
											</li>
											</ul>
											<ul class="newVersion">
											{if $contentID}
												<li class="selection clearfix">
													<div class="left1">{$language.lblCreateNewVersion}</div>
													<div class="right1">
													{if $contentID gt 0 &&  !$publishPrivilege && $status=='publish'}
													{form->checkbox name="isCreateVersion" class="checkbox01" style="margin-top:6px;" value='yes' checked="checked" disabled="disabled" onclick="return false"}
													{else}
													{form->checkbox name="isCreateVersion" class="checkbox01" style="margin-top:6px;" value='yes'}
													{/if}
													</div>
												</li>
												<li class="selection clearfix versionReason">
													<div class="right1">{form->textarea name="reasonText" class="textbox"}</div>
												</li>
											{/if}
										</ul>
									</div>
								</div>
								<!--end: left pane --> 
							</div>
							<div class="tabpane" style="display:none;">
								<div class="tabpane_inner">
									<span class="BreadCrump">
										<ul class="clearfix">
											<li>{html->anchor href="content/index/" rel="" content=$language.lblCmsPage} &raquo; </li>
											<li><span>{$language.lblContentsettings}</span></li>
										</ul>
									</span>
									<div class="form_listing"> 
										<ul class="levl-00">
											<li> <h3><span>{$language.lblPublishDetails}</span></h3></li>
											<li class="selection clearfix">
												<div class="left1 mandatory">{$language.lblWrittenorCreatedBy}</div>
												<div class="right1"> 
													{form->select class="select-box width-234px" value=$adminname name="createdBy"  content=$createdBy validate="required" error=$language.errCreatedBy} 
													{if $contentID && ($mainAdminID != $adminUserID)}
														{$language.lblAuthor} - {$adminname}
													{/if}
												</div>
											</li>   
											 {if $contentPublishFrom!="" && $contentPublishFrom!="0000-00-00 00:00"} 
                                                                                            {assign var="contentPublishFrom" value=$contentPublishFrom|customDate}
                                                                                            {else}
                                                                                            {assign var="contentPublishFrom" value=""}
                                                                                            {/if} 
											
                                                                                        {if $contentPublishTo!=""  && $contentPublishTo!="0000-00-00 00:00"} 
                                                                                        {assign var="contentPublishTo" value=$contentPublishTo|customDate}
                                                                                        {else}
                                                                                        {assign var="contentPublishTo" value=""}
                                                                                        {/if}
											<li class="selection clearfix">
												<div class="left1">{$language.lblStartPublish}</div>
												<div class="right1">
													<div class="text-box-div-date">
														{form->textbox name="contentPublishFrom" class="date_picker_field width-234px" maxlength="15" validate="isDate" error=$language.errValidDate}
													</div>
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblFinishPublish}</div>
												<div class="right1"><div class="text-box-div-date">
													{form->textbox name="contentPublishTo" maxlength="15" validate="isDate" error=$language.errValidDate class="date_picker_field width-234px"}
													{form->hidden name="hiddenStartEndDate" value="0"}
													{form->validate name="StartEndDatecheck" validate="hiddenStartEndDate->isequal->1~*required" error=$language.errStartEndDate}
												</div></div>
											</li>
											<li>
												<h3><span>{$language.lblAttributes}</span></h3>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowSocialSharing}</div>
												<div class="right1 top-spc">    
													{form->radio name="showSocialSharing"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $contentID}{if $articleAttribs.showSocialSharing=='Yes'}Yes{else}No{/if}{else}Yes{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowTitle}</div>
												<div class="right1 top-spc">    
													{form->radio name="showTitle"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $contentID} {if $articleAttribs.showTitle=='Yes'}Yes{else}No{/if}{else}Yes{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowAuthor}</div>
												<div class="right1 top-spc">   
													{form->radio name="showauthor"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showauthor=='Yes'}Yes{else}No{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowCreatedDate}</div>
												<div class="right1 top-spc">    
													{form->radio name="showCreatedDate"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showCreatedDate=='Yes'}Yes{else}No{/if}"}
												</div>
											</li> 
											{assign var="ShowPublishDate" value=$publishFrom|customDate}
											{assign var="showModifyDate" value=$publishTo|customDate}
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowModifyDate}</div>
												<div class="right1 top-spc"> 
													{form->radio name="showModifyDate"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showModifyDate=='Yes'}Yes{else}No{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowPublishDate}</div>
												<div class="right1 top-spc"> 
													{form->radio name="showPublishDate"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showPublishDate=='Yes'}Yes{else}No{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowPrintIcon}</div>
												<div class="right1 top-spc"> 
													{form->radio name="showPrintIcon"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showPrintIcon=='Yes'}Yes{else}No{/if}"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblShowEmailIcon}</div>
												<div class="right1 top-spc">    
														{form->radio name="showEmailIcon"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="{if $articleAttribs.showEmailIcon=='Yes'}Yes{else}No{/if}"}
												</div>
											</li>
											<!--<li class="selection clearfix">
												<div class="left1">{$language.lblShowHits}</div>
												<div class="right1">    
													{form->radio name="showHits"  options="Yes->"|cat:$language.lblYes|cat:"~*No->"|cat:$language.lblNo value="No" tabindex="1"}
												</div>
											</li>-->
											<li class="selection clearfix">
												<div class="left1">{$language.lblContentRight}</div>
												<div class="right1">    
													{form->textarea maxlength="200" name="contentRights" class="width-54per" rows="4" cols="50"}
												</div>
											</li>
											<li class="selection clearfix">
												<div class="left1">{$language.lblExternaReference}</div>
												<div class="right1">    
													{form->textbox name="xReference" maxlength="100" class="textbox width-54per"}
												</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>{html->anchor href="content/index/" rel="" content=$language.lblCmsPage} &raquo; </li>
											<li><span>{$language.lblMetaDetails}</span></li>
										</ul>
									</span>
								<div class="form_listing"> 
									<ul class="levl-00">
										<li> <h3><span>{$language.lblMetaDetails}</span></h3></li>
										<li class="selection clearfix">
											<div class="left1">{$language.lblMetaTitle} </div>
											<!--End:Left-->
											<div class="right1">{form->textbox name="contentMetaTitle" class="textbox width-54per" maxlength="100"} </div>
											<!--End:right-->
										</li>
										<li class="selection clearfix">
											<div class="left1">{$language.lblMetaKeyword}</div>
											<!--End:Left-->
											<div class="right1">{form->textarea name="contentMetaKeywords" class="textbox width-54per" maxlength="200"  onkeyup="return ismaxlength(this)" onchange="return ismaxlength(this)"}</div>
											<!--End:right-->
										</li>
										<li class="selection clearfix">
											<div class="left1">{$language.lblMetaDescription}</div>
											<!--End:Left-->
											<div class="right1">{form->textarea name="contentMetaDescription" class="textbox width-54per" maxlength="200" onkeyup="return ismaxlength(this)" onchange="return ismaxlength(this)"}</div>
											<!--End:right-->
										</li>
                    <li class="selection clearfix">
                  <div class="left1">{$language.lblCanonicalLink}</div>
                  <!--End:Left-->
                  <div class="right1">{form->textarea name="canonicalLink" class="textbox width-54per" maxlength="200" onkeyup="return ismaxlength(this)" onchange="return ismaxlength(this)"}</div>
                  <!--End:right-->
                  </li>
                  
                </ul>
           </div>
        <!--End:From Listing-->
      </div>
      <!--End:Border 2-->
    </div>
    {form->close}
    <div  class="tabpane" style="display:none;">
    {form->errors form="formTracking"}
     {form->start name="formTracking" action="" method="post" enctype="multipart/form-data"}
      <div id="track-section" class="save-floating-section">
        <div class="cm-buttons-floating " id="trackingSubmit"> 
                 <div class="submit-position">
                 {form->submit  name="submitTracking" id="submitTracking" class="curve-3 button03" value="{$language.lblSaveTracking}"} 
                 {$language.lblOr}{html->anchor href="content/index/" content=$language.lblCancel}
              </div> 
             </div>
              <div class="cm-buttons"> 
              </div>
              </div>
            <div class="tabpane_inner">
              <span class="BreadCrump">
                <ul class="clearfix">
                  <li>{html->anchor href="content/index/" rel="" content=$language.lblCmsPage} &raquo; </li>
                  <li><span>{$language.lblManageTracking}</span></li>
                </ul>
                </span>
              <div class="form_listing"> 
                <ul class="levl-00">
                  <li> <h3><span>
                  {$language.lblAddRemarketingCode} / {$language.lblConversionTracking}
                  </span></h3></li>
                  <li class="selection clearfix">
                  <div class="left1">{$language.lblRemarketingStart}
                  <span class="small-txt">{$language.lblTrackingMultipleCode}</span></div>
                  <!--End:Left-->
                  <div class="right1"> {form->textarea maxlength="200" name="remarketingCodeStart" class="width-54per" rows="4" cols="50"} </div>
                  <!--End:right-->
                  </li>
                  <li class="selection clearfix">
                  <div class="left1">{$language.lblRemarketingEnd}
                  <span class="small-txt">{$language.lblTrackingMultipleCode}</span></div>
                  <!--End:Left-->
                  <div class="right1"> {form->textarea maxlength="200" name="remarketingCodeEnd" class="width-54per" rows="4" cols="50"}</div>
                  <!--End:right-->
                  </li>
                  <li class="selection clearfix">
                  <div class="left1">{$language.lblConversionCode}
                  <span class="small-txt">{$language.lblTrackingMultipleCode}</span></div>
                  <!--End:Left-->
                  <div class="right1"> {form->textarea maxlength="200" name="conversionCode" class="width-54per" rows="4" cols="50"}</div>
                  <!--End:right-->
                  </li>
                  </ul>
                  </div>
                  </div>
                  {form->close}
                  </div>
  </div>
  </div>
  </div>
  </div>
  <!--End:Content Container-->
{include file='CommonBottom.tpl'} </div>
<!--End:Outer Container-->
{form->editor_script names="introText,content"}
{form->validate_script form="frmContent"}
{html->messages_script id="common_message"}
<script type="text/javascript">
var msgConfirmsub ="{$language.msgConfirmDeleteVersion}"
var settingsRedirectUrl = "{$settingsRedirectforurl}";
var errAlreadyFormExists = "{$language.errAlreadyFormExists}";
var sysKeys = '{$sysKeys}';
</script>
<script type="text/javascript" src="{$common_js}/validate.plugin.js"></script>
<script type="text/javascript" src="{$common_js}/jquery.ui.plugin.js"></script>
<script type="text/javascript" src="{$view_javascript}/jquery-ui-timepicker-addon.js"></script> 
<script type="text/javascript" src="{$view_javascript}/custom-radiobutton.js"></script> 
<script type="text/javascript" src="{$view_javascript}/contentAdd.page.js"></script>
<script	type="text/javascript"	src="{$view_javascript}/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>