";
$list_q="select * from ".$db_prefix."news where 1 and status='Y' and sn='".$news_sn."' order by add_date desc limit 1 ";
$list_r=db_q($list_q);
$num_r=r_size($list_r);
if($rs=get_data($list_r))
{
$news_sn=$rs[sn];
$title=$rs[title];
$content=nl2br($rs[content]);
$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 * from ".$db_prefix."news_lang where 1 and news_sn='".$rs[sn]."' and lang='".$_SESSION[web][lang]."'";
$sel_r=db_q($sel_q);
if($rs1=get_data($sel_r))
{
$title=$rs1[title];
$content=nl2br($rs1[content]);
}
}
$pass=1;
}
elseif($_SESSION[web][lang]=="global")
{
$pass=1;
}
else{
if($rs[lang]==$_SESSION[web][lang])
{
$pass=1;
}
else
{
$pass=0;
}
}
if($pass)
{
print "
";
$tempF=db_q("select * from ".$db_prefix."news_content where news_sn='".$news_sn."' and status='Y' order by order_num");
//echo "select * from ".$db_prefix."news_content where news_sn='".$news_sn."' and status='Y' order by order_num";
if(r_size($tempF)>0){
while($inputF=get_data($tempF)){
$showpic="";
//echo $inputF["data_content"];
if($inputF["file_data"]) $showpic=$web."/".$inputF["file_data"];
//echo "select * from ".$db_prefix."news_content_lang where new_content_sn='".$inputF["sn"]."' and lang='".$lang."'";
$temp_cl=db_q("select * from ".$db_prefix."news_content_lang where new_content_sn='".$inputF["sn"]."' and lang='".$lang."'");
if(r_size($temp_cl)){
$input_cl=get_data($temp_cl);
$data_content=restore_data_all($input_cl["data_content"]);
}else{
$data_content=restore_data_all($inputF["data_content"]);
}
if($inputF["data_show"]=="1"){?>
}elseif($inputF["data_show"]=="2"){?>
}elseif($inputF["data_show"]=="3"){?>
}elseif($inputF["data_show"]=="4"){?>
=trans_lang("Back")?>