<?php

//产品相册生成  1247 ls-syscode  {ls_pro}

$picsrc= $products_rows['wholepathpic']; //  21-7-11 换后台，新传图片优先使用，新图为空，使用老图
$imgpic= $picsrc!=NULL?"../{ls_url}".$picsrc:$imgpic;

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

$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;}

//列表 + 按钮 手机兼容

 

	$listdetail=trim(substr(strip_tags(htmlspecialchars_decode($products_rows['productSpecification'])),0,$prolistbrieflen));

			 

	$pro.="<div>

						 <div class=\"col-lg-4 col-md-4 col-sm-4 col-xs-6 prolist\" >
<div class=\"proimg_list\" >
						<a href=\"".$filenameprodetail."\" alt=\"<translate>".$showpro1.", ".$showpro2."</translate>\" title=\"<translate>".$showpro3."</translate>\" ><img src=\"".$prodda.$imgpic."\" alt=\"<translate>".$showpro1.", ".$showpro2."</translate>\" title=\"<translate>".$showpro3."</translate>\" width='240' /></a>
</div>
						<div class=\"prowenzi\" >

						<a class=\"mingzi\" href=\"".$filenameprodetail."\" alt=\"<translate>".$showpro1.", ".$showpro2."</translate>\" title=\"<translate>".$showpro3."</translate>\" class='pn' >".$showpro."</a>

						</div>

			  </div>

			</div>";	



//相册 

/*

$pro.="<li class=\"prodt\" >

			<a class=\"prog\" href=\"".$filenameprodetail."\" title=\"<translate>".$products_rows['productName']."</translate>\" class=\"c-img-height\" >

				<img src=\"".$prodda.$imgpic."\" alt=\"<translate>".$products_rows['productName'].", ".$products_rows['productName']."</translate>\" title=\"<translate>".$products_rows['productName']."</translate>\" />

			</a>

			<span>

				<a href=\"".$filenameprodetail."\" title='<translate>".$products_rows['productName']."</translate>' ><translate>".$products_rows['productName']."</translate>

				</a>

			</span>

		</li>";*/

		

?>

