<?php /* Smarty version Smarty-3.1.8, created on 2024-07-17 13:01:09
         compiled from "/home/agmc/beta/application/core/views/manage/standard/WidgetTab.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11848257505e71edf60fbf64-42827227%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4abaced4c2fabcdb30b7d3c0d03c7fe61bf57439' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/WidgetTab.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11848257505e71edf60fbf64-42827227',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e71edf61a5422_78292283',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'view_images' => 0,
    'widgetID' => 0,
    'widgetTitle' => 0,
    'tabID' => 0,
    'resTabs' => 0,
    'tabs' => 0,
    'tstatus' => 0,
    'view_public_path' => 0,
    'showItemLabel' => 0,
    'isFeatured' => 0,
    'enableViewMore' => 0,
    'viewMoreLabelType' => 0,
    'showLinkWarning' => 0,
    'enableAutogenerate' => 0,
    'brandID' => 0,
    'wCategoryID' => 0,
    'resItems' => 0,
    'item' => 0,
    'type' => 0,
    'view_javascript' => 0,
    'attrData' => 0,
    'common_js' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e71edf61a5422_78292283')) {function content_5e71edf61a5422_78292283($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblModuleWidgets'];?>
</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); ?>

<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;?>
/colorbox.css" media="screen" />
<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" />
<style>
.date_picker_field.disabled{
	background: #EBEBE4 url(<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/sprite/sprite-icons.png) no-repeat right 5px !important;
	border: 1px solid CECECC !important;
}
.deleteConditionRow,.deleteGroupRow{
	float:right;
	font-size: 10px;
	font-weight: bold;
	margin-left:5px;
}

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

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

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

</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_container4 clearfix">
        <div class="wdgt-tab-section">
        <div class="wdgt-tab-head clearfix">
        	 <h4 class="page-head fixing_left inactive"> <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/edit/id/".($_smarty_tpl->tpl_vars['widgetID']->value)."/",'class'=>"icon-set-af edit",'content'=>($_smarty_tpl->tpl_vars['widgetTitle']->value)),$_smarty_tpl);?>
 
       </h4><?php $_smarty_tpl->tpl_vars["tabID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['tabID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
		<?php $_smarty_tpl->tpl_vars["resTabs"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resTabs']->value)===null||$tmp==='' ? array() : $tmp), null, 0);?>
             <ul class="wdgt-tab2 fixing_right">		
		  <?php if (count($_smarty_tpl->tpl_vars['resTabs']->value)>0){?>
		  <?php  $_smarty_tpl->tpl_vars["tabs"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["tabs"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resTabs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["tabs"]->key => $_smarty_tpl->tpl_vars["tabs"]->value){
$_smarty_tpl->tpl_vars["tabs"]->_loop = true;
?>
		  <?php if ($_smarty_tpl->tpl_vars['tabs']->value['widgetTabID']==$_smarty_tpl->tpl_vars['tabID']->value){?> <?php $_smarty_tpl->tpl_vars["tstatus"] = new Smarty_variable("active", null, 0);?> <?php }else{ ?> <?php $_smarty_tpl->tpl_vars["tstatus"] = new Smarty_variable('', null, 0);?><?php }?>
<li><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/tabs/wid/".($_smarty_tpl->tpl_vars['widgetID']->value)."/tid/".($_smarty_tpl->tpl_vars['tabs']->value['widgetTabID'])."/",'class'=>"tab ".($_smarty_tpl->tpl_vars['tstatus']->value)." icon-set-af",'content'=>($_smarty_tpl->tpl_vars['tabs']->value['tabTitle'])),$_smarty_tpl);?>

		</li>
 <?php } ?>
	        <?php }?>
		<li>
		<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/widget/tabs/wid/".($_smarty_tpl->tpl_vars['widgetID']->value)."/",'class'=>"icon-set-bf add-new-btn2",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblAddTab'])),$_smarty_tpl);?>
 
		</li>
             </ul>
	</div>
    
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formWtab",'action'=>'','method'=>"post"),$_smarty_tpl);?>
    
         <div class="wdgt-tab-cnt">
          <div id="common_message" style="display: none;"></div>
          <div class="create-wdgt">
          <div class="clearfix"><div class="fixing_right space-t-l"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div></div>
         <div class="form_listing form_listing03">
	    
         <div class="clearfix">
          	<div class="left-pane fixing_left">
            	<ul ><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"postItemIds"),$_smarty_tpl);?>

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

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"no_image_path",'value'=>($_smarty_tpl->tpl_vars['view_images']->value)."/thumbnail.gif"),$_smarty_tpl);?>

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"image_path",'value'=>($_smarty_tpl->tpl_vars['view_public_path']->value)."/uploads/"),$_smarty_tpl);?>
			
			
                	<li class="clearfix">
                    	<span class="leftside01 mandatory"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblTabTitle'];?>
</strong></span>
                        <span class="rightside01 ">
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"text-box",'name'=>"tabTitle",'validate'=>"required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errRequired']),$_smarty_tpl);?>

				</span>
                  </li>
                    <li class="clearfix">
                    	<span class="leftside01 fixing_left mandatory"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblNumberofitem'];?>
</strong></span>
                        <span class="rightside01 "><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('validate'=>"required~*isWholeNumberWithOutZero",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errRequired']).("~*")).($_smarty_tpl->tpl_vars['language']->value['errMinimumLimit']),'value'=>"5",'class'=>"text-box",'name'=>"itemCount"),$_smarty_tpl);?>
</span>
                  </li>
				  
		     <li class="clearfix">
                    	<span class="leftside01 fixing_left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowItemLabel'];?>
</span>
                        <span class="rightside01 top-spc"><?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['showItemLabel']->value=='Yes'){?><?php echo "checked";?><?php }?><?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"showItemLabel",'value'=>"Yes",'checked'=>$_tmp1),$_smarty_tpl);?>

                </span>
                  </li>	
				  
                 <li class="clearfix">
                    <span class="leftside01 fixing_left mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetType'];?>
</span>
                    <span class="rightside01">
					<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"widgetType",'options'=>"default->Default~*static->Static",'value'=>"default"),$_smarty_tpl);?>
 
                    </span>
		</li>
   
                    
            <li class="clearfix staticDiv">
                    	<span class="leftside01 fixing_left"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblListingType'];?>
</strong></span>
                        <span class="rightside01 " id="listType">
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"listingType",'tabindex'=>"8",'options'=>"you_may_like->".($_smarty_tpl->tpl_vars['language']->value['lblYoumaylike'])."~*categories->".($_smarty_tpl->tpl_vars['language']->value['lblCategories'])."~*custom->Custom"),$_smarty_tpl);?>
 	
                      </span>
                  </li>
	
		    <li class="clearfix promotionTab">
                    	<span class="leftside01 fixing_left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblisFeatured'];?>
</span>
                        <span class="rightside01 ">
			<?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['isFeatured']->value)&&$_smarty_tpl->tpl_vars['isFeatured']->value=='Yes'){?><?php echo "checked";?><?php }?><?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"promotion_data[conditions][isFeatured]",'value'=>"Yes",'checked'=>$_tmp2),$_smarty_tpl);?>
 	
                      </span>
                  </li>
                    <li class="clearfix promotionTab">
                    	<span class="leftside01 fixing_left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOrderBy'];?>
</span>
                        <span class="rightside01 ">
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"promotion_data[conditions][orderBy]",'options'=>"none->".($_smarty_tpl->tpl_vars['language']->value['lblSelect'])."~*best_seller->".($_smarty_tpl->tpl_vars['language']->value['lblBestSeller'])."~*productID->".($_smarty_tpl->tpl_vars['language']->value['lblNewArrivals'])."~*discount->".($_smarty_tpl->tpl_vars['language']->value['lblSpecialOffer'])),$_smarty_tpl);?>
 	
                      </span>
                  </li>
                </ul>
            </div>
           
            <div class="right-pane fixing_right">
            	<ul >
                <li class="clearfix">
                    	<span class="leftside01 fixing_left"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowViewMore'];?>
</span>
                        <span class="rightside01 top-spc ">			 
			<?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['enableViewMore']->value)&&$_smarty_tpl->tpl_vars['enableViewMore']->value=='Yes'){?><?php echo "checked";?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"enableViewMore",'value'=>"Yes",'checked'=>$_tmp3),$_smarty_tpl);?>
			
                        </span>
                  </li>
				  <li class="clearfix">
                    	
                        <span class="rightside01 top-spc ">			 				
					    <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"ajax/generatecataloglink/?id=widgetLink",'id'=>"generateCatalogLink",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblImportCatUrl']),'title'=>($_smarty_tpl->tpl_vars['language']->value['lblGenerateCatalogLinks']),'class'=>"linkbtnt01"),$_smarty_tpl);?>
			 
                        </span>
                  </li>
                 <li class="clearfix" style="display: none" id="customShow">
		  <span class="leftside01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddCustomLabel'];?>
</span>
			 <span class="rightside01 top-spc "><?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['viewMoreLabelType']->value)&&$_smarty_tpl->tpl_vars['viewMoreLabelType']->value=='custom'){?><?php echo "checked";?><?php }?><?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"viewMoreLabelType",'value'=>"custom",'checked'=>$_tmp4),$_smarty_tpl);?>
 
				
                             <span class="blk-group" id="viewMore" style="display: none"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('validate'=>"viewMoreLabelType->isEqual->custom~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errRequired'],'class'=>"text-box",'name'=>"viewMoreLabel"),$_smarty_tpl);?>
 </span> 
                  </span></li>
		  <li class="clearfix" style="display: none" id="viewMoreLink">
                    	<span class="leftside01" ><?php echo $_smarty_tpl->tpl_vars['language']->value['lblViewMoreLink'];?>
</span>
                        <span class="rightside01 ">
			      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"text-box",'name'=>"viewMoreLink"),$_smarty_tpl);?>

			      <?php if (isset($_smarty_tpl->tpl_vars['showLinkWarning']->value)&&$_smarty_tpl->tpl_vars['showLinkWarning']->value==1){?><div id="linkWarn" class="message_info "><?php echo $_smarty_tpl->tpl_vars['language']->value['lblviewMoreWarn'];?>
</div><?php }?>
                  </span>
			<span class="rightside01"><?php ob_start();?><?php if (isset($_smarty_tpl->tpl_vars['enableAutogenerate']->value)&&$_smarty_tpl->tpl_vars['enableAutogenerate']->value=='Yes'){?><?php echo "checked";?><?php }?><?php $_tmp5=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"enableAutogenerate",'value'=>"Yes",'checked'=>$_tmp5),$_smarty_tpl);?>
			
                        <?php echo $_smarty_tpl->tpl_vars['language']->value['lblAutoGenerateLink'];?>
</span>
			
                  </li>
<li class="clearfix">
				<div class="leftside01 mandatory">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblWidgetstatus'];?>

				</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'=>"7",'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>
                </ul>
            </div>
            
          </div>
           <ul>
                             <li class="clearfix staticDiv1">
                    <span class="leftside01 fixing_left" style="width: 17%;"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStaticContents'];?>
</strong></span>
                    <span class="rightside01" style="width: 82%;"> 
			      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('validate'=>"widgetType->isEqual->static~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errcontentRequire'],'mode'=>"simple",'skin'=>2,'name'=>"staticWidgetContent",'id'=>"staticWidgetContent",'class'=>"textarea",'uploads'=>"widgets"),$_smarty_tpl);?>

                       
                    </span>
		</li>
                
            </ul>
          <ul>
              <li class="clearfix full_width_list staticDiv">
            	<div class="rightside01-new  ">
                	<div class="wdgt-addblck">
                    <div class="info-message" id="dragInfo"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDragDropsettingpriority'];?>
</div>
                    <h6>
		 <!--  <span id="brandLink"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"tabs/ajaxLoadBrands/",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblPromotionSchemaLinkBrands']),'rel'=>"brands",'class'=>"popupPicker icon-set-bf",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblPromotionSchemaLinkBrands'])),$_smarty_tpl);?>
 </span>  -->
		  <span id="pdtLink" style="display: none"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"products",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblAddProduct']),'href'=>"tabs/ajaxLoadProducts/brandID/".($_smarty_tpl->tpl_vars['brandID']->value)."/",'class'=>"icon-set-bf popupPicker",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblAddProduct'])),$_smarty_tpl);?>
 
		  </span> 
		  <span id="catLink" style="display: none"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"categories",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblAddCategories']),'href'=>"tabs/ajaxLoadCategories/catID/".($_smarty_tpl->tpl_vars['wCategoryID']->value)."/brandID/".($_smarty_tpl->tpl_vars['brandID']->value)."/",'class'=>"popupPicker icon-set-bf",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblAddCategories'])),$_smarty_tpl);?>
 
		  </span> 
		    </h6>
            <?php if ($_smarty_tpl->tpl_vars['tabID']->value){?>
		    <ul id="contentList" class="item-list">
			<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resItems']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
			<li id="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemID'])===null||$tmp==='' ? '' : $tmp);?>
" class="clearfix pickerDataListCommon <?php echo $_smarty_tpl->tpl_vars['type']->value;?>
" rel="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemID'])===null||$tmp==='' ? '' : $tmp);?>
" type="<?php echo $_smarty_tpl->tpl_vars['type']->value;?>
">
			<a class="deletePickerDataRowCommon delete03 icon-set fixing_right" title="Delete" rel="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemID'])===null||$tmp==='' ? '' : $tmp);?>
" href="Javascript:void(0);"></a>
			<div class="img-div"><?php if ((($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemIcon'])===null||$tmp==='' ? '' : $tmp)){?><img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemIcon'])===null||$tmp==='' ? '' : $tmp);?>
" width="40"/><?php }else{ ?>
            <img src="<?php echo $_smarty_tpl->tpl_vars['view_images']->value;?>
/thumbnail.gif" alt ="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemName'])===null||$tmp==='' ? '' : $tmp);?>
" width="40"/>
            <?php }?></div>
			<?php echo (($tmp = @$_smarty_tpl->tpl_vars['item']->value['itemName'])===null||$tmp==='' ? '' : $tmp);?>

			</li>
			<?php } ?>
                    </ul>
		    <?php }else{ ?>
                    <ul id="contentList" style="display: none" class="item-list">                    	                      
                    </ul>

		    <?php }?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidItem",'value'=>''),$_smarty_tpl);?>
			
                        <div class="tabpane">
			<div class="tabpane_inner"> 
			<div class="promotionTab promotionTabblock" style="display: none">
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"validateConditionSelection",'validate'=>"callback_checkConditionFields",'error'=>$_smarty_tpl->tpl_vars['language']->value['errEnterTabConditions']),$_smarty_tpl);?>

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

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

						      </div>
                          	</div>
					</div>                            
                    </div>
                </div>
            </li>
            <li class="clearfix">
             <div class="submit-block clearfix textto_center"> 
						<span>&nbsp; </span>
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitWtab",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave']),'class'=>"curve-3"),$_smarty_tpl);?>

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

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

          </div>
                  </li>
            </ul>
           
          <!--End:Border 3--> 
          </div>
          </div>
       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 </div>
        <!--End:Border 2--> 
  </div>
  <!--***********************************************************************END CONTAINER SECTION****************************************************--> 
  <!--End:Content Container-->
 <!--********************-->
<!--End:Content Container-->
<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
 
</div>
</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['view_javascript']->value;?>
/custom-radiobutton.js"></script> 
<script type="text/javascript">

$(function(){
	 $('.customradio').customInput('');
	});	
var lblDelete = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
";
var lblPromoProductQuantity = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromoProductQuantity'];?>
";
var msgConfirmDelete="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionCouponDeleted'];?>
";
var lblSelectItem ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
";
var msgSelectAStatus ="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectAStatus'];?>
";
var lblCombinations ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCombinations'];?>
";
var lblVariants ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblVariants'];?>
";
var lblCustomOptions ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCustomOptions'];?>
";
<?php if (isset($_smarty_tpl->tpl_vars['attrData']->value)&&$_smarty_tpl->tpl_vars['attrData']->value){?>
	var attrArray = <?php echo $_smarty_tpl->tpl_vars['attrData']->value;?>
;
	var attrData = attrArray.attributeArray;
	var attrOptionData = attrArray.attrOptionArray;
	var attrForOption = '';
	$.each(attrData, function(index, value) {
		attrForOption = attrForOption + '<option value="'+value['attributeID']+'" attrInputType="'+value['attrInputType']+'">'+value['attrName']+'</option>';
	});
	$(".promoConditionCopySource").find(".promotionCondtionElement_attributes").append(attrForOption);
	$(".promoBonusCopySource").find(".promotionBonusElement_attributes").append(attrForOption);
<?php }?>
</script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/tabs.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" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script> 
<script type="text/javascript">
var lblWidgetPrioritySuccess="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblwidgetPrioritySuccess'];?>
";
var msgDeleteItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
';
var msgSelectItem	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
';
var lblSelectAction			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
';
var msgSelectSearchCriteria	= '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
';
var lblSelectItem			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
';
var lblDelete			= '<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
';
var msgConfirmDeletetab      = '<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'];?>
';
</script>


<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor_script(array('names'=>"staticWidgetContent"),$_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]->basepath_script(array(),$_smarty_tpl);?>

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

$(document).ready(function(){
	$("#generateCatalogLink").colorbox({iframe:true, width:"80%", height:"80%"});
});
$('.item-list').sortable({		
		items: "> li",
		placeholder:'placeholder2',
		update: function(event, ui) {
			var result = $(this).sortable('toArray');						 
			$("#postItemIds").val(result);
			}
	});

	</script>
<script type="text/javascript">
setTimeout(function(){ $("#linkWarn").slideUp();},10000);
</script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"formWtab"),$_smarty_tpl);?>

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