<?php /* Smarty version Smarty-3.1.8, created on 2020-12-20 19:16:23
         compiled from "/home/agmc/beta/application/core/views/manage/standard/ProductUnderReviewList.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7571682235e451404e7bd22-20485742%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f15553cedfa1797fad4bace8bcb5473b5780292d' => 
    array (
      0 => '/home/agmc/beta/application/core/views/manage/standard/ProductUnderReviewList.tpl',
      1 => 1605520856,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7571682235e451404e7bd22-20485742',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5e451404f38482_94495466',
  'variables' => 
  array (
    'language' => 0,
    'view_styles' => 0,
    'editprivilege' => 0,
    'newPrivilege' => 0,
    'searchProductCategorySel' => 0,
    'resCategories' => 0,
    'resProducts' => 0,
    'view_common_languages' => 0,
    'editPrivilege' => 0,
    'deletePrivilege' => 0,
    'resProductList' => 0,
    'optionIDsString' => 0,
    'defaultOptionID' => 0,
    'productID' => 0,
    'view_public_path' => 0,
    'rand' => 0,
    'showPrivilege' => 0,
    'date_format' => 0,
    'time_format' => 0,
    'href' => 0,
    'combinationIDsString' => 0,
    'statusoptions' => 0,
    'view_javascript' => 0,
    'common_js' => 0,
    'listBrands' => 0,
    'validated' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5e451404f38482_94495466')) {function content_5e451404f38482_94495466($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/agmc/beta/library/template/plugins/modifier.truncate.php';
if (!is_callable('smarty_modifier_date_format')) include '/home/agmc/beta/library/template/plugins/modifier.date_format.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" />
    <title><?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdmin'];?>
 :  <?php echo $_smarty_tpl->tpl_vars['language']->value['lblCitiesAndProducts'];?>
 : <?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuListProductUnderReview'];?>
</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;?>
/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;?>
/colorbox.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/chosen.css" media="screen"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['view_styles']->value;?>
/grid_listing.css" media="screen" />
    <?php echo $_smarty_tpl->getSubTemplate ('CommonCustomStyles.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>


<?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);?>

</head>
<body>
<?php $_smarty_tpl->tpl_vars["editprivilege"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['editprivilege']->value)===null||$tmp==='' ? '' : $tmp), null, 0);?> 
<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--> 
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
  <div class="content_container">
      <div class="content_wrapper"> 
      <?php if ($_smarty_tpl->tpl_vars['newPrivilege']->value){?>
		<div class=" fixing_right">
			<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"product/new/",'class'=>"custom-btnt add",'content'=>" <strong><span class='add'></span>".($_smarty_tpl->tpl_vars['language']->value['lblAddProduct'])."</strong>"),$_smarty_tpl);?>

		</div>       
     <?php }?>
        <h2><?php echo $_smarty_tpl->tpl_vars['language']->value['lblMenuListProductUnderReview'];?>

          </h2>
          <div id="common_message"></div>
		  <div id="common_message_product"></div>  
        <!-- Inner Content Container starts-->
        <div class="inner_content_wrapper">
          <!-- Search container starts --> 
          <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"frmSearchProducts",'action'=>'','method'=>"post"),$_smarty_tpl);?>
          
          <div class="search_container clearfix">
            <div class="inner">
              <ul class="clearfix">
                <li class="column"><p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblProductIDTitle'];?>
</p> 
                <span class="form-field01"> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"searchProductName",'class'=>"text-box",'style'=>"width:95%;"),$_smarty_tpl);?>
 </span>
                </li>
                <li class="column">				 
                <p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblCategory'];?>
</p>
                <span class="form-field01"> 
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"categories",'value'=>$_smarty_tpl->tpl_vars['searchProductCategorySel']->value),$_smarty_tpl);?>

                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('name'=>"searchProductCategory",'class'=>"city_chk",'size'=>"5",'multiple'=>"multiple",'options'=>$_smarty_tpl->tpl_vars['resCategories']->value),$_smarty_tpl);?>
 </span>
                </li>
		
				
				
				<li class="column">				 
                <p class="label-field01"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrand'];?>
</p>
                <span class="form-field01">
                <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->textbox(array('name'=>"brandKey",'class'=>" select-box",'multiple'=>"multiple"),$_smarty_tpl);?>
 </span>
                </li>
						
              
                                 
		  
              
                 
				 
			<!-- For Frontend Implementations --> 
				
            
            <li class="column strict_fixing_right ">
              
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->hidden(array('name'=>"searchOption",'value'=>"basic"),$_smarty_tpl);?>

              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->submit(array('name'=>"submitProductSearch",'id'=>"submit",'class'=>"button01",'value'=>$_smarty_tpl->tpl_vars['language']->value['lblSearch']),$_smarty_tpl);?>

              
              <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>"/product/reviewProducts/",'class'=>"action-link",'content'=>($_smarty_tpl->tpl_vars['language']->value['lblListAll'])),$_smarty_tpl);?>

            </li>           
          </ul>                    
            </div>
          </div> <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>

          <!-- Search container ends --> 
          <?php if (count($_smarty_tpl->tpl_vars['resProducts']->value)>0){?> 
          <!-- sort by starts -->
        <div class="clearfix">
          
           
            <?php if (count($_smarty_tpl->tpl_vars['view_common_languages']->value)>1){?>
          <div class="fixing_right"><?php echo $_smarty_tpl->getSubTemplate ('ContentLanguageOptions.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0); ?>
</div>
          <?php }?>
            </div>        
      <!-- sort by ends -->	  
      <!--Start: Product List-->    
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->start(array('name'=>"formProduct",'action'=>'','method'=>"post",'enctype'=>"multipart/form-data"),$_smarty_tpl);?>
 				
			<div class="grid_table00 pd-list"> 
				<table width="100%" border="0" cellspacing="0" cellpadding="0"   >
					<thead>
						<tr>
						
						<th align="left" valign="middle"  width="30%" colspan="2">
						<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
						<span class="chkd-item">
						<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('class'=>"ListStatusLinkCheckbox v-aline fixing_left",'tabindex'=>"1"),$_smarty_tpl);?>
</span><?php }?> <?php echo $_smarty_tpl->tpl_vars['language']->value['lblVehicleDesc'];?>
</th>
                                                 <th align="left" valign="middle" width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblVariantCode'];?>
</th> 
                                                <th align="left" valign="middle" width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBannerCategory'];?>
</th> 
                                                <th align="left" valign="middle" width="10%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblBrand'];?>
</th> 
                                                <th align="left" valign="middle" width="10%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblModelYear'];?>
</th> 
                                                <th align="left" valign="middle" width="20%"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblListPrice'];?>
</th>                                                
						<th align="left" valign="middle" width="5%" colspan="2"><div style="width:45px;"></div></th>
						</tr>
					</thead>
					<tbody>
						<?php  $_smarty_tpl->tpl_vars["resProductList"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["resProductList"]->_loop = false;
 $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['resProducts']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["resProductList"]->key => $_smarty_tpl->tpl_vars["resProductList"]->value){
$_smarty_tpl->tpl_vars["resProductList"]->_loop = true;
 $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["resProductList"]->key;
?>								
							<?php $_smarty_tpl->tpl_vars["productID"] = new Smarty_variable($_smarty_tpl->tpl_vars['resProductList']->value['productID'], null, 0);?>
							<?php $_smarty_tpl->tpl_vars["defaultOptionID"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resProductList']->value["options"][0]["productOptionID"])===null||$tmp==='' ? '' : $tmp), null, 0);?>
							<?php $_smarty_tpl->tpl_vars["defaultOption"] = new Smarty_variable((($tmp = @$_smarty_tpl->tpl_vars['resProductList']->value["options"][0])===null||$tmp==='' ? '' : $tmp), null, 0);?>
							<?php if ($_smarty_tpl->tpl_vars['resProductList']->value['multiOptionsAvailable']=="No"){?>
								<?php if ((($tmp = @$_smarty_tpl->tpl_vars['optionIDsString']->value)===null||$tmp==='' ? '' : $tmp)!=''){?>
									<?php $_smarty_tpl->tpl_vars["optionIDsString"] = new Smarty_variable((($_smarty_tpl->tpl_vars['optionIDsString']->value).("_")).($_smarty_tpl->tpl_vars['defaultOptionID']->value), null, 0);?>
								<?php }else{ ?>
									<?php $_smarty_tpl->tpl_vars["optionIDsString"] = new Smarty_variable($_smarty_tpl->tpl_vars['defaultOptionID']->value, null, 0);?>
								<?php }?>
							<?php }?>
							<tr>
							<td align="left" valign="middle" colspan="2" >
							<?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
							<span class="chkd-item"><?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->checkbox(array('class'=>"ListAll v-aline fixing_left",'tabindex'=>"1",'name'=>"checkProductIDs[]",'value'=>$_smarty_tpl->tpl_vars['productID']->value),$_smarty_tpl);?>
</span><?php }?>
							
							<img src="<?php echo $_smarty_tpl->tpl_vars['view_public_path']->value;?>
/uploads/catalog/vehicles/thumb/<?php echo $_smarty_tpl->tpl_vars['resProductList']->value['productImage'];?>
?random=<?php echo $_smarty_tpl->tpl_vars['rand']->value;?>
" class="fixing_left pd-img" />
							<?php if ($_smarty_tpl->tpl_vars['showPrivilege']->value){?>
								<?php ob_start();?><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['resProductList']->value['productTitle'],80);?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('history'=>"yes",'href'=>"/product/show/id/".($_smarty_tpl->tpl_vars['resProductList']->value['productID'])."/",'class'=>"normal_link",'content'=>$_tmp1),$_smarty_tpl);?>

							<?php }else{ ?>
								<?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['resProductList']->value['productTitle'],80);?>

							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['resProductList']->value['bodyStyle']){?><br /><br /><span class="deal-txt fixing_left"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['bodyStyle'];?>
</span><?php }?>								
							<br /><br />
							<?php if ($_smarty_tpl->tpl_vars['resProductList']->value['productStatus']=='Inactive'){?><span class="inactive-txt fixing_right"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['productStatus'];?>
</span><?php }?>
							<span class="pd-time">
							<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resProductList']->value['productCreatedDate'],$_smarty_tpl->tpl_vars['date_format']->value);?>
 <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['resProductList']->value['productCreatedDate'],$_smarty_tpl->tpl_vars['time_format']->value);?>

							</span>
							<?php if ($_smarty_tpl->tpl_vars['resProductList']->value['isProductDeal']=='Yes'){?>
								<?php if ($_smarty_tpl->tpl_vars['resProductList']->value['productLife']=='over'){?>
								<span class="status_Expired"><?php echo $_smarty_tpl->tpl_vars['language']->value['lblExpired'];?>
</span>
								<?php }?>
							<?php }?>
							</td>
                                                        <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['variantCode'];?>
</td>
                                                        <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['catName'];?>
</td>
                                                        <td align="left" valign="top"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['brandName'];?>
</td>
                                                        <td align="center" valign="top"><?php echo $_smarty_tpl->tpl_vars['resProductList']->value['modelYear'];?>
</td>
                                                        <td align="left" valign="top"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['price'][0][0]->getFormattedCurrency((($tmp = @$_smarty_tpl->tpl_vars['resProductList']->value['productOptionRegularPrice'])===null||$tmp==='' ? '' : $tmp));?>
</td>
							<td align="left" valign="top" colspan="2" nowrap>
							<?php $_smarty_tpl->tpl_vars["href"] = new Smarty_variable((("/product/edit/id/").($_smarty_tpl->tpl_vars['resProductList']->value['productID'])).("/"), null, 0);?>  <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>		
								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('href'=>($_smarty_tpl->tpl_vars['href']->value),'title'=>($_smarty_tpl->tpl_vars['language']->value['lblEdit']),'class'=>"product-preview icon-set edit03"),$_smarty_tpl);?>

							<?php }?>
							<?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
								<?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('title'=>($_smarty_tpl->tpl_vars['language']->value['lblDelete']),'productid'=>($_smarty_tpl->tpl_vars['resProductList']->value['productID']),'class'=>"deleteproduct icon-set delete05"),$_smarty_tpl);?>

							<?php }?>
							<?php if (count($_smarty_tpl->tpl_vars['resProductList']->value['combination'])>0){?>
                                                            <?php echo $_smarty_tpl->smarty->registered_objects['html'][0]->anchor(array('class'=>"viewOptions add01 icon-set",'title'=>"View Option",'content'=>'','rel'=>$_smarty_tpl->tpl_vars['productID']->value),$_smarty_tpl);?>

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

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

					</tbody>             
				</table>
            </div>
		  
          <!--end: Product List--> 
          <!--Start: Pagination-->
          <div class="fixing_right pagination_outer"> <?php echo $_smarty_tpl->smarty->registered_objects['paginate'][0]->layout(array('key'=>"page",'label_record'=>($_smarty_tpl->tpl_vars['language']->value['lblRecorsFound']),'label_pages'=>($_smarty_tpl->tpl_vars['language']->value['lblPages'])),$_smarty_tpl);?>
 
            <!--end: Pagination-->
            <div class="clear"></div>
          </div>         
          <!--end: Pagination--> 
        <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value||$_smarty_tpl->tpl_vars['deletePrivilege']->value){?>
		   <?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable("->".($_smarty_tpl->tpl_vars['language']->value['lblDonotchange']), null, 0);?>
		 <?php if ($_smarty_tpl->tpl_vars['editPrivilege']->value){?>
			<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable(($_smarty_tpl->tpl_vars['statusoptions']->value)."~*Active->".($_smarty_tpl->tpl_vars['language']->value['lblActivate'])."~*Inactive->".($_smarty_tpl->tpl_vars['language']->value['lblInactivate']), null, 0);?>
		<?php }?>
		 <?php if ($_smarty_tpl->tpl_vars['deletePrivilege']->value){?>  
			<?php $_smarty_tpl->tpl_vars["statusoptions"] = new Smarty_variable(($_smarty_tpl->tpl_vars['statusoptions']->value)."~*Deleted->".($_smarty_tpl->tpl_vars['language']->value['lblDelete']), null, 0);?>
		<?php }?>		
		 
           <div class="action_box">
              <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->select(array('class'=>"select-box width-auto",'tabindex'=>"1",'name'=>"changeStatus",'options'=>$_smarty_tpl->tpl_vars['statusoptions']->value),$_smarty_tpl);?>

             <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->button(array('name'=>"submitProduct",'tabindex'=>"1",'class'=>"update_btn_table button04",'value'=>($_smarty_tpl->tpl_vars['language']->value['lblUpdate'])),$_smarty_tpl);?>

			 
			
			
			</div>		
	  <?php }?>	              

              <div class="clear"></div>	
			</div> 
            <?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->close(array(),$_smarty_tpl);?>
 		  
          <?php }else{ ?>
          <div  class="message_info"> <?php echo $_smarty_tpl->tpl_vars['language']->value['msgNoRecords'];?>
</div>
          <?php }?> 
          </div>
    </div>
    
    <!--End: left Block-->
    <div class="clear"></div>
  </div>
  <!--End:Content Container--> 
  <?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">
var lblCheckall = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblCheckall'];?>
";
var lblUncheckall = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblUncheckall'];?>
";
var lblSelectBusiness = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectBusiness'];?>
";
var lblSelectCitys = "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectCitys'];?>
";
var lblselected 	= "<?php echo $_smarty_tpl->tpl_vars['language']->value['lblselected'];?>
";
var msgConfirmDeletepdt 	= "<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDeletepdt'];?>
";
var lblBasicSearch="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblBasicSearch'];?>
";
var lblAdvanceSearch="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblAdvancedSearch'];?>
";
</script>
<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;?>
/productList.page.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/productListFeed.page.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/date.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/daterangepicker.jQuery.js"></script> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/jquery.colorbox.js"></script> 
<script src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/chosen.pluggin.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['common_js']->value;?>
/validate.plugin.js"></script> 
<script type="text/javascript">
 var msgSelectSearchCriteria = "<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectSearchCriteria'];?>
";
     $('#searchProductDate').daterangepicker({ arrows: false });
     $(document).ready(function(){

		$( "#brandKey" ).autocomplete({ source: <?php echo json_encode($_smarty_tpl->tpl_vars['listBrands']->value);?>
 });

          if($('#searchOption').val()=='basic')
           {
              $("#searchLink").text(lblAdvanceSearch);
            $('#searchOption').val('basic');
              $("#searchLink").attr('rel','advance');            
            $(".advanceSearch").hide();
           } 
           else
           {
           
             $("#searchLink").text(lblBasicSearch);
            $('#searchOption').val('advance');
              $("#searchLink").attr('rel','basic');
             $(".advanceSearch").show();
           } 
        });
				

</script> 
<?php if ((($tmp = @$_smarty_tpl->tpl_vars['validated']->value)===null||$tmp==='' ? '' : $tmp)=='No'){?>
	<script type="text/javascript">
		$(document).ready(function(){
			$( ".viewOptions" ).trigger( "click" );
        });
	</script> 
<?php }?>
<!--//*********sales rep***********//--> 
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/chosen.pluggin.js"></script>
<script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['view_javascript']->value;?>
/table.plugin.js"></script> 
<script language="javascript" type="text/javascript">
$(".salesRep").chosen()
$(".sortby-list").click(function(){ 
 if($(this).siblings(".sort_links_ul").is(':visible'))
 {
 $(this).removeClass("active");
 $(".sort_links_ul").hide();
 }
 else{
 $(this).siblings(".sort_links_ul").slideDown("fast");
 $(this).addClass("active"); 
 } 
$('body').click(function (e) {       
  if ($(".sort_links ").has(e.target).length === 0) {
     $(".sort_links_ul").hide();
	 $(".sortby-list").removeClass("active");
        }
    });
 
});
var msgSelectItem ="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgSelectItem'];?>
";
var lblSelectAction ="<?php echo $_smarty_tpl->tpl_vars['language']->value['lblSelectAction'];?>
";
var msgConfirmDelete ="<?php echo $_smarty_tpl->tpl_vars['language']->value['msgConfirmDelete'];?>
";
</script>
<?php echo $_smarty_tpl->smarty->registered_objects['form'][0]->validate_script(array('form'=>"formProduct"),$_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['html'][0]->messages_script(array('section'=>"Product",'id'=>"common_message_product"),$_smarty_tpl);?>

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