{assign var="productForm" value="Product"} 
<li class="clearfix option productOptionRow" >
                    <h3 class="single-option"><a class="op-delete deleteRow"  title="Delete" href="javascript:void(0);" rel="productOptionsGroup_{$productOptionCount}_is_delete" id="{$productOptionCount}">x</a><span> {$language.lblOption}{$productOptionCount} </span></h3>
     {form->hidden 	name			= "productOptionsGroup[{$productOptionCount}][option_id]" 
    				value			= "-1"} 
	{form->hidden 	name			= "productOptionsGroup[{$productOptionCount}][is_delete]" 
    				class			= "multioptiondelete"
                    value			= "0"}
     {form->hidden 	name			= "productOptionsGroup[{$productOptionCount}][realOptionCount]"     				
                    value			= $productOptionCount} 
                    
         {form->hidden 	name			= "productOptionsGroup[{$productOptionCount}][productOptionImageSort]"}     
                  <ul class="levl-00"> 
                 <li class="clearfix single-option">
                 
                    <div class="left1 mandatory">
                     {$language.lblOptionName}
                    </div>
                    <div class="right1 ">
                     <ul class="levl-01">
                  		<li class="clearfix first">
                      <div class="width-50per fixing_left">                                      
		    {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][productOptionName]" 
		    error_class		= "message_inline_validation"
		    size			= "25" 
		    class			= "textbox productName" 
		    form			= $productForm 
		    validate_inline	= "yes" 
		    maxlength		= "255" 
		    rel				= "productOptionsGroup_{$productOptionCount}_is_delete"  
		    fieldName		= "productOptionName" 
		    group			= "productOptionsGroup"
		    row				= $productOptionCount}
                      </div>
                                   
                    </li>
                    </ul></div>
                  </li>
		 <li class="clearfix">                 
                    <div class="left1 mandatory">
                     {$language.lblSKU}
                    </div>
                    <div class="right1 ">
                    <ul class="levl-01">
                    <li class="clearfix first">
                    <div class="width-25per fixing_left">                        
		    {form->textbox  error_class		= "message_inline_validation" 
		    size			= "25" 
		    name			= "productOptionsGroup[{$productOptionCount}][optionSKU]" 
		    class			= "textbox productName"
		    form			= $productForm 
		    maxlength		= "255"
		    validate_inline	= "yes" 
		    rel	= $productOptionCount  
		    fieldName		= "optionSKU" 
		    group			= "productOptionsGroup"
		    row				= $productOptionCount} 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
		  <li class="clearfix">                 
                    <div class="left1">
                      {$language.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">                        
		    {form->textbox  
			size			= "25" 
                        name			= "productOptionsGroup[{$productOptionCount}][optionBarCode]" 
                        class			= "textbox"
                        form			= $productForm  
                        value			= $productOptions.optionBarCode|default:''|unescape
                        maxlength		= "255"                       
                        rel				= $productOptionCount
                        fieldName		= "optionBarCode" 
			group			= "productOptionsGroup"
                        row				= $productOptionCount} 
                      </div>                                    
                    </li>
                    </ul></div>
                  </li>
                  <div id="sellerInfo">
                        {include file='AssignSellers.tpl'}
                  </div>
                 {*<li class="clearfix">                 
                    <div class="left1">{$language.lblPrice}</div>
                    <div class="right1 ">
                    	<ul class="levl-02 clearfix">
                        <li><label class="label1 mandatory">{$language.lblItemPrice}</label>
		    {form->textbox 	name= "productOptionsGroup[{$productOptionCount}][productOptionRegularPrice]"
    				error_class		= "message_inline_validation"   
                    form			= $productForm 
                    validate_inline	= "yes" 
                    class			= "textbox length0_50pers option_price_new" 
                    maxlength		= "11" 
                    rel				= $productOptionCount 
                    fieldName		= "productOptionRegularPrice" 
		    group			= "productOptionsGroup"
                    row				= $productOptionCount}
		    </li>
			
                    <li><label class="label1">{$language.lblSaleprice}</label>
		    {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][productOptionProductPrice]"    
    		    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    validate_inline	= "yes" 
                    class			= "textbox length0_50pers option_price_new sale_price" 
                    rel				= $productOptionCount maxlength="11" 
                    fieldName		= "productOptionProductPrice" 
		    group			= "productOptionsGroup"
                    row				= $productOptionCount} 
		    </li>
                               <li><label class="label1">{$language.lblCashBack}</label>
		    {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][productOptionCashBack]"    
                    form			= $productForm 
                    validate_inline	= "yes" 
                    class			= "textbox length0_50pers option_price_new sale_price" 
                    rel				= $productOptionCount maxlength="11" 
                    fieldName		= "productOptionCashBack" 
		    group			= "productOptionsGroup"
                    row				= $productOptionCount} 
                  </li>
							</ul>
                    </div>
                  </li>*}
				  
	{*			  <li class="clearfix hide not-for-buybox">
                    <div class="left1 ">{$language.lblTierPrice}</div>
                    <div class="right1">
                    
                    <ul id="tiers_table">
                    <li class="header clearfix">
                    <div class="column"><label class="label1 mandatory">{$language.lblCustomerGroup}</label></div>
                    <div class="column sml"><label class="label1 mandatory">{$language.lblQty}</label></div>
                    <div class="column"><label class="label1 mandatory">{$language.lblPrice}</label></div></li>
                    <li class="levl-02 clearfix" id="tier_price_container_{$productOptionCount}">
                                    {foreach $productOptions['tier_price']|default:array() as $key=>$tier_price}
                                     <div class="clearfix parent">
                         <div class="column">
						 {assign var="userGroupID" value="{$tier_price['userGroupID']}"}
							{if $tier_price['allGroups']==1}
								{assign var="userGroupID" value=""}
							{/if}
		   {form->select 
				options="{$listUsergroups}" 
				caption="->{$language.lblAllGroups}"
				value="{$userGroupID}"
				rel="{$productOptionCount}_{$key}"
				productOptionCount="{$productOptionCount}"
				name="productOptionsGroup[{$productOptionCount}][tier_price][{$key}][userGroupID]"  
				class="option_tier_price_user_group textbox custgroup "}
				<span class="message_validation  tier_{$productOptionCount}_{$key} hide"><span>{$language.errDuplicateCombination}</span></span>
		    </div>
            <div class="column sml">
			<small class="nobr">{$language.lblandabove}</small>
		   {form->textbox 
											class="option_tier_price_qty {$productOptionCount}_{$key} textbox required-entry length30"
											validate="callback_tierprice_quantity"
											value="{$tier_price['quantity']}"
											error="Required"
											name="productOptionsGroup[{$productOptionCount}][tier_price][{$key}][quantity]"}
										
		    </div>
			
                    <div class="column">
		 {form->textbox 
											class="option_tier_price_tier_price {$productOptionCount}_{$key} textbox required-entry "
											validate="callback_tierprice_price"
											value="{$tier_price['tierPrice']|price_no_symbol}"
											error="Required"
											name="productOptionsGroup[{$productOptionCount}][tier_price][{$key}][tierPrice]"}
		    </div>
            <div class="column-del">{html->anchor  class="icon-set delete02 txt-hide" id="tier_price_row_{$key}_delete_button"  title="{$language.lblDelete}" onclick="return tierPriceControl.deleteItem($(this));"}
									</div>
           
            </div>
            {/foreach}
            </li>
            <li>
             {html->anchor  class="btn-add curve-3" id="id_{$productOptionCount}" content="<span class='h'></span><span class='v'></span>{$language.lblAddTier}" title="{$language.lblAddTier}" onclick="return tierPriceControl.addItem('{$productOptionCount}','productOptionsGroup','option_')"}
            </li>
							</ul>
                   
                    </div>
                  </li>*}
               
			
				  
                  {*<li class="clearfix stock">
                    <div class="left1 optionQty">{$language.lblQuantity}</div>
                    <div class="right1">
                    <ul class="levl-02 clearfix">
                        <li>{form->textbox 	name= "productOptionsGroup[{$productOptionCount}][productOptionQuantity]"
    				class			= "textbox length0_50pers" 
                    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    validate_inline	= "yes" 
                    rel				= $productOptionCount 
                    maxlength		= "9" 
                    fieldName		= "productOptionQuantity" 
					group			= "productOptionsGroup"
                    row				= $productOptionCount} </li>
                   </ul>                      
                    </div>
                  </li>*}
	{*	  
                  <li class="clearfix">
                      <div class="left1">{$language.lblPackage}</div>
                      <div class="right1">
                      <ul class="levl-02 clearfix">
                        <li class="first"><label class="label1">{$language.lblWeight}</label> {form->textbox 	name= "productOptionsGroup[{$productOptionCount}][packageWeight]"
    				class			= "textbox width-100px" 
                    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    rel				= $productOptionCount
                    validate_inline	= "yes"
                    group			= "productOptionsGroup"
                    fieldName		= "packageWeight" 
                    row				= $productOptionCount}</li>
		     <li><label class="label1">{$language.lblLength} </label>
                           
                           {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][packageLength]"
    				class			= "textbox width-100px" 
                    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    group			= "productOptionsGroup"
                    validate_inline	= "yes"
                    rel				= $productOptionCount                    
                    fieldName		= "packageLength" 
                    row				= $productOptionCount}</li>
                         <li><label class="label1">{$language.lblWidth}</label>
                         {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][packageWidth]"
    				class			= "textbox width-100px" 
                    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    rel				= $productOptionCount 
                    validate_inline	= "yes"
                    group			= "productOptionsGroup"                 
                    maxlength		= "9" 
                    fieldName		= "packageWidth" 
                    row				= $productOptionCount}
                    </li>
			 
                    <li><label class="label1">{$language.lblHeight}</label>
                         {form->textbox 	name			= "productOptionsGroup[{$productOptionCount}][packageHeight]"
    				class			= "textbox width-100px" 
                    error_class		= "message_inline_validation" 
                    form			= $productForm 
                    group			= "productOptionsGroup"
                    validate_inline	= "yes"
                    rel				= $productOptionCount 
                    value=$productOptions.packageHeight|default:'' 
                  
                    fieldName		= "packageHeight" 
                    row				= $productOptionCount}
		    </li>
                   
                        </ul>
                      </div>
                    </li>*}
                 
                    <li class="single-option clearfix">
                    <div class="right1 ">
                       <br />                                          
                      {form->radio 	name= "productOptionsGroup[{$productOptionCount}][defaultOpion]"  
    				   options		= "Yes->{$language.lblsetDefaultproductoption}" value="Yes"
                       rel			= $productOptionCount 
                       group			= "productOptionsGroup"
                       class        = "defaultOpion"
                       row				= $productOptionCount
                       fieldName		= "defaultOpion" 
                    }
                     </div>
                  </li>
                  <li class=" clearfix single-option">
                    <div class="left1"><strong>{$language.lblOptionStatus}</strong></div>                    
                   <div class="right1 top-spc"> 
                    {form->radio 	name= "productOptionsGroup[{$productOptionCount}][productOptionStatus]"  
    		    options			= "Active->{$language.lblActive}~*Inactive->{$language.lblInactive}" value="Active"}
                    
                    </div>
                  </li> 
                    <li class="clearfix"><h4 class="medhead">{$language.lblAdditionalImages}</h4></li>
                  <li class="clearfix">
                    <div class="left1">{$language.lblImages}</div>
                    <div class="right1">
                    <div class="clearfix">
					<p class="top-spc">
						{$language.lblThumbImageMsg}<br/>
						{$language.lblMaximumFileSize} {$FILE_UPLOAD_LIMIT}, {$language.lblFileTypes} {$VALID_IMAGE_FILES}
					</p>
                    <ul class="img-list clearfix " id="productImagesul{$productOptionCount}" rel="{$productOptionCount}">
                    {assign var="productImageCount" value=1}
		    
		    <li class="productImageInlineli{$productImageCount} productImageLi{$productOptionCount}" id="{$productImageCount}">
             {html->anchor class="delete02 icon-set fixing_right" title="click to delete" onclick="deleteRowImages('{$productOptionCount}','{$productImageCount}')"}
   <span class="fixing_left upload-column">	<p>{$language.lblMainImage}</p>      
    {form->upload_image delete_title="{$language.lblDelete}" message_delete="{$language.lblmsgdeleteImg}"  name="productOptionImage_"|cat:$productOptionCount|cat:"_"|cat:$productImageCount validate="isImage" error=$language.errValidImage    width="120"} 
    </span>    
                  <span class="fixing_right upload-column"><span class="show" id="thumbLink_{$productOptionCount}_{$productImageCount}" ><a href="javascript:void(0);" class="linkbtnt01" onclick="showThumbImages('{$productOptionCount}','{$productImageCount}')">
		 {$language.Uploadthumbimage}</a></span> 
                  <span class="hide" id="thumbBlock_{$productOptionCount}_{$productImageCount}"><p>{$language.lblThumbImage} </p> 
  {form->upload_image  delete_title="{$language.lblDelete}" message_delete="{$language.lblmsgdeleteImg}" validate="isImage" error=$language.errValidImage  name="productOptionImageThumb_"|cat:$productOptionCount|cat:"_"|cat:$productImageCount width="120"} 
  
  </span>
 </span>
</li>
 <li class="addimg-bx" id="upload-btn{$productOptionCount}">   <a class="btn-add curve-3 add_option_images" title="Add Image" id="{$productOptionCount}"><span class="h"></span><span class="v"></span>{$language.lblAddImages}</a> </li>  
		    
     		    {form->hidden name="productOptionImageCount"|cat:$productOptionCount value=$productImageCount}
                    </ul>
                    </div>
                    
                     </div>
                       </div>
                  </li>                 
                </ul>
              </li>

{form->validate_inline_script form=$productForm}
<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> 
