<div class="pane01">
 {form->start name="formUpSellSearch" action="" method="post"}
    <div class="save-floating-section" id="upsell-save-section">
          <div class="cm-buttons-floating upsell-save-fix">
           <div class="submit-position"> 
            {form->button class="button03 curve-3" id="productUpsellProductSubmit" value="{$language.lblSave}"}
	    </div>
          </div>
        <div class="cm-buttons"></div>
	</div>
          <table width="100%" border="0" cellspacing="2" cellpadding="0">
            <tbody><tr>
              <td align="left" valign="middle" class="leftpane">
              <table width="100%" border="0" cellspacing="0" cellpadding="0" class="rlp-serch">
                  <tbody>
                  <tr>
                  <td align="left" valign="middle" width="175" class="padB8">
		    {* {form->select name="productCategoryIDUp"  size="5"  multiple="multiple" options=$resCategoryTree}*}
<div class="category-list01">{html->anchor class=" select-box-static" id="categoryLabelUp" caption="<span>&nbsp;</span><strong id='selectedTextUp'>{$language.lblSelectCategory}</strong>"} 
                    <div class="div-city cate-drop " id="categoryVisibleUp" style="display:none">				 
				 <div class="category-section pos-relative"> 
				  <div class="div-city">
                      <div class="fixed-section">
                          <h2>{$language.lblProductCategory}</h2>
                      {assign var="categoryValue" value=""}

				{form->textbox name="filterCategories" class="filterBrands text-box margin-bottom" placeholder="Search Categories"}
                          </div>
				{assign var="categoryValue" value=""}
			        <ul  class="dragtree categoryList" id="categoryList">
							  

                <!--menu function-->
                 {function name=categoryup level=0 catValues=0}

                {foreach from=$data item="productCategory"} 
					
					 {if $productCategory.productCategoryStatus=='Inactive'}
				  {assign var="categoryName" value="<span class='inactive'>"|cat:$productCategory.productCategoryName|cat:"</span>"}              
				  {else}
				  {assign var="categoryName" value=$productCategory.productCategoryName} 
				  {/if}
					
		
                        <li  data-level="{$level}" category="{$productCategory.productCategoryID}" catname="{$productCategory.productCategoryName}" class="left-spacing {if $productCategory.productCategoryID==1} ui-state-disabled {/if} li_catIDs" >
                     
                           
                                  
							
									{if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}
                                    <span class="expand {if !(!empty($productCategory['children']) && is_array($productCategory['children']))}hide{/if}"></span>
									{else}
									<span class="expand colapse {if !(!empty($productCategory['children']) && is_array($productCategory['children']))}hide{/if}"></span>
									{/if}
								
																		  
									 {assign var="categoryValue" value=$catValues|cat:","|cat:$productCategory.productCategoryID}
										{*{if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}
										 {assign var="disable" value="disabled"}
										 {else}
										  {assign var="disable" value=""}
										 {/if}*}

									
									{form->checkbox   name="productCategoryIDUp" class="" id="category" options=$productCategory.productCategoryID|cat:"->"|cat:"&nbsp;"|cat:$categoryName} 
									
									
								
                         
							{assign var="children" value=$productCategory['children']|default:''}
                             {if isset($productCategory['children']) && is_array($productCategory['children']) && !empty($productCategory['children'])}
                               <ul id="" class="categoryList {if !(in_array($productCategory.productCategoryID, $categoryIDList|default:array()))}hide {/if}"> 
                            {call name=categoryup data=$children level=$level+1 catValues=$categoryValue}  <!--menu function calling-->
                            </ul>
                          
                        {else}
                             {if (is_array($productCategory)) && (isset($productCategory['menuItemID'])) && (is_numeric($productCategory['menuItemID']))}
                        </li>	
                        {/if}
                    {/if}
            {/foreach}  
          {/function}
          {call categoryup data=$resCategoryTree} <!--menu function calling-->
             	 </ul>  
</div>
				 
				 </div>				 
				 </div>				 
				 </div>					 
			 
                    </td>                   
                    <td align="left" valign="middle" width="140" class="padB8">
		     <div class="textfield">
                        
   {form->textbox   name="searchKeywordUp" value="{$language.lblProductIDTitle}"
   class="textbox" onfocus="if(this.value=='{$language.lblProductIDTitle}') this.value='';" onblur="if(this.value=='')  	this.value='{$language.lblProductIDTitle}';"}  
                        
                      </div></td>
                  </tr>
                  <tr>
                    
		     <td>{form->select name="attrSetIDUp" class="selectBx00" options=$resAttrSet  caption="->{$language.msgAttributeSet}"}
	      </td>
                    <td align="left" valign="middle" class="left" >
                    {form->button name="submitUpSellSearch" rel="Up" id="submitUpSellSearch" class="button01" value="{$language.lblSearch}"}
                   <span class="Ajax_loader"></span>
				   {html->anchor class="action-link" onclick="ResetProducts('Up')" href="" content="{$language.lblListAll}"}                 
                   </td>
                  </tr>               
                </tbody></table></td>
                {if $resRightUpsellProducts|@Count eq 0}              
                 {assign var="outerborder" value='outer-border'}
                 {assign var="toplabelhide" value='hide'}               
              {/if}              
              <td align="left" valign="middle" class="rightpane"><span class="fixing_right top-labelUp {$toplabelhide}">{$language.lbldragnDropUpsellProducts}</span><h3>{$language.lblUpSellProducts}</h3></td>
            </tr>
            <tr>
              <td align="left" valign="top">
              <div class="leftblock03 drop-div" id="divExceptAllUp" >
	   {include file='UpsellProductsLeft.tpl'}
        </div>
               </td>
              <td align="left" valign="top">
             <div class="drop-div rightblock03" id="divRightAll" >
              
             	 <ul id="product_drop_right_idUp" class='connect product_drop_sell product_drop_rightUp {$outerborder}'>
                 
            {if $resRightUpsellProducts|@Count > 0}
          	{foreach from=$resRightUpsellProducts item="resRightListUpcomingProduct" key="key"}
                	<li id="{$resRightListUpcomingProduct.productID}" class="sort{$resRightListUpcomingProduct.productID}">
                    {html->anchor href="" class="remove-btn product_drop_delete"}
                   
                    <div class="title">{$resRightListUpcomingProduct.productTitle|truncate:60}</div>
                  
                    </li>
		   {assign var="sorthide" value='hide'}
                  {/foreach}                 
		 {/if}
	  <span class="sortsell sort-labelUp {$sorthide}">{$language.lbldragnDropUpsellProducts}</span>
                </ul>
               </div>
              </td>
            </tr>
          </tbody></table>{form->close}
          {form->hidden  name="searchItemsUp"} 
        </div>       

<div class="clearfix"></div>
<script type="text/javascript">
var lblProductIDTitle='{$language.lblProductIDTitle}';
</script>
