<!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>{$language.lblAdmin} :  {$language.lblProductsTitle} : {$language.lblManageProducts} : {$language.lblProductDetails}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
<link rel="stylesheet" type="text/css" href="{$view_styles}/product-details.css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/colorbox.css" />
{include file='CommonCustomStyles.tpl'}
</head>
<body>
<div class="outer_container"> {include file='CommonTop.tpl'} 
  <!--End:Header Container--> 
  <!--*************************************************************END HEADER CONTAINER******************************************************-->
  <div class="content_container">
    <div class="content_wrapper"> 
	<div id="common_message" ></div>
      <!-- product informoation starts --> 
      <!-- product-basic-info :: starts -->     
    
        {assign var="productID" value=$resSelectproduct.productID}
          {html->anchor href=$previousURL caption="{$language.lblBack}" class="back-link fixing_right"} 
        {include file='ContentLanguageOptions.tpl'}
        {html->anchor priv_href="product/edit/" href="product/edit/id/{$resSelectproduct.productID}/" class="button-link01 fixing_right" content=$language.lblEdit}     
        <h2>{$resSelectproduct.productTitle|default:''}</h2>   
          
      <div class="clearfix">
      <!-- product-basic-info :: Ends -->
      <div class="left_block fixing_left">
              <div class="tab-block-01">
                <h2><a href="#"><span>&nbsp;</span>{$language.lblProductDetails}</a></h2>
              </div>
            <ul class="left-tab" id="maintab">
            <li class="sub"> {html->anchor href="" class="left-tab-a active" id="detail" content="<span>{$language.lblGeneral}</span>"} </li>
            <li class="sub"> {html->anchor href="" class="left-tab-a" id="option" content="<span>{$language.lblQuantityandPrice}</span>"} </li>
           <li class="sub"> {html->anchor href="" class="left-tab-a" id="images" content="<span>{$language.lblContents}</span>"} </li>          
            <li class="sub">{html->anchor href="" class="left-tab-a" content="<span>{$language.lblCustomOptions}</span>"} </li>                          
	    <li class="sub">{html->anchor href="" class="left-tab-a {if $tab}active{/if}" id="discusn" content="<span class='four'>{$language.lblDiscussion}</span>"} </li>

            </ul>
            </div>
      
      <!--End: Tab Button-->
     <div class="right_block">
      <div class="tabpane">
       <div class="tabpane_inner">
        <div class="form_listing">
          <ul>
            <li class="clearfix">
              <h3><span>{$language.lblBasicInfo}</span></h3>
            </li>
            <li class="clearfix"> 
              <!--start: left pane -->
              <div class="left-pane">
                <div class="form_listing01"><ul>
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblProductTitle}</div>
                      <div class="rightside01-new">{$resSelectproduct.productTitle|default:''}</div>
                    </li>                     
                      <li class="clearfix">
                      <div class="leftside01">{if $resProductcategory|@count eq 1}{$language.lblProductCategory}{else}{$language.lblProductCategory}{/if}</div>
                      <div class="rightside01-new default-style"> 
                      {if $resProductcategory}
                    <div class="category-section">
                    <ol><li>
                      <strong>{foreach item="productCategory" key=k from=$resProductcategory}
                        {$productCategory.productCategoryName}{if $k+1 neq $resProductcategory|@count}, {/if}
                        {/foreach} </strong>
                    </li></ol>
                    </div>
                    {else}{$language.lblNotSpecified}{/if}</div>
                    </li>                    
                    
                     
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblImage}</div>
                      <div class="rightside01-new">{if $image_directory|default:''}<img  id="dalImageSize" src="{$view_public_path}/uploads/catalog/product/thumb/{$resSelectproduct.productImage}?random={$rand}" alt="logo" style="max-width:100%" /> {/if}
                  </div>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="right-pane">
                <div class="form_listing01">
                  <ul>
                    
					<li class="clearfix">
                      <div class="leftside01">{$language.lblBrand}</div>
                      <div class="rightside01-new">{$resSelectproduct.brandName}</div>
                    </li>
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblBodyType}</div>
                      <div class="rightside01-new">{$resSelectproduct.bodyStyle}</div>
                    </li>
                     <li class="clearfix">
                      <div class="leftside01">{$language.lblFeaturedHot}</div>
                      <div class="rightside01-new">{if $resSelectproduct.featuredStatus}{$resSelectproduct.featuredStatus} {else} No{/if}</div>
                    </li>
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblFinanceAvail}</div>
                      <div class="rightside01-new">{if $resSelectproduct.financeAvail}{$resSelectproduct.financeAvail} {else} No{/if}</div>
                    </li>
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblLeaseAvail}</div>
                      <div class="rightside01-new">{if $resSelectproduct.leaseAvail}{$resSelectproduct.leaseAvail} {else} No{/if}</div>
                    </li>
                     <li class="clearfix">
                      <div class="leftside01">{$language.lblStatus}</div>
                      <div class="rightside01-new">{$resSelectproduct.productStatus|default:''}</div>
                    </li>
                      {if $detailViewCount|@count neq 0}            
               <li class="clearfix">
                      <div class="leftside01">{$language.lblTotalProductView}</div>
                      <div class="rightside01-new">{$detailViewCount}</div>
                    </li>
              {/if}
              {if $uniqueDetailViewCount|@count neq 0}              
                       {if $detailViewCount|@count neq 0}            
                       <li class="clearfix">
                      <div class="leftside01">{$language.lblUniqueProductView}</div>
                      <div class="rightside01-new">{$uniqueDetailViewCount}</div>
                    </li>              
              {/if} 
			  {/if}
					<li class="clearfix">
                      <div class="leftside01">{$language.lblProductPopularity}</div>
                      <div class="rightside01-new">{$resSelectproduct.popularity}</div>
                    </li> 
					
					<li class="clearfix">
                      <div class="leftside01">{$language.lblPurchasePopularity}</div>
                      <div class="rightside01-new">{$resSelectproduct.purchasePopularity}</div>
                    </li> 
				
                  </ul>
                </div>
              </div>
              <!--end: right pane --> 
            </li>             
          </ul>
        </div>
        
        <!-- Related Products --> 
      </div>
      </div>
      <!--End:Product Details--> 
      <!-- Image Listing-->
      
      <!--End: Images--> 
      <!-- Options-->
    <div class="tabpane" style="display:none;">
      <div class="tabpane_inner">
            <div class="form_listing"><ul> <li class="clearfix">
              <h3><span>{$language.lblQuantityandPrice}</span></h3>
            </li> 
            {*<li class="clearfix">           
            <div class="left-pane">
                <div class="form_listing01">
                  <ul>
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblMinimumBuy}</div>
                      <div class="rightside01-new">{$resSelectproduct.productMinBuyLimit}</div>
                    </li>
                      <li class="clearfix">
                      <div class="leftside01">{$language.lblMaximumBuyLimit}</div>
                      <div class="rightside01-new">{if $resSelectproduct.productMaxBuyLimit!=''}<strong>{$resSelectproduct.productMaxBuyLimit}</strong>{else}{$language.lblNotSpecified}{/if}</div>
                    </li>             
                  </ul>
                </div>
              </div>
                
              </li>*}
            </ul>

         {if $resProductOptions|count >0}
          {assign var="productOptionCount" value="0"}      
        
        {if $resProductOptions}                
        {foreach from=$resProductOptions item="productOptions"}
        
        {assign var="productOptionCount" value=$productOptionCount+1}
          {if $resSelectproduct.multiOptionsAvailable=="Yes"}
          <ul class="option productOptionRow" >
			  <li class="clearfix first">
              <h3><span>{$language.lblOption} {$productOptionCount}</span></h3>
            </li>
            {else}
             <ul class="no-option" >
            {/if}
            <li class="clearfix form_listing01">
            <div class="left-pane">
                  <ul>
                  
                    {if $productOptions.bmwCode}
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblCode} </div>
                      <div class="rightside01-new">{$productOptions.bmwCode}</div>
                    </li>
                    {/if}
                    {if $productOptions.modelYear}
                    <li class="clearfix">
                      <div class="leftside01">{$language.lblModelYear} </div>
                      <div class="rightside01-new">{$productOptions.modelYear}</div>
                    </li>
                    {/if}
                   
                  </ul>
              </div>
              
              </li>
		
		  
		  
		{*<li>
                    <h3><span>{$language.lblSellerInfo}</span></h3>
                </li>*}
                <li>
                    <div  class="grid_table01">
                        <table width="100%">
                            <tr>
                                <th align="left" valign="middle" width="25%">{$language.lblSKU}</th>
                                <td style="padding: 0;">
                                    <table width="100%">
                                        <tbody>
                                            <tr>
                                                <th align="left" valign="middle" width="15%" style="border-bottom:0;">
                                                    {$language.lblItemPrice}
                                                </th>
                                                <th align="left" valign="middle" width="15%" style="border-bottom:0;">
                                                    {$language.lblSalePrice}
                                                </th>
                                                <th align="left" valign="middle" width="8.5%" style="border-bottom:0;">
                                                    {$language.lblQuantity}
                                                </th>
                                                
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                                <tr {if $resProductOptions|count>1} style=" border-bottom: 1px solid #d3d4d8;" {/if}>
                                    <td width="25%" style="border-top: 0; padding:0;">
                                        {if $resProductOptions|count>0}
                                            <table width="100%">
                                                <tr>
                                                    <td style="border:0;">
                                                        {$language.lblOptionName} : 
                                                        {$productOptions.productOptionName} ({$language.lblOptionSKU}: 
                                                         {$productOptions.optionSKU})
                                                    </td>
                                                </tr>
                                            </table>
                                        {/if}
                                        {*<table width="100%">
                                            <tr>
                                                <td style="border: 0;">
                                                    {if $resProductList['options']|count>1}
                                                        {$language.lblOptionSKU} : 
                                                    {/if}
                                                    {$productOptions.optionSKU}
                                                </td>
                                            </tr>
                                        </table>*}
                                    </td>
                                    <td style="border-top: 0; padding:0;">
                                        <table width="100%">
                                            {if $productOptions['businessOptions']|count>0}
                                                {foreach $productOptions['businessOptions'] as $businessOptions}
                                                    <tr>
                                                        
                                                        <td style="" align="left" valign="top" width="15%" style="border-left: 0; border-top: 0;">
                                                            {$businessOptions.productOptionRegularPrice|default:''|price}
                                                        </td>
                                                        <td style="" align="left" valign="top" width="15%" style="border-left: 0; border-top: 0;">
                                                            {$businessOptions.productOptionProductPrice|default:''|price}
                                                        </td>
                                                        <td style="" align="left" valign="top" width="8.7%" style="border-left: 0; border-top: 0;">
                                                            {if $resProductList.InventoryTrackLevel=='No'}
                                                                {$language.lblUnlimited}
                                                            {else}
                                                                {if $businessOptions.productQuantityUnlimited eq 1}
                                                                    {$language.lblUnlimited}
                                                                {else}
                                                                    {$businessOptions.productOptionQuantity}
                                                                {/if}
                                                            {/if}
                                                        </td>
                                                       
                                                    </tr>
                                                {/foreach}
                                            {else}
                                                {$language.lblNoMerchantAssigned}
                                            {/if}
                                        </table>
                                    </td>
                                </tr>
                        </table>
                    </div>
               </li>
               <li>
                    <h3><span>{$language.lblMedia}</span></h3>
               </li>                         
          {if $productReqID|default:''}                  
          {assign var="productImageLoc" value="product-request"}                  
          {else}                  
          {assign var="productImageLoc" value="product"}                  
          {/if}
           <li class="clearfix full_width_list">
           <div class="leftside01">{$language.lblAdditionalImages}</div>
            <div class="rightside01-new">
            <ul class="img-list clearfix"  rel="{$productOptionCount}">
                    {assign var="productImageCount" value="0"} 
                    {if $productOptions.media}              
                    {foreach from=$productOptions.media item="productImages"}              
                    {assign var="productImageCount" value=$productImageCount+1}
                    <li> <img width="150px" height="150px" src="{$view_public_path}/uploads/catalog/product/large/{$productImages.productMedia}?random={$rand}"/> </li>
                    {/foreach}{else}{$language.lblNotSpecified}{/if}
                  </ul>
            </div>
          </li>
              </ul>
              {/foreach}
              {/if}
              {else}
      <div class="message_info">{$language.lblNoAdditionalOptions} </div>
      {/if} 
      
      
              </div>
             </div>
            </div>
        <div class="tabpane"  style="display:none;">
        <div class="tabpane_inner" >
         <div class="form_listing">
          <ul>
            <li class="clearfix">
              <h3><span>{$language.lblProductInfo}</span></h3>
            </li>
            {if $resSelectproduct.productShortDescription|unescape:"html" neq ''}
            <li class="clearfix full_width_list">
              <div class="leftside01">{$language.lblShortDescription}</div>
              <div class="rightside01-new border-bottom default-style"> {$resSelectproduct.productShortDescription|unescape:"html"} </div>
            </li> 
            {/if}
            <li class="clearfix full_width_list">
              <div class="leftside01">{$language.lblDescription}</div>
              <div class="rightside01-new border-bottom default-style"> {$resSelectproduct.productDescription|unescape:"html"} </div>
            </li>          

			<li class="clearfix full_width_list">
              <div class="leftside01">{$language.lblSearchTags}</div>
              <div class="rightside01-new border-bottom default-style">{if $resSelectproduct.searchTags}{$resSelectproduct.searchTags}{else}{$language.lblNotSpecified}{/if}</div>
            </li>  
          <li class="clearfix full_width_list">
            <div class="leftside01">{$language.lblMetaTitle}</div>
            <div class="rightside01-new border-bottom default-style">{if $resSelectproduct.productMetaTitle} 
              {$resSelectproduct.productMetaTitle}{else}{$language.lblNotSpecified}{/if} </div>
          </li>
          <li class="clearfix full_width_list">
            <div class="leftside01">{$language.lblMetaDescription}</div>
            <div class="rightside01-new border-bottom default-style"> {if $resSelectproduct.productMetaDescription} {$resSelectproduct.productMetaDescription}{else}{$language.lblNotSpecified}{/if} </div>
          </li>
          <li class="clearfix full_width_list">
            <div class="leftside01">{$language.lblMetakeywords}</div>
            <div class="rightside01-new border-bottom default-style"> {if $resSelectproduct.productMetaKeywords} {$resSelectproduct.productMetaKeywords}{else}{$language.lblNotSpecified}{/if} </div>
          </li>
		
          </ul>
        </div>
      </div>
     </div>


  <div class="tabpane"  style="display:none;">
   <div class="tabpane_inner">
    <h3><span>{$language.lblCustomOptions}</span></h3>{if $resUserLevelAttributes|@count>0}  
    <div class="grid_table01 custom-option-grid">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" id="userLevelCustomAttr" class="customAttributePriority">
    <tbody>              
    <tr class="nodrag nodrop">
    <th align="left" valign="middle">{$language.lblName}</th>   
    <th align="left" valign="middle">{$language.lblInputType}</th>
     <th align="left" valign="middle">{$language.lblAttributeSubText}</th>
      <th align="left" valign="middle">{$language.lblValidate}</th>
       {*<th align="left" valign="middle">{$language.lblPriceImpact}</th>   *}
    </tr>
    {foreach from=$resUserLevelAttributes item="resAttributesUser"}
   
    {assign var="customOptionID" value=$resAttributesUser.customOptionID}
    {if isset($productRequestID) && $productRequestID>0}
    {assign var="editAttributeURL" value='attribute/edit/productRequestID/'|cat:{$productRequestID}|cat:'/custid/'|cat:$customOptionID|cat:'/'}
    {else if $productID}        
    {assign var="editAttributeURL" value='productoption/show/productID/'|cat:{$productID}|cat:'/id/'|cat:$customOptionID|cat:'/'}
    {/if}    
    <tr id="{$customOptionID}">
    <td align="left" valign="top"><div class="pos-relative expand-outer">{$resAttributesUser.customOptionName}{if $resAttributesUser.isGlobal==1}(Global){/if}
     {if $resAttributesUser.inputType eq 'select' || $resAttributesUser.inputType eq 'multiselect'}<span class="expandable expand-span" >              
                                <img class="expand" src="{$view_images}/plus.gif" width="14" height="9">
                                <img class="collapse" src="{$view_images}/minus.gif" width="14" height="9" >
              </span>{/if}</div></td>        
    <td align="left" valign="top">{$resAtrributeInputTypes[$resAttributesUser.inputType]}</td>
     <td align="left" valign="top">{if $resAttributesUser.helpText} {$resAttributesUser.helpText} {else}{$language.lblNotSpecified}{/if}</td>
      <td align="left" valign="top"> {if $resAttributesUser.validateRule|strstr:"required"}
                   {$language.lblYes}({$resAttributesUser.validationMessage})
                    {else}
                   {$language.lblNo} 
                  {/if}</td>
    {*<td align="left" valign="top">
    {if $resAttributesUser.inputType eq 'select' || $resAttributesUser.inputType eq 'multiselect'}  
    {else}
    {$resAttributesUser.priceDiff|round:"2"} 
   ({if $resAttributesUser.priceDiff=='I'}{$language.lblIncrease}{elseif $resAttributesUser.priceDiff=='D'} {$language.lblDecrease}
		  {elseif $resAttributesUser.priceDiff=='O'}{$language.lblOverride}{else}{$language.lblNone}{/if})
    {/if}
    </td>*}
    </tr>
     {if isset($resAttributesUser.variant)}
    <tr class="detailview">
      <td colspan="5" class="expand-div">
    <div class="grid_table01"> 
    <table width="100%" cellpadding="0" cellspacing="0">
     <tr>
      <th align="left" valign="middle">{$language.lblValue}</th>
      <th align="left" valign="middle">{$language.lblCode}</th>
      {*<th align="left" valign="middle" width="17%">{$language.lblPriceImpact}</th>
      <th align="left" valign="middle" width="12%">{$language.lblWeightImpact}</th>*}
      {if $resAttributesUser.inputType=='select'}
      <th align="left" class="variant_image" valign="middle" width="20%">{$language.lblImage}</th>
      {/if}
      <th align="left" valign="middle" width="10%">{$language.lblIsDefault}</th>
    </tr>    
    {foreach from=$resAttributesUser.variant item="attributeOptions"}  	
    <tr>
    <td align="left" valign="top">
{$attributeOptions.value|html_entity_decode}
   </td>
   <td align="left" valign="top">
{$attributeOptions.variantCode|html_entity_decode}
   </td>
  {*<td align="left" valign="top">
    <span class="small-field">
  	{$attributeOptions.priceDiff|round:"2"} 
   ({if $attributeOptions.priceDiffType=='I'}{$language.lblIncrease}{elseif $attributeOptions.priceDiffType=='D'} {$language.lblDecrease}
		  {elseif $attributeOptions.priceDiffType=='O'}{$language.lblOverride}{else}{$language.lblNone}{/if})</span>
  </td>
  <td align="left" valign="top">
     <span class="small-field">
    	{$attributeOptions.weightDiff|escape}
	 ({if $attributeOptions.weightDiffType=='I'}{$language.lblIncrease}{elseif $attributeOptions.weightDiffType=='D'} {$language.lblDecrease}
		  {elseif $attributeOptions.weightDiffType=='O'}{$language.lblOverride}{else}{$language.lblNone}{/if})</span>
  </td>*}
   {if $attributeOptions.inputType eq 'select'}
    <td align="center" valign="top">       
        {if $attributeOptions.variantThumbImage!=''}<div>		  
	 <img src="{$view_public_path}/uploads/catalog/custom-option-variant/{$attributeOptions.variantThumbImage}" width="77"/>              
        </div> {/if}
     
    </td>{/if}
    <td align="center" valign="top"> 
    {if $attributeOptions.isDefault==1}
     {$language.lblYes}
    {else}
   {$language.lblNo}
    {/if}
  </td>     
    </tr>
    {/foreach}
    </table>
    <div>
    </td></tr>
    
    {/if}   
    {/foreach}
    </tbody>
    </table>
    </div>	            
{else}
<div class="message_info"> {$language.msgNoRecords}</div>
{/if}</div>
</div>



    <!-- Discussions-->
    <div class="tabpane"  style="display:none;"> 
     <div class="tabpane_inner">
      <h3>
       <span>{$language.lblDiscussion}</span>
      </h3>
    {form->hidden name="productTab" value=$productTab}            
      {if !$resProductReviewDetails|@count eq 0}
      {form->start name="formProductDiscussion" action="" method="post"}
      {form->hidden name="hidProductReviewID" value=0}      
      <div class="review-listing">
	  {foreach from=$resProductReviewDetails item="product_review_details_list" key="key1"}
        {assign var ='currProductReviewID' value=$product_review_details_list.ProductReviewID}
        <div class="clearfix listing ">
          <div class="rv-left fixing_left">
            <ul id="unit_ul1" class="unit-rating ">
              <li id="current-rating" class="current-rating" style="width:{16 * $product_review_details_list.productRating}px;">{$product_review_details_list.productRating}/5</li>
            </ul>
            <span class="name">{$product_review_details_list.userFirstName} {$product_review_details_list.userLastName}</span> <br />
            <span class="date">{$product_review_details_list.reviwedDate|date_format:"$date_format"} {$product_review_details_list.reviwedDate|date_format:"$time_format"} </span> </div>
          <div class="rv-right fixing_right">
            <div class="fixing_right ">
            <span class="fade-color">IP : {$product_review_details_list.userIP}</span>
            	{if $product_review_details_list.reviewStatus eq 'Inactive'}
                	<span class="highlight"> {$product_review_details_list.reviewStatus} </span>
                {/if} 
               {if $product_review_details_list.reviewStatus eq 'New'}
			   {if $reviewprivilage}
                {html->anchor href="" reviewID="{$currProductReviewID}" class="approve" caption="<strong>{$language.lblApprove}</strong>"  task="approve"}
                {/if}	
                {/if}
                 {if $view_common_languages|@count>1} 
                	{if $product_review_details_list.languageID}
                		 <img class="flag " id="flag"  src="{$view_root_path}/public/uploads/languages/{$product_review_details_list.languageImage|escape}" alt="flag" /> 	
                     {/if}
                 {/if}
                 </div>
          {if $product_review_details_list.helpfulVoteCount>0 || $product_review_details_list.notHelpfulVoteCount>0} 
            {$product_review_details_list.helpfulVoteCount} {$language.lblOf} {$product_review_details_list.notHelpfulVoteCount + $product_review_details_list.helpfulVoteCount} {$language.lblReviewHelpfulText} 
            {/if}
            {assign var="reviewtext" value=$product_review_details_list.reviewText|unescape:"html"}
			{assign var="reviewtextCharCount" value=$reviewtext|count_characters:true}
            {assign var="reviewtextCharLimit" value=100}
            <div class="position"> 
			  {if $reviewprivilage}
			{html->anchor href="product/reviewedit/id/$currProductReviewID"  title="{$language.lblEditUserReview}" class="editpop  icon-set edit03 "}
             {/if}
			{if $revdeleteprivilage}	
              {html->anchor rel="/product/reviewdelete/id/$currProductReviewID/productid/$productID/"   title="{$language.lblDelete}" class=" icon-set delete05" task="review_delete"}{/if}
              {if $reviewtextCharCount > $reviewtextCharLimit} 
              	{html->anchor class="reviewReadMore  add01 icon-set" title="{$language.lblViewMore}" rel="{$currProductReviewID}" }
              {else}
              <span style="display:inline-block;width:15px;">&nbsp;</span>
              {/if} </div>
            <div class="rv-title">{$product_review_details_list.reviewTitle}</div>
            <div class="cmt ">
            
            {if $reviewtextCharCount > $reviewtextCharLimit}
            <span class="reviewReadLessDet" id="reviewReadLessDet_{$currProductReviewID}">{$reviewtext|mb_substr:0:$reviewtextCharLimit}...</span>
            
            <span class="reviewReadMoreDet" id="reviewReadMoreDet_{$currProductReviewID}"  style="display:none;">
            {$reviewtext|nl2br}
            </span>
           
            {else}
            {$reviewtext|nl2br}										
            {/if}
            
            {*$product_review_details_list.reviewText|nl2br*} </div>
          </div>{if $reviewprivilage || $revdeleteprivilage}
        {form->checkbox class="productReviewBulkStatus checkbox-review" name="productReviewBulkStatus[]"   options="" value=$currProductReviewID}{/if}
</div>        
        {/foreach} </div>
      <div class="clearfix">
        <div class="fixing_right pagination_outer"> {paginate->layout key="page" label_record="{$language.lblRecorsFound}" label_pages="{$language.lblPages}"}
          <div class="clear"></div>
        </div>
		{if $reviewprivilage || $revdeleteprivilage}
			 {assign var="bulkStatusOptions" value="->{$language.lblDonotchange}"}
			{if $reviewprivilage}
				{assign var="bulkStatusOptions" value="{$bulkStatusOptions}~*Active->{$language.lblActivate}~*Inactive->{$language.lblInactivate}"}
			{/if}
			{if $revdeleteprivilage}		
				{assign var="bulkStatusOptions" value="{$bulkStatusOptions}~*Deleted->{$language.lblDelete}"}
			{/if}
			<div > {form->select class="select-box width-auto" name="reviewStatus" options=$bulkStatusOptions} 
			  {form->submit name="submitBulkStatus" id="submitBulkStatus" class="update_btn_table button04"  value="{$language.lblUpdate}"}              
			  {form->close}
			  <div class="clear"></div>
			</div>
		{/if}
      </div>
      {else}
      <div class="message_info">{$language.lblNoProductDiscussions}</div>
      {/if} </div>
      </div>
    <!--End:Discussion--> 

    </div>
    </div>
 </div>
    <!--End:Border 3--> 
    {form->hidden name="statusChanged"} 
    <!--End:Border 2--> 
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
</div>
<!--End:Content Container--> 
{include file='CommonBottom.tpl'}
</div>
<!--End:Outer Container--> 
{include file='CommonJavaScriptBottom.tpl'} 
<script type="text/javascript" src="{$view_javascript}/tab-double.js"></script>  
<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script> 
<script type="text/javascript" src="{$view_javascript}/productDetails.page.js"></script> 
<script type="text/javascript" src="{$view_javascript}/jquery.colorbox.js"></script> 
<script type="text/javascript" >
$(document).ready(function () {
		$(document).on('click','.reviewReadMore', function () {
			var thisRel = $(this).attr("rel");			
			if($(this).hasClass("minus01"))
			{
				$(this).removeClass("minus01");
				$("#reviewReadMoreDet_"+thisRel).hide();
				$("#reviewReadLessDet_"+thisRel).show();
			}
			else
			{
				$(this).addClass("minus01");
				$("#reviewReadLessDet_"+thisRel).hide();
				$("#reviewReadMoreDet_"+thisRel).show();
				
			}
		});
	});
var msgSelectItem	=	"{$language.msgSelectItem}";
var msgSelectAStatus	=	"{$language.msgSelectAStatus}";
{literal}
$(document).ready(function(){       
        $(document).on('click',".expandable",function(){
		$(".detailview").hide();
		$("td").removeClass("selectedtd");
		$(".expand-span").removeClass("collapsable").addClass("expandable");
		$(this).closest("tr").next(".detailview").show();
		$(this).removeClass("expandable").addClass("collapsable");
		$(this).parent("td").addClass("selectedtd")
	});
	
	$(document).on('click',".collapsable", function(){
		$(this).closest("tr").next(".detailview").hide();
		$(this).removeClass("collapsable").addClass("expandable");
		$(this).parent("td").removeClass("selectedtd")
	});
        
        
});
{/literal}
$('.remove-spacing li:last-child').css('border-bottom', 'none');
</script> 
{html->messages_script id="common_message"} 
<script type="text/javascript" >
var lblSelectAction ='{$language.lblSelectAction}';
var lblSelectItem 	='{$language.lblSelectItem}';
var lblSelectDelete ='{$language.lblDeleteReview}';
var lblConfirmDeleteGeneral	='{$language.msgConfirmDelete}';
</script>
<script type="text/javascript" >
{literal}
$(document).ready(function(){
	$(".editpop").colorbox({iframe:true, innerWidth:"60%", innerHeight:300});
});
{/literal}

</script>
</body>
</html>
