<?php

//侧边栏菜单 产品列表，如存在文件 _menu_product_down_pro.php ；2021-4-12

	$proside_catepro_sql="select * from ls_products where productId= ".$myproid." and enable=1 order by Num asc";
	$proside_catepro_query=$opendb->query($proside_catepro_sql);
	$menuar_num=mysqli_num_rows($proside_catepro_query); //总数

	if($menuar_num >1 ){ // >1篇

	  $s_p_cate.="<ul class=\"list-min\" style='overflow-y: auto;'>";
	  while($proside_catepro_rows=mysqli_fetch_assoc($proside_catepro_query))
	  {
		  //$filenameprodetail= $mycatefolder.clearFolder(strtolower(pathProName($proside_catepro_rows['productName'])))."-".$proside_catepro_rows['ID'].".html" ;
		  $showpro1=$proside_catepro_rows['productName']; $showpro2=$proside_catepro_rows['productItemNo'];
		  $showpro3=$showpro1."  ".$showpro2;
		  $showpro= $pronameno==1? $showpro1:($pronameno==2? $showpro2:$showpro3);
		 if($showpro1==$showpro2){$showpro=$showpro1;$showpro3=$showpro1;}
		  
		  $filenameprodetail=$proside_catepro_rows['filename']==""? $mycatefolder.clearFolder(strtolower(pathProName($proside_catepro_rows['productName'])))."-".$proside_catepro_rows['ID'].".html":$mycatefolder.$proside_catepro_rows['filename'] ; //21-7-28
			
		  $s_p_cate.="\n<li class=\"menu-item-zi-side\"><a href='".$filenameprodetail."' ><translate>".$showpro."</translate></a></li>";
	  }
	  $s_p_cate.="\n </ul>";
	}

?>

