| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/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="boss_article-item boss_article-detail">
<div class="content_bg">
<h1 class="article-title-boss"><?=$lang['words'][73]?></h1>
<div class="row">
<article class="event-post col-md-12">
<!--Box-->
<div class="box-md">
<div class="box_left">
<time datetime="<?=date("y",$news[6])?>-<?=date("m",$news[6])?>-<?=date("d",$news[6])?>" class="heading-2"><span><?=date("d",$news[6])?></span> <?=date("M",$news[6])?> / <?=date("Y",$news[6])?></time>
</div>
<div class="box_cnt">
<h2><?=$news[1]?></h2>
<p><?=$news[5]?></p>
<ul class="list top_offset">
<?
$sql1="select id,title,created,type_id from ".$noe_version."_companynewses where type_id='".$news[4]."' 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[1])?>_newsview<?=$rstmp1[0]?>.html"><?=$lang['words'][162]?>: <?=$rstmp1[1]?></a>
</li>
<? } else { ?><? }?>
<?
$sql2="select id,title,created,type_id from ".$noe_version."_companynewses where type_id='".$news[4]."' 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[1])?>_newsview<?=$rstmp2[0]?>.html"><?=$lang['words'][163]?>: <?=$rstmp2[1]?></a>
</li><? } else { ?><? }?>
</ul>
</div>
</div>
<!--END box-->
</article>
</div>
</div> </div>
<? include("foot.php");?>