| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/beirmgroup/news2.php |
<?php
include("function.php");
$sql = "select count(id) from ".$noe_version."_companynewses where member_id='".$id."' and type_id =".$_GET['ntid'];
$num = $db->selectarray($sql);
$num = $db->toarray($num);
$pagecount=$num[0][0];
$page_num=18;
if($pagecount==0)$pagecount=1;
if($_GET['page']!='')$st=$_GET['page']-1;
if(!isset($st))$st=0;
if($_COOKIE['creathtml']>0){
$pages = $db->build_pagelinks(array( 'TOTAL_POSS' => $num[0][0],
'PER_PAGE' => $page_num,
'CUR_ST' => $st,
'BASE_URL' => "news_sid_".$_GET['ntid']
)
);}else{
$pages = $db->build_pagelinks(array( 'TOTAL_POSS' => $num[0][0],
'PER_PAGE' => $page_num,
'CUR_ST' => $st,
'BASE_URL' => $db->turn_name($_GET['make_s']).'_newstype'.$_GET['ntid']
)
);}
$number=$st*$page_num+1;
$number2=$st*$page_num+$page_num;
$sql = "select id,title,created,content,picture,title2 from ".$noe_version."_companynewses where member_id='".$id."' and type_id =".$_GET['ntid']." order by created desc LIMIT ".$st*$page_num.','.$page_num;
$res=$db->selectarray($sql);
$news=$res;
$sql="select id,name,name2 from ".$noe_version."_newstypes where id='".$_GET['ntid']."'";
$res=$db->selectarray($sql);
$res=$db->toarray($res);
$aa='news.html';
$aaa=$lang['words'][73];
$bb=$db->turn_name($res[0][2]).'_newstype'.$res[0][0].'.html';
$bbb=$res[0][1];
$purl=$bb;
$fb=$_GET['sort_id'];
$sql = "select name,keyword,des from ".$noe_version."_newstypes where id =".$_GET['ntid'];
$result=$db->selectone($sql);
$pagekeyword=$result['name'];
$pagekeyword2=$result['name'].', '.$result['keyword'];
$pagekeyword3=$result['des'];
$pagekeyword4=$result['des'];
include("head.php");
?>
<div class="boss_article-item boss_article-detail">
<div class="content_bg">
<h1 class="article-title-boss"><? if($_GET['ntid']==''){?><?=$lang['words'][73]?><? }else{?><?=$newstype[0][1]?><? }?></h1>
<div class="row"><? $i=1; while(@$b=mysqli_fetch_row($news)){
?>
<article class="event-post col-md-6 bottom_offset_2">
<!--Box-->
<div class="box-md">
<div class="box_left">
<? if ($b[4]!="") {?>
<div><a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html">
<img src="https://<?=$imgweb?>/upload/big/<?=$b[4]?>" alt="<?=$b[1]?>" title="<?=$b[1]?>"></a>
</div>
<? }?>
<time datetime="<?=date("y",$b[2])?>-<?=date("m",$b[2])?>-<?=date("d",$b[2])?>" class="heading-2"><span><?=date("d",$b[2])?></span> <?=date("M",$b[2])?> / <?=date("Y",$b[2])?></time>
</div>
<div class="box_cnt">
<h2><a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html"><?=$b[1]?></a></h2>
<p><?=$db->mystrcut(html_entity_decode($b[3]),100)?>...</p>
<a href="<?=$db->turn_name($b[5])?>_newsview<?=$b[0]?>.html" class="btn" data-text="<?=$lang['words'][153]?>">
<?=$lang['words'][153]?>
</a>
</div>
</div>
<!--END box-->
</article><? $i++;?>
<? }?>
<? if($pagecount>12){?>
<? include("page_navigation.php");?>
<? }?>
</div>
</div>
</div>
<? include("foot.php");?>