<?php /* Smarty version Smarty-3.1.8, created on 2020-01-09 16:20:57
         compiled from "/home/agmc/public_html/beta/application/core/views/manage/standard/ProductAdd.tpl" */ ?>
<?php /*%%SmartyHeaderCode:289735725e171aa9c82df4-18772283%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e3830155a0a64d8fa30e21cfc4cabdc4ca3d793d' => 
    array (
      0 => '/home/agmc/public_html/beta/application/core/views/manage/standard/ProductAdd.tpl',
      1 => 1577772526,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '289735725e171aa9c82df4-18772283',
  'function' => 
  array (
    'categories' => 
    array (
      'parameter' => 
      array (
        'level' => 0,
        'catValues' => 0,
      ),
      'compiled' => '',
    ),
  ),
  'variables' => 
  array (
    'productRequestID' => 0,
    'productID' => 0,
    'language' => 0,
    'view_styles' => 0,
    'view_javascript' => 0,
    'productReqID' => 0,
    'productTitle' => 0,
    'bindOptionForm' => 0,
    'approveProduct' => 0,
    'attributeSetID' => 0,
    'listBrand' => 0,
    'class' => 0,
    'resSelectproduct' => 0,
    'resProductcategory' => 0,
    'productCategoryName' => 0,
    'count' => 0,
    'resProductTypeList' => 0,
    'data' => 0,
    'productCategory' => 0,
    'level' => 0,
    'categoryIDList' => 0,
    'catValues' => 0,
    'categoryValue' => 0,
    'categoryName' => 0,
    'children' => 0,
    'resProductCategories' => 0,
    'settingsRedirectUrl' => 0,
    'productUrl' => 0,
    'isProductDeal' => 0,
    'productDeal' => 0,
    'featuredStatus' => 0,
    'featured' => 0,
    'financeAvail' => 0,
    'finance' => 0,
    'leaseAvail' => 0,
    'lease' => 0,
    'productImage' => 0,
    'thumbPreview' => 0,
    'globalCommisionPercentage' => 0,
    'defaultCurrency' => 0,
    'taxApplicable' => 0,
    'multiOptionsAvailable' => 0,
    'enableMultiple' => 0,
    'listUsergroups' => 0,
    'sysKeys' => 0,
    'common_js' => 0,
    'searchTags' => 0,
    'tagnames' => 0,
    'currDate' => 0,
    'postCallback' => 0,
    'ctab' => 0,
  ),
  'has_nocache_code' => 0,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e171aa9ec29f8_33607609',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e171aa9ec29f8_33607609')) {function content_5e171aa9ec29f8_33607609($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_replace')) include '/home/agmc/public_html/beta/library/template/plugins/modifier.replace.php';
?><!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" />
<?php $_smarty_tpl->tpl_vars["productRequestID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productRequestID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<?php $_smarty_tpl->tpl_vars["productID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
<title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
: <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductsTitle'];?>
 : <?php if ($_smarty_tpl->tpl_vars['productRequestID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuAcceptProductrequest'];?>
 <?php }elseif($_smarty_tpl->tpl_vars['productID']->value){?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditProduct'];?>
 <?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewProduct'];?>
<?php }?></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 ('CommonJavaScript.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

<link href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/jqueryui.plugin.css" rel="stylesheet" type="text/css" />
<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" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/add-edit.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/colorbox.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/choosen.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/buybox.css" />
<script src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/chosen.pluggin.js" type="text/javascript"></script> 
<?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</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_container equalHeight">
    <div class="content_wrapper">
      <noscript>
      <div class="message_info"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblJsEnable'];?>
 !!</div>
      </noscript>
      <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>
	  <?php $_smarty_tpl->tpl_vars["productReqID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productReqID']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
         	
      
       
		<h2>
		  <?php if ($_smarty_tpl->tpl_vars['productRequestID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuAcceptProductrequest'];?>
 <?php }elseif($_smarty_tpl->tpl_vars['productID']->value){?><?php echo $_smarty_tpl->tpl_vars['language']->value['lblEditProduct'];?>
 ( <?php echo $_smarty_tpl->tpl_vars['productTitle']->value;?>
 )<?php }else{ ?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddNewProduct'];?>
<?php }?>
		</h2>
      <div id="common_message"></div>
      <!-- Inner Content Container starts-->
      <div class="inner_content_wrapper"> 
        <!--top tab starts-->         
        <!--top tab ends--> 
        <!-- tab product details starts -->
          <div class="tab-content-outer  clearfix ">
            <div class="left_block fixing_left"> 
              <div class="tab-block-01">
                <h2><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"product-details-save",'caption'=>"<span>&nbsp;</span>".($_smarty_tpl->tpl_vars['language']->value['lblProductDetails'])),$_smarty_tpl);?>
</h2>
              </div>
              <ul class="left-tab" id="maintab">
                <li class="sub"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"product-details-save",'caption'=>"<span>".($_smarty_tpl->tpl_vars['language']->value['lblGeneral'])."</span>",'class'=>"left-tab-a",'id'=>"general"),$_smarty_tpl);?>
</li>
                 <li class="sub"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"product-details-save",'caption'=>"<span>".($_smarty_tpl->tpl_vars['language']->value['lblSKUandPrice'])."</span>",'class'=>"left-tab-a",'id'=>"qtyPrice"),$_smarty_tpl);?>
</li>  
                <li class="sub"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"product-details-save",'caption'=>"<span>".($_smarty_tpl->tpl_vars['language']->value['lblContents'])."</span>",'class'=>"left-tab-a"),$_smarty_tpl);?>
</li> 
		<?php if ((($tmp = @$_smarty_tpl->tpl_vars['bindOptionForm']->value)===null||$tmp==='' ? '' : $tmp)=='1'){?>
                <li class="sub"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"custom-option-save",'caption'=>"<span>".($_smarty_tpl->tpl_vars['language']->value['lblCustomOptions'])."</span>",'class'=>"left-tab-a"),$_smarty_tpl);?>
</li>
                <?php }?>	
                <?php if ((($tmp = @$_smarty_tpl->tpl_vars['bindOptionForm']->value)===null||$tmp==='' ? '' : $tmp)=='1'){?>
                <li class="sub"><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('rel'=>"customcomb-option-save",'caption'=>"<span>".($_smarty_tpl->tpl_vars['language']->value['lblInventory'])."</span>",'class'=>"left-tab-a"),$_smarty_tpl);?>
</li>
                <?php }?>	
              </ul>
            </div>
            <!-- tab General tab-1 starts -->              
             <div class="right_block fixing_right">
             <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"Product",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data",'rel'=>"product-details-save"),$_smarty_tpl);?>

			 <div id="product-details-save-section" class="save-floating-section">
             <div class="cm-buttons-floating">
              <div class="submit-position"> 
			  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitProductDetails",'id'=>"submitProductDetails",'class'=>"button03 curve-3",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblSave'])),$_smarty_tpl);?>
                
			  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblOr'];?>

			  <?php if ((($tmp = @$_smarty_tpl->tpl_vars['approveProduct']->value)===null||$tmp==='' ? '' : $tmp)=="Yes"){?>
			  <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"product/request/",'content'=>$_smarty_tpl->tpl_vars['language']->value['lblCancel'],'tabindex'=>"1"),$_smarty_tpl);?>

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

			  <?php }?>                          
			  </div>
            </div>
            <div class="cm-buttons"></div>
			</div>
            <div  class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductDetails'];?>
&raquo; </li>
                  <li> <span> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblGeneral'];?>
 </span></li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
                    <li>
                      <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicInfo'];?>
</span></h3>
                    </li>
                    <?php if ($_smarty_tpl->tpl_vars['productID']->value){?> 
	      
	      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidAttrSetID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['attributeSetID']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidAttributeSetID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['attributeSetID']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

              <?php }else{ ?>
                  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"attributeSetID",'value'=>"1"),$_smarty_tpl);?>

	       <?php }?>
                                     
                      

					 <li class="clearfix">
                            <div  class="left1"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrandManufacturer'];?>
</div>
                            <div class="right1 fixing_right">	
								<?php $_smarty_tpl->tpl_vars["class"] = new Smarty_variable('', null, 0);?>
								<?php if (count($_smarty_tpl->tpl_vars['listBrand']->value)<2000){?>
									<?php $_smarty_tpl->tpl_vars["class"] = new Smarty_variable("choosen", null, 0);?>
								<?php }?>
								<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>($_smarty_tpl->tpl_vars['class']->value)." selectbox-width",'name'=>"brandID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['resSelectproduct']->value['brandID'])===null||$tmp==='' ? '' : $tmp),'options'=>$_smarty_tpl->tpl_vars['listBrand']->value,'caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblSelectBrand'])),$_smarty_tpl);?>

			                </div>
                     </li>
               
					<?php if ($_smarty_tpl->tpl_vars['productID']->value){?>
                    <li class="clearfix">
                       <div class="left1 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectedCategory'];?>
 </div>
                       <div class="right1 fixing_right"><?php $_smarty_tpl->tpl_vars["count"] = new Smarty_variable(0, null, 0);?>
                          <?php  $_smarty_tpl->tpl_vars["productCategoryName"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productCategoryName"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['resProductcategory']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productCategoryName"]->key => $_smarty_tpl->tpl_vars["productCategoryName"]->value){
$_smarty_tpl->tpl_vars["productCategoryName"]->_loop = true;
?> 
						  <?php if (isset($_smarty_tpl->tpl_vars['productCategoryName']->value['productCategoryName'])&&!is_numeric($_smarty_tpl->tpl_vars['productCategoryName']->value['productCategoryName'])){?>
						  <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['count']->value+1;?>
<?php $_tmp1=ob_get_clean();?><?php $_smarty_tpl->tpl_vars["count"] = new Smarty_variable($_tmp1, null, 0);?>
						  <?php if ($_smarty_tpl->tpl_vars['count']->value>1){?>>><?php }?><?php echo $_smarty_tpl->tpl_vars['productCategoryName']->value['productCategoryName'];?>

						  <?php }?>
						  <?php } ?>
                    </div>
                      </li>
                    <?php }?>
            	    <li class="clearfix">    
           <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hiddenProductID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['productID']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

	   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productTypeID",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['resProductTypeList']->value[0]['productTypeID'])===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

	   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productTypeKey",'value'=>'product_product'),$_smarty_tpl);?>
  
	    <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('id'=>"productSelectedType",'name'=>"productSelectedType",'value'=>"product",'rel'=>"product"),$_smarty_tpl);?>
                          
	
				 <div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategory'];?>
 <span class="cmn-tooltip for_linkbuybox fixing_right"> <span class="icon-set icon-hlp"></span> <span class="tlptxt"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblfilterProducts'];?>
</span> </span></div>
				 <div class="right1 fixing_right top-spc">
				 <div class="category-section pos-relative width-60per"> <i></i>
				  <div class="div-city" id="selProductCategory">
                      <div class="fixed-section">
                          <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductCategory'];?>
</h2>
                      <?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable('', null, 0);?>

				<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"filterCategories",'class'=>"filterBrands text-box margin-bottom",'placeholder'=>"Search Categories"),$_smarty_tpl);?>

                          </div>
				<?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable('', null, 0);?>
			        <ul  class="dragtree categoryList" id="categoryList">
							  

                <!--menu function-->
                 <?php if (!function_exists('smarty_template_function_categories')) {
    function smarty_template_function_categories($_smarty_tpl,$params) {
    $saved_tpl_vars = $_smarty_tpl->tpl_vars;
    foreach ($_smarty_tpl->smarty->template_functions['categories']['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["productCategory"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["productCategory"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["productCategory"]->key => $_smarty_tpl->tpl_vars["productCategory"]->value){
$_smarty_tpl->tpl_vars["productCategory"]->_loop = true;
?> 
					
					 <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryStatus']=='Inactive'){?>
				   <?php $_smarty_tpl->tpl_vars["categoryName"] = new Smarty_variable((("<span class='inactive'>").($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'])).("</span>"), null, 0);?>              
				  <?php }else{ ?>
				  <?php $_smarty_tpl->tpl_vars["categoryName"] = new Smarty_variable($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'], null, 0);?> 
				  <?php }?>
					
		
                        <li  data-level="<?php echo $_smarty_tpl->tpl_vars['level']->value;?>
" category="<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'];?>
" catname="<?php echo $_smarty_tpl->tpl_vars['productCategory']->value['productCategoryName'];?>
" class="left-spacing <?php if ($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']==1){?> ui-state-disabled hide <?php }?> li_catIDs" >
                     
                           
                                  
							
									<?php if (!(in_array($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],(($tmp = @$_smarty_tpl->tpl_vars['categoryIDList']->value)===null||$tmp==='' ? array() : $tmp)))){?>
                                    <span class="expand <?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>hide<?php }?>"></span>
									<?php }else{ ?>
									<span class="expand colapse <?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>hide<?php }?>"></span>
									<?php }?>
									<?php if (!(!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children']))){?>
																		  
									 <?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable((($_smarty_tpl->tpl_vars['catValues']->value).(",")).($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']), null, 0);?>
										

									
									<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"productCategoryID",'class'=>"categoryTree",'id'=>"category",'options'=>((($_smarty_tpl->tpl_vars['categoryValue']->value).("->")).("&nbsp;")).($_smarty_tpl->tpl_vars['categoryName']->value),'value'=>(($tmp = @$_smarty_tpl->tpl_vars['resProductcategory']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
 
									<?php }else{ ?>
                                   
									 <?php $_smarty_tpl->tpl_vars["categoryValue"] = new Smarty_variable((($_smarty_tpl->tpl_vars['catValues']->value).(",")).($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID']), null, 0);?>
									
									<?php echo $_smarty_tpl->tpl_vars['categoryName']->value;?>
 
									<?php }?>
									
								
                         
							<?php $_smarty_tpl->tpl_vars["children"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productCategory']->value['children'])===null||$tmp==='' ? '' : $tmp), null, 0);?>
                             <?php if (isset($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&is_array($_smarty_tpl->tpl_vars['productCategory']->value['children'])&&!empty($_smarty_tpl->tpl_vars['productCategory']->value['children'])){?>
                               <ul id="" class="categoryList <?php if (!(in_array($_smarty_tpl->tpl_vars['productCategory']->value['productCategoryID'],(($tmp = @$_smarty_tpl->tpl_vars['categoryIDList']->value)===null||$tmp==='' ? array() : $tmp)))){?>hide <?php }?>"> 
                            <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['children']->value,'level'=>$_smarty_tpl->tpl_vars['level']->value+1,'catValues'=>$_smarty_tpl->tpl_vars['categoryValue']->value));?>
  <!--menu function calling-->
                            </ul>
                          
                        <?php }else{ ?>
                             <?php if ((is_array($_smarty_tpl->tpl_vars['productCategory']->value))&&(isset($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))&&(is_numeric($_smarty_tpl->tpl_vars['productCategory']->value['menuItemID']))){?>
                        </li>	
                        <?php }?>
                    <?php }?>
            <?php } ?>  
          <?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;}}?>

          <?php smarty_template_function_categories($_smarty_tpl,array('data'=>$_smarty_tpl->tpl_vars['resProductCategories']->value));?>
 <!--menu function calling-->
             	 </ul>  
</div>
				 
				 <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate(array('name'=>"categorySelected",'validate'=>"hiddenbuyboxStatus->isnotequal->Yes~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errSelectAnyCategory']),$_smarty_tpl);?>

                                 </div></li>	
                                 
                                      <li class="clearfix">
                       <div class="left1 mandatory"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductTitle'];?>
 </div>
                       <div class="right1 fixing_right linkbuybox">
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"productTitle",'validate'=>"hiddenbuyboxStatus->isnotequal->Yes~*required",'error'=>$_smarty_tpl->tpl_vars['language']->value['errProductTitle'],'class'=>"textbox width-60per",'maxlength'=>"225"),$_smarty_tpl);?>

                    </div>
                       </li>
                      <li class="clearfix">
                        <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductUrl'];?>
 </div>
                        <div class="right1 fixing_right">
                 
                          <?php ob_start();?><?php echo (($tmp = @$_smarty_tpl->tpl_vars['productID']->value)===null||$tmp==='' ? '' : $tmp);?>
<?php $_tmp2=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"productUrl",'class'=>"textbox width-60per",'maxlength'=>"225",'validate'=>"isUrlKey~*productUrl->database->products,productUrl,productID!='".$_tmp2."' AND productStatus!='Deleted'",'error'=>(($_smarty_tpl->tpl_vars['language']->value['errValidProductIDKey']).('~*')).($_smarty_tpl->tpl_vars['language']->value['errUrlKeyExists']),'validate_inline'=>"yes"),$_smarty_tpl);?>

						  <?php if ((($tmp = @$_smarty_tpl->tpl_vars['settingsRedirectUrl']->value)===null||$tmp==='' ? '' : $tmp)){?>
						  <br/>
						<?php ob_start();?><?php if ($_smarty_tpl->tpl_vars['settingsRedirectUrl']->value=='Yes'){?><?php echo "True";?><?php }?><?php $_tmp3=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('name'=>"redirectOption",'value'=>"RP",'checked'=>$_tmp3,'disabled'=>"disabled"),$_smarty_tpl);?>

						<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPermanentRedirect'];?>
	
						<?php }?>
                                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"oldProductUrl",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['productUrl']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

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

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

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

                       				  
							
                              <?php $_smarty_tpl->tpl_vars["isProductDeal"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['isProductDeal']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?> 
								<?php $_smarty_tpl->tpl_vars["productDeal"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productDeal']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
								<?php if ($_smarty_tpl->tpl_vars['isProductDeal']->value=="Yes"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>
                            <?php $_smarty_tpl->tpl_vars["productDeal"] = new Smarty_variable("Yes", null, 0);?>                             
                             <?php }?>
                             <?php if ($_smarty_tpl->tpl_vars['isProductDeal']->value=="No"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>                       
                              <?php $_smarty_tpl->tpl_vars["productDeal"] = new Smarty_variable("No", null, 0);?>
                             <?php }?>
                             <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"isProductDeal",'value'=>$_smarty_tpl->tpl_vars['productDeal']->value),$_smarty_tpl);?>

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

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

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


						     
                          
						
					<li class="clearfix">
                       <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblBodyType'];?>
 </div>
                       <div class="right1 fixing_right linkbuybox">
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"bodyStyle",'class'=>"textbox width-27per",'maxlength'=>"100"),$_smarty_tpl);?>

                    </div>
                       </li>					  
			 <?php $_smarty_tpl->tpl_vars["featuredStatus"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['featuredStatus']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
			 <?php $_smarty_tpl->tpl_vars["featured"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['featured']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>	
                         <?php if ($_smarty_tpl->tpl_vars['featuredStatus']->value=="Yes"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>
                            <?php $_smarty_tpl->tpl_vars["featured"] = new Smarty_variable("checked", null, 0);?>
                         <?php }?>
                         <?php if ($_smarty_tpl->tpl_vars['featuredStatus']->value=="No"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?> 
                            <?php $_smarty_tpl->tpl_vars["featured"] = new Smarty_variable('', null, 0);?>
                         <?php }?> 
                          
                               <li class="clearfix">
                            <div class="left1 "><?php echo $_smarty_tpl->tpl_vars['language']->value['lblFinanceAvail'];?>
</div>
                            <div class="right1 fixing_right top-spc">
                              <ul class="levl-03">
							  <?php $_smarty_tpl->tpl_vars["financeAvail"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['financeAvail']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
							  <?php $_smarty_tpl->tpl_vars["finance"] = new Smarty_variable('', null, 0);?>
                                <li><?php if ($_smarty_tpl->tpl_vars['financeAvail']->value=="Yes"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>
                              <?php $_smarty_tpl->tpl_vars["finance"] = new Smarty_variable("checked", null, 0);?>
                              <?php }?>
                              <?php if ($_smarty_tpl->tpl_vars['financeAvail']->value=="No"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>                       
                             
                               <?php $_smarty_tpl->tpl_vars["finance"] = new Smarty_variable('', null, 0);?>
                              <?php }?>  
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"financeAvail",'name'=>"financeAvail",'value'=>"Yes",'checked'=>$_smarty_tpl->tpl_vars['finance']->value,'class'=>"checkbox01"),$_smarty_tpl);?>

                               </li>
                              </ul>
                            </div>
                          </li>
                                 <li class="clearfix">
                            <div class="left1 "><?php echo $_smarty_tpl->tpl_vars['language']->value['lblLeaseAvail'];?>
</div>
                            <div class="right1 fixing_right top-spc">
                              <ul class="levl-03">
							  <?php $_smarty_tpl->tpl_vars["leaseAvail"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['leaseAvail']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
							  <?php $_smarty_tpl->tpl_vars["lease"] = new Smarty_variable('', null, 0);?>
                                <li><?php if ($_smarty_tpl->tpl_vars['leaseAvail']->value=="Yes"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>
                              <?php $_smarty_tpl->tpl_vars["lease"] = new Smarty_variable("checked", null, 0);?>
                              <?php }?>
                              <?php if ($_smarty_tpl->tpl_vars['leaseAvail']->value=="No"&&$_smarty_tpl->tpl_vars['productID']->value!=''){?>                       
                             
                               <?php $_smarty_tpl->tpl_vars["lease"] = new Smarty_variable('', null, 0);?>
                              <?php }?>  
                                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('id'=>"leaseAvail",'name'=>"leaseAvail",'value'=>"Yes",'checked'=>$_smarty_tpl->tpl_vars['lease']->value,'class'=>"checkbox01"),$_smarty_tpl);?>

                               </li>
                              </ul>
                            </div>
                          </li>
			  
			  
				
				
                                <?php if ($_smarty_tpl->tpl_vars['productID']->value){?>
			         <li class="clearfix">
                              <div class="left1 mandatory"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblStatus'];?>
</div>
                              <div class="right1 fixing_right top-spc"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->radio(array('name'=>"productStatus",'class'=>"customradio",'options'=>"Review->".($_smarty_tpl->tpl_vars['language']->value['lblReview'])."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActive'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactive']),'value'=>"Active"),$_smarty_tpl);?>
 </div>
                          </li> 
                         <?php }?>                 
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('id'=>"featuredStatus",'name'=>"featuredStatus",'value'=>"No"),$_smarty_tpl);?>

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

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

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

                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidshippingStatus",'value'=>"Free"),$_smarty_tpl);?>
   
                          <?php $_smarty_tpl->tpl_vars["productImage"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['productImage']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?>
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidMainImage",'value'=>$_smarty_tpl->tpl_vars['productImage']->value),$_smarty_tpl);?>
   
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"hidThumbImage",'value'=>$_smarty_tpl->tpl_vars['productImage']->value),$_smarty_tpl);?>
	
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"thumbPreview",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['thumbPreview']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>

			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productID",'value'=>$_smarty_tpl->tpl_vars['productID']->value),$_smarty_tpl);?>
          
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productRequestID",'value'=>$_smarty_tpl->tpl_vars['productReqID']->value),$_smarty_tpl);?>
 
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productCommisionhidden",'value'=>(($tmp = @$_smarty_tpl->tpl_vars['globalCommisionPercentage']->value)===null||$tmp==='' ? '' : $tmp)),$_smarty_tpl);?>
  
                    </li>                   
                     
                    
                  </ul>
                </div>
              </div>
            </div>
            <!-- tab General tab-1 ends --> 
            <!-- tab Contents tab-2 starts -->
             <div class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductDetails'];?>
&raquo; </li>
                  <li><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSKUandPrice'];?>
</li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
                  
                  <li class="clearfix">
                      <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSKUandPrice'];?>
</span></h3>
                      </li>
                        <li class="clearfix">
                      <div class="left_box">
                        <ul class="levl-01">
                       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productMinBuyLimit",'value'=>"1"),$_smarty_tpl);?>

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

                       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productDefaultCurrency",'value'=>$_smarty_tpl->tpl_vars['defaultCurrency']->value),$_smarty_tpl);?>
 
                       <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"productQuantityNotifyAt",'value'=>"1"),$_smarty_tpl);?>
 
                          <?php if ($_smarty_tpl->tpl_vars['taxApplicable']->value=="Yes"){?>
                              <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_variable("checked", null, 0);?>
                              <?php }else{ ?>
                               <?php $_smarty_tpl->tpl_vars["tax"] = new Smarty_variable('', null, 0);?>
                          <?php }?> 
			             
				      <li class="clearfix stock">
                            <div class="left01 "><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShowAvailQty'];?>
</div>
                            <div class="right01 fixing_right">                            
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"showQuantityAvailable",'class'=>"textbox length0_50pers",'maxlength'=>"9",'validate'=>"InventoryTrackLevel->isnotequal->No~*showQuantityAvailable->isnotequal->~*isWholeNumberWithZero",'error'=>$_smarty_tpl->tpl_vars['language']->value['errValidQunatity']),$_smarty_tpl);?>

                    </div>
                           </li>
				     
                        
                  
			</ul>
                      </div>
                 </li>        
                 
                        <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"enableBuybox",'value'=>"No"),$_smarty_tpl);?>

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

                         
                        <?php if ((($tmp = @$_smarty_tpl->tpl_vars['multiOptionsAvailable']->value)===null||$tmp==='' ? '' : $tmp)=="Yes"){?>                    
                              <?php $_smarty_tpl->tpl_vars["enableMultiple"] = new Smarty_variable("checked", null, 0);?>                    
                              <?php }else{ ?>                    
                              <?php $_smarty_tpl->tpl_vars["enableMultiple"] = new Smarty_variable('', null, 0);?>                    
                              <?php }?>
			      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"enableMultiple",'value'=>$_smarty_tpl->tpl_vars['enableMultiple']->value),$_smarty_tpl);?>

                    
                                  
              
                    
                    <li class="clearfix " id="optionTab"> 
                    <?php echo $_smarty_tpl->getSubTemplate ('ProductAdd_Options.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
<div class="single-option"><a class="btn-add curve-3 fixing_right" id="add_new_options"><span class="h"></span><span class="v"></span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAddOptions'];?>
</a></div>  </li>
                   
                  </ul>                  
                
                  
                  
                </div>
              </div>
            </div>   
             <!-- tab Contents tab-2 ends -->  
            <div class="tabpane">
              <div class="tabpane_inner"> <span class="BreadCrump">
                <ul class="clearfix">
                  <li> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductDetails'];?>
&raquo; </li>
                  <li> <span> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblContents'];?>
 </span></li>
                </ul>
                </span>
                <div class="form_listing">
                  <ul class="levl-00">
		     <h3><span><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductInfo'];?>
</span></h3>
                          <li class="clearfix"> 
                      <!--start: left pane -->
                      <div class="left1 "><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblShortDescription'];?>
</strong></div>
                      <div class="right1">
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('mode'=>"simple",'skin'=>2,'name'=>"productShortDescription",'id'=>"productShortDescription",'value'=>$_smarty_tpl->tpl_vars['resSelectproduct']->value['productShortDescription'],'class'=>"text-area-01"),$_smarty_tpl);?>

                      </div>
                    </li>   
                  <li class="clearfix"> 
                      <!--start: left pane -->
                      <div class="left1 "><strong><?php echo $_smarty_tpl->tpl_vars['language']->value['lblDescription'];?>
</strong></div>
                      <div class="right1">
                          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor(array('mode'=>"simple",'skin'=>2,'name'=>"productDescription",'id'=>"productDescription",'validate'=>"required",'value'=>$_smarty_tpl->tpl_vars['resSelectproduct']->value['productDescription'],'error'=>$_smarty_tpl->tpl_vars['language']->value['errProductDescription'],'class'=>"text-area-01"),$_smarty_tpl);?>

                      </div>
                    </li>
                    
		          <li class="clearfix">
                    <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblSearchTags'];?>
 </div>
                    <div class="right1 "> 
						
						<div class="dropdownlist_04 curved" id="autosuggesttags">  
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"searchTags",'maxlength'=>"50",'type'=>"text",'value'=>'','autocomplete'=>"off",'class'=>"as-input text-area-01 width-60per"),$_smarty_tpl);?>
 
				 </div>
                 <span class="sub-text"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblSeparateSearchTagsText'];?>
</span>
						
					</div>
                  </li>
                  <li class="clearfix">
                    <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaTitle'];?>
 </div>
                    <div class="right1 "> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"productMetaTitle",'class'=>"textbox width-60per"),$_smarty_tpl);?>
</div>
                  </li>
                  
                   <li class="clearfix">
                    <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetakeywords'];?>
 </div>
                    <div class="right1 "> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"productMetaKeywords",'class'=>"text-area-01 width-60per",'cols'=>"4",'rows'=>"4"),$_smarty_tpl);?>
 
                    </div>
                  </li>
                  <li class="clearfix">
                    <div class="left1"> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMetaDescription'];?>
 </div>
                    <div class="right1 ">
                      <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textarea(array('name'=>"productMetaDescription",'class'=>"text-area-01 width-60per",'cols'=>"4",'rows'=>"4"),$_smarty_tpl);?>
 
                    </div>
                  </li>
				  
					
                  </ul>
                </div>
              </div>
            </div>                      


            <!-- tab Settings tab-4 ends -->          		 
		  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 
	     
	      <?php echo $_smarty_tpl->getSubTemplate ('ProductCustomOption.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

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

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

	      

		
		</div>        
          </div>
      </div>
      <!-- tab product details ends -->       
    </div>
  </div>
  <!-- tab product details ends --> 
			
	<script type="text/template" id="tierPriceRowTemplate">
	<div class="clearfix parent">
                        <div class="column">
		  <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('caption'=>"->".($_smarty_tpl->tpl_vars['language']->value['lblAllGroups']),'options'=>($_smarty_tpl->tpl_vars['listUsergroups']->value),'rel'=>"<%= productOptionCount%>_<%= index%>",'productOptionCount'=>"<%= productOptionCount%>",'name'=>"<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][userGroupID]",'class'=>"<%= prefix%>tier_price_user_group input-text custgroup"),$_smarty_tpl);?>

					<span class="message_validation tier_<<?php ?>%= productOptionCount%<?php ?>>_<<?php ?>%= index%<?php ?>>  hide"><span><?php echo $_smarty_tpl->tpl_vars['language']->value['errDuplicateCombination'];?>
</span></span>
		    </div>
            <div class="column sml">
			<small class="nobr"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblandabove'];?>
</small>
		   <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"<%= prefix%>tier_price_qty <%= productOptionCount%>_<%= index%> textbox required-entry length30",'validate'=>"callback_tierprice_quantity",'error'=>"Required",'name'=>"<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][quantity]"),$_smarty_tpl);?>

				
		    </div>
			
                    <div class="column">
			<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('class'=>"tier_price_tier_price <%= productOptionCount%>_<%= index%> textbox required-entry validate-zero-or-greater",'validate'=>"callback_tierprice_price",'error'=>"Required",'name'=>"<%= group%>[<%= productOptionCount%>][tier_price][<%= index%>][tierPrice]"),$_smarty_tpl);?>

		    </div>
            <div class="column-del"><a title="Delete Tier"  class="icon-set delete02 txt-hide" id="tier_price_row_<<?php ?>%= index%<?php ?>>_delete_button" onclick="return tierPriceControl.deleteItem($(this));">
					<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
</a>
									</div>
            </div>
	</script>
</div>
<?php echo $_smarty_tpl->getSubTemplate ('CommonBottom.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>

</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;?>
/jquery.multiselect.widget.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/custom-radiobutton.js"></script> 
<script type="text/javascript">
    var sysKeys = '<?php echo $_smarty_tpl->tpl_vars['sysKeys']->value;?>
';
    $(function(){
	 $('#perioddiv input').customInput('');
	});	
</script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/uploadImage.plugin.js"></script> 
<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['view_javascript']->value;?>
/jquery.autoSuggest.js"></script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->editor_script(array('names'=>"productHighlights,productDescription,productShortDescription"),$_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);?>

<?php $_smarty_tpl->tpl_vars["tagnames"] = new Smarty_variable($_smarty_tpl->tpl_vars['searchTags']->value, null, 0);?>
<?php $_smarty_tpl->tpl_vars["tagnames"] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['tagnames']->value,'"','quot;'), null, 0);?>
<?php $_smarty_tpl->tpl_vars["tagnames"] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['tagnames']->value,"'","apos;"), null, 0);?>
<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['common_js']->value;?>
/underscore.plugin.js"></script> 
<script type="text/javascript">
var settingsRedirectUrl = '<?php echo $_smarty_tpl->tpl_vars['settingsRedirectUrl']->value;?>
';
var data = "<?php echo $_smarty_tpl->tpl_vars['tagnames']->value;?>
";
var lblAlertOk='<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAlertOk'];?>
';
var strtpass="<?php echo $_smarty_tpl->tpl_vars['language']->value['errPassedTime'];?>
";
var optionprice="<?php echo $_smarty_tpl->tpl_vars['language']->value['errProductRegularPrice'];?>
";
var currDate="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['customDate'][0][0]->getFormattedDate($_smarty_tpl->tpl_vars['currDate']->value);?>
";
var msgSearchWarning="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSearchWarning'];?>
";
var msgSelectAtleastOne="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgdelOption'];?>
";
var msgSelectDifferentNames="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectDifferentNames'];?>
";
var msgSelectDifferentNamesoption="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectDifferentNamesoption'];?>
";
var msgDeleteItem="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteItem'];?>
";
var msgDeleteImage="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgDeleteImage'];?>
";
var msgSaveImage="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSaveImage'];?>
";
var msgOptionDeleted="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgOptionDeleted'];?>
";
var lblDelete="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblDelete'];?>
";
var msgNoImagesAdded="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoImagesAdded'];?>
";
var msgOptionSaved="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgOptionSaved'];?>
";
var msgNoOptionsAdded="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoOptionsAdded'];?>
";
var msgRelatedProductsSaved="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgRelatedProductsSaved'];?>
";
var msgUpsellProductsSaved="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgUpsellProductsSaved'];?>
";
var msgCrosssellProductsSaved="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgCrosssellProductsSaved'];?>
";
var msgFreeProductsSaved="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgFreeProductsSaved'];?>
";
var msgdeldefaultOption="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgdeldefaultOption'];?>
";
var errProductRegularPrice="<?php echo $_smarty_tpl->tpl_vars['language']->value['errProductRegularPrice'];?>
";
var productType="Product";
var lblSelectItem ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectItem'];?>
";
var errRequired 	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['errRequired'];?>
";
var errValidNumber 	=	"<?php echo $_smarty_tpl->tpl_vars['language']->value['errValidNumber'];?>
";
var lblPageLeaveAlert = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblPageLeaveAlert'];?>
";
var defaultCurrency=<?php echo $_smarty_tpl->tpl_vars['defaultCurrency']->value;?>
;
var lblSelproducts = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectProducts'];?>
";
var lblProducts = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblProducts'];?>
";
var errDuplicateCombination="<?php echo $_smarty_tpl->tpl_vars['language']->value['errDuplicateCombination'];?>
";
var errDuplicateMerchant="<?php echo $_smarty_tpl->tpl_vars['language']->value['errDuplicateMerchant'];?>
";
</script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script>
<script type="text/javascript">  
var lblSelect 			= "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelect'];?>
";
var lblFreeProductErr1          = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblFreeProductErr1'];?>
";
var postCallback = "<?php echo $_smarty_tpl->tpl_vars['postCallback']->value;?>
";
var __currentTab = "";
//use Rel as assign value
<?php if ($_smarty_tpl->tpl_vars['ctab']->value=='coption'){?>
__currentTab="custom-option-save";
<?php }elseif($_smarty_tpl->tpl_vars['ctab']->value=='coptioncomb'){?>
__currentTab="customcomb-option-save";
<?php }elseif($_smarty_tpl->tpl_vars['ctab']->value=='cattr'){?>
__currentTab="attribute-save";
<?php }?>
</script>

<script type="text/javascript">

	$(document).ready(function(){
		$('#layoutActiveFrom').datepicker();
		$('#layoutActiveTo').datepicker();
        
        $('.category-section i').click(function(){

            $('.category-section').toggleClass('open');
           $('body').toggleClass('overflow');
        });
       $('#sellAsBatch').click(function(){
                    showhidebatch();
                });
                showhidebatch(); 
       
	});
function showhidebatch(){
            if ($("#sellAsBatch").is(':checked')) {
                $('.sellasbatch').show();
            }else{
            $('.sellasbatch').hide();
            }
        }	
		
	
</script>

<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/buybox.page.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/productCommon.page.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/productAdd.page.js"></script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"Product"),$_smarty_tpl);?>

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