".trans_lang("NEWS")."

"; $sql_lang=" and lang in('".$_SESSION[web][lang]."','global') "; $list_q="select * from ".$db_prefix."news where 1 ".$sql_lang." and status='Y' order by add_date desc "; $list_r=db_q($list_q); $num_r=r_size($list_r); while($rs=get_data($list_r)) { $news_sn=$rs[sn]; $title=$rs[title]; $content=bk_string($rs[content],0,200,"...."); $pic1=$rs[pic1]; $add_date=date("Y-m-d",strtotime($rs[add_date])); $chk_q="select sn from ".$db_prefix."news_local_status where 1 and lang='".$_SESSION[web][lang]."' and status='Y' and info_sn='".$rs[sn]."' "; $chk_r=db_q($chk_q); if(r_size($chk_r)) { if($_SESSION[web][lang]!="global") { $sel_q="select title,content from ".$db_prefix."news_lang where 1 and news_sn='".$news_sn."' and lang='".$_SESSION[web][lang]."'"; $sel_r=db_q($sel_q); if($rs1=get_data($sel_r)) { $title=$rs1[title]; $content=bk_string($rs1[content],0,200,"..."); } } $pass=1; } elseif($_SESSION[web][lang]=="global") { $pass=1; } else { if($rs[lang]==$_SESSION[web][lang]) { $pass=1; } else { $pass=0; } } if($pass) { print " "; } } print "
"; include("footer.php");print " "; ?>