<?php /* Smarty version Smarty-3.1.8, created on 2019-12-12 14:53:15
         compiled from "/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/WidgetTabConditions.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4143114585ddb6dd48d8d84-76555984%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4f923b6e2a23c668c850dfd8a51c4eb9cdc4dfc0' => 
    array (
      0 => '/home/stg70/public_html/agmc-v2/application/core/views/manage/standard/WidgetTabConditions.tpl',
      1 => 1576147641,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4143114585ddb6dd48d8d84-76555984',
  'function' => 
  array (
    'generateConditions' => 
    array (
      'parameter' => 
      array (
      ),
      'compiled' => '',
    ),
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5ddb6dd4ab8dc5_37829228',
  'variables' => 
  array (
    'language' => 0,
    'resDataConditions' => 0,
    'resDataConditionsSet' => 0,
    'resDataConditionsset_value' => 0,
    'data' => 0,
    'appendConditionVar' => 0,
    'eachDataCondition' => 0,
    'appendConditionRootVar' => 0,
    'appendRootRelVarRoot' => 0,
    'eachDataConditionKey' => 0,
    'relForRoot' => 0,
    'schemaData' => 0,
    'eachDataConditionSchema' => 0,
    'appendRootRelVar' => 0,
    'dataCondition' => 0,
    'dataConditionSchemaGroupKey' => 0,
    'operatorKey' => 0,
    'operatorSelectors' => 0,
    'cnt' => 0,
    'yl' => 0,
    'numberArray' => 0,
    'store_id' => 0,
    'valueDetailsKey' => 0,
    'valueDetailsIds' => 0,
    'valueDetails' => 0,
    'mixedTextBoxHide' => 0,
    'mixedSelectBoxHide' => 0,
    'option_list' => 0,
    'value_select' => 0,
    'conditionCount' => 0,
    'dataConditionSchema' => 0,
    'dataConditionSchemaGroup' => 0,
    'conditionsDataCounter' => 0,
    'dataConditionSchemaoptionGroup' => 0,
    'customFieldClass' => 0,
    'userGrpData' => 0,
    'countryData' => 0,
    'stateData' => 0,
    'paymentMethodData' => 0,
    'selectTypeOptions' => 0,
    'conditionDataArray' => 0,
    'optionGroupStatus' => 0,
  ),
  'has_nocache_code' => 0,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5ddb6dd4ab8dc5_37829228')) {function content_5ddb6dd4ab8dc5_37829228($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars["appendConditionVar"] = new Smarty_variable(0, null, 0);?>
<?php $_smarty_tpl->tpl_vars["appendConditionRootVar"] = new Smarty_variable(1, null, 0);?>
<?php $_smarty_tpl->tpl_vars["appendRootRelVarRoot"] = new Smarty_variable('', null, 0);?>
<?php $_smarty_tpl->tpl_vars["appendRootRelVar"] = new Smarty_variable('', null, 0);?>
<div class="form_listing promoConditionList">
	<ul class="levl-00 promoRoot" rel="">
		<li class="clearfix"><h3>
<span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditions'];?>
</span>
</h3></li>
		<li class="clearfix promoConditionParent">
			<div>
				<?php if (isset($_smarty_tpl->tpl_vars['resDataConditions']->value)){?>
					<?php $_smarty_tpl->tpl_vars["resDataConditionsSet"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resDataConditions']->value['set'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
					<?php $_smarty_tpl->tpl_vars["resDataConditionsset_value"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resDataConditions']->value['set_value'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
				<?php }else{ ?>
					<?php $_smarty_tpl->tpl_vars["resDataConditionsSet"] = new Smarty_variable('', null, 0);?>
					<?php $_smarty_tpl->tpl_vars["resDataConditionsset_value"] = new Smarty_variable('', null, 0);?>
				<?php }?>
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote1'];?>
&nbsp;
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>"promotion_data[conditions][set]",'options'=>"all->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAll'])."~*any->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAny']),'value'=>$_smarty_tpl->tpl_vars['resDataConditionsSet']->value),$_smarty_tpl);?>
&nbsp;
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote2'];?>
&nbsp;
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>"promotion_data[conditions][set_value]",'options'=>"1->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionTrue'])."~*0->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionFalse']),'value'=>$_smarty_tpl->tpl_vars['resDataConditionsset_value']->value),$_smarty_tpl);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('caption'=>($_smarty_tpl->tpl_vars['language']->value['lblPromotionAddCondition']),'class'=>"promotionAddCondition grayBtn fixing_right"),$_smarty_tpl);?>

														
			</div>										
		</li> 	
		
		
		
		<?php if (!function_exists('smarty_template_function_generateConditions')) {
    function smarty_template_function_generateConditions($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['generateConditions']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
    foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
			<?php  $_smarty_tpl->tpl_vars['eachDataCondition'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['eachDataCondition']->_loop = false;
 $_smarty_tpl->tpl_vars['eachDataConditionKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['eachDataCondition']->key => $_smarty_tpl->tpl_vars['eachDataCondition']->value){
$_smarty_tpl->tpl_vars['eachDataCondition']->_loop = true;
 $_smarty_tpl->tpl_vars['eachDataConditionKey']->value = $_smarty_tpl->tpl_vars['eachDataCondition']->key;
?>			
				<?php $_smarty_tpl->tpl_vars["appendConditionVar"] = new Smarty_variable($_smarty_tpl->tpl_vars['appendConditionVar']->value+1, null, 0);?>	
				<li class="clearfix promoConditionAppended" id="promoConditionAppended_<?php echo $_smarty_tpl->tpl_vars['appendConditionVar']->value;?>
">
					<?php if ((isset($_smarty_tpl->tpl_vars['eachDataCondition']->value['conditions'])&&(is_array($_smarty_tpl->tpl_vars['eachDataCondition']->value['conditions'])))||$_smarty_tpl->tpl_vars['eachDataCondition']->value['condition']==''){?>
						<?php $_smarty_tpl->tpl_vars["appendConditionRootVar"] = new Smarty_variable($_smarty_tpl->tpl_vars['appendConditionRootVar']->value+1, null, 0);?>	
						<?php $_smarty_tpl->tpl_vars["appendRootRelVarRoot"] = new Smarty_variable(((($_smarty_tpl->tpl_vars['appendRootRelVarRoot']->value).("[conditions][")).($_smarty_tpl->tpl_vars['eachDataConditionKey']->value)).("]"), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["relForRoot"] = new Smarty_variable(((($_smarty_tpl->tpl_vars['relForRoot']->value).("[conditions][")).($_smarty_tpl->tpl_vars['eachDataConditionKey']->value)).("]"), null, 0);?>
						<ul class="levl-00 promoRoot" rel="<?php echo $_smarty_tpl->tpl_vars['relForRoot']->value;?>
" id="promoRootConditionAppended_<?php echo $_smarty_tpl->tpl_vars['appendConditionRootVar']->value;?>
">
							<div><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('caption'=>($_smarty_tpl->tpl_vars['language']->value['lblPromotionAddCondition']),'class'=>"promotionAddCondition grayBtn fixing_right"),$_smarty_tpl);?>

								<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote1'];?>
&nbsp;
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['relForRoot']->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>(("promotion_data[conditions]").($_tmp1)).("[set]"),'options'=>"all->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAll'])."~*any->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAny']),'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['set']),$_smarty_tpl);?>
&nbsp;
								<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote2'];?>
&nbsp;
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['relForRoot']->value;?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>(("promotion_data[conditions]").($_tmp2)).("[set_value]"),'options'=>"1->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionTrue'])."~*0->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionFalse']),'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['set_value']),$_smarty_tpl);?>

								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteGroupRow grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

																
							</div>							
							<?php smarty_template_function_generateConditions($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['conditions']));?>

							<?php $_smarty_tpl->tpl_vars["appendRootRelVarRoot"] = new Smarty_variable('', null, 0);?>
							<?php $_smarty_tpl->tpl_vars["relForRoot"] = new Smarty_variable('', null, 0);?>
						</ul>
					<?php }else{ ?>
						<?php $_smarty_tpl->tpl_vars["appendRootRelVar"] = new Smarty_variable(((($_smarty_tpl->tpl_vars['appendRootRelVarRoot']->value).("[conditions][")).($_smarty_tpl->tpl_vars['eachDataConditionKey']->value)).("]"), null, 0);?>
						<?php $_smarty_tpl->tpl_vars["eachDataConditionSchema"] = new Smarty_variable($_smarty_tpl->tpl_vars['schemaData']->value['conditions'][$_smarty_tpl->tpl_vars['eachDataCondition']->value['condition']], null, 0);?>
						<?php $_smarty_tpl->tpl_vars["dataCondition"] = new Smarty_variable($_smarty_tpl->tpl_vars['eachDataCondition']->value['condition'], null, 0);?>						
						<?php if (isset($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['group'])){?>
							<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroupKey"] = new Smarty_variable($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['group'], null, 0);?>			
						<?php }else{ ?>
							<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroupKey"] = new Smarty_variable('', null, 0);?>			
						<?php }?>						
						<div class="conditionInd clearfix">	
							<div class="left2 clearfix">
                            <span class="spanBld"><?php echo $_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['lang']];?>
</span>
                            <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"promotionCondtion",'name'=>(("promotion_data[conditions]").($_tmp3)).("[condition]"),'value'=>$_smarty_tpl->tpl_vars['dataCondition']->value),$_smarty_tpl);?>

							<?php if ($_smarty_tpl->tpl_vars['dataConditionSchemaGroupKey']->value){?>
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp4=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"promotionCondtionGroup",'name'=>(("promotion_data[conditions]").($_tmp4)).("[condition_group]"),'value'=>$_smarty_tpl->tpl_vars['dataConditionSchemaGroupKey']->value),$_smarty_tpl);?>

							<?php }?>	
							<?php if ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='mixed'){?>
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp5=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px promotionCondtionElement_".($_smarty_tpl->tpl_vars['dataCondition']->value)." requiredData",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'name'=>(("promotion_data[conditions]").($_tmp5)).("[condition_element]"),'options'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['select_list'],'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['condition_element'],'custom'=>"true"),$_smarty_tpl);?>
 
								<?php  $_smarty_tpl->tpl_vars["operatorSelectors"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["operatorSelectors"]->_loop = false;
 $_smarty_tpl->tpl_vars["operatorKey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['operatorSelectors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["operatorSelectors"]->key => $_smarty_tpl->tpl_vars["operatorSelectors"]->value){
$_smarty_tpl->tpl_vars["operatorSelectors"]->_loop = true;
 $_smarty_tpl->tpl_vars["operatorKey"]->value = $_smarty_tpl->tpl_vars["operatorSelectors"]->key;
?>
									<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp6=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px mixedselectors hide",'mixedselector'=>($_smarty_tpl->tpl_vars['operatorKey']->value),'name'=>(("promotion_data[conditions]").($_tmp6)).("[operator]"),'options'=>implode('~*',$_smarty_tpl->tpl_vars['operatorSelectors']->value),'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['operator']),$_smarty_tpl);?>

								<?php } ?>	
							<?php }else{ ?>
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp7=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px promotionCondtionOperator",'name'=>(("promotion_data[conditions]").($_tmp7)).("[operator]"),'options'=>implode('~*',$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['operators']),'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['operator']),$_smarty_tpl);?>

							<?php }?>							
							<?php if ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='input'){?>
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp8=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>(("promotion_data[conditions]").($_tmp8)).("[value]"),'class'=>"textbox width-136px  requiredData",'maxlength'=>"255",'autocomplete'=>"off",'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value']),$_smarty_tpl);?>

<?php }elseif($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='inputDate'){?>
							<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp9=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>(("promotion_data[conditions]").($_tmp9)).("[valueFrom]"),'class'=>"width-136px date_picker_field form-control requiredData enableDefaultDatePicker",'maxlength'=>"255",'autocomplete'=>"off",'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['valueFrom']),$_smarty_tpl);?>

							<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp10=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>(("promotion_data[conditions]").($_tmp10)).("[valueTo]"),'class'=>"width-136px date_picker_field form-control requiredData enableDefaultDatePicker",'maxlength'=>"255",'autocomplete'=>"off",'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['valueTo']),$_smarty_tpl);?>

							
							<?php }elseif($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='numberSelector'){?>
							<?php $_smarty_tpl->tpl_vars["numberArray"] = new Smarty_variable('', null, 0);?>							
							<?php $_smarty_tpl->tpl_vars["cnt"] = new Smarty_variable(0, null, 0);?>
							<?php $_smarty_tpl->tpl_vars['yl'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['yl']->step = 1;$_smarty_tpl->tpl_vars['yl']->total = (int)ceil(($_smarty_tpl->tpl_vars['yl']->step > 0 ? $_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['toVal']+1 - ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['fromVal']) : $_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['fromVal']-($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['toVal'])+1)/abs($_smarty_tpl->tpl_vars['yl']->step));
if ($_smarty_tpl->tpl_vars['yl']->total > 0){
for ($_smarty_tpl->tpl_vars['yl']->value = $_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['fromVal'], $_smarty_tpl->tpl_vars['yl']->iteration = 1;$_smarty_tpl->tpl_vars['yl']->iteration <= $_smarty_tpl->tpl_vars['yl']->total;$_smarty_tpl->tpl_vars['yl']->value += $_smarty_tpl->tpl_vars['yl']->step, $_smarty_tpl->tpl_vars['yl']->iteration++){
$_smarty_tpl->tpl_vars['yl']->first = $_smarty_tpl->tpl_vars['yl']->iteration == 1;$_smarty_tpl->tpl_vars['yl']->last = $_smarty_tpl->tpl_vars['yl']->iteration == $_smarty_tpl->tpl_vars['yl']->total;?>    
							<?php $_smarty_tpl->createLocalArrayVariable('numberArray', null, 0);
$_smarty_tpl->tpl_vars['numberArray']->value[$_smarty_tpl->tpl_vars['cnt']->value][0] = $_smarty_tpl->tpl_vars['yl']->value;?>
							<?php $_smarty_tpl->createLocalArrayVariable('numberArray', null, 0);
$_smarty_tpl->tpl_vars['numberArray']->value[$_smarty_tpl->tpl_vars['cnt']->value][1] = $_smarty_tpl->tpl_vars['yl']->value;?>
							<?php $_smarty_tpl->tpl_vars["cnt"] = new Smarty_variable($_smarty_tpl->tpl_vars['cnt']->value+1, null, 0);?>
							<?php }} ?>
							<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp11=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('caption'=>($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'name'=>(("promotion_data[conditions]").($_tmp11)).("[valueNum]"),'class'=>"form-control requiredData",'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['valueNum'],'options'=>$_smarty_tpl->tpl_vars['numberArray']->value),$_smarty_tpl);?>

							<?php }elseif($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='picker'){?>
								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteConditionRow fixing_right grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

                            </div>
<?php if ($_smarty_tpl->tpl_vars['eachDataCondition']->value['condition']=='products'&&(($tmp = @$_smarty_tpl->tpl_vars['store_id']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
						<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['store_id']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp12=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["storeLink"] = new Smarty_variable("sid/".$_tmp12."/", null, 0);?>
						<?php }else{ ?>
						<?php $_smarty_tpl->tpl_vars["storeLink"] = new Smarty_variable('', null, 0);?>
						<?php }?>
							<div class="right2 clearfix mrgn_top2">
								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['pickerLink']),'class'=>"popupPicker grayBtn no-magn",'rel'=>($_smarty_tpl->tpl_vars['dataCondition']->value),'caption'=>($_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['popupLink']]),'title'=>($_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['popupLink']])),$_smarty_tpl);?>

								<br/><br/>
								<div class="grid_table00"> 
									<table width="100%" border="0" cellspacing="0" cellpadding="0" class="popupPickerDataList">	
									<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp13=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"popupPickerDataValues requiredData",'name'=>(("promotion_data[conditions]").($_tmp13)).("[value]"),'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value']),$_smarty_tpl);?>

										<tbody>											
											<tr class="noRecordsForPicker <?php if (is_array($_smarty_tpl->tpl_vars['eachDataCondition']->value['value_details'])){?> hide<?php }?>">
												<td>
													<div class="noNoRecordInfo_2">
														<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>

													</div>
												</td>
											</tr>
											<?php $_smarty_tpl->tpl_vars['valueDetailsIds'] = new Smarty_variable(explode(",",$_smarty_tpl->tpl_vars['eachDataCondition']->value['value']), null, 0);?>
											<?php  $_smarty_tpl->tpl_vars['valueDetails'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['valueDetails']->_loop = false;
 $_smarty_tpl->tpl_vars['valueDetailsKey'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['eachDataCondition']->value['value_details']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['valueDetails']->key => $_smarty_tpl->tpl_vars['valueDetails']->value){
$_smarty_tpl->tpl_vars['valueDetails']->_loop = true;
 $_smarty_tpl->tpl_vars['valueDetailsKey']->value = $_smarty_tpl->tpl_vars['valueDetails']->key;
?>
												<?php $_smarty_tpl->tpl_vars["extractedProductID"] = new Smarty_variable($_smarty_tpl->tpl_vars['valueDetailsIds']->value[$_smarty_tpl->tpl_vars['valueDetailsKey']->value], null, 0);?>
												<tr class="pickerDataList" rel="<?php echo $_smarty_tpl->tpl_vars['valueDetailsIds']->value[$_smarty_tpl->tpl_vars['valueDetailsKey']->value];?>
">
													<td width="95%">
													<?php echo $_smarty_tpl->tpl_vars['valueDetails']->value['detailTitle'];?>
													
													</td>
													<td align="right">
														<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deletePickerDataRow",'rel'=>($_smarty_tpl->tpl_vars['valueDetailsIds']->value[$_smarty_tpl->tpl_vars['valueDetailsKey']->value]),'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'caption'=>"X"),$_smarty_tpl);?>

													</td>
												</tr>
											<?php } ?>
										</tbody>
									</table>	
								</div>
							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='mixed'){?>
								<?php if ($_smarty_tpl->tpl_vars['eachDataCondition']->value['value']!=''){?>
									<?php $_smarty_tpl->tpl_vars["mixedTextBoxHide"] = new Smarty_variable('', null, 0);?>
									<?php $_smarty_tpl->tpl_vars["mixedSelectBoxHide"] = new Smarty_variable("hide", null, 0);?>
								<?php }elseif($_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select']!=''){?>
									<?php $_smarty_tpl->tpl_vars["mixedTextBoxHide"] = new Smarty_variable("hide", null, 0);?>
									<?php $_smarty_tpl->tpl_vars["mixedSelectBoxHide"] = new Smarty_variable('', null, 0);?>
								<?php }else{ ?>
									<?php $_smarty_tpl->tpl_vars["mixedTextBoxHide"] = new Smarty_variable('', null, 0);?>
									<?php $_smarty_tpl->tpl_vars["mixedSelectBoxHide"] = new Smarty_variable("hide", null, 0);?>	
								<?php }?>
								
								
								<?php if (isset($_smarty_tpl->tpl_vars['eachDataCondition']->value['option_list'])){?>
								<?php $_smarty_tpl->tpl_vars["option_list"] = new Smarty_variable($_smarty_tpl->tpl_vars['eachDataCondition']->value['option_list'], null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["option_list"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['eachDataCondition']->value['option_list'])===null||$tmp==='' ? array() : $tmp), null, 0);?>
							<?php }?>
							<?php if (isset($_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select'])){?>
								<?php $_smarty_tpl->tpl_vars["value_select"] = new Smarty_variable($_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select'], null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["value_select"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select'])===null||$tmp==='' ? array() : $tmp), null, 0);?>
							<?php }?>
							
								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp14=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>(("promotion_data[conditions]").($_tmp14)).("[value]"),'class'=>"textbox width-136px  mixedTextBox ".($_smarty_tpl->tpl_vars['mixedTextBoxHide']->value)."  requiredData form-select",'maxlength'=>"255",'autocomplete'=>"off",'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value']),$_smarty_tpl);?>

								<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp15=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px mixedSelectBox ".($_smarty_tpl->tpl_vars['mixedSelectBoxHide']->value),'name'=>(("promotion_data[conditions]").($_tmp15)).("[value_select]"),'options'=>$_smarty_tpl->tpl_vars['option_list']->value,'value'=>$_smarty_tpl->tpl_vars['value_select']->value),$_smarty_tpl);?>

							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']!='picker'){?>
								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteConditionRow fixing_right grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['type']=='select'){?>
								<?php if ((($tmp = @$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['optionGroup'])===null||$tmp==='' ? '' : $tmp)=='Yes'){?>
									<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp16=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px requiredData",'optionGroup'=>"Yes",'name'=>(("promotion_data[conditions]").($_tmp16)).("[value_select]"),'options'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['select_list'],'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select']),$_smarty_tpl);?>

	<?php }elseif(isset($_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['options'])){?>
									<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp17=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"form-control requiredData",'name'=>(("promotion_data[conditions]").($_tmp17)).("[value_select]"),'options'=>$_smarty_tpl->tpl_vars['eachDataConditionSchema']->value['options'],'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select']),$_smarty_tpl);?>
							
							
								<?php }else{ ?>
									<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['appendRootRelVar']->value;?>
<?php $_tmp18=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px requiredData",'name'=>(("promotion_data[conditions]").($_tmp18)).("[value_select]"),'options'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['select_list'],'value'=>$_smarty_tpl->tpl_vars['eachDataCondition']->value['value_select']),$_smarty_tpl);?>

								<?php }?>
							<?php }?>
						</div>	
						</div>
					<?php }?>
				</li>
			<?php } ?>	
		<?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

		
		<?php if (isset($_smarty_tpl->tpl_vars['resDataConditions']->value)){?>
		<?php smarty_template_function_generateConditions($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['resDataConditions']->value['conditions']));?>

		<?php }?>
	</ul>
	<!--Firt time NoRecord found msg-->
	<?php if (isset($_smarty_tpl->tpl_vars['resDataConditions']->value)){?>
		<?php $_smarty_tpl->tpl_vars["conditionCount"] = new Smarty_variable(count($_smarty_tpl->tpl_vars['resDataConditions']->value['conditions']), null, 0);?>
	<?php }else{ ?>
		<?php $_smarty_tpl->tpl_vars["conditionCount"] = new Smarty_variable('0', null, 0);?>
	<?php }?>	
    <div id="noConditionData" class="noNoRecordInfo_1 <?php if ($_smarty_tpl->tpl_vars['conditionCount']->value>0){?> hide <?php }?>">
		<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>

	</div>
    
    <ul class="promoConditionCopySource">

		<?php $_smarty_tpl->tpl_vars["conditionsDataCounter"] = new Smarty_variable(0, null, 0);?>
		<?php  $_smarty_tpl->tpl_vars["dataConditionSchema"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["dataConditionSchema"]->_loop = false;
 $_smarty_tpl->tpl_vars["dataCondition"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['schemaData']->value['conditions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["dataConditionSchema"]->key => $_smarty_tpl->tpl_vars["dataConditionSchema"]->value){
$_smarty_tpl->tpl_vars["dataConditionSchema"]->_loop = true;
 $_smarty_tpl->tpl_vars["dataCondition"]->value = $_smarty_tpl->tpl_vars["dataConditionSchema"]->key;
?>	
			<?php if (isset($_smarty_tpl->tpl_vars['dataConditionSchema']->value['groupLabel'])){?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroup"] = new Smarty_variable($_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['groupLabel']], null, 0);?>			
			<?php }else{ ?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroup"] = new Smarty_variable('', null, 0);?>			
			<?php }?>
			
			<?php if (isset($_smarty_tpl->tpl_vars['dataConditionSchema']->value['group'])){?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroupKey"] = new Smarty_variable($_smarty_tpl->tpl_vars['dataConditionSchema']->value['group'], null, 0);?>			
			<?php }else{ ?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaGroupKey"] = new Smarty_variable('', null, 0);?>			
			<?php }?>
			
			<?php if (isset($_smarty_tpl->tpl_vars['dataConditionSchema']->value['optionGroup'])){?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaoptionGroup"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['dataConditionSchema']->value['optionGroup'])===null||$tmp==='' ? '' : $tmp), null, 0);?>	
			<?php }else{ ?>
				<?php $_smarty_tpl->tpl_vars["dataConditionSchemaoptionGroup"] = new Smarty_variable('', null, 0);?>	
			<?php }?>			
			
			<?php if ($_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value){?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value][$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][0] = $_smarty_tpl->tpl_vars['dataCondition']->value;?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value][$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][1] = $_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['lang']];?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value][$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][2] = "datatype='".($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type'])."' optionGroup='".($_smarty_tpl->tpl_vars['dataConditionSchema']->value['optionGroup'])."'";?>
			<?php }else{ ?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][0] = $_smarty_tpl->tpl_vars['dataCondition']->value;?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][1] = $_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['lang']];?>
				<?php $_smarty_tpl->createLocalArrayVariable('conditionDataArray', null, 0);
$_smarty_tpl->tpl_vars['conditionDataArray']->value[$_smarty_tpl->tpl_vars['conditionsDataCounter']->value][2] = "datatype='".($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type'])."' optionGroup='".($_smarty_tpl->tpl_vars['dataConditionSchemaoptionGroup']->value)."'";?>
			<?php }?>
			<?php $_smarty_tpl->tpl_vars["conditionsDataCounter"] = new Smarty_variable($_smarty_tpl->tpl_vars['conditionsDataCounter']->value+1, null, 0);?>
			<li class="dataCondition_<?php echo $_smarty_tpl->tpl_vars['dataCondition']->value;?>
 clearfix hide">
				<div class="conditionInd clearfix">
					<div class="left2 clearfix">
						<span class="spanBld"><?php echo $_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['lang']];?>
</span>
						<?php if (isset($_smarty_tpl->tpl_vars['dataConditionSchema']->value['subtext'])&&$_smarty_tpl->tpl_vars['dataConditionSchema']->value['subtext']){?>
							<span class="sub-text">
								<?php echo $_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['subtext']];?>

							</span>
						<?php }?>
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"promotionCondtion",'name'=>"promotionCondtion-",'value'=>$_smarty_tpl->tpl_vars['dataCondition']->value,'post_back'=>"false"),$_smarty_tpl);?>

						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"promotionCondtionGroup",'name'=>"promotionCondtionGroup-",'value'=>$_smarty_tpl->tpl_vars['dataConditionSchemaGroupKey']->value,'post_back'=>"false"),$_smarty_tpl);?>

						<?php }?>	
						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='mixed'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px promotionCondtionElement_".($_smarty_tpl->tpl_vars['dataCondition']->value)." requiredData",'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'name'=>"promotionCondtionElement-"),$_smarty_tpl);?>
 	
							<?php  $_smarty_tpl->tpl_vars["operatorSelectors"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["operatorSelectors"]->_loop = false;
 $_smarty_tpl->tpl_vars["operatorKey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['dataConditionSchema']->value['operatorSelectors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["operatorSelectors"]->key => $_smarty_tpl->tpl_vars["operatorSelectors"]->value){
$_smarty_tpl->tpl_vars["operatorSelectors"]->_loop = true;
 $_smarty_tpl->tpl_vars["operatorKey"]->value = $_smarty_tpl->tpl_vars["operatorSelectors"]->key;
?>
                                                            
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px mixedselectors hide",'mixedselector'=>($_smarty_tpl->tpl_vars['operatorKey']->value),'name'=>"promotionCondtionOperator-",'options'=>implode('~*',$_smarty_tpl->tpl_vars['operatorSelectors']->value)),$_smarty_tpl);?>

							<?php } ?>	
						<?php }else{ ?>	
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px promotionCondtionOperator",'name'=>"promotionCondtionOperator-",'options'=>implode('~*',$_smarty_tpl->tpl_vars['dataConditionSchema']->value['operators'])),$_smarty_tpl);?>

						<?php }?>
						<?php if (isset($_smarty_tpl->tpl_vars['dataConditionSchema']->value['customFieldClass'])){?>
								<?php $_smarty_tpl->tpl_vars["customFieldClass"] = new Smarty_variable($_smarty_tpl->tpl_vars['dataConditionSchema']->value['customFieldClass'], null, 0);?>
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["customFieldClass"] = new Smarty_variable('', null, 0);?>
							<?php }?>						
						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='input'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"promotionCondtionValue-",'class'=>"textbox width-136px  ".($_smarty_tpl->tpl_vars['customFieldClass']->value)." requiredData",'maxlength'=>"255",'autocomplete'=>"off"),$_smarty_tpl);?>

<?php }elseif($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='inputDate'){?>
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"promotionCondtionValueFrom-",'class'=>"width-136px date_picker_field form-control ".($_smarty_tpl->tpl_vars['customFieldClass']->value)." requiredData",'maxlength'=>"255",'autocomplete'=>"off"),$_smarty_tpl);?>

						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"promotionCondtionValueTo-",'class'=>"width-136px date_picker_field form-control ".($_smarty_tpl->tpl_vars['customFieldClass']->value)." requiredData",'maxlength'=>"255",'autocomplete'=>"off"),$_smarty_tpl);?>

						<?php }elseif($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='numberSelector'){?>
							<?php $_smarty_tpl->tpl_vars["numberArray"] = new Smarty_variable('', null, 0);?>							
							<?php $_smarty_tpl->tpl_vars["cnt"] = new Smarty_variable(0, null, 0);?>
							<?php $_smarty_tpl->tpl_vars['yl'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['yl']->step = 1;$_smarty_tpl->tpl_vars['yl']->total = (int)ceil(($_smarty_tpl->tpl_vars['yl']->step > 0 ? $_smarty_tpl->tpl_vars['dataConditionSchema']->value['toVal']+1 - ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['fromVal']) : $_smarty_tpl->tpl_vars['dataConditionSchema']->value['fromVal']-($_smarty_tpl->tpl_vars['dataConditionSchema']->value['toVal'])+1)/abs($_smarty_tpl->tpl_vars['yl']->step));
if ($_smarty_tpl->tpl_vars['yl']->total > 0){
for ($_smarty_tpl->tpl_vars['yl']->value = $_smarty_tpl->tpl_vars['dataConditionSchema']->value['fromVal'], $_smarty_tpl->tpl_vars['yl']->iteration = 1;$_smarty_tpl->tpl_vars['yl']->iteration <= $_smarty_tpl->tpl_vars['yl']->total;$_smarty_tpl->tpl_vars['yl']->value += $_smarty_tpl->tpl_vars['yl']->step, $_smarty_tpl->tpl_vars['yl']->iteration++){
$_smarty_tpl->tpl_vars['yl']->first = $_smarty_tpl->tpl_vars['yl']->iteration == 1;$_smarty_tpl->tpl_vars['yl']->last = $_smarty_tpl->tpl_vars['yl']->iteration == $_smarty_tpl->tpl_vars['yl']->total;?>    
							<?php $_smarty_tpl->createLocalArrayVariable('numberArray', null, 0);
$_smarty_tpl->tpl_vars['numberArray']->value[$_smarty_tpl->tpl_vars['cnt']->value][0] = $_smarty_tpl->tpl_vars['yl']->value;?>
							<?php $_smarty_tpl->createLocalArrayVariable('numberArray', null, 0);
$_smarty_tpl->tpl_vars['numberArray']->value[$_smarty_tpl->tpl_vars['cnt']->value][1] = $_smarty_tpl->tpl_vars['yl']->value;?>
							<?php $_smarty_tpl->tpl_vars["cnt"] = new Smarty_variable($_smarty_tpl->tpl_vars['cnt']->value+1, null, 0);?>
							<?php }} ?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"promotionCondtionValueNum-",'caption'=>($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'class'=>"form-control ".($_smarty_tpl->tpl_vars['customFieldClass']->value)." requiredData",'options'=>$_smarty_tpl->tpl_vars['numberArray']->value),$_smarty_tpl);?>

						
						<?php }elseif($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='picker'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteConditionRow fixing_right grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

					</div>
					<div class="right2 clearfix mrgn_top2">
						<?php if ($_smarty_tpl->tpl_vars['dataCondition']->value=='products'&&(($tmp = @$_smarty_tpl->tpl_vars['store_id']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
						<?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['store_id']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp19=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["storeLink"] = new Smarty_variable("sid/".$_tmp19."/", null, 0);?>
						<?php }else{ ?>
						<?php $_smarty_tpl->tpl_vars["storeLink"] = new Smarty_variable('', null, 0);?>
						<?php }?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['dataConditionSchema']->value['pickerLink']),'class'=>"popupPicker grayBtn no-magn",'rel'=>($_smarty_tpl->tpl_vars['dataCondition']->value),'caption'=>($_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['popupLink']]),'title'=>($_smarty_tpl->tpl_vars['language']->value[$_smarty_tpl->tpl_vars['dataConditionSchema']->value['popupLink']])),$_smarty_tpl);?>

							<br/><br/>
							<div class="grid_table00"> 
								<table width="100%" border="0" cellspacing="0" cellpadding="0" class="popupPickerDataList">	
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('class'=>"popupPickerDataValues requiredData",'name'=>"promotionCondtionValue-"),$_smarty_tpl);?>

									<tbody>
										<tr class="noRecordsForPicker">
											<td>
												<div class="noNoRecordInfo_2">
													<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>

												</div>
											</td>
										</tr>
									</tbody>
								</table>	
							</div>
						<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='mixed'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"promotionCondtionValue-",'class'=>"textbox form-select mixedTextBox requiredData",'maxlength'=>"255",'autocomplete'=>"off"),$_smarty_tpl);?>

							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px mixedSelectBox hide",'name'=>"promotionCondtionValueSelect-"),$_smarty_tpl);?>

						<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']!='picker'){?>
							<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteConditionRow fixing_right grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

						<?php }?>
						<?php if ($_smarty_tpl->tpl_vars['dataConditionSchema']->value['type']=='select'){?>
							<?php if ($_smarty_tpl->tpl_vars['dataCondition']->value=='usergroup'&&(($tmp = @$_smarty_tpl->tpl_vars['userGrpData']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
								<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['userGrpData']->value, null, 0);?>
							<?php }elseif($_smarty_tpl->tpl_vars['dataCondition']->value=='country'&&(($tmp = @$_smarty_tpl->tpl_vars['countryData']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
								<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['countryData']->value, null, 0);?>	
							<?php }elseif($_smarty_tpl->tpl_vars['dataCondition']->value=='state'&&(($tmp = @$_smarty_tpl->tpl_vars['stateData']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
								<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['stateData']->value, null, 0);?>	
							<?php }elseif($_smarty_tpl->tpl_vars['dataCondition']->value=='payment_method'&&(($tmp = @$_smarty_tpl->tpl_vars['paymentMethodData']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
								<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable($_smarty_tpl->tpl_vars['paymentMethodData']->value, null, 0);?>	
		<?php }elseif((($tmp = @$_smarty_tpl->tpl_vars['dataConditionSchema']->value['options'])===null||$tmp==='' ? '' : $tmp)!=''){?>	
							<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['dataConditionSchema']->value['options'])===null||$tmp==='' ? '' : $tmp), null, 0);?>								
							
							<?php }else{ ?>
								<?php $_smarty_tpl->tpl_vars["selectTypeOptions"] = new Smarty_variable('', null, 0);?>		
							<?php }?>
							<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px selectSelectBox_".($_smarty_tpl->tpl_vars['dataCondition']->value)." requiredData",'name'=>"promotionCondtionValueSelect-",'options'=>$_smarty_tpl->tpl_vars['selectTypeOptions']->value),$_smarty_tpl);?>

						<?php }?>
					</div>	
				</div>	
			</li>
		<?php } ?>
		
		<?php $_smarty_tpl->tpl_vars["optionGroupStatus"] = new Smarty_variable("No", null, 0);?>
		<?php if ($_smarty_tpl->tpl_vars['dataConditionSchemaGroup']->value){?>
			<?php $_smarty_tpl->tpl_vars["optionGroupStatus"] = new Smarty_variable("Yes", null, 0);?>
		<?php }?>
		<li class="clearfix promoRootConditionSelector hide">
			<!--<div class="left1">&nbsp;</div>-->
			<div class="left2">                    
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-136px",'name'=>"promoConditionRootSelector",'id'=>"promoConditionRootSelector",'options'=>$_smarty_tpl->tpl_vars['conditionDataArray']->value,'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelect']),'custom'=>"true",'optionGroup'=>$_smarty_tpl->tpl_vars['optionGroupStatus']->value),$_smarty_tpl);?>
 	 
			</div>
		</li>	
		<li class="clearfix promoRootNode hide">
			<div>
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote1'];?>
&nbsp;
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>"promotionCondtionSet-",'options'=>"all->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAll'])."~*any->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionAny'])),$_smarty_tpl);?>
&nbsp;
				<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionNote2'];?>
&nbsp;
				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"width-100px",'name'=>"promotionCondtionSetValue-",'options'=>"1->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionTrue'])."~*0->".($_smarty_tpl->tpl_vars['language']->value['lblPromotionConditionFalse'])),$_smarty_tpl);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"deleteGroupRow grayBtn",'caption'=>"X",'title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete'])),$_smarty_tpl);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('caption'=>($_smarty_tpl->tpl_vars['language']->value['lblPromotionAddCondition']),'class'=>"promotionAddCondition grayBtn fixing_right"),$_smarty_tpl);?>

			</div>										
		</li> 
	</ul>	
</div><?php }} ?>