<?php /* Smarty version Smarty-3.1.8, created on 2021-10-06 18:44:51
         compiled from "/home/agmc/beta/application/core/views/manage/standard/ProductAdd_OptionsAjax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:837275485615db66343d113-45805098%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c489ba5b8d10dc24d48d943f561b55946751e974' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/ProductAdd_OptionsAjax.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '837275485615db66343d113-45805098',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'productOptionCount' => 0,
    'language' => 0,
    'productForm' => 0,
    'productOptions' => 0,
    'FILE_UPLOAD_LIMIT' => 0,
    'VALID_IMAGE_FILES' => 0,
    'productImageCount' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_615db663481a30_24912303',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_615db663481a30_24912303')) {function content_615db663481a30_24912303($_smarty_tpl) {?><?php $_smarty_tpl->tpl_vars["productForm"] = new Smarty_variable("Product", null, 0);?> 
<li class="clearfix option productOptionRow" >
                    <h3 class="single-option"><a class="op-delete deleteRow"  title="Delete" href="javascript:void(0);" rel="productOptionsGroup_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_is_delete" id="<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
">x</a><span> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOption'];?>
<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
 </span></h3>
     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][option_id]",'value'=>"-1"),$_smarty_tpl);?>
 
	<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][is_delete]",'class'=>"multioptiondelete",'value'=>"0"),$_smarty_tpl);?>

     <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][realOptionCount]",'value'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                    
         <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionImageSort]"),$_smarty_tpl);?>
     
                  <ul class="levl-00"> 
                 <li class="clearfix single-option">
                 
                    <div class="left1 mandatory">
                     <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOptionName'];?>

                    </div>
                    <div class="right1 ">
                     <ul class="levl-01">
                  		<li class="clearfix first">
                      <div class="width-50per fixing_left">                                      
		    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionName]",'error_class'=>"message_inline_validation",'size'=>"25",'class'=>"textbox productName",'form'=>$_smarty_tpl->tpl_vars['productForm']->value,'validate_inline'=>"yes",'maxlength'=>"255",'rel'=>"productOptionsGroup_".($_smarty_tpl->tpl_vars['productOptionCount']->value)."_is_delete",'fieldName'=>"productOptionName",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>

                      </div>
                                   
                    </li>
                    </ul></div>
                  </li>
		 <li class="clearfix">                 
                    <div class="left1 mandatory">
                     <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSKU'];?>

                    </div>
                    <div class="right1 ">
                    <ul class="levl-01">
                    <li class="clearfix first">
                    <div class="width-25per fixing_left">                        
		    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('error_class'=>"message_inline_validation",'size'=>"25",'name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][optionSKU]",'class'=>"textbox productName",'form'=>$_smarty_tpl->tpl_vars['productForm']->value,'maxlength'=>"255",'validate_inline'=>"yes",'rel'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'fieldName'=>"optionSKU",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
		  <li class="clearfix">                 
                    <div class="left1">
                      <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBarCode'];?>
 <span class="sub-text">[UPC,ISBN]</span> 
                    </div>
                    <div class="right1 ">
                     <ul class="levl-01">
                  		<li class="clearfix first">
                      <div class="width-25per fixing_left">                        
		    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('size'=>"25",'name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][optionBarCode]",'class'=>"textbox",'form'=>$_smarty_tpl->tpl_vars['productForm']->value,'value'=>htmlspecialchars_decode((($tmp = @$_smarty_tpl->tpl_vars['productOptions']->value['optionBarCode'])===null||$tmp==='' ? '' : $tmp), ENT_QUOTES),'maxlength'=>"255",'rel'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'fieldName'=>"optionBarCode",'group'=>"productOptionsGroup",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value),$_smarty_tpl);?>
 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
                  <div id="sellerInfo">
                        <?php echo $_smarty_tpl->getSubTemplate ('AssignSellers.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

                  </div>
                 
				  
	
               
			
				  
                  
	
                 
                    <li class="single-option clearfix">
                    <div class="right1 ">
                       <br />                                          
                      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][defaultOpion]",'options'=>"Yes->".($_smarty_tpl->tpl_vars['language']->value['lblsetDefaultproductoption']),'value'=>"Yes",'rel'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'group'=>"productOptionsGroup",'class'=>"defaultOpion",'row'=>$_smarty_tpl->tpl_vars['productOptionCount']->value,'fieldName'=>"defaultOpion"),$_smarty_tpl);?>

                     </div>
                  </li>
                  <li class=" clearfix single-option">
                    <div class="left1"><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblOptionStatus'];?>
</strong></div>                    
                   <div class="right1 top-spc"> 
                    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"productOptionsGroup[".($_smarty_tpl->tpl_vars['productOptionCount']->value)."][productOptionStatus]",'options'=>"Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>"Active"),$_smarty_tpl);?>

                    
                    </div>
                  </li> 
                    <li class="clearfix"><h4 class="medhead"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdditionalImages'];?>
</h4></li>
                  <li class="clearfix">
                    <div class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblImages'];?>
</div>
                    <div class="right1">
                    <div class="clearfix">
					<p class="top-spc">
						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblThumbImageMsg'];?>
<br/>
						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblMaximumFileSize'];?>
 <?php echo $_smarty_tpl->tpl_vars['FILE_UPLOAD_LIMIT']->value;?>
, <?php echo $_smarty_tpl->tpl_vars['language']->value['lblFileTypes'];?>
 <?php echo $_smarty_tpl->tpl_vars['VALID_IMAGE_FILES']->value;?>

					</p>
                    <ul class="img-list clearfix " id="productImagesul<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
" rel="<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
">
                    <?php $_smarty_tpl->tpl_vars["productImageCount"] = new Smarty_variable(1, null, 0);?>
		    
		    <li class="productImageInlineli<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
 productImageLi<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
">
             <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"delete02 icon-set fixing_right",'title'=>"click to delete",'onclick'=>"deleteRowImages('".($_smarty_tpl->tpl_vars['productOptionCount']->value)."','".($_smarty_tpl->tpl_vars['productImageCount']->value)."')"),$_smarty_tpl);?>

   <span class="fixing_left upload-column">	<p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMainImage'];?>
</p>      
    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['lblmsgdeleteImg']),'name'=>((("productOptionImage_").($_smarty_tpl->tpl_vars['productOptionCount']->value)).("_")).($_smarty_tpl->tpl_vars['productImageCount']->value),'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'width'=>"120"),$_smarty_tpl);?>
 
    </span>    
                  <span class="fixing_right upload-column"><span class="show" id="thumbLink_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
" ><a href="javascript:void(0);" class="linkbtnt01" onclick="showThumbImages('<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
')">
		 <?php echo $_smarty_tpl->tpl_vars['language']->value['Uploadthumbimage'];?>
</a></span> 
                  <span class="hide" id="thumbBlock_<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
_<?php echo $_smarty_tpl->tpl_vars['productImageCount']->value;?>
"><p><?php echo $_smarty_tpl->tpl_vars['language']->value['lblThumbImage'];?>
 </p> 
  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->upload_image(array('delete_title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'message_delete'=>($_smarty_tpl->tpl_vars['language']->value['lblmsgdeleteImg']),'validate'=>"isImage",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidImage'],'name'=>((("productOptionImageThumb_").($_smarty_tpl->tpl_vars['productOptionCount']->value)).("_")).($_smarty_tpl->tpl_vars['productImageCount']->value),'width'=>"120"),$_smarty_tpl);?>
 
  
  </span>
 </span>
</li>
 <li class="addimg-bx" id="upload-btn<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
">   <a class="btn-add curve-3 add_option_images" title="Add Image" id="<?php echo $_smarty_tpl->tpl_vars['productOptionCount']->value;?>
"><span class="h"></span><span class="v"></span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddImages'];?>
</a> </li>  
		    
     		    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>("productOptionImageCount").($_smarty_tpl->tpl_vars['productOptionCount']->value),'value'=>$_smarty_tpl->tpl_vars['productImageCount']->value),$_smarty_tpl);?>

                    </ul>
                    </div>
                    
                     </div>
                       </div>
                  </li>                 
                </ul>
              </li>

<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_inline_script(array('form'=>$_smarty_tpl->tpl_vars['productForm']->value),$_smarty_tpl);?>

<script type="text/javascript">
$('.img-list').sortable({		
		items: "> li",		
		update: function(event, ui) {
			var result = $(this).sortable('toArray');						 
			$("#productOptionsGroup_"+$(this).attr('rel')+"_productOptionImageSort").val(result);
			}
	});
	</script> 
<?php }} ?>