<?php


//相关产品 有图 后10个
/*$oldpro=$related_rows2['productPic'];
$oldprofilename= "page/".substr($oldpro,0,strrpos($oldpro,".")).".html" ;
$proptname1=pathProName($related_rows2['productName']);
$proptname1=strtolower($proptname1);
$filenamepro=$oldpropath? $oldprofilename:clearFolder($proptname1)."-".$related_rows2['ID'].".html"; //$ifcatelink
$filename=$uniproname?$related_rows2['filename']:$filenamepro;
*/

$filename=$related_rows2['filename']==""?clearFolder(strtolower(pathProName($related_rows2['productName'])))."-".$related_rows2['ID'].".html":$related_rows2['filename'];

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

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

 
	if(strpos( $related_products ,$relapiclink)===false){ //重复的不
	$related_products.="<div class=\"col-lg-4 col-md-4 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>".$showpro."</translate>' class=\"img-responsive\"  /></a>
	
					</div>
	
					<div class=\"caption pro-name\"><h5>
	
					<a href=\"".$relapiclink."\" title='<translate>".$showpro3."</translate>' ><translate>".$showpro."</translate></a>
	
					</h5>
	
					</div>
	
					</div>
	
					</div>";
	}
 
?>

