<?php /* Smarty version Smarty-3.1.8, created on 2019-10-29 16:12:20
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4274801805db13f5fd43a02-79264953%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5064f6aeba296e83059ed22df7c6058bf983a570' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/OfferAdd.tpl',
      1 => 1572008290,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4274801805db13f5fd43a02-79264953',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5db13f5fe53f75_42944073',
  'variables' => 
  array (
    'language' => 0,
    'offerID' => 0,
    'view_styles' => 0,
    'availableLang' => 0,
    'listBrand' => 0,
    'view_common_languages' => 0,
    'languageVar' => 0,
    'currentContentLanguageID' => 0,
    'specificLanguage' => 0,
    'resLanguageSelects' => 0,
    'testimonialsID' => 0,
    'featured' => 0,
    'offerStartTime' => 0,
    'offerEndTime' => 0,
    'offerImage' => 0,
    'common_js' => 0,
    'view_javascript' => 0,
    'settingsRedirectforurl' => 0,
    'sysKeys' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5db13f5fe53f75_42944073')) {function content_5db13f5fe53f75_42944073($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php if ((($tmp = @$_smarty_tpl->tpl_vars['offerID']->value)===null||$tmp==='' ? '' : $tmp)>0){?>  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferEdit'];?>
  <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferAddNew'];?>
 <?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 ("CommonCustomStyles.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 rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/form_listing.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/inner-formlisting.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/right-menu.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" />
</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--> 
  <!--*************************************************START CONTAINER SECTION*************************************************-->
  <div class="content_container2 clearfix">

        <div class="right-sidebar">
          <div class="side_wrapper"> 
          <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"offer/new/",'href'=>"offer/new/",'class'=>"custom-btnt",'content'=>"<span class='plus-v'></span><span class='plus-h'></span><strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblOfferAddNew'])." </strong>",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblOfferList'])),$_smarty_tpl);?>

          <ul>
                <li>
                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('priv_href'=>"offer/index/",'href'=>"/offer/index/",'class'=>"side_menu_a selected",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblManageOffers'])."<br /><span>".($_smarty_tpl->tpl_vars['language']->value['lblManageOffers'])."</span>"),$_smarty_tpl);?>
 

                </li>

        </ul>
          </div>
        </div>
        <!--End: Right Block-->
        <div class="left_wrapper">
        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formOffer",'action'=>'','method'=>"post"),$_smarty_tpl);?>

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

        
          <div class="content_wrapper">
              <?php if (isset($_smarty_tpl->tpl_vars['offerID']->value)&&$_smarty_tpl->tpl_vars['offerID']->value>0){?>
                <div class="fixing_right">
                     <?php if ($_smarty_tpl->tpl_vars['offerID']->value>0&&(($tmp = @$_smarty_tpl->tpl_vars['availableLang']->value)===null||$tmp==='' ? '' : $tmp)!=0){?>
                 <?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                <?php }?> 
                </div>
                <?php }?>
                <h2>
                <?php if (isset($_smarty_tpl->tpl_vars['offerID']->value)&&$_smarty_tpl->tpl_vars['offerID']->value>0){?>
                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferEdit'];?>

                <?php }else{ ?>		
                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferAddNew'];?>
 
                <?php }?>
                </h2>
                <div class="inner_content_wrapper">
                <div id="common_message"></div>
                  <div class="form_listing form_listing03">
                        <ul>
                        <li class="clearfix">
							<div class="leftside01 mandatory">
								<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuBrands'];?>

							</div>
							<!--End:Left-->
							<div class="rightside01"> 
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('style'=>"width:45%;",'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="leftside01 mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferTitle'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"offerTitle",'class'=>"textbox",'tabindex'=>"8",'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errOfferofferTitleRequired'])),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferUrlKey'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['offerID']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"offerUrlKey",'class'=>"textbox",'tabindex'=>"1",'validate'=>"required~*isUrlKey~*offerUrlKey->database->offers,offerUrlKey,offerID!='".$_tmp1."' AND status!='D'",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errOfferofferUrlKeyRequired']).('~*~*')).($_smarty_tpl->tpl_vars['language']->value['errUrlKeyExists']),'validate_inline'=>"yes"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                                  <!--Language specific start-->           
                        <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
                        <li class="clearfix">
                            <div class="leftside01 mandatory">
                                <?php echo $_smarty_tpl->tpl_vars['language']->value['lblLanguages'];?>
:
                            </div>						
                            <div class="rightside01 ">
                                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['availableLang']->value)===null||$tmp==='' ? '' : $tmp)==0||(($tmp = @$_smarty_tpl->tpl_vars['availableLang']->value)===null||$tmp==='' ? '' : $tmp)==''){?>
                                <?php $_smarty_tpl->tpl_vars["languageVar"] = new Smarty_variable("Yes", null, 0);?> 
                                <?php }else{ ?>
                                <?php $_smarty_tpl->tpl_vars["languageVar"] = new Smarty_variable("No", null, 0);?> 
                                <?php }?>
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"langSelect",'class'=>"AllLangOptions",'options'=>"Yes->".($_smarty_tpl->tpl_vars['language']->value['lblCommonLanguage'])."~*No->".($_smarty_tpl->tpl_vars['language']->value['lblSpecificLanguage']),'value'=>$_smarty_tpl->tpl_vars['languageVar']->value),$_smarty_tpl);?>

                            </div>
                        </li>											 

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

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['featured']->value=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"featured",'value'=>"Yes",'checked'=>$_tmp2,'tabindex'=>"4"),$_smarty_tpl);?>

                                </div>
                                <!--End:right-->
                          </li>
                          <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblStartDate'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['offerStartTime']->value)===null||$tmp==='' ? '' : $tmp)!=''&&(($tmp = @$_smarty_tpl->tpl_vars['offerStartTime']->value)===null||$tmp==='' ? '' : $tmp)!="0000-00-00 00:00"){?> 
                                     <?php $_smarty_tpl->tpl_vars["offerStartTime"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['offerStartTime']->value), null, 0);?>
                                    <?php }else{ ?>
                                     <?php $_smarty_tpl->tpl_vars["offerStartTime"] = new Smarty_variable('', null, 0);?>
                                    <?php }?> 
                                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"offerStartTime",'tabindex'=>"5",'validate'=>"required",'autocomplete'=>"OFF",'error'=>$_smarty_tpl->tpl_vars['language']->value['errStartDate'],'class'=>"text-box date-field"),$_smarty_tpl);?>

                                </div>
                                <!--End:right-->
                          </li>
                                 <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEndDate'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                    <?php if ((($tmp = @$_smarty_tpl->tpl_vars['offerEndTime']->value)===null||$tmp==='' ? '' : $tmp)!=''&&(($tmp = @$_smarty_tpl->tpl_vars['offerEndTime']->value)===null||$tmp==='' ? '' : $tmp)!="0000-00-00 00:00"){?> 
                                     <?php $_smarty_tpl->tpl_vars["offerEndTime"] = new Smarty_variable($_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['offerEndTime']->value), null, 0);?>
                                    <?php }else{ ?>
                                     <?php $_smarty_tpl->tpl_vars["offerEndTime"] = new Smarty_variable('', null, 0);?>
                                    <?php }?> 
                                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"offerEndTime",'tabindex'=>"5",'validate'=>"required~*hiddenStartEndDate->value->0->required",'autocomplete'=>"OFF",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errEndDate']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errStartEndDate']),'class'=>"text-box date-field"),$_smarty_tpl);?>

                                   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hiddenStartEndDate",'value'=>"0"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01  mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferDescription'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('name'=>"offerDescription",'rows'=>"5",'cols'=>"30",'mode'=>"advanced",'skin'=>2,'tabindex'=>"9",'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errOfferofferDescriptionRequired'])),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01 ">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferSubTitle'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"offerSubTitle",'class'=>"textbox",'tabindex'=>"9"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01 ">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferSubDescription'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"offerSubDescription",'class'=>"textarea",'tabindex'=>"9"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>        
                        <li class="clearfix">
                                <div class="leftside01 mandatory ">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferImage'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('name'=>"offerImage",'tabindex'=>"2",'path'=>"uploads/offer/thumb/",'file'=>(($tmp = @$_smarty_tpl->tpl_vars['offerImage']->value)===null||$tmp==='' ? '' : $tmp),'validate'=>"required",'error'=>($_smarty_tpl->tpl_vars['language']->value['errOfferofferImageRequired'])),$_smarty_tpl);?>

                                </div>
                                <!--End:right-->
                          </li>        
                        <li class="clearfix">
                                <div class="leftside01 ">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferMetaTitle'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"offerMetaTitle",'class'=>"textarea",'tabindex'=>"10"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01  "> 
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferMetaDescription'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"offerMetaDescription",'class'=>"textbox",'tabindex'=>"11"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                        <li class="clearfix">
                                <div class="leftside01 ">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferofferMetaKeywords'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"offerMetaKeywords",'class'=>"textbox",'tabindex'=>"12"),$_smarty_tpl);?>
 
                                </div>
                                <!--End:right-->
                          </li>
                          <li class="clearfix">
                                <div class="leftside01 mandatory">
                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOfferstatus'];?>

                                </div>
                                <!--End:Left-->
                                <div class="rightside01"> 
                                        <div id="perioddiv">
                                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"status",'class'=>"customradio",'tabindex'=>"6",'value'=>"A",'options'=>"A->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*I->".($_smarty_tpl->tpl_vars['language']->value['lblInactive'])),$_smarty_tpl);?>
 
                                        </div>
                                </div>
                                <!--End:right-->
                          </li>
                          <li class="clearfix">
                                <div class="submit-block clearfix"> 
                                                <span>  </span>
                                                <div class="leftside01"> </div>
                                                <div class="rightside01">	
                                                <?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['offerID']->value)&&$_smarty_tpl->tpl_vars['offerID']->value>0){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblUpdate'];?><?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSave'];?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitOffer",'class'=>"curve-3",'value'=>$_tmp3),$_smarty_tpl);?>

                                                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>

                                                        <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"offer/index/",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblCancel'])),$_smarty_tpl);?>


                                                 </div>
                                        </div>
                                <!--End:right-->
                          </li>
                        </ul>
                  </div>
                  <!--End:From Listing--> 
                </div>
                <!--End:Border 3--> 
          </div>
          <!--End:Border 2--> 
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
          </div>
        <!--End: left Block-->
        <div class="clear"></div>
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--*********************************************END CONTAINER SECTION******************************************************--> 
<!--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->getSubTemplate ('CommonJavaScriptBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script> 
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->basepath_script(array(),$_smarty_tpl);?>

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

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

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

<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;?>
/offerAdd.page.js"></script>
<script type="text/javascript">
    var settingsRedirectUrl = '<?php echo $_smarty_tpl->tpl_vars['settingsRedirectforurl']->value;?>
';
var sysKeys = '<?php echo $_smarty_tpl->tpl_vars['sysKeys']->value;?>
';
    var lblAny              =   '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelect'];?>
';
        
        $(function(){
                 $('#perioddiv input').customInput('');
        });	
        
</script>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/uploadImage.plugin.js"></script> 
<script>
$(document).ready(function(){	
    checkParentlanguageIDs();
   // $('input[type="submit"]').prop("disabled", true);
var a=0;

if($('.AllLangOptions').is(':checked')){           
            if($('input[type="radio"]:checked').val() == 'No'){
            $('.langSpecific').show();
            }else{
            $('.langSpecific').hide();
            }
        }
    $('.AllLangOptions').click(function(){       
        if($('input[type="radio"]:checked').val() == 'No'){
        $('.langSpecific').show();
        }else{
        $('.langSpecific').hide();
        }
    });
});



//To validate parent menu item language change.
function checkParentlanguageIDs() {
    //Module check section 
    var itemType = $('#menuItemType option:selected').attr('modKey');
        if(itemType=='text'){
            $('.AjaxLinkDiv').attr('style','display:none');
        } 
        //module ends
	$("#hiddenParentLangCheck").val(0);
         $("#hiddenLangCheck").val(0);      
        var allLang=$('input:radio[name="langSelect"]:checked').val();
        var selLanguages = [];    
    if(allLang=='Yes'){ 
        var selected = '0'; 
        $("#hiddenLangCheck").val(0);                              
        $("#checkContentLang").trigger('blur');  
    }else {   
        var selected = '';
        $('#specificLangDiv input[type="checkbox"]:checked').each(function () {
                selLanguages .push($(this).val());
        });        
    }   
     if(selLanguages.length>0){
             $("#checkLangSelect").val(1);
         }else {
              $("#checkLangSelect").val('');
         }
         $("#checkLangSelect").trigger('blur');         
    if((selected!='0') )  {
               var content = $('#currentContentLanguageID').val();
               //check content languaage & selected language
                if((selLanguages.indexOf(content))== -1){
                    $("#hiddenLangCheck").val(1);                              
                    $("#checkContentLang").trigger('blur');                    
                }               
                        
	} 
        return false;
 } 
 
 $(".cntntlanguage").change(function () {
        checkParentlanguageIDs();
    })
     var currDate = new Date;
        currDate.setDate(currDate.getDate() - 1);
        currDate.setHours(00);
        currDate.setMinutes(00);
     $('#offerStartTime').datetimepicker({
            minDate: currDate,
             onSelect: function (dateText, inst) {
                $("#div_err_formOffer_offerStartTime").addClass("hide");
            }
        });
        $('#offerEndTime').datetimepicker({
            minDate: currDate,
             onSelect: function (dateText, inst) {
                $("#div_err_formOffer_offerEndTime").addClass("hide");
            }
        });
           $("#offerStartTime,#offerEndTime").change(function () {
            var setStartEndDateValidation = setCouponStartEndDateValidation();
        })
	function setCouponStartEndDateValidation() {
            var startDate = convertDate($("#offerStartTime").val(), datePickerDateFormat);
            var endDate = convertDate($("#offerEndTime").val(), datePickerDateFormat);
            if ((startDate < endDate) && (startDate != "") && (endDate != "")) {
                $("#hiddenStartEndDate").val(0);
            } else {
                $("#hiddenStartEndDate").val(1);
            }
        }
</script>

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