<?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：图上标题下,css动画

	$homepro.="
	<div class='col-lg-4 col-md-4 col-sm-4 col-xs-4 a1'>
      		<div class='news_right'> 
			<a href='".$homehref."'><span class='news_img'><img src='".$_SESSION['dda'].$prosrc."'  alt='".$showpro3."' title='".$showpro3."'/></span></a>
				<span class='HQcenter'> <a href='".$homehref."'  title='".$showpro3."'><translate>".$showpro."</translate></a></span>
			</div>
         </div>
		";


//格式2：4列，图上文下和图下文上交错排列,css动画

/*	$homepro.= "<div class='col-lg-3 col-md-4 col-sm-6 col-xs-12 a1'>";
	$homepro.= $count%2 ? "
	    		<div class='news_right'> 
			<a href='".$homehref."'><span class='news_img'><img src='".$_SESSION['dda'].$prosrc."'  alt='".$showpro3."' title='".$showpro3."'/></span></a>
				<span class='HQcenter'> <a href='".$homehref."'  title='".$showpro3."'><translate>".$showpro."</translate></a></span>
				<span class='HQcenter2'> ".mb_substr(strip_tags($products_rows['productSpecification']),0,500, 'utf-8')."</span>
				<div class='HQcenter3' > <a href='".$homehref."'  title='".$showpro3."'> More </a></div>
			</div> "
			:
			"
			<div class='news_right'> 
			<span class='HQcenter'> <a href='".$homehref."'  title='".$showpro3."'><translate>".$showpro."</translate></a></span>
			<span class='HQcenter2'> ".mb_substr(strip_tags($products_rows['productSpecification']),0,500, 'utf-8')."</span>
			<div class='HQcenter3' > <a href='".$homehref."'  title='".$showpro3."'> More </a></div>
			<a href='".$homehref."'><span class='news_img'><img src='".$_SESSION['dda'].$prosrc."'  alt='".$showpro3."' title='".$showpro3."'/></span></a>
				
			</div>";
		$homepro.= "	
         </div>
		";
*/
?>

 
            
            
            