<?php

//相关产品 有图 前10个

/*$oldpro=$related_rows['productPic'];
$oldprofilename= "page/".substr($oldpro,0,strrpos($oldpro,".")).".html" ;
$proptname1=pathProName($related_rows['productName']);
$proptname1=strtolower($proptname1);
$filenamepro=$oldpropath? $oldprofilename:clearFolder($proptname1)."-".$related_rows['ID'].".html"; //$ifcatelink
$filename=$uniproname?$related_rows['filename']:$filenamepro;
*/
$filename=$related_rows['filename']==""?clearFolder(strtolower(pathProName($related_rows['productName'])))."-".$related_rows['ID'].".html":$related_rows['filename'];

$showpro1=$related_rows['productName']; $showpro2=$related_rows['productItemNo'];
$showpro3=$showpro1."  ".$showpro2;
$showpro= $pronameno==1? $showpro1:($pronameno==2? $showpro2:$showpro3);
if($showpro1==$showpro2){$showpro=$showpro1;$showpro3=$showpro1;}

	$relapicpic=$SmallFoldersProducts."/".$related_rows['productPic'];
	$relapiclink="../".$pathprofilename."/".$filename;
 

 
	if(strpos( $related_products ,$relapiclink)===false){ //重复的不加
	$related_products.="<div class=\"col-lg-3 col-md-3 col-sm-6 col-xs-6 relate\">
	
					<div class=\"thumbnail\">
	
					<div class=\"img-pic\">
	
					<a href=\"".$relapiclink."\" title=\"<translate>".$showpro3."</translate>\" target=\"_blank\" class=\"c-img-height\">
	
					<img  src=\"".$prodda.$relapicpic."\" alt='<translate>".$showpro1.", ".$showpro2."</translate>' title='<translate>".$showpro3."</translate>'class=\"img-responsive\" /></a>
	
					</div>
	
					
	
					<div class=\"caption pro-name\"><h5>
	
					<a href=\"". $relapiclink. "\" title='".$showpro3."' ><translate>".$showpro."</translate></a></h5>
	
					</div>
	
					</div>
	
					</div>";
	}
 

?>

