| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/wesonfast/news-index.php |
<?php include("function.php");
$sql = "select id,title,picture,keywords,des,content,created,type_id,title2 from ".$noe_version."_companynewses where member_id=".$id." and id= '".$_GET['nid']."'";
$res=$db->selectarray($sql);
$res=$db->toarray($res);
$res[0][4]= stripslashes($res[0][4]);
$res[0][4]=html_entity_decode($res[0][4]);
$res[0][5]=str_replace('<','<',str_replace('>','>',str_replace('"','"',$res[0][5])));
$res[0][5]= stripslashes($res[0][5]);
$res[0][5]=html_entity_decode($res[0][5]);
$news=$res[0];
$newstype=$db->selectone("select id,name,name2 from ".$noe_version."_newstypes where member_id=".$id." and id= '".$news[7]."'");
$aa='news.html';
$aaa=$lang['words'][73];
$bb=$db->turn_name($newstype[2]).'_newstype'.$newstype[0].'.html';
$bbb=$newstype[1];
$purl=$db->turn_name($news[8]).'_newsview'.$news[0].'.html';
$pagekeyword=$news[1];
$pagekeyword2=$news[1].', '.$news[3];
$pagekeyword3=$news[1].', '.$news[3];
$pagekeyword4=$news[1].', '.$news[3];;
include("head.php");
?>
<div class="container custom-margin-1">
<div class="row gy-5 gy-lg-0">
<div class="col-lg-9 order-lg-1 mt-0" >
<div class="row">
<div class="col">
<h2 class="text-color-dark font-weight-bold text-7 line-height-1 mb-4"><? if($bbb!='')echo $bbb;else{?><?=$aaa?><? }?></h2>
<div class="blog-posts single-post">
<article class="post post-large blog-single-post border-0 m-0 p-0">
<div class="post-date ms-0">
<span class="day"><?=date("d",$news[6])?></span>
<span class="month"><?=date("M",$news[6])?></span>
</div>
<div class="post-content ms-0">
<h2 class="font-weight-semi-bold"><?=$news[1]?></h2>
<div class="post-meta">
<span><i class="far fa-user"></i> By Weson </span>
</div>
<div class="co-text">
<?=str_replace('src="/userfiles/','src="/userfiles/',$news[5])?>
</div>
<div class="margin-t-20">
<ul class="list top_offset">
<?
$sql1="select id,title,created,type_id,title2 from ".$noe_version."_companynewses where type_id='".$news[7]."' and id<'".$_GET['nid']."' order by id desc limit 0,1";
$rstmp1=$db->selectone($sql1);
?><? if(!empty($rstmp1[0])) { ?><li><a href="<?=$db->turn_name($rstmp1[4])?>_newsview<?=$rstmp1[0]?>.html"><?=$lang['words'][162]?>: <?=$rstmp1[1]?></a></li>
<? } else { ?><? }?>
<?
$sql2="select id,title,created,type_id,title2 from ".$noe_version."_companynewses where type_id='".$news[7]."' and id>'".$_GET['nid']."' order by id asc limit 0,1";
$rstmp2=$db->selectone($sql2);
?><? if(!empty($rstmp2[0])) { ?><li><a href="<?=$db->turn_name($rstmp2[4])?>_newsview<?=$rstmp2[0]?>.html"><?=$lang['words'][163]?>: <?=$rstmp2[1]?></a></li><? } else { ?><? }?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<? include("a_right.php");?>
</div>
</div>
<? include("foot.php");?>