<?php 
//_home_pro.php 首页产品列表 temp_index.php 517 {ls_homepro} 
	
	  $prosrc=$profile."/".$SmallFoldersProducts."/".$products_rows['productPic'];
	  $picsrc= $products_rows['wholepathpic']; //7-15
      $prosrc= $picsrc!=NULL?$picsrc:$prosrc; 
	  
	  $prolink=$profile."/".$showproductsFolders."/".trim(str_replace(substr($products_rows['productPic'],-4),"",$products_rows['productPic'])).".html"; //没用
	  $showpro1=$products_rows['productName']; $showpro2=$products_rows['productItemNo'];
	  $showpro3=$showpro1."  ".$showpro2;
	  $showpro= $pronameno==1? $showpro1:($pronameno==2? $showpro2:$showpro3);
	  if($showpro1==$showpro2){$showpro=$showpro1;$showpro3=$showpro1;}
	  $filename=$products_rows['filename']==""?clearFolder(strtolower(pathProName($products_rows['productName'])))."-".$products_rows['ID'].".html":$products_rows['filename']; //21-7-28
	  $homehref = $profile."/".$filename; //21-7-28
	  
	  switch($homehrefStytle){
		  case "prohref":
			  break;
		  
		  case "classhref":
			  $homehref = $profile."/".getproductpath($products_rows['productID']).".html";
		  break;
	  }
	  
	//$homehref=mb_substr($homehref,0,strrpos($homehref,"-") ).".html"; //大类链接?1
	//$homecate=substr($homehref,0,strrpos($homehref,"/"));
	//$homehref=$homecate; //大类链接2

//格式1：图上标题下

	$homepro.="
	<li class=\"col-lg-4 col-md-4 col-sm-4 col-xs-12 pro_home\">
	   <div class=\"proimg_home\">
	   <div class=\"news_right\"> 
    <span class=\"news_img\">
			<img src=\"".$_SESSION['dda'].$prosrc."\"  alt=\"".$showpro3."\" title=\"".$showpro3."\"/></span></div></div>
	   <div class=\"protext_home\">
				<dd> <translate>".$showpro."</translate></dd>
			</div>
         </li>
		";


//格式2：4列，图上文下和图下文上交错排列
/*	
	$homepro.= "<div class=\"col-lg-3 col-md-4 col-sm-6 col-xs-12 a1\">";
	$homepro.= $count%2 ? "
	    		<div class=\"HQ\"> 
			<a href=\"".$homehref."\"><img src=\"".$_SESSION['dda'].$prosrc."\"  alt=\"".$showpro3."\" title=\"".$showpro3."\"/></a>
				<span class=\"HQcenter\"> <a href=\"".$homehref."\"  title=\"".$showpro3."\"><translate>".$showpro."</translate></a></span>
				<span class=\"HQcenter2\"> ".mb_substr(str_replace("&nbsp;","",strip_tags($products_rows['productSpecification'])),0,500, 'utf-8')."</span>
				<div class=\"HQcenter3\" > <a href=\"".$homehref."\"  title=\"".$showpro3."\"> More </a></div>
			</div> "
			:
			"
			<div class=\"HQ\"> 
			<span class=\"HQcenter\"> <a href=\"".$homehref."\"  title=\"".$showpro3."\"><translate>".$showpro."</translate></a></span>
			<span class=\"HQcenter2\"> ".mb_substr(str_replace("&nbsp;","",strip_tags($products_rows['productSpecification'])),0,500, 'utf-8')."</span>
			<div class=\"HQcenter3\" > <a href=\"".$homehref."\"  title=\"".$showpro3."\"> More </a></div>
			<a href=\"".$homehref."\"><img src=\"".$_SESSION['dda'].$prosrc."\"  alt=\"".$showpro3."\" title=\"".$showpro3."\"/></a>
				
			</div>";
		$homepro.= "	
         </div>
		";
*/

//格式3：左图右文和左文右图交错排列 pestcontrolmate.com
/* 
if($hproi%2==0){
		$homepro.="
			<div class=\"col-sm-6 bj\"><a href=\"".$homehref."\"><img src=\"".$_SESSION['dda'].$prosrc."\"  alt=\"".$showpro3."\" title=\"".$showpro3."\"/></a></div>
      		<div class=\"col-sm-6 hei\">
      			<div class=\"line\"></div>
        		<h2><a href=\"".$homehref."\"  title=\"".$showpro3."\"><translate>".$showpro."</translate></a>
        		</h2>
        	<p <a href=\"".$homehref."\"><translate>".substr(str_replace("&nbsp;","",strip_tags($products_rows['productSpecification'])),0,180)."... </translate></a></p>
        	<span class=\"btn-pro2 btn-default2\"><a href=\"".$homehref."\">Read More</a></span> </div>
";
	}else{
		$homepro.="
      		<div class=\"col-sm-6 hei1\">
      			<div class=\"line\"></div>
        		<h2><a href=\"".$homehref."\"  title=\"".$showpro3."\"><translate>".$showpro."</translate></a>
        		</h2>
        	<p <a href=\"".$homehref."\"><translate>".substr(str_replace("&nbsp;","",strip_tags($products_rows['productSpecification'])),0,180)."... </translate></a></p>
        	<span class=\"btn-pro2 btn-default2\"><a href=\"".$homehref."\">Read More</a></span> </div>
		
		<div class=\"col-sm-6 bj\"><a href=\"".$homehref."\"><img src=\"".$_SESSION['dda'].$prosrc."\"  alt=\"".$showpro3."\" title=\"".$showpro3."\"/></a></div>";
	}
*/
?>

 
            
            
            