<?php
//首页faq列表生成 {ls_faq} 508 public  $ls_faq   $faq
$faq_cate_sql="select * from `ls_functioncates` where functionName='常见问题' and cateName='faq' ";
$faq_cate_query=$opendb->query($faq_cate_sql);
$faq_cate_rows=mysqli_fetch_assoc($faq_cate_query);
$faqNum=$faq_cate_rows['hotLines']==0?$faqNum:$faq_cate_rows['hotLines'];

$faq_sql="select * from ls_news where cate = 'faq'  order by $sort desc limit 0,".$faqNum."";	
$faq_query=$opendb->query($faq_sql);
$i=1;
while($faq_rows=mysqli_fetch_assoc($faq_query)){
	
	$faq.="
	<div class=\"all-content\">
	<ul class=\"list-unstyled f-list\">
	<li>
	<div class='art_title2' id=\"faq".$faq_rows['ID']."\">
	<a href=\"javascript:void(0)\" onMouseover='loadfaq(".$faq_rows['ID'].")'><translate>".$faq_rows['newsTitle']."</translate></a></div>
			<div class='art_content' id='applyfaq".$faq_rows['ID']."'><translate>".strip_tags($faq_rows['newsText'])."</translate></div>
			</li></ul></div>";
	$i++;
}


?>
