<?php

//页脚产品菜单 带产品 {ls_d_cate}，如存在文件 _menu_product_down_pro.php，_menu_product_down在_menu_product_down.php ；2021-4-12

	$probott_catepro_sql="select * from ls_products where productId= ".$myproid." and enable=1 order by Num asc";
	$probott_catepro_query=$opendb->query($probott_catepro_sql);
	$menuar_num=mysqli_num_rows($probott_catepro_query); //总数
	//mysqli_data_seek($probott_catepro_query, 0); //指针复位
	if($menuar_num >1 ){ // >1篇

	  $d_pro_cate.="<ul class=\"list-min_food\" style='overflow-y: auto;'>";
	  while($probott_catepro_rows=mysqli_fetch_assoc($probott_catepro_query))
	  {
		  $filenameprodetail= $probott_catepro_rows['filename']==""? $mycatefolder.clearFolder(strtolower(pathProName($probott_catepro_rows['productName'])))."-".$probott_catepro_rows['ID'].".html" :$mycatefolder.$probott_catepro_rows['filename'] ; //21-7-28
		  
		  //$filenameprodetail= $mycatefolder.clearFolder(strtolower(pathProName($probott_catepro_rows['productName'])))."-".$probott_catepro_rows['ID'].".html" ; //		  
		  $d_pro_cate.="\n<li class=\"menu-item-zi-side_food\"><a href='".$filenameprodetail."' ><translate>".$probott_catepro_rows['productName']."</translate></a></li>";
	  }
	  $d_pro_cate.="\n </ul>";
	}

?>

